@matdata/yasqe 6.1.0 → 6.2.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.
@@ -0,0 +1,115 @@
1
+ var m2=Object.create;var ry=Object.defineProperty;var b2=Object.getOwnPropertyDescriptor;var w2=Object.getOwnPropertyNames;var x2=Object.getPrototypeOf,v2=Object.prototype.hasOwnProperty;var Li=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),y2=(i,t)=>{for(var e in t)ry(i,e,{get:t[e],enumerable:!0})},E2=(i,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of w2(t))!v2.call(i,n)&&n!==e&&ry(i,n,{get:()=>t[n],enumerable:!(o=b2(t,n))||o.enumerable});return i};var Lc=(i,t,e)=>(e=i!=null?m2(x2(i)):{},E2(t||!i||!i.__esModule?ry(e,"default",{value:i,enumerable:!0}):e,i));var Ml=Li((YX,SR)=>{var CC=KU(),jU=e_(),$U=t_(),qU=typeof window<"u"?window:global;SR.exports={assign:CC,create:jU,trim:$U,bind:i_,slice:IC,each:TR,map:r_,pluck:AC,isList:NC,isFunction:o_,isObject:s_,Global:qU};function KU(){return Object.assign?Object.assign:function(t,e,o,n){for(var c=1;c<arguments.length;c++)TR(Object(arguments[c]),function(g,w){t[w]=g});return t}}function e_(){if(Object.create)return function(e,o,n,c){var g=IC(arguments,1);return CC.apply(this,[Object.create(e)].concat(g))};{let t=function(){};var i=t;return function(o,n,c,g){var w=IC(arguments,1);return t.prototype=o,CC.apply(this,[new t].concat(w))}}}function t_(){return String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function i_(i,t){return function(){return t.apply(i,Array.prototype.slice.call(arguments,0))}}function IC(i,t){return Array.prototype.slice.call(i,t||0)}function TR(i,t){AC(i,function(e,o){return t(e,o),!1})}function r_(i,t){var e=NC(i)?[]:{};return AC(i,function(o,n){return e[n]=t(o,n),!1}),e}function AC(i,t){if(NC(i)){for(var e=0;e<i.length;e++)if(t(i[e],e))return i[e]}else for(var o in i)if(i.hasOwnProperty(o)&&t(i[o],o))return i[o]}function NC(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function o_(i){return i&&{}.toString.call(i)==="[object Function]"}function s_(i){return i&&{}.toString.call(i)==="[object Object]"}});var BR=Li((HX,LR)=>{var pa=Ml(),n_=pa.slice,a_=pa.pluck,Kc=pa.each,l_=pa.bind,c_=pa.create,RC=pa.isList,TC=pa.isFunction,h_=pa.isObject;LR.exports={createStore:SC};var p_={version:"2.0.12",enabled:!1,get:function(i,t){var e=this.storage.read(this._namespacePrefix+i);return this._deserialize(e,t)},set:function(i,t){return t===void 0?this.remove(i):(this.storage.write(this._namespacePrefix+i,this._serialize(t)),t)},remove:function(i){this.storage.remove(this._namespacePrefix+i)},each:function(i){var t=this;this.storage.each(function(e,o){i.call(t,t._deserialize(e),(o||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(i){return this._namespacePrefix=="__storejs_"+i+"_"},createStore:function(){return SC.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return SC(this.storage,this.plugins,i)}};function u_(){var i=typeof console>"u"?null:console;if(i){var t=i.warn?i.warn:i.log;t.apply(i,arguments)}}function SC(i,t,e){e||(e=""),i&&!RC(i)&&(i=[i]),t&&!RC(t)&&(t=[t]);var o=e?"__storejs_"+e+"_":"",n=e?new RegExp("^"+o):null,c=/^[a-zA-Z0-9_\-]*$/;if(!c.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var g={_namespacePrefix:o,_namespaceRegexp:n,_testStorage:function(y){try{var A="__storejs__test__";y.write(A,A);var R=y.read(A)===A;return y.remove(A),R}catch{return!1}},_assignPluginFnProp:function(y,A){var R=this[A];this[A]=function(){var F=n_(arguments,0),k=this;function G(){if(R)return Kc(arguments,function(P,Q){F[Q]=P}),R.apply(k,F)}var W=[G].concat(F);return y.apply(k,W)}},_serialize:function(y){return JSON.stringify(y)},_deserialize:function(y,A){if(!y)return A;var R="";try{R=JSON.parse(y)}catch{R=y}return R!==void 0?R:A},_addStorage:function(y){this.enabled||this._testStorage(y)&&(this.storage=y,this.enabled=!0)},_addPlugin:function(y){var A=this;if(RC(y)){Kc(y,function(F){A._addPlugin(F)});return}var R=a_(this.plugins,function(F){return y===F});if(!R){if(this.plugins.push(y),!TC(y))throw new Error("Plugins must be function values that return objects");var T=y.call(this);if(!h_(T))throw new Error("Plugins must return an object of function properties");Kc(T,function(F,k){if(!TC(F))throw new Error("Bad plugin property: "+k+" from plugin "+y.name+". Plugins should only return functions.");A._assignPluginFnProp(F,k)})}},addStorage:function(y){u_("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(y)}},w=c_(g,p_,{plugins:[]});return w.raw={},Kc(w,function(y,A){TC(y)&&(w.raw[A]=l_(w,y))}),Kc(i,function(y){w._addStorage(y)}),Kc(t,function(y){w._addPlugin(y)}),w}});var FR=Li((JX,VR)=>{var f_=Ml(),d_=f_.Global;VR.exports={name:"localStorage",read:kR,write:g_,each:m_,remove:b_,clearAll:w_};function eh(){return d_.localStorage}function kR(i){return eh().getItem(i)}function g_(i,t){return eh().setItem(i,t)}function m_(i){for(var t=eh().length-1;t>=0;t--){var e=eh().key(t);i(kR(e),e)}}function b_(i){return eh().removeItem(i)}function w_(){return eh().clear()}});var OR=Li((zX,_R)=>{var x_=Ml(),v_=x_.Global;_R.exports={name:"oldFF-globalStorage",read:y_,write:E_,each:UR,remove:C_,clearAll:I_};var Wl=v_.globalStorage;function y_(i){return Wl[i]}function E_(i,t){Wl[i]=t}function UR(i){for(var t=Wl.length-1;t>=0;t--){var e=Wl.key(t);i(Wl[e],e)}}function C_(i){return Wl.removeItem(i)}function I_(){UR(function(i,t){delete Wl[i]})}});var MR=Li((jX,ZR)=>{var A_=Ml(),LC=A_.Global;ZR.exports={name:"oldIE-userDataStorage",write:N_,read:R_,each:T_,remove:S_,clearAll:L_};var Pu="storejs",Du=LC.document,Qu=k_(),GR=(LC.navigator?LC.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function N_(i,t){if(!GR){var e=BC(i);Qu(function(o){o.setAttribute(e,t),o.save(Pu)})}}function R_(i){if(!GR){var t=BC(i),e=null;return Qu(function(o){e=o.getAttribute(t)}),e}}function T_(i){Qu(function(t){for(var e=t.XMLDocument.documentElement.attributes,o=e.length-1;o>=0;o--){var n=e[o];i(t.getAttribute(n.name),n.name)}})}function S_(i){var t=BC(i);Qu(function(e){e.removeAttribute(t),e.save(Pu)})}function L_(){Qu(function(i){var t=i.XMLDocument.documentElement.attributes;i.load(Pu);for(var e=t.length-1;e>=0;e--)i.removeAttribute(t[e].name);i.save(Pu)})}var B_=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function BC(i){return i.replace(/^\d/,"___$&").replace(B_,"___")}function k_(){if(!Du||!Du.documentElement||!Du.documentElement.addBehavior)return null;var i="script",t,e,o;try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,o=t.createElement("div")}catch{o=Du.createElement("div"),t=Du.body}return function(n){var c=[].slice.call(arguments,0);c.unshift(o),t.appendChild(o),o.addBehavior("#default#userData"),o.load(Pu),n.apply(this,c),t.removeChild(o)}}});var YR=Li(($X,XR)=>{var WR=Ml(),V_=WR.Global,F_=WR.trim;XR.exports={name:"cookieStorage",read:U_,write:__,each:DR,remove:PR,clearAll:O_};var Xu=V_.document;function U_(i){if(!i||!QR(i))return null;var t="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Xu.cookie.replace(new RegExp(t),"$1"))}function DR(i){for(var t=Xu.cookie.split(/; ?/g),e=t.length-1;e>=0;e--)if(F_(t[e])){var o=t[e].split("="),n=unescape(o[0]),c=unescape(o[1]);i(c,n)}}function __(i,t){i&&(Xu.cookie=escape(i)+"="+escape(t)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function PR(i){!i||!QR(i)||(Xu.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function O_(){DR(function(i,t){PR(t)})}function QR(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Xu.cookie)}});var zR=Li((qX,JR)=>{var G_=Ml(),Z_=G_.Global;JR.exports={name:"sessionStorage",read:HR,write:M_,each:W_,remove:D_,clearAll:P_};function th(){return Z_.sessionStorage}function HR(i){return th().getItem(i)}function M_(i,t){return th().setItem(i,t)}function W_(i){for(var t=th().length-1;t>=0;t--){var e=th().key(t);i(HR(e),e)}}function D_(i){return th().removeItem(i)}function P_(){return th().clear()}});var $R=Li((KX,jR)=>{jR.exports={name:"memoryStorage",read:Q_,write:X_,each:Y_,remove:H_,clearAll:J_};var Dl={};function Q_(i){return Dl[i]}function X_(i,t){Dl[i]=t}function Y_(i){for(var t in Dl)Dl.hasOwnProperty(t)&&i(Dl[t],t)}function H_(i){delete Dl[i]}function J_(i){Dl={}}});var KR=Li((eY,qR)=>{qR.exports=[FR(),OR(),MR(),YR(),zR(),$R()]});var eT=Li((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(t){var e=meta[t];return typeof e=="string"?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,t){var e,o,n,c,g=gap,w,y=t[i];switch(y&&typeof y=="object"&&typeof y.toJSON=="function"&&(y=y.toJSON(i)),typeof rep=="function"&&(y=rep.call(t,i,y)),typeof y){case"string":return quote(y);case"number":return isFinite(y)?String(y):"null";case"boolean":case"null":return String(y);case"object":if(!y)return"null";if(gap+=indent,w=[],Object.prototype.toString.apply(y)==="[object Array]"){for(c=y.length,e=0;e<c;e+=1)w[e]=str(e,y)||"null";return n=w.length===0?"[]":gap?`[
2
+ `+gap+w.join(`,
3
+ `+gap)+`
4
+ `+g+"]":"["+w.join(",")+"]",gap=g,n}if(rep&&typeof rep=="object")for(c=rep.length,e=0;e<c;e+=1)typeof rep[e]=="string"&&(o=rep[e],n=str(o,y),n&&w.push(quote(o)+(gap?": ":":")+n));else for(o in y)Object.prototype.hasOwnProperty.call(y,o)&&(n=str(o,y),n&&w.push(quote(o)+(gap?": ":":")+n));return n=w.length===0?"{}":gap?`{
5
+ `+gap+w.join(`,
6
+ `+gap)+`
7
+ `+g+"}":"{"+w.join(",")+"}",gap=g,n}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,t,e){var o;if(gap="",indent="",typeof e=="number")for(o=0;o<e;o+=1)indent+=" ";else typeof e=="string"&&(indent=e);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,t){var e,o,n=i[t];if(n&&typeof n=="object")for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(o=walk(n,e),o!==void 0?n[e]=o:delete n[e]);return reviver.call(i,t,n)}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 iT=Li((tY,tT)=>{tT.exports=z_;function z_(){return eT(),{}}});var oT=Li((iY,rT)=>{var j_=BR(),$_=KR(),q_=[iT()];rT.exports=j_.createStore($_,q_)});var aT=Li((lY,nT)=>{"use strict";nT.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var uT=Li((cY,pT)=>{"use strict";var hT="%[a-f0-9]{2}",lT=new RegExp("("+hT+")|([^%]+?)","gi"),cT=new RegExp("("+hT+")+","gi");function kC(i,t){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;t=t||1;var e=i.slice(0,t),o=i.slice(t);return Array.prototype.concat.call([],kC(e),kC(o))}function eO(i){try{return decodeURIComponent(i)}catch{for(var t=i.match(lT)||[],e=1;e<t.length;e++)i=kC(t,e).join(""),t=i.match(lT)||[];return i}}function tO(i){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=cT.exec(i);e;){try{t[e[0]]=decodeURIComponent(e[0])}catch{var o=eO(e[0]);o!==e[0]&&(t[e[0]]=o)}e=cT.exec(i)}t["%C2"]="\uFFFD";for(var n=Object.keys(t),c=0;c<n.length;c++){var g=n[c];i=i.replace(new RegExp(g,"g"),t[g])}return i}pT.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 tO(i)}}});var dT=Li((hY,fT)=>{"use strict";fT.exports=(i,t)=>{if(!(typeof i=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[i];let e=i.indexOf(t);return e===-1?[i]:[i.slice(0,e),i.slice(e+t.length)]}});var mT=Li((pY,gT)=>{"use strict";gT.exports=function(i,t){for(var e={},o=Object.keys(i),n=Array.isArray(t),c=0;c<o.length;c++){var g=o[c],w=i[g];(n?t.indexOf(g)!==-1:t(g,w,i))&&(e[g]=w)}return e}});var Cd=Li(Yr=>{"use strict";var iO=aT(),rO=uT(),wT=dT(),oO=mT(),sO=i=>i==null;function nO(i){switch(i.arrayFormat){case"index":return t=>(e,o)=>{let n=e.length;return o===void 0||i.skipNull&&o===null||i.skipEmptyString&&o===""?e:o===null?[...e,[qi(t,i),"[",n,"]"].join("")]:[...e,[qi(t,i),"[",qi(n,i),"]=",qi(o,i)].join("")]};case"bracket":return t=>(e,o)=>o===void 0||i.skipNull&&o===null||i.skipEmptyString&&o===""?e:o===null?[...e,[qi(t,i),"[]"].join("")]:[...e,[qi(t,i),"[]=",qi(o,i)].join("")];case"comma":case"separator":return t=>(e,o)=>o==null||o.length===0?e:e.length===0?[[qi(t,i),"=",qi(o,i)].join("")]:[[e,qi(o,i)].join(i.arrayFormatSeparator)];default:return t=>(e,o)=>o===void 0||i.skipNull&&o===null||i.skipEmptyString&&o===""?e:o===null?[...e,qi(t,i)]:[...e,[qi(t,i),"=",qi(o,i)].join("")]}}function aO(i){let t;switch(i.arrayFormat){case"index":return(e,o,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=o;return}n[e]===void 0&&(n[e]={}),n[e][t[1]]=o};case"bracket":return(e,o,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=o;return}if(n[e]===void 0){n[e]=[o];return}n[e]=[].concat(n[e],o)};case"comma":case"separator":return(e,o,n)=>{let c=typeof o=="string"&&o.includes(i.arrayFormatSeparator),g=typeof o=="string"&&!c&&Ql(o,i).includes(i.arrayFormatSeparator);o=g?Ql(o,i):o;let w=c||g?o.split(i.arrayFormatSeparator).map(y=>Ql(y,i)):o===null?o:Ql(o,i);n[e]=w};default:return(e,o,n)=>{if(n[e]===void 0){n[e]=o;return}n[e]=[].concat(n[e],o)}}}function xT(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function qi(i,t){return t.encode?t.strict?iO(i):encodeURIComponent(i):i}function Ql(i,t){return t.decode?rO(i):i}function vT(i){return Array.isArray(i)?i.sort():typeof i=="object"?vT(Object.keys(i)).sort((t,e)=>Number(t)-Number(e)).map(t=>i[t]):i}function yT(i){let t=i.indexOf("#");return t!==-1&&(i=i.slice(0,t)),i}function lO(i){let t="",e=i.indexOf("#");return e!==-1&&(t=i.slice(e)),t}function ET(i){i=yT(i);let t=i.indexOf("?");return t===-1?"":i.slice(t+1)}function bT(i,t){return t.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):t.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function CT(i,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),xT(t.arrayFormatSeparator);let e=aO(t),o=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return o;for(let n of i.split("&")){if(n==="")continue;let[c,g]=wT(t.decode?n.replace(/\+/g," "):n,"=");g=g===void 0?null:["comma","separator"].includes(t.arrayFormat)?g:Ql(g,t),e(Ql(c,t),g,o)}for(let n of Object.keys(o)){let c=o[n];if(typeof c=="object"&&c!==null)for(let g of Object.keys(c))c[g]=bT(c[g],t);else o[n]=bT(c,t)}return t.sort===!1?o:(t.sort===!0?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce((n,c)=>{let g=o[c];return g&&typeof g=="object"&&!Array.isArray(g)?n[c]=vT(g):n[c]=g,n},Object.create(null))}Yr.extract=ET;Yr.parse=CT;Yr.stringify=(i,t)=>{if(!i)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),xT(t.arrayFormatSeparator);let e=g=>t.skipNull&&sO(i[g])||t.skipEmptyString&&i[g]==="",o=nO(t),n={};for(let g of Object.keys(i))e(g)||(n[g]=i[g]);let c=Object.keys(n);return t.sort!==!1&&c.sort(t.sort),c.map(g=>{let w=i[g];return w===void 0?"":w===null?qi(g,t):Array.isArray(w)?w.reduce(o(g),[]).join("&"):qi(g,t)+"="+qi(w,t)}).filter(g=>g.length>0).join("&")};Yr.parseUrl=(i,t)=>{t=Object.assign({decode:!0},t);let[e,o]=wT(i,"#");return Object.assign({url:e.split("?")[0]||"",query:CT(ET(i),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:Ql(o,t)}:{})};Yr.stringifyUrl=(i,t)=>{t=Object.assign({encode:!0,strict:!0},t);let e=yT(i.url).split("?")[0]||"",o=Yr.extract(i.url),n=Yr.parse(o,{sort:!1}),c=Object.assign(n,i.query),g=Yr.stringify(c,t);g&&(g=`?${g}`);let w=lO(i.url);return i.fragmentIdentifier&&(w=`#${qi(i.fragmentIdentifier,t)}`),`${e}${g}${w}`};Yr.pick=(i,t,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:o,query:n,fragmentIdentifier:c}=Yr.parseUrl(i,e);return Yr.stringifyUrl({url:o,query:oO(n,t),fragmentIdentifier:c},e)};Yr.exclude=(i,t,e)=>{let o=Array.isArray(t)?n=>!t.includes(n):(n,c)=>!t(n,c);return Yr.pick(i,o,e)}});var pB=Li((iq,$C)=>{"use strict";var wh=typeof Reflect=="object"?Reflect:null,tB=wh&&typeof wh.apply=="function"?wh.apply:function(t,e,o){return Function.prototype.apply.call(t,e,o)},zd;wh&&typeof wh.ownKeys=="function"?zd=wh.ownKeys:Object.getOwnPropertySymbols?zd=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:zd=function(t){return Object.getOwnPropertyNames(t)};function SD(i){console&&console.warn&&console.warn(i)}var rB=Number.isNaN||function(t){return t!==t};function Nt(){Nt.init.call(this)}$C.exports=Nt;$C.exports.once=VD;Nt.EventEmitter=Nt;Nt.prototype._events=void 0;Nt.prototype._eventsCount=0;Nt.prototype._maxListeners=void 0;var iB=10;function jd(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(Nt,"defaultMaxListeners",{enumerable:!0,get:function(){return iB},set:function(i){if(typeof i!="number"||i<0||rB(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");iB=i}});Nt.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};Nt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||rB(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function oB(i){return i._maxListeners===void 0?Nt.defaultMaxListeners:i._maxListeners}Nt.prototype.getMaxListeners=function(){return oB(this)};Nt.prototype.emit=function(t){for(var e=[],o=1;o<arguments.length;o++)e.push(arguments[o]);var n=t==="error",c=this._events;if(c!==void 0)n=n&&c.error===void 0;else if(!n)return!1;if(n){var g;if(e.length>0&&(g=e[0]),g instanceof Error)throw g;var w=new Error("Unhandled error."+(g?" ("+g.message+")":""));throw w.context=g,w}var y=c[t];if(y===void 0)return!1;if(typeof y=="function")tB(y,this,e);else for(var A=y.length,R=cB(y,A),o=0;o<A;++o)tB(R[o],this,e);return!0};function sB(i,t,e,o){var n,c,g;if(jd(e),c=i._events,c===void 0?(c=i._events=Object.create(null),i._eventsCount=0):(c.newListener!==void 0&&(i.emit("newListener",t,e.listener?e.listener:e),c=i._events),g=c[t]),g===void 0)g=c[t]=e,++i._eventsCount;else if(typeof g=="function"?g=c[t]=o?[e,g]:[g,e]:o?g.unshift(e):g.push(e),n=oB(i),n>0&&g.length>n&&!g.warned){g.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=i,w.type=t,w.count=g.length,SD(w)}return i}Nt.prototype.addListener=function(t,e){return sB(this,t,e,!1)};Nt.prototype.on=Nt.prototype.addListener;Nt.prototype.prependListener=function(t,e){return sB(this,t,e,!0)};function LD(){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 nB(i,t,e){var o={fired:!1,wrapFn:void 0,target:i,type:t,listener:e},n=LD.bind(o);return n.listener=e,o.wrapFn=n,n}Nt.prototype.once=function(t,e){return jd(e),this.on(t,nB(this,t,e)),this};Nt.prototype.prependOnceListener=function(t,e){return jd(e),this.prependListener(t,nB(this,t,e)),this};Nt.prototype.removeListener=function(t,e){var o,n,c,g,w;if(jd(e),n=this._events,n===void 0)return this;if(o=n[t],o===void 0)return this;if(o===e||o.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,o.listener||e));else if(typeof o!="function"){for(c=-1,g=o.length-1;g>=0;g--)if(o[g]===e||o[g].listener===e){w=o[g].listener,c=g;break}if(c<0)return this;c===0?o.shift():BD(o,c),o.length===1&&(n[t]=o[0]),n.removeListener!==void 0&&this.emit("removeListener",t,w||e)}return this};Nt.prototype.off=Nt.prototype.removeListener;Nt.prototype.removeAllListeners=function(t){var e,o,n;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[t]),this;if(arguments.length===0){var c=Object.keys(o),g;for(n=0;n<c.length;++n)g=c[n],g!=="removeListener"&&this.removeAllListeners(g);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=o[t],typeof e=="function")this.removeListener(t,e);else if(e!==void 0)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this};function aB(i,t,e){var o=i._events;if(o===void 0)return[];var n=o[t];return n===void 0?[]:typeof n=="function"?e?[n.listener||n]:[n]:e?kD(n):cB(n,n.length)}Nt.prototype.listeners=function(t){return aB(this,t,!0)};Nt.prototype.rawListeners=function(t){return aB(this,t,!1)};Nt.listenerCount=function(i,t){return typeof i.listenerCount=="function"?i.listenerCount(t):lB.call(i,t)};Nt.prototype.listenerCount=lB;function lB(i){var t=this._events;if(t!==void 0){var e=t[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}Nt.prototype.eventNames=function(){return this._eventsCount>0?zd(this._events):[]};function cB(i,t){for(var e=new Array(t),o=0;o<t;++o)e[o]=i[o];return e}function BD(i,t){for(;t+1<i.length;t++)i[t]=i[t+1];i.pop()}function kD(i){for(var t=new Array(i.length),e=0;e<t.length;++e)t[e]=i[e].listener||i[e];return t}function VD(i,t){return new Promise(function(e,o){function n(g){i.removeListener(t,c),o(g)}function c(){typeof i.removeListener=="function"&&i.removeListener("error",n),e([].slice.call(arguments))}hB(i,t,c,{once:!0}),t!=="error"&&FD(i,n,{once:!0})})}function FD(i,t,e){typeof i.on=="function"&&hB(i,"error",t,e)}function hB(i,t,e,o){if(typeof i.on=="function")o.once?i.once(t,e):i.on(t,e);else if(typeof i.addEventListener=="function")i.addEventListener(t,function n(c){o.once&&i.removeEventListener(t,n),e(c)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var l2=Li((_g,a2)=>{(function(i,t){typeof _g=="object"&&typeof a2<"u"?t(_g):typeof define=="function"&&define.amd?define(["exports"],t):(i=typeof globalThis<"u"?globalThis:i||self,t(i.leaflet={}))})(_g,function(i){"use strict";var t="1.9.4";function e(p){var v,N,S,U;for(N=1,S=arguments.length;N<S;N++){U=arguments[N];for(v in U)p[v]=U[v]}return p}var o=Object.create||function(){function p(){}return function(v){return p.prototype=v,new p}}();function n(p,v){var N=Array.prototype.slice;if(p.bind)return p.bind.apply(p,N.call(arguments,1));var S=N.call(arguments,2);return function(){return p.apply(v,S.length?S.concat(N.call(arguments)):arguments)}}var c=0;function g(p){return"_leaflet_id"in p||(p._leaflet_id=++c),p._leaflet_id}function w(p,v,N){var S,U,Z,X;return X=function(){S=!1,U&&(Z.apply(N,U),U=!1)},Z=function(){S?U=arguments:(p.apply(N,arguments),setTimeout(X,v),S=!0)},Z}function y(p,v,N){var S=v[1],U=v[0],Z=S-U;return p===S&&N?p:((p-U)%Z+Z)%Z+U}function A(){return!1}function R(p,v){if(v===!1)return p;var N=Math.pow(10,v===void 0?6:v);return Math.round(p*N)/N}function T(p){return p.trim?p.trim():p.replace(/^\s+|\s+$/g,"")}function F(p){return T(p).split(/\s+/)}function k(p,v){Object.prototype.hasOwnProperty.call(p,"options")||(p.options=p.options?o(p.options):{});for(var N in v)p.options[N]=v[N];return p.options}function G(p,v,N){var S=[];for(var U in p)S.push(encodeURIComponent(N?U.toUpperCase():U)+"="+encodeURIComponent(p[U]));return(!v||v.indexOf("?")===-1?"?":"&")+S.join("&")}var W=/\{ *([\w_ -]+) *\}/g;function P(p,v){return p.replace(W,function(N,S){var U=v[S];if(U===void 0)throw new Error("No value provided for variable "+N);return typeof U=="function"&&(U=U(v)),U})}var Q=Array.isArray||function(p){return Object.prototype.toString.call(p)==="[object Array]"};function H(p,v){for(var N=0;N<p.length;N++)if(p[N]===v)return N;return-1}var re="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function K(p){return window["webkit"+p]||window["moz"+p]||window["ms"+p]}var J=0;function te(p){var v=+new Date,N=Math.max(0,16-(v-J));return J=v+N,window.setTimeout(p,N)}var ae=window.requestAnimationFrame||K("RequestAnimationFrame")||te,me=window.cancelAnimationFrame||K("CancelAnimationFrame")||K("CancelRequestAnimationFrame")||function(p){window.clearTimeout(p)};function Ee(p,v,N){if(N&&ae===te)p.call(v);else return ae.call(window,n(p,v))}function Pe(p){p&&me.call(window,p)}var Re={__proto__:null,extend:e,create:o,bind:n,get lastId(){return c},stamp:g,throttle:w,wrapNum:y,falseFn:A,formatNum:R,trim:T,splitWords:F,setOptions:k,getParamString:G,template:P,isArray:Q,indexOf:H,emptyImageUrl:re,requestFn:ae,cancelFn:me,requestAnimFrame:Ee,cancelAnimFrame:Pe};function Ie(){}Ie.extend=function(p){var v=function(){k(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},N=v.__super__=this.prototype,S=o(N);S.constructor=v,v.prototype=S;for(var U in this)Object.prototype.hasOwnProperty.call(this,U)&&U!=="prototype"&&U!=="__super__"&&(v[U]=this[U]);return p.statics&&e(v,p.statics),p.includes&&(Ye(p.includes),e.apply(null,[S].concat(p.includes))),e(S,p),delete S.statics,delete S.includes,S.options&&(S.options=N.options?o(N.options):{},e(S.options,p.options)),S._initHooks=[],S.callInitHooks=function(){if(!this._initHooksCalled){N.callInitHooks&&N.callInitHooks.call(this),this._initHooksCalled=!0;for(var Z=0,X=S._initHooks.length;Z<X;Z++)S._initHooks[Z].call(this)}},v},Ie.include=function(p){var v=this.prototype.options;return e(this.prototype,p),p.options&&(this.prototype.options=v,this.mergeOptions(p.options)),this},Ie.mergeOptions=function(p){return e(this.prototype.options,p),this},Ie.addInitHook=function(p){var v=Array.prototype.slice.call(arguments,1),N=typeof p=="function"?p:function(){this[p].apply(this,v)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(N),this};function Ye(p){if(!(typeof L>"u"||!L||!L.Mixin)){p=Q(p)?p:[p];for(var v=0;v<p.length;v++)p[v]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Oe={on:function(p,v,N){if(typeof p=="object")for(var S in p)this._on(S,p[S],v);else{p=F(p);for(var U=0,Z=p.length;U<Z;U++)this._on(p[U],v,N)}return this},off:function(p,v,N){if(!arguments.length)delete this._events;else if(typeof p=="object")for(var S in p)this._off(S,p[S],v);else{p=F(p);for(var U=arguments.length===1,Z=0,X=p.length;Z<X;Z++)U?this._off(p[Z]):this._off(p[Z],v,N)}return this},_on:function(p,v,N,S){if(typeof v!="function"){console.warn("wrong listener type: "+typeof v);return}if(this._listens(p,v,N)===!1){N===this&&(N=void 0);var U={fn:v,ctx:N};S&&(U.once=!0),this._events=this._events||{},this._events[p]=this._events[p]||[],this._events[p].push(U)}},_off:function(p,v,N){var S,U,Z;if(this._events&&(S=this._events[p],!!S)){if(arguments.length===1){if(this._firingCount)for(U=0,Z=S.length;U<Z;U++)S[U].fn=A;delete this._events[p];return}if(typeof v!="function"){console.warn("wrong listener type: "+typeof v);return}var X=this._listens(p,v,N);if(X!==!1){var z=S[X];this._firingCount&&(z.fn=A,this._events[p]=S=S.slice()),S.splice(X,1)}}},fire:function(p,v,N){if(!this.listens(p,N))return this;var S=e({},v,{type:p,target:this,sourceTarget:v&&v.sourceTarget||this});if(this._events){var U=this._events[p];if(U){this._firingCount=this._firingCount+1||1;for(var Z=0,X=U.length;Z<X;Z++){var z=U[Z],ee=z.fn;z.once&&this.off(p,ee,z.ctx),ee.call(z.ctx||this,S)}this._firingCount--}}return N&&this._propagateEvent(S),this},listens:function(p,v,N,S){typeof p!="string"&&console.warn('"string" type argument expected');var U=v;typeof v!="function"&&(S=!!v,U=void 0,N=void 0);var Z=this._events&&this._events[p];if(Z&&Z.length&&this._listens(p,U,N)!==!1)return!0;if(S){for(var X in this._eventParents)if(this._eventParents[X].listens(p,v,N,S))return!0}return!1},_listens:function(p,v,N){if(!this._events)return!1;var S=this._events[p]||[];if(!v)return!!S.length;N===this&&(N=void 0);for(var U=0,Z=S.length;U<Z;U++)if(S[U].fn===v&&S[U].ctx===N)return U;return!1},once:function(p,v,N){if(typeof p=="object")for(var S in p)this._on(S,p[S],v,!0);else{p=F(p);for(var U=0,Z=p.length;U<Z;U++)this._on(p[U],v,N,!0)}return this},addEventParent:function(p){return this._eventParents=this._eventParents||{},this._eventParents[g(p)]=p,this},removeEventParent:function(p){return this._eventParents&&delete this._eventParents[g(p)],this},_propagateEvent:function(p){for(var v in this._eventParents)this._eventParents[v].fire(p.type,e({layer:p.target,propagatedFrom:p.target},p),!0)}};Oe.addEventListener=Oe.on,Oe.removeEventListener=Oe.clearAllEventListeners=Oe.off,Oe.addOneTimeEventListener=Oe.once,Oe.fireEvent=Oe.fire,Oe.hasEventListeners=Oe.listens;var de=Ie.extend(Oe);function ue(p,v,N){this.x=N?Math.round(p):p,this.y=N?Math.round(v):v}var dt=Math.trunc||function(p){return p>0?Math.floor(p):Math.ceil(p)};ue.prototype={clone:function(){return new ue(this.x,this.y)},add:function(p){return this.clone()._add(ce(p))},_add:function(p){return this.x+=p.x,this.y+=p.y,this},subtract:function(p){return this.clone()._subtract(ce(p))},_subtract:function(p){return this.x-=p.x,this.y-=p.y,this},divideBy:function(p){return this.clone()._divideBy(p)},_divideBy:function(p){return this.x/=p,this.y/=p,this},multiplyBy:function(p){return this.clone()._multiplyBy(p)},_multiplyBy:function(p){return this.x*=p,this.y*=p,this},scaleBy:function(p){return new ue(this.x*p.x,this.y*p.y)},unscaleBy:function(p){return new ue(this.x/p.x,this.y/p.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=dt(this.x),this.y=dt(this.y),this},distanceTo:function(p){p=ce(p);var v=p.x-this.x,N=p.y-this.y;return Math.sqrt(v*v+N*N)},equals:function(p){return p=ce(p),p.x===this.x&&p.y===this.y},contains:function(p){return p=ce(p),Math.abs(p.x)<=Math.abs(this.x)&&Math.abs(p.y)<=Math.abs(this.y)},toString:function(){return"Point("+R(this.x)+", "+R(this.y)+")"}};function ce(p,v,N){return p instanceof ue?p:Q(p)?new ue(p[0],p[1]):p==null?p:typeof p=="object"&&"x"in p&&"y"in p?new ue(p.x,p.y):new ue(p,v,N)}function Be(p,v){if(p)for(var N=v?[p,v]:p,S=0,U=N.length;S<U;S++)this.extend(N[S])}Be.prototype={extend:function(p){var v,N;if(!p)return this;if(p instanceof ue||typeof p[0]=="number"||"x"in p)v=N=ce(p);else if(p=qe(p),v=p.min,N=p.max,!v||!N)return this;return!this.min&&!this.max?(this.min=v.clone(),this.max=N.clone()):(this.min.x=Math.min(v.x,this.min.x),this.max.x=Math.max(N.x,this.max.x),this.min.y=Math.min(v.y,this.min.y),this.max.y=Math.max(N.y,this.max.y)),this},getCenter:function(p){return ce((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,p)},getBottomLeft:function(){return ce(this.min.x,this.max.y)},getTopRight:function(){return ce(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(p){var v,N;return typeof p[0]=="number"||p instanceof ue?p=ce(p):p=qe(p),p instanceof Be?(v=p.min,N=p.max):v=N=p,v.x>=this.min.x&&N.x<=this.max.x&&v.y>=this.min.y&&N.y<=this.max.y},intersects:function(p){p=qe(p);var v=this.min,N=this.max,S=p.min,U=p.max,Z=U.x>=v.x&&S.x<=N.x,X=U.y>=v.y&&S.y<=N.y;return Z&&X},overlaps:function(p){p=qe(p);var v=this.min,N=this.max,S=p.min,U=p.max,Z=U.x>v.x&&S.x<N.x,X=U.y>v.y&&S.y<N.y;return Z&&X},isValid:function(){return!!(this.min&&this.max)},pad:function(p){var v=this.min,N=this.max,S=Math.abs(v.x-N.x)*p,U=Math.abs(v.y-N.y)*p;return qe(ce(v.x-S,v.y-U),ce(N.x+S,N.y+U))},equals:function(p){return p?(p=qe(p),this.min.equals(p.getTopLeft())&&this.max.equals(p.getBottomRight())):!1}};function qe(p,v){return!p||p instanceof Be?p:new Be(p,v)}function Xe(p,v){if(p)for(var N=v?[p,v]:p,S=0,U=N.length;S<U;S++)this.extend(N[S])}Xe.prototype={extend:function(p){var v=this._southWest,N=this._northEast,S,U;if(p instanceof fe)S=p,U=p;else if(p instanceof Xe){if(S=p._southWest,U=p._northEast,!S||!U)return this}else return p?this.extend(Le(p)||ve(p)):this;return!v&&!N?(this._southWest=new fe(S.lat,S.lng),this._northEast=new fe(U.lat,U.lng)):(v.lat=Math.min(S.lat,v.lat),v.lng=Math.min(S.lng,v.lng),N.lat=Math.max(U.lat,N.lat),N.lng=Math.max(U.lng,N.lng)),this},pad:function(p){var v=this._southWest,N=this._northEast,S=Math.abs(v.lat-N.lat)*p,U=Math.abs(v.lng-N.lng)*p;return new Xe(new fe(v.lat-S,v.lng-U),new fe(N.lat+S,N.lng+U))},getCenter:function(){return new fe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new fe(this.getNorth(),this.getWest())},getSouthEast:function(){return new fe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(p){typeof p[0]=="number"||p instanceof fe||"lat"in p?p=Le(p):p=ve(p);var v=this._southWest,N=this._northEast,S,U;return p instanceof Xe?(S=p.getSouthWest(),U=p.getNorthEast()):S=U=p,S.lat>=v.lat&&U.lat<=N.lat&&S.lng>=v.lng&&U.lng<=N.lng},intersects:function(p){p=ve(p);var v=this._southWest,N=this._northEast,S=p.getSouthWest(),U=p.getNorthEast(),Z=U.lat>=v.lat&&S.lat<=N.lat,X=U.lng>=v.lng&&S.lng<=N.lng;return Z&&X},overlaps:function(p){p=ve(p);var v=this._southWest,N=this._northEast,S=p.getSouthWest(),U=p.getNorthEast(),Z=U.lat>v.lat&&S.lat<N.lat,X=U.lng>v.lng&&S.lng<N.lng;return Z&&X},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(p,v){return p?(p=ve(p),this._southWest.equals(p.getSouthWest(),v)&&this._northEast.equals(p.getNorthEast(),v)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ve(p,v){return p instanceof Xe?p:new Xe(p,v)}function fe(p,v,N){if(isNaN(p)||isNaN(v))throw new Error("Invalid LatLng object: ("+p+", "+v+")");this.lat=+p,this.lng=+v,N!==void 0&&(this.alt=+N)}fe.prototype={equals:function(p,v){if(!p)return!1;p=Le(p);var N=Math.max(Math.abs(this.lat-p.lat),Math.abs(this.lng-p.lng));return N<=(v===void 0?1e-9:v)},toString:function(p){return"LatLng("+R(this.lat,p)+", "+R(this.lng,p)+")"},distanceTo:function(p){return bt.distance(this,Le(p))},wrap:function(){return bt.wrapLatLng(this)},toBounds:function(p){var v=180*p/40075017,N=v/Math.cos(Math.PI/180*this.lat);return ve([this.lat-v,this.lng-N],[this.lat+v,this.lng+N])},clone:function(){return new fe(this.lat,this.lng,this.alt)}};function Le(p,v,N){return p instanceof fe?p:Q(p)&&typeof p[0]!="object"?p.length===3?new fe(p[0],p[1],p[2]):p.length===2?new fe(p[0],p[1]):null:p==null?p:typeof p=="object"&&"lat"in p?new fe(p.lat,"lng"in p?p.lng:p.lon,p.alt):v===void 0?null:new fe(p,v,N)}var _e={latLngToPoint:function(p,v){var N=this.projection.project(p),S=this.scale(v);return this.transformation._transform(N,S)},pointToLatLng:function(p,v){var N=this.scale(v),S=this.transformation.untransform(p,N);return this.projection.unproject(S)},project:function(p){return this.projection.project(p)},unproject:function(p){return this.projection.unproject(p)},scale:function(p){return 256*Math.pow(2,p)},zoom:function(p){return Math.log(p/256)/Math.LN2},getProjectedBounds:function(p){if(this.infinite)return null;var v=this.projection.bounds,N=this.scale(p),S=this.transformation.transform(v.min,N),U=this.transformation.transform(v.max,N);return new Be(S,U)},infinite:!1,wrapLatLng:function(p){var v=this.wrapLng?y(p.lng,this.wrapLng,!0):p.lng,N=this.wrapLat?y(p.lat,this.wrapLat,!0):p.lat,S=p.alt;return new fe(N,v,S)},wrapLatLngBounds:function(p){var v=p.getCenter(),N=this.wrapLatLng(v),S=v.lat-N.lat,U=v.lng-N.lng;if(S===0&&U===0)return p;var Z=p.getSouthWest(),X=p.getNorthEast(),z=new fe(Z.lat-S,Z.lng-U),ee=new fe(X.lat-S,X.lng-U);return new Xe(z,ee)}},bt=e({},_e,{wrapLng:[-180,180],R:6371e3,distance:function(p,v){var N=Math.PI/180,S=p.lat*N,U=v.lat*N,Z=Math.sin((v.lat-p.lat)*N/2),X=Math.sin((v.lng-p.lng)*N/2),z=Z*Z+Math.cos(S)*Math.cos(U)*X*X,ee=2*Math.atan2(Math.sqrt(z),Math.sqrt(1-z));return this.R*ee}}),$t=6378137,Fi={R:$t,MAX_LATITUDE:85.0511287798,project:function(p){var v=Math.PI/180,N=this.MAX_LATITUDE,S=Math.max(Math.min(N,p.lat),-N),U=Math.sin(S*v);return new ue(this.R*p.lng*v,this.R*Math.log((1+U)/(1-U))/2)},unproject:function(p){var v=180/Math.PI;return new fe((2*Math.atan(Math.exp(p.y/this.R))-Math.PI/2)*v,p.x*v/this.R)},bounds:function(){var p=$t*Math.PI;return new Be([-p,-p],[p,p])}()};function Ki(p,v,N,S){if(Q(p)){this._a=p[0],this._b=p[1],this._c=p[2],this._d=p[3];return}this._a=p,this._b=v,this._c=N,this._d=S}Ki.prototype={transform:function(p,v){return this._transform(p.clone(),v)},_transform:function(p,v){return v=v||1,p.x=v*(this._a*p.x+this._b),p.y=v*(this._c*p.y+this._d),p},untransform:function(p,v){return v=v||1,new ue((p.x/v-this._b)/this._a,(p.y/v-this._d)/this._c)}};function ur(p,v,N,S){return new Ki(p,v,N,S)}var Ve=e({},bt,{code:"EPSG:3857",projection:Fi,transformation:function(){var p=.5/(Math.PI*Fi.R);return ur(p,.5,-p,.5)}()}),ne=e({},Ve,{code:"EPSG:900913"});function It(p){return document.createElementNS("http://www.w3.org/2000/svg",p)}function qt(p,v){var N="",S,U,Z,X,z,ee;for(S=0,Z=p.length;S<Z;S++){for(z=p[S],U=0,X=z.length;U<X;U++)ee=z[U],N+=(U?"L":"M")+ee.x+" "+ee.y;N+=v?Ze.svg?"z":"x":""}return N||"M0 0"}var De=document.documentElement.style,oi="ActiveXObject"in window,Fo=oi&&!document.addEventListener,je="msLaunchUri"in navigator&&!("documentMode"in document),Ui=Qi("webkit"),si=Qi("android"),pi=Qi("android 2")||Qi("android 3"),Uo=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ge=si&&Qi("Google")&&Uo<537&&!("AudioNode"in window),ui=!!window.opera,Te=!je&&Qi("chrome"),ot=Qi("gecko")&&!Ui&&!ui&&!oi,ni=!Te&&Qi("safari"),fi=Qi("phantom"),st="OTransition"in De,Kt=navigator.platform.indexOf("Win")===0,ai=oi&&"transition"in De,Wi="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!pi,Di="MozPerspective"in De,er=!window.L_DISABLE_3D&&(ai||Wi||Di)&&!st&&!fi,Ut=typeof orientation<"u"||Qi("mobile"),_i=Ut&&Ui,zr=Ut&&Wi,Fr=!window.PointerEvent&&window.MSPointerEvent,Ur=!!(window.PointerEvent||Fr),Pi="ontouchstart"in window||!!window.TouchEvent,tr=!window.L_NO_TOUCH&&(Pi||Ur),_o=Ut&&ui,yt=Ut&&ot,Ca=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ia=function(){var p=!1;try{var v=Object.defineProperty({},"passive",{get:function(){p=!0}});window.addEventListener("testPassiveEventSupport",A,v),window.removeEventListener("testPassiveEventSupport",A,v)}catch{}return p}(),_t=function(){return!!document.createElement("canvas").getContext}(),_r=!!(document.createElementNS&&It("svg").createSVGRect),Aa=!!_r&&function(){var p=document.createElement("div");return p.innerHTML="<svg/>",(p.firstChild&&p.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Nn=!_r&&function(){try{var p=document.createElement("div");p.innerHTML='<v:shape adj="1"/>';var v=p.firstChild;return v.style.behavior="url(#default#VML)",v&&typeof v.adj=="object"}catch{return!1}}(),Ms=navigator.platform.indexOf("Mac")===0,Rn=navigator.platform.indexOf("Linux")===0;function Qi(p){return navigator.userAgent.toLowerCase().indexOf(p)>=0}var Ze={ie:oi,ielt9:Fo,edge:je,webkit:Ui,android:si,android23:pi,androidStock:Ge,opera:ui,chrome:Te,gecko:ot,safari:ni,phantom:fi,opera12:st,win:Kt,ie3d:ai,webkit3d:Wi,gecko3d:Di,any3d:er,mobile:Ut,mobileWebkit:_i,mobileWebkit3d:zr,msPointer:Fr,pointer:Ur,touch:tr,touchNative:Pi,mobileOpera:_o,mobileGecko:yt,retina:Ca,passiveEvents:Ia,canvas:_t,svg:_r,vml:Nn,inlineSvg:Aa,mac:Ms,linux:Rn},Xi=Ze.msPointer?"MSPointerDown":"pointerdown",Or=Ze.msPointer?"MSPointerMove":"pointermove",Ws=Ze.msPointer?"MSPointerUp":"pointerup",Ds=Ze.msPointer?"MSPointerCancel":"pointercancel",Oo={touchstart:Xi,touchmove:Or,touchend:Ws,touchcancel:Ds},Ps={touchstart:ke,touchmove:pe,touchend:pe,touchcancel:pe},yi={},Qs=!1;function Tn(p,v,N){return v==="touchstart"&&Y(),Ps[v]?(N=Ps[v].bind(this,N),p.addEventListener(Oo[v],N,!1),N):(console.warn("wrong event specified:",v),A)}function Sn(p,v,N){if(!Oo[v]){console.warn("wrong event specified:",v);return}p.removeEventListener(Oo[v],N,!1)}function Ln(p){yi[p.pointerId]=p}function Na(p){yi[p.pointerId]&&(yi[p.pointerId]=p)}function Me(p){delete yi[p.pointerId]}function Y(){Qs||(document.addEventListener(Xi,Ln,!0),document.addEventListener(Or,Na,!0),document.addEventListener(Ws,Me,!0),document.addEventListener(Ds,Me,!0),Qs=!0)}function pe(p,v){if(v.pointerType!==(v.MSPOINTER_TYPE_MOUSE||"mouse")){v.touches=[];for(var N in yi)v.touches.push(yi[N]);v.changedTouches=[v],p(v)}}function ke(p,v){v.MSPOINTER_TYPE_TOUCH&&v.pointerType===v.MSPOINTER_TYPE_TOUCH&&ei(v),pe(p,v)}function vt(p){var v={},N,S;for(S in p)N=p[S],v[S]=N&&N.bind?N.bind(p):N;return p=v,v.type="dblclick",v.detail=2,v.isTrusted=!1,v._simulated=!0,v}var li=200;function Vt(p,v){p.addEventListener("dblclick",v);var N=0,S;function U(Z){if(Z.detail!==1){S=Z.detail;return}if(!(Z.pointerType==="mouse"||Z.sourceCapabilities&&!Z.sourceCapabilities.firesTouchEvents)){var X=Gn(Z);if(!(X.some(function(ee){return ee instanceof HTMLLabelElement&&ee.attributes.for})&&!X.some(function(ee){return ee instanceof HTMLInputElement||ee instanceof HTMLSelectElement}))){var z=Date.now();z-N<=li?(S++,S===2&&v(vt(Z))):S=1,N=z}}}return p.addEventListener("click",U),{dblclick:v,simDblclick:U}}function Ei(p,v){p.removeEventListener("dblclick",v.dblclick),p.removeEventListener("click",v.simDblclick)}var Yi=Vn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ir=Vn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ds=ir==="webkitTransition"||ir==="OTransition"?ir+"End":"transitionend";function Dt(p){return typeof p=="string"?document.getElementById(p):p}function vo(p,v){var N=p.style[v]||p.currentStyle&&p.currentStyle[v];if((!N||N==="auto")&&document.defaultView){var S=document.defaultView.getComputedStyle(p,null);N=S?S[v]:null}return N==="auto"?null:N}function ct(p,v,N){var S=document.createElement(p);return S.className=v||"",N&&N.appendChild(S),S}function Tt(p){var v=p.parentNode;v&&v.removeChild(p)}function Bn(p){for(;p.firstChild;)p.removeChild(p.firstChild)}function gs(p){var v=p.parentNode;v&&v.lastChild!==p&&v.appendChild(p)}function ms(p){var v=p.parentNode;v&&v.firstChild!==p&&v.insertBefore(p,v.firstChild)}function Ra(p,v){if(p.classList!==void 0)return p.classList.contains(v);var N=kn(p);return N.length>0&&new RegExp("(^|\\s)"+v+"(\\s|$)").test(N)}function tt(p,v){if(p.classList!==void 0)for(var N=F(v),S=0,U=N.length;S<U;S++)p.classList.add(N[S]);else if(!Ra(p,v)){var Z=kn(p);Ta(p,(Z?Z+" ":"")+v)}}function Ot(p,v){p.classList!==void 0?p.classList.remove(v):Ta(p,T((" "+kn(p)+" ").replace(" "+v+" "," ")))}function Ta(p,v){p.className.baseVal===void 0?p.className=v:p.className.baseVal=v}function kn(p){return p.correspondingElement&&(p=p.correspondingElement),p.className.baseVal===void 0?p.className:p.className.baseVal}function rr(p,v){"opacity"in p.style?p.style.opacity=v:"filter"in p.style&&Ah(p,v)}function Ah(p,v){var N=!1,S="DXImageTransform.Microsoft.Alpha";try{N=p.filters.item(S)}catch{if(v===1)return}v=Math.round(v*100),N?(N.Enabled=v!==100,N.Opacity=v):p.style.filter+=" progid:"+S+"(opacity="+v+")"}function Vn(p){for(var v=document.documentElement.style,N=0;N<p.length;N++)if(p[N]in v)return p[N];return!1}function Go(p,v,N){var S=v||new ue(0,0);p.style[Yi]=(Ze.ie3d?"translate("+S.x+"px,"+S.y+"px)":"translate3d("+S.x+"px,"+S.y+"px,0)")+(N?" scale("+N+")":"")}function Pt(p,v){p._leaflet_pos=v,Ze.any3d?Go(p,v):(p.style.left=v.x+"px",p.style.top=v.y+"px")}function Zo(p){return p._leaflet_pos||new ue(0,0)}var Xs,Mo,Sa;if("onselectstart"in document)Xs=function(){Qe(window,"selectstart",ei)},Mo=function(){wt(window,"selectstart",ei)};else{var Ys=Vn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Xs=function(){if(Ys){var p=document.documentElement.style;Sa=p[Ys],p[Ys]="none"}},Mo=function(){Ys&&(document.documentElement.style[Ys]=Sa,Sa=void 0)}}function La(){Qe(window,"dragstart",ei)}function Ba(){wt(window,"dragstart",ei)}var Fn,ka;function Va(p){for(;p.tabIndex===-1;)p=p.parentNode;p.style&&(Un(),Fn=p,ka=p.style.outlineStyle,p.style.outlineStyle="none",Qe(window,"keydown",Un))}function Un(){Fn&&(Fn.style.outlineStyle=ka,Fn=void 0,ka=void 0,wt(window,"keydown",Un))}function _n(p){do p=p.parentNode;while((!p.offsetWidth||!p.offsetHeight)&&p!==document.body);return p}function Fa(p){var v=p.getBoundingClientRect();return{x:v.width/p.offsetWidth||1,y:v.height/p.offsetHeight||1,boundingClientRect:v}}var Nh={__proto__:null,TRANSFORM:Yi,TRANSITION:ir,TRANSITION_END:ds,get:Dt,getStyle:vo,create:ct,remove:Tt,empty:Bn,toFront:gs,toBack:ms,hasClass:Ra,addClass:tt,removeClass:Ot,setClass:Ta,getClass:kn,setOpacity:rr,testProp:Vn,setTransform:Go,setPosition:Pt,getPosition:Zo,get disableTextSelection(){return Xs},get enableTextSelection(){return Mo},disableImageDrag:La,enableImageDrag:Ba,preventOutline:Va,restoreOutline:Un,getSizedParentNode:_n,getScale:Fa};function Qe(p,v,N,S){if(v&&typeof v=="object")for(var U in v)jr(p,U,v[U],N);else{v=F(v);for(var Z=0,X=v.length;Z<X;Z++)jr(p,v[Z],N,S)}return this}var or="_leaflet_events";function wt(p,v,N,S){if(arguments.length===1)On(p),delete p[or];else if(v&&typeof v=="object")for(var U in v)$r(p,U,v[U],N);else if(v=F(v),arguments.length===2)On(p,function(z){return H(v,z)!==-1});else for(var Z=0,X=v.length;Z<X;Z++)$r(p,v[Z],N,S);return this}function On(p,v){for(var N in p[or]){var S=N.split(/\d/)[0];(!v||v(S))&&$r(p,S,null,null,N)}}var fr={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function jr(p,v,N,S){var U=v+g(N)+(S?"_"+g(S):"");if(p[or]&&p[or][U])return this;var Z=function(z){return N.call(S||p,z||window.event)},X=Z;!Ze.touchNative&&Ze.pointer&&v.indexOf("touch")===0?Z=Tn(p,v,Z):Ze.touch&&v==="dblclick"?Z=Vt(p,Z):"addEventListener"in p?v==="touchstart"||v==="touchmove"||v==="wheel"||v==="mousewheel"?p.addEventListener(fr[v]||v,Z,Ze.passiveEvents?{passive:!1}:!1):v==="mouseenter"||v==="mouseleave"?(Z=function(z){z=z||window.event,Hs(p,z)&&X(z)},p.addEventListener(fr[v],Z,!1)):p.addEventListener(v,X,!1):p.attachEvent("on"+v,Z),p[or]=p[or]||{},p[or][U]=Z}function $r(p,v,N,S,U){U=U||v+g(N)+(S?"_"+g(S):"");var Z=p[or]&&p[or][U];if(!Z)return this;!Ze.touchNative&&Ze.pointer&&v.indexOf("touch")===0?Sn(p,v,Z):Ze.touch&&v==="dblclick"?Ei(p,Z):"removeEventListener"in p?p.removeEventListener(fr[v]||v,Z,!1):p.detachEvent("on"+v,Z),p[or][U]=null}function Hi(p){return p.stopPropagation?p.stopPropagation():p.originalEvent?p.originalEvent._stopped=!0:p.cancelBubble=!0,this}function qr(p){return jr(p,"wheel",Hi),this}function dr(p){return Qe(p,"mousedown touchstart dblclick contextmenu",Hi),p._leaflet_disable_click=!0,this}function ei(p){return p.preventDefault?p.preventDefault():p.returnValue=!1,this}function gr(p){return ei(p),Hi(p),this}function Gn(p){if(p.composedPath)return p.composedPath();for(var v=[],N=p.target;N;)v.push(N),N=N.parentNode;return v}function Zn(p,v){if(!v)return new ue(p.clientX,p.clientY);var N=Fa(v),S=N.boundingClientRect;return new ue((p.clientX-S.left)/N.x-v.clientLeft,(p.clientY-S.top)/N.y-v.clientTop)}var Rh=Ze.linux&&Ze.chrome?window.devicePixelRatio:Ze.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function nc(p){return Ze.edge?p.wheelDeltaY/2:p.deltaY&&p.deltaMode===0?-p.deltaY/Rh:p.deltaY&&p.deltaMode===1?-p.deltaY*20:p.deltaY&&p.deltaMode===2?-p.deltaY*60:p.deltaX||p.deltaZ?0:p.wheelDelta?(p.wheelDeltaY||p.wheelDelta)/2:p.detail&&Math.abs(p.detail)<32765?-p.detail*20:p.detail?p.detail/-32765*60:0}function Hs(p,v){var N=v.relatedTarget;if(!N)return!0;try{for(;N&&N!==p;)N=N.parentNode}catch{return!1}return N!==p}var $e={__proto__:null,on:Qe,off:wt,stopPropagation:Hi,disableScrollPropagation:qr,disableClickPropagation:dr,preventDefault:ei,stop:gr,getPropagationPath:Gn,getMousePosition:Zn,getWheelDelta:nc,isExternalTarget:Hs,addListener:Qe,removeListener:wt},Mn=de.extend({run:function(p,v,N,S){this.stop(),this._el=p,this._inProgress=!0,this._duration=N||.25,this._easeOutPower=1/Math.max(S||.5,.2),this._startPos=Zo(p),this._offset=v.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Ee(this._animate,this),this._step()},_step:function(p){var v=+new Date-this._startTime,N=this._duration*1e3;v<N?this._runFrame(this._easeOut(v/N),p):(this._runFrame(1),this._complete())},_runFrame:function(p,v){var N=this._startPos.add(this._offset.multiplyBy(p));v&&N._round(),Pt(this._el,N),this.fire("step")},_complete:function(){Pe(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(p){return 1-Math.pow(1-p,this._easeOutPower)}}),it=de.extend({options:{crs:Ve,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(p,v){v=k(this,v),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(p),this._initLayout(),this._onResize=n(this._onResize,this),this._initEvents(),v.maxBounds&&this.setMaxBounds(v.maxBounds),v.zoom!==void 0&&(this._zoom=this._limitZoom(v.zoom)),v.center&&v.zoom!==void 0&&this.setView(Le(v.center),v.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ir&&Ze.any3d&&!Ze.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Qe(this._proxy,ds,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(p,v,N){if(v=v===void 0?this._zoom:this._limitZoom(v),p=this._limitCenter(Le(p),v,this.options.maxBounds),N=N||{},this._stop(),this._loaded&&!N.reset&&N!==!0){N.animate!==void 0&&(N.zoom=e({animate:N.animate},N.zoom),N.pan=e({animate:N.animate,duration:N.duration},N.pan));var S=this._zoom!==v?this._tryAnimatedZoom&&this._tryAnimatedZoom(p,v,N.zoom):this._tryAnimatedPan(p,N.pan);if(S)return clearTimeout(this._sizeTimer),this}return this._resetView(p,v,N.pan&&N.pan.noMoveStart),this},setZoom:function(p,v){return this._loaded?this.setView(this.getCenter(),p,{zoom:v}):(this._zoom=p,this)},zoomIn:function(p,v){return p=p||(Ze.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+p,v)},zoomOut:function(p,v){return p=p||(Ze.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-p,v)},setZoomAround:function(p,v,N){var S=this.getZoomScale(v),U=this.getSize().divideBy(2),Z=p instanceof ue?p:this.latLngToContainerPoint(p),X=Z.subtract(U).multiplyBy(1-1/S),z=this.containerPointToLatLng(U.add(X));return this.setView(z,v,{zoom:N})},_getBoundsCenterZoom:function(p,v){v=v||{},p=p.getBounds?p.getBounds():ve(p);var N=ce(v.paddingTopLeft||v.padding||[0,0]),S=ce(v.paddingBottomRight||v.padding||[0,0]),U=this.getBoundsZoom(p,!1,N.add(S));if(U=typeof v.maxZoom=="number"?Math.min(v.maxZoom,U):U,U===1/0)return{center:p.getCenter(),zoom:U};var Z=S.subtract(N).divideBy(2),X=this.project(p.getSouthWest(),U),z=this.project(p.getNorthEast(),U),ee=this.unproject(X.add(z).divideBy(2).add(Z),U);return{center:ee,zoom:U}},fitBounds:function(p,v){if(p=ve(p),!p.isValid())throw new Error("Bounds are not valid.");var N=this._getBoundsCenterZoom(p,v);return this.setView(N.center,N.zoom,v)},fitWorld:function(p){return this.fitBounds([[-90,-180],[90,180]],p)},panTo:function(p,v){return this.setView(p,this._zoom,{pan:v})},panBy:function(p,v){if(p=ce(p).round(),v=v||{},!p.x&&!p.y)return this.fire("moveend");if(v.animate!==!0&&!this.getSize().contains(p))return this._resetView(this.unproject(this.project(this.getCenter()).add(p)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Mn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),v.noMoveStart||this.fire("movestart"),v.animate!==!1){tt(this._mapPane,"leaflet-pan-anim");var N=this._getMapPanePos().subtract(p).round();this._panAnim.run(this._mapPane,N,v.duration||.25,v.easeLinearity)}else this._rawPanBy(p),this.fire("move").fire("moveend");return this},flyTo:function(p,v,N){if(N=N||{},N.animate===!1||!Ze.any3d)return this.setView(p,v,N);this._stop();var S=this.project(this.getCenter()),U=this.project(p),Z=this.getSize(),X=this._zoom;p=Le(p),v=v===void 0?X:v;var z=Math.max(Z.x,Z.y),ee=z*this.getZoomScale(X,v),le=U.distanceTo(S)||1,Ne=1.42,He=Ne*Ne;function nt(Xt){var jn=Xt?-1:1,Kh=Xt?ee:z,ep=ee*ee-z*z+jn*He*He*le*le,tp=2*Kh*He*le,Da=ep/tp,Sc=Math.sqrt(Da*Da+1)-Da,ip=Sc<1e-9?-18:Math.log(Sc);return ip}function Si(Xt){return(Math.exp(Xt)-Math.exp(-Xt))/2}function ci(Xt){return(Math.exp(Xt)+Math.exp(-Xt))/2}function nr(Xt){return Si(Xt)/ci(Xt)}var Oi=nt(0);function Rs(Xt){return z*(ci(Oi)/ci(Oi+Ne*Xt))}function zh(Xt){return z*(ci(Oi)*nr(Oi+Ne*Xt)-Si(Oi))/He}function jh(Xt){return 1-Math.pow(1-Xt,1.5)}var $h=Date.now(),Rc=(nt(1)-Oi)/Ne,qh=N.duration?1e3*N.duration:1e3*Rc*.8;function Tc(){var Xt=(Date.now()-$h)/qh,jn=jh(Xt)*Rc;Xt<=1?(this._flyToFrame=Ee(Tc,this),this._move(this.unproject(S.add(U.subtract(S).multiplyBy(zh(jn)/le)),X),this.getScaleZoom(z/Rs(jn),X),{flyTo:!0})):this._move(p,v)._moveEnd(!0)}return this._moveStart(!0,N.noMoveStart),Tc.call(this),this},flyToBounds:function(p,v){var N=this._getBoundsCenterZoom(p,v);return this.flyTo(N.center,N.zoom,v)},setMaxBounds:function(p){return p=ve(p),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),p.isValid()?(this.options.maxBounds=p,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(p){var v=this.options.minZoom;return this.options.minZoom=p,this._loaded&&v!==p&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(p):this},setMaxZoom:function(p){var v=this.options.maxZoom;return this.options.maxZoom=p,this._loaded&&v!==p&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(p):this},panInsideBounds:function(p,v){this._enforcingBounds=!0;var N=this.getCenter(),S=this._limitCenter(N,this._zoom,ve(p));return N.equals(S)||this.panTo(S,v),this._enforcingBounds=!1,this},panInside:function(p,v){v=v||{};var N=ce(v.paddingTopLeft||v.padding||[0,0]),S=ce(v.paddingBottomRight||v.padding||[0,0]),U=this.project(this.getCenter()),Z=this.project(p),X=this.getPixelBounds(),z=qe([X.min.add(N),X.max.subtract(S)]),ee=z.getSize();if(!z.contains(Z)){this._enforcingBounds=!0;var le=Z.subtract(z.getCenter()),Ne=z.extend(Z).getSize().subtract(ee);U.x+=le.x<0?-Ne.x:Ne.x,U.y+=le.y<0?-Ne.y:Ne.y,this.panTo(this.unproject(U),v),this._enforcingBounds=!1}return this},invalidateSize:function(p){if(!this._loaded)return this;p=e({animate:!1,pan:!0},p===!0?{animate:!0}:p);var v=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var N=this.getSize(),S=v.divideBy(2).round(),U=N.divideBy(2).round(),Z=S.subtract(U);return!Z.x&&!Z.y?this:(p.animate&&p.pan?this.panBy(Z):(p.pan&&this._rawPanBy(Z),this.fire("move"),p.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:v,newSize:N}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(p){if(p=this._locateOptions=e({timeout:1e4,watch:!1},p),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var v=n(this._handleGeolocationResponse,this),N=n(this._handleGeolocationError,this);return p.watch?this._locationWatchId=navigator.geolocation.watchPosition(v,N,p):navigator.geolocation.getCurrentPosition(v,N,p),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(p){if(this._container._leaflet_id){var v=p.code,N=p.message||(v===1?"permission denied":v===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:v,message:"Geolocation error: "+N+"."})}},_handleGeolocationResponse:function(p){if(this._container._leaflet_id){var v=p.coords.latitude,N=p.coords.longitude,S=new fe(v,N),U=S.toBounds(p.coords.accuracy*2),Z=this._locateOptions;if(Z.setView){var X=this.getBoundsZoom(U);this.setView(S,Z.maxZoom?Math.min(X,Z.maxZoom):X)}var z={latlng:S,bounds:U,timestamp:p.timestamp};for(var ee in p.coords)typeof p.coords[ee]=="number"&&(z[ee]=p.coords[ee]);this.fire("locationfound",z)}},addHandler:function(p,v){if(!v)return this;var N=this[p]=new v(this);return this._handlers.push(N),this.options[p]&&N.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Tt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Pe(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var p;for(p in this._layers)this._layers[p].remove();for(p in this._panes)Tt(this._panes[p]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(p,v){var N="leaflet-pane"+(p?" leaflet-"+p.replace("Pane","")+"-pane":""),S=ct("div",N,v||this._mapPane);return p&&(this._panes[p]=S),S},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var p=this.getPixelBounds(),v=this.unproject(p.getBottomLeft()),N=this.unproject(p.getTopRight());return new Xe(v,N)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(p,v,N){p=ve(p),N=ce(N||[0,0]);var S=this.getZoom()||0,U=this.getMinZoom(),Z=this.getMaxZoom(),X=p.getNorthWest(),z=p.getSouthEast(),ee=this.getSize().subtract(N),le=qe(this.project(z,S),this.project(X,S)).getSize(),Ne=Ze.any3d?this.options.zoomSnap:1,He=ee.x/le.x,nt=ee.y/le.y,Si=v?Math.max(He,nt):Math.min(He,nt);return S=this.getScaleZoom(Si,S),Ne&&(S=Math.round(S/(Ne/100))*(Ne/100),S=v?Math.ceil(S/Ne)*Ne:Math.floor(S/Ne)*Ne),Math.max(U,Math.min(Z,S))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ue(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(p,v){var N=this._getTopLeftPoint(p,v);return new Be(N,N.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(p){return this.options.crs.getProjectedBounds(p===void 0?this.getZoom():p)},getPane:function(p){return typeof p=="string"?this._panes[p]:p},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(p,v){var N=this.options.crs;return v=v===void 0?this._zoom:v,N.scale(p)/N.scale(v)},getScaleZoom:function(p,v){var N=this.options.crs;v=v===void 0?this._zoom:v;var S=N.zoom(p*N.scale(v));return isNaN(S)?1/0:S},project:function(p,v){return v=v===void 0?this._zoom:v,this.options.crs.latLngToPoint(Le(p),v)},unproject:function(p,v){return v=v===void 0?this._zoom:v,this.options.crs.pointToLatLng(ce(p),v)},layerPointToLatLng:function(p){var v=ce(p).add(this.getPixelOrigin());return this.unproject(v)},latLngToLayerPoint:function(p){var v=this.project(Le(p))._round();return v._subtract(this.getPixelOrigin())},wrapLatLng:function(p){return this.options.crs.wrapLatLng(Le(p))},wrapLatLngBounds:function(p){return this.options.crs.wrapLatLngBounds(ve(p))},distance:function(p,v){return this.options.crs.distance(Le(p),Le(v))},containerPointToLayerPoint:function(p){return ce(p).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(p){return ce(p).add(this._getMapPanePos())},containerPointToLatLng:function(p){var v=this.containerPointToLayerPoint(ce(p));return this.layerPointToLatLng(v)},latLngToContainerPoint:function(p){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Le(p)))},mouseEventToContainerPoint:function(p){return Zn(p,this._container)},mouseEventToLayerPoint:function(p){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(p))},mouseEventToLatLng:function(p){return this.layerPointToLatLng(this.mouseEventToLayerPoint(p))},_initContainer:function(p){var v=this._container=Dt(p);if(v){if(v._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Qe(v,"scroll",this._onScroll,this),this._containerId=g(v)},_initLayout:function(){var p=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ze.any3d,tt(p,"leaflet-container"+(Ze.touch?" leaflet-touch":"")+(Ze.retina?" leaflet-retina":"")+(Ze.ielt9?" leaflet-oldie":"")+(Ze.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var v=vo(p,"position");v!=="absolute"&&v!=="relative"&&v!=="fixed"&&v!=="sticky"&&(p.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var p=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Pt(this._mapPane,new ue(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(tt(p.markerPane,"leaflet-zoom-hide"),tt(p.shadowPane,"leaflet-zoom-hide"))},_resetView:function(p,v,N){Pt(this._mapPane,new ue(0,0));var S=!this._loaded;this._loaded=!0,v=this._limitZoom(v),this.fire("viewprereset");var U=this._zoom!==v;this._moveStart(U,N)._move(p,v)._moveEnd(U),this.fire("viewreset"),S&&this.fire("load")},_moveStart:function(p,v){return p&&this.fire("zoomstart"),v||this.fire("movestart"),this},_move:function(p,v,N,S){v===void 0&&(v=this._zoom);var U=this._zoom!==v;return this._zoom=v,this._lastCenter=p,this._pixelOrigin=this._getNewPixelOrigin(p),S?N&&N.pinch&&this.fire("zoom",N):((U||N&&N.pinch)&&this.fire("zoom",N),this.fire("move",N)),this},_moveEnd:function(p){return p&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Pe(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(p){Pt(this._mapPane,this._getMapPanePos().subtract(p))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(p){this._targets={},this._targets[g(this._container)]=this;var v=p?wt:Qe;v(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&v(window,"resize",this._onResize,this),Ze.any3d&&this.options.transform3DLimit&&(p?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Pe(this._resizeRequest),this._resizeRequest=Ee(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var p=this._getMapPanePos();Math.max(Math.abs(p.x),Math.abs(p.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(p,v){for(var N=[],S,U=v==="mouseout"||v==="mouseover",Z=p.target||p.srcElement,X=!1;Z;){if(S=this._targets[g(Z)],S&&(v==="click"||v==="preclick")&&this._draggableMoved(S)){X=!0;break}if(S&&S.listens(v,!0)&&(U&&!Hs(Z,p)||(N.push(S),U))||Z===this._container)break;Z=Z.parentNode}return!N.length&&!X&&!U&&this.listens(v,!0)&&(N=[this]),N},_isClickDisabled:function(p){for(;p&&p!==this._container;){if(p._leaflet_disable_click)return!0;p=p.parentNode}},_handleDOMEvent:function(p){var v=p.target||p.srcElement;if(!(!this._loaded||v._leaflet_disable_events||p.type==="click"&&this._isClickDisabled(v))){var N=p.type;N==="mousedown"&&Va(v),this._fireDOMEvent(p,N)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(p,v,N){if(p.type==="click"){var S=e({},p);S.type="preclick",this._fireDOMEvent(S,S.type,N)}var U=this._findEventTargets(p,v);if(N){for(var Z=[],X=0;X<N.length;X++)N[X].listens(v,!0)&&Z.push(N[X]);U=Z.concat(U)}if(U.length){v==="contextmenu"&&ei(p);var z=U[0],ee={originalEvent:p};if(p.type!=="keypress"&&p.type!=="keydown"&&p.type!=="keyup"){var le=z.getLatLng&&(!z._radius||z._radius<=10);ee.containerPoint=le?this.latLngToContainerPoint(z.getLatLng()):this.mouseEventToContainerPoint(p),ee.layerPoint=this.containerPointToLayerPoint(ee.containerPoint),ee.latlng=le?z.getLatLng():this.layerPointToLatLng(ee.layerPoint)}for(X=0;X<U.length;X++)if(U[X].fire(v,ee,!0),ee.originalEvent._stopped||U[X].options.bubblingMouseEvents===!1&&H(this._mouseEvents,v)!==-1)return}},_draggableMoved:function(p){return p=p.dragging&&p.dragging.enabled()?p:this,p.dragging&&p.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var p=0,v=this._handlers.length;p<v;p++)this._handlers[p].disable()},whenReady:function(p,v){return this._loaded?p.call(v||this,{target:this}):this.on("load",p,v),this},_getMapPanePos:function(){return Zo(this._mapPane)||new ue(0,0)},_moved:function(){var p=this._getMapPanePos();return p&&!p.equals([0,0])},_getTopLeftPoint:function(p,v){var N=p&&v!==void 0?this._getNewPixelOrigin(p,v):this.getPixelOrigin();return N.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(p,v){var N=this.getSize()._divideBy(2);return this.project(p,v)._subtract(N)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(p,v,N){var S=this._getNewPixelOrigin(N,v);return this.project(p,v)._subtract(S)},_latLngBoundsToNewLayerBounds:function(p,v,N){var S=this._getNewPixelOrigin(N,v);return qe([this.project(p.getSouthWest(),v)._subtract(S),this.project(p.getNorthWest(),v)._subtract(S),this.project(p.getSouthEast(),v)._subtract(S),this.project(p.getNorthEast(),v)._subtract(S)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(p){return this.latLngToLayerPoint(p).subtract(this._getCenterLayerPoint())},_limitCenter:function(p,v,N){if(!N)return p;var S=this.project(p,v),U=this.getSize().divideBy(2),Z=new Be(S.subtract(U),S.add(U)),X=this._getBoundsOffset(Z,N,v);return Math.abs(X.x)<=1&&Math.abs(X.y)<=1?p:this.unproject(S.add(X),v)},_limitOffset:function(p,v){if(!v)return p;var N=this.getPixelBounds(),S=new Be(N.min.add(p),N.max.add(p));return p.add(this._getBoundsOffset(S,v))},_getBoundsOffset:function(p,v,N){var S=qe(this.project(v.getNorthEast(),N),this.project(v.getSouthWest(),N)),U=S.min.subtract(p.min),Z=S.max.subtract(p.max),X=this._rebound(U.x,-Z.x),z=this._rebound(U.y,-Z.y);return new ue(X,z)},_rebound:function(p,v){return p+v>0?Math.round(p-v)/2:Math.max(0,Math.ceil(p))-Math.max(0,Math.floor(v))},_limitZoom:function(p){var v=this.getMinZoom(),N=this.getMaxZoom(),S=Ze.any3d?this.options.zoomSnap:1;return S&&(p=Math.round(p/S)*S),Math.max(v,Math.min(N,p))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ot(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(p,v){var N=this._getCenterOffset(p)._trunc();return(v&&v.animate)!==!0&&!this.getSize().contains(N)?!1:(this.panBy(N,v),!0)},_createAnimProxy:function(){var p=this._proxy=ct("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(p),this.on("zoomanim",function(v){var N=Yi,S=this._proxy.style[N];Go(this._proxy,this.project(v.center,v.zoom),this.getZoomScale(v.zoom,1)),S===this._proxy.style[N]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Tt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var p=this.getCenter(),v=this.getZoom();Go(this._proxy,this.project(p,v),this.getZoomScale(v,1))},_catchTransitionEnd:function(p){this._animatingZoom&&p.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(p,v,N){if(this._animatingZoom)return!0;if(N=N||{},!this._zoomAnimated||N.animate===!1||this._nothingToAnimate()||Math.abs(v-this._zoom)>this.options.zoomAnimationThreshold)return!1;var S=this.getZoomScale(v),U=this._getCenterOffset(p)._divideBy(1-1/S);return N.animate!==!0&&!this.getSize().contains(U)?!1:(Ee(function(){this._moveStart(!0,N.noMoveStart||!1)._animateZoom(p,v,!0)},this),!0)},_animateZoom:function(p,v,N,S){this._mapPane&&(N&&(this._animatingZoom=!0,this._animateToCenter=p,this._animateToZoom=v,tt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:p,zoom:v,noUpdate:S}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ot(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Th(p,v){return new it(p,v)}var mr=Ie.extend({options:{position:"topright"},initialize:function(p){k(this,p)},getPosition:function(){return this.options.position},setPosition:function(p){var v=this._map;return v&&v.removeControl(this),this.options.position=p,v&&v.addControl(this),this},getContainer:function(){return this._container},addTo:function(p){this.remove(),this._map=p;var v=this._container=this.onAdd(p),N=this.getPosition(),S=p._controlCorners[N];return tt(v,"leaflet-control"),N.indexOf("bottom")!==-1?S.insertBefore(v,S.firstChild):S.appendChild(v),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Tt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(p){this._map&&p&&p.screenX>0&&p.screenY>0&&this._map.getContainer().focus()}}),Wo=function(p){return new mr(p)};it.include({addControl:function(p){return p.addTo(this),this},removeControl:function(p){return p.remove(),this},_initControlPos:function(){var p=this._controlCorners={},v="leaflet-",N=this._controlContainer=ct("div",v+"control-container",this._container);function S(U,Z){var X=v+U+" "+v+Z;p[U+Z]=ct("div",X,N)}S("top","left"),S("top","right"),S("bottom","left"),S("bottom","right")},_clearControlPos:function(){for(var p in this._controlCorners)Tt(this._controlCorners[p]);Tt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Wn=mr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(p,v,N,S){return N<S?-1:S<N?1:0}},initialize:function(p,v,N){k(this,N),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var S in p)this._addLayer(p[S],S);for(S in v)this._addLayer(v[S],S,!0)},onAdd:function(p){this._initLayout(),this._update(),this._map=p,p.on("zoomend",this._checkDisabledLayers,this);for(var v=0;v<this._layers.length;v++)this._layers[v].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(p){return mr.prototype.addTo.call(this,p),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var p=0;p<this._layers.length;p++)this._layers[p].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(p,v){return this._addLayer(p,v),this._map?this._update():this},addOverlay:function(p,v){return this._addLayer(p,v,!0),this._map?this._update():this},removeLayer:function(p){p.off("add remove",this._onLayerChange,this);var v=this._getLayer(g(p));return v&&this._layers.splice(this._layers.indexOf(v),1),this._map?this._update():this},expand:function(){tt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var p=this._map.getSize().y-(this._container.offsetTop+50);return p<this._section.clientHeight?(tt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=p+"px"):Ot(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ot(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var p="leaflet-control-layers",v=this._container=ct("div",p),N=this.options.collapsed;v.setAttribute("aria-haspopup",!0),dr(v),qr(v);var S=this._section=ct("section",p+"-list");N&&(this._map.on("click",this.collapse,this),Qe(v,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var U=this._layersLink=ct("a",p+"-toggle",v);U.href="#",U.title="Layers",U.setAttribute("role","button"),Qe(U,{keydown:function(Z){Z.keyCode===13&&this._expandSafely()},click:function(Z){ei(Z),this._expandSafely()}},this),N||this.expand(),this._baseLayersList=ct("div",p+"-base",S),this._separator=ct("div",p+"-separator",S),this._overlaysList=ct("div",p+"-overlays",S),v.appendChild(S)},_getLayer:function(p){for(var v=0;v<this._layers.length;v++)if(this._layers[v]&&g(this._layers[v].layer)===p)return this._layers[v]},_addLayer:function(p,v,N){this._map&&p.on("add remove",this._onLayerChange,this),this._layers.push({layer:p,name:v,overlay:N}),this.options.sortLayers&&this._layers.sort(n(function(S,U){return this.options.sortFunction(S.layer,U.layer,S.name,U.name)},this)),this.options.autoZIndex&&p.setZIndex&&(this._lastZIndex++,p.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Bn(this._baseLayersList),Bn(this._overlaysList),this._layerControlInputs=[];var p,v,N,S,U=0;for(N=0;N<this._layers.length;N++)S=this._layers[N],this._addItem(S),v=v||S.overlay,p=p||!S.overlay,U+=S.overlay?0:1;return this.options.hideSingleBase&&(p=p&&U>1,this._baseLayersList.style.display=p?"":"none"),this._separator.style.display=v&&p?"":"none",this},_onLayerChange:function(p){this._handlingClick||this._update();var v=this._getLayer(g(p.target)),N=v.overlay?p.type==="add"?"overlayadd":"overlayremove":p.type==="add"?"baselayerchange":null;N&&this._map.fire(N,v)},_createRadioElement:function(p,v){var N='<input type="radio" class="leaflet-control-layers-selector" name="'+p+'"'+(v?' checked="checked"':"")+"/>",S=document.createElement("div");return S.innerHTML=N,S.firstChild},_addItem:function(p){var v=document.createElement("label"),N=this._map.hasLayer(p.layer),S;p.overlay?(S=document.createElement("input"),S.type="checkbox",S.className="leaflet-control-layers-selector",S.defaultChecked=N):S=this._createRadioElement("leaflet-base-layers_"+g(this),N),this._layerControlInputs.push(S),S.layerId=g(p.layer),Qe(S,"click",this._onInputClick,this);var U=document.createElement("span");U.innerHTML=" "+p.name;var Z=document.createElement("span");v.appendChild(Z),Z.appendChild(S),Z.appendChild(U);var X=p.overlay?this._overlaysList:this._baseLayersList;return X.appendChild(v),this._checkDisabledLayers(),v},_onInputClick:function(){if(!this._preventClick){var p=this._layerControlInputs,v,N,S=[],U=[];this._handlingClick=!0;for(var Z=p.length-1;Z>=0;Z--)v=p[Z],N=this._getLayer(v.layerId).layer,v.checked?S.push(N):v.checked||U.push(N);for(Z=0;Z<U.length;Z++)this._map.hasLayer(U[Z])&&this._map.removeLayer(U[Z]);for(Z=0;Z<S.length;Z++)this._map.hasLayer(S[Z])||this._map.addLayer(S[Z]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var p=this._layerControlInputs,v,N,S=this._map.getZoom(),U=p.length-1;U>=0;U--)v=p[U],N=this._getLayer(v.layerId).layer,v.disabled=N.options.minZoom!==void 0&&S<N.options.minZoom||N.options.maxZoom!==void 0&&S>N.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var p=this._section;this._preventClick=!0,Qe(p,"click",ei),this.expand();var v=this;setTimeout(function(){wt(p,"click",ei),v._preventClick=!1})}}),Ua=function(p,v,N){return new Wn(p,v,N)},Js=mr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(p){var v="leaflet-control-zoom",N=ct("div",v+" leaflet-bar"),S=this.options;return this._zoomInButton=this._createButton(S.zoomInText,S.zoomInTitle,v+"-in",N,this._zoomIn),this._zoomOutButton=this._createButton(S.zoomOutText,S.zoomOutTitle,v+"-out",N,this._zoomOut),this._updateDisabled(),p.on("zoomend zoomlevelschange",this._updateDisabled,this),N},onRemove:function(p){p.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(p){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(p.shiftKey?3:1))},_zoomOut:function(p){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(p.shiftKey?3:1))},_createButton:function(p,v,N,S,U){var Z=ct("a",N,S);return Z.innerHTML=p,Z.href="#",Z.title=v,Z.setAttribute("role","button"),Z.setAttribute("aria-label",v),dr(Z),Qe(Z,"click",gr),Qe(Z,"click",U,this),Qe(Z,"click",this._refocusOnMap,this),Z},_updateDisabled:function(){var p=this._map,v="leaflet-disabled";Ot(this._zoomInButton,v),Ot(this._zoomOutButton,v),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||p._zoom===p.getMinZoom())&&(tt(this._zoomOutButton,v),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||p._zoom===p.getMaxZoom())&&(tt(this._zoomInButton,v),this._zoomInButton.setAttribute("aria-disabled","true"))}});it.mergeOptions({zoomControl:!0}),it.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Js,this.addControl(this.zoomControl))});var Sh=function(p){return new Js(p)},ac=mr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(p){var v="leaflet-control-scale",N=ct("div",v),S=this.options;return this._addScales(S,v+"-line",N),p.on(S.updateWhenIdle?"moveend":"move",this._update,this),p.whenReady(this._update,this),N},onRemove:function(p){p.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(p,v,N){p.metric&&(this._mScale=ct("div",v,N)),p.imperial&&(this._iScale=ct("div",v,N))},_update:function(){var p=this._map,v=p.getSize().y/2,N=p.distance(p.containerPointToLatLng([0,v]),p.containerPointToLatLng([this.options.maxWidth,v]));this._updateScales(N)},_updateScales:function(p){this.options.metric&&p&&this._updateMetric(p),this.options.imperial&&p&&this._updateImperial(p)},_updateMetric:function(p){var v=this._getRoundNum(p),N=v<1e3?v+" m":v/1e3+" km";this._updateScale(this._mScale,N,v/p)},_updateImperial:function(p){var v=p*3.2808399,N,S,U;v>5280?(N=v/5280,S=this._getRoundNum(N),this._updateScale(this._iScale,S+" mi",S/N)):(U=this._getRoundNum(v),this._updateScale(this._iScale,U+" ft",U/v))},_updateScale:function(p,v,N){p.style.width=Math.round(this.options.maxWidth*N)+"px",p.innerHTML=v},_getRoundNum:function(p){var v=Math.pow(10,(Math.floor(p)+"").length-1),N=p/v;return N=N>=10?10:N>=5?5:N>=3?3:N>=2?2:1,v*N}}),Lh=function(p){return new ac(p)},Bh='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',_a=mr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ze.inlineSvg?Bh+" ":"")+"Leaflet</a>"},initialize:function(p){k(this,p),this._attributions={}},onAdd:function(p){p.attributionControl=this,this._container=ct("div","leaflet-control-attribution"),dr(this._container);for(var v in p._layers)p._layers[v].getAttribution&&this.addAttribution(p._layers[v].getAttribution());return this._update(),p.on("layeradd",this._addAttribution,this),this._container},onRemove:function(p){p.off("layeradd",this._addAttribution,this)},_addAttribution:function(p){p.layer.getAttribution&&(this.addAttribution(p.layer.getAttribution()),p.layer.once("remove",function(){this.removeAttribution(p.layer.getAttribution())},this))},setPrefix:function(p){return this.options.prefix=p,this._update(),this},addAttribution:function(p){return p?(this._attributions[p]||(this._attributions[p]=0),this._attributions[p]++,this._update(),this):this},removeAttribution:function(p){return p?(this._attributions[p]&&(this._attributions[p]--,this._update()),this):this},_update:function(){if(this._map){var p=[];for(var v in this._attributions)this._attributions[v]&&p.push(v);var N=[];this.options.prefix&&N.push(this.options.prefix),p.length&&N.push(p.join(", ")),this._container.innerHTML=N.join(' <span aria-hidden="true">|</span> ')}}});it.mergeOptions({attributionControl:!0}),it.addInitHook(function(){this.options.attributionControl&&new _a().addTo(this)});var kh=function(p){return new _a(p)};mr.Layers=Wn,mr.Zoom=Js,mr.Scale=ac,mr.Attribution=_a,Wo.layers=Ua,Wo.zoom=Sh,Wo.scale=Lh,Wo.attribution=kh;var Gr=Ie.extend({initialize:function(p){this._map=p},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Gr.addTo=function(p,v){return p.addHandler(v,this),this};var Vh={Events:Oe},lc=Ze.touch?"touchstart mousedown":"mousedown",yo=de.extend({options:{clickTolerance:3},initialize:function(p,v,N,S){k(this,S),this._element=p,this._dragStartTarget=v||p,this._preventOutline=N},enable:function(){this._enabled||(Qe(this._dragStartTarget,lc,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(yo._dragging===this&&this.finishDrag(!0),wt(this._dragStartTarget,lc,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(p){if(this._enabled&&(this._moved=!1,!Ra(this._element,"leaflet-zoom-anim"))){if(p.touches&&p.touches.length!==1){yo._dragging===this&&this.finishDrag();return}if(!(yo._dragging||p.shiftKey||p.which!==1&&p.button!==1&&!p.touches)&&(yo._dragging=this,this._preventOutline&&Va(this._element),La(),Xs(),!this._moving)){this.fire("down");var v=p.touches?p.touches[0]:p,N=_n(this._element);this._startPoint=new ue(v.clientX,v.clientY),this._startPos=Zo(this._element),this._parentScale=Fa(N);var S=p.type==="mousedown";Qe(document,S?"mousemove":"touchmove",this._onMove,this),Qe(document,S?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(p){if(this._enabled){if(p.touches&&p.touches.length>1){this._moved=!0;return}var v=p.touches&&p.touches.length===1?p.touches[0]:p,N=new ue(v.clientX,v.clientY)._subtract(this._startPoint);!N.x&&!N.y||Math.abs(N.x)+Math.abs(N.y)<this.options.clickTolerance||(N.x/=this._parentScale.x,N.y/=this._parentScale.y,ei(p),this._moved||(this.fire("dragstart"),this._moved=!0,tt(document.body,"leaflet-dragging"),this._lastTarget=p.target||p.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),tt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(N),this._moving=!0,this._lastEvent=p,this._updatePosition())}},_updatePosition:function(){var p={originalEvent:this._lastEvent};this.fire("predrag",p),Pt(this._element,this._newPos),this.fire("drag",p)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(p){Ot(document.body,"leaflet-dragging"),this._lastTarget&&(Ot(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),wt(document,"mousemove touchmove",this._onMove,this),wt(document,"mouseup touchend touchcancel",this._onUp,this),Ba(),Mo();var v=this._moved&&this._moving;this._moving=!1,yo._dragging=!1,v&&this.fire("dragend",{noInertia:p,distance:this._newPos.distanceTo(this._startPos)})}});function cc(p,v,N){var S,U=[1,4,2,8],Z,X,z,ee,le,Ne,He,nt;for(Z=0,Ne=p.length;Z<Ne;Z++)p[Z]._code=Po(p[Z],v);for(z=0;z<4;z++){for(He=U[z],S=[],Z=0,Ne=p.length,X=Ne-1;Z<Ne;X=Z++)ee=p[Z],le=p[X],ee._code&He?le._code&He||(nt=Dn(le,ee,He,v,N),nt._code=Po(nt,v),S.push(nt)):(le._code&He&&(nt=Dn(le,ee,He,v,N),nt._code=Po(nt,v),S.push(nt)),S.push(ee));p=S}return p}function hc(p,v){var N,S,U,Z,X,z,ee,le,Ne;if(!p||p.length===0)throw new Error("latlngs not passed");sr(p)||(console.warn("latlngs are not flat! Only the first ring will be used"),p=p[0]);var He=Le([0,0]),nt=ve(p),Si=nt.getNorthWest().distanceTo(nt.getSouthWest())*nt.getNorthEast().distanceTo(nt.getNorthWest());Si<1700&&(He=Oa(p));var ci=p.length,nr=[];for(N=0;N<ci;N++){var Oi=Le(p[N]);nr.push(v.project(Le([Oi.lat-He.lat,Oi.lng-He.lng])))}for(z=ee=le=0,N=0,S=ci-1;N<ci;S=N++)U=nr[N],Z=nr[S],X=U.y*Z.x-Z.y*U.x,ee+=(U.x+Z.x)*X,le+=(U.y+Z.y)*X,z+=X*3;z===0?Ne=nr[0]:Ne=[ee/z,le/z];var Rs=v.unproject(ce(Ne));return Le([Rs.lat+He.lat,Rs.lng+He.lng])}function Oa(p){for(var v=0,N=0,S=0,U=0;U<p.length;U++){var Z=Le(p[U]);v+=Z.lat,N+=Z.lng,S++}return Le([v/S,N/S])}var Fh={__proto__:null,clipPolygon:cc,polygonCenter:hc,centroid:Oa};function pc(p,v){if(!v||!p.length)return p.slice();var N=v*v;return p=js(p,N),p=zs(p,N),p}function uc(p,v,N){return Math.sqrt(Gt(p,v,N,!0))}function Uh(p,v,N){return Gt(p,v,N)}function zs(p,v){var N=p.length,S=typeof Uint8Array<"u"?Uint8Array:Array,U=new S(N);U[0]=U[N-1]=1,Do(p,U,v,0,N-1);var Z,X=[];for(Z=0;Z<N;Z++)U[Z]&&X.push(p[Z]);return X}function Do(p,v,N,S,U){var Z=0,X,z,ee;for(z=S+1;z<=U-1;z++)ee=Gt(p[z],p[S],p[U],!0),ee>Z&&(X=z,Z=ee);Z>N&&(v[X]=1,Do(p,v,N,S,X),Do(p,v,N,X,U))}function js(p,v){for(var N=[p[0]],S=1,U=0,Z=p.length;S<Z;S++)_h(p[S],p[U])>v&&(N.push(p[S]),U=S);return U<Z-1&&N.push(p[Z-1]),N}var fc;function dc(p,v,N,S,U){var Z=S?fc:Po(p,N),X=Po(v,N),z,ee,le;for(fc=X;;){if(!(Z|X))return[p,v];if(Z&X)return!1;z=Z||X,ee=Dn(p,v,z,N,U),le=Po(ee,N),z===Z?(p=ee,Z=le):(v=ee,X=le)}}function Dn(p,v,N,S,U){var Z=v.x-p.x,X=v.y-p.y,z=S.min,ee=S.max,le,Ne;return N&8?(le=p.x+Z*(ee.y-p.y)/X,Ne=ee.y):N&4?(le=p.x+Z*(z.y-p.y)/X,Ne=z.y):N&2?(le=ee.x,Ne=p.y+X*(ee.x-p.x)/Z):N&1&&(le=z.x,Ne=p.y+X*(z.x-p.x)/Z),new ue(le,Ne,U)}function Po(p,v){var N=0;return p.x<v.min.x?N|=1:p.x>v.max.x&&(N|=2),p.y<v.min.y?N|=4:p.y>v.max.y&&(N|=8),N}function _h(p,v){var N=v.x-p.x,S=v.y-p.y;return N*N+S*S}function Gt(p,v,N,S){var U=v.x,Z=v.y,X=N.x-U,z=N.y-Z,ee=X*X+z*z,le;return ee>0&&(le=((p.x-U)*X+(p.y-Z)*z)/ee,le>1?(U=N.x,Z=N.y):le>0&&(U+=X*le,Z+=z*le)),X=p.x-U,z=p.y-Z,S?X*X+z*z:new ue(U,Z)}function sr(p){return!Q(p[0])||typeof p[0][0]!="object"&&typeof p[0][0]<"u"}function ie(p){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),sr(p)}function Eo(p,v){var N,S,U,Z,X,z,ee,le;if(!p||p.length===0)throw new Error("latlngs not passed");sr(p)||(console.warn("latlngs are not flat! Only the first ring will be used"),p=p[0]);var Ne=Le([0,0]),He=ve(p),nt=He.getNorthWest().distanceTo(He.getSouthWest())*He.getNorthEast().distanceTo(He.getNorthWest());nt<1700&&(Ne=Oa(p));var Si=p.length,ci=[];for(N=0;N<Si;N++){var nr=Le(p[N]);ci.push(v.project(Le([nr.lat-Ne.lat,nr.lng-Ne.lng])))}for(N=0,S=0;N<Si-1;N++)S+=ci[N].distanceTo(ci[N+1])/2;if(S===0)le=ci[0];else for(N=0,Z=0;N<Si-1;N++)if(X=ci[N],z=ci[N+1],U=X.distanceTo(z),Z+=U,Z>S){ee=(Z-S)/U,le=[z.x-ee*(z.x-X.x),z.y-ee*(z.y-X.y)];break}var Oi=v.unproject(ce(le));return Le([Oi.lat+Ne.lat,Oi.lng+Ne.lng])}var oe={__proto__:null,simplify:pc,pointToSegmentDistance:uc,closestPointOnSegment:Uh,clipSegment:dc,_getEdgeIntersection:Dn,_getBitCode:Po,_sqClosestPointOnSegment:Gt,isFlat:sr,_flat:ie,polylineCenter:Eo},St={project:function(p){return new ue(p.lng,p.lat)},unproject:function(p){return new fe(p.y,p.x)},bounds:new Be([-180,-90],[180,90])},$s={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Be([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(p){var v=Math.PI/180,N=this.R,S=p.lat*v,U=this.R_MINOR/N,Z=Math.sqrt(1-U*U),X=Z*Math.sin(S),z=Math.tan(Math.PI/4-S/2)/Math.pow((1-X)/(1+X),Z/2);return S=-N*Math.log(Math.max(z,1e-10)),new ue(p.lng*v*N,S)},unproject:function(p){for(var v=180/Math.PI,N=this.R,S=this.R_MINOR/N,U=Math.sqrt(1-S*S),Z=Math.exp(-p.y/N),X=Math.PI/2-2*Math.atan(Z),z=0,ee=.1,le;z<15&&Math.abs(ee)>1e-7;z++)le=U*Math.sin(X),le=Math.pow((1-le)/(1+le),U/2),ee=Math.PI/2-2*Math.atan(Z*le)-X,X+=ee;return new fe(X*v,p.x*v/N)}},Qo={__proto__:null,LonLat:St,Mercator:$s,SphericalMercator:Fi},Ri=e({},bt,{code:"EPSG:3395",projection:$s,transformation:function(){var p=.5/(Math.PI*$s.R);return ur(p,.5,-p,.5)}()}),Ci=e({},bt,{code:"EPSG:4326",projection:St,transformation:ur(1/180,1,-1/180,.5)}),Oh=e({},_e,{projection:St,transformation:ur(1,0,-1,0),scale:function(p){return Math.pow(2,p)},zoom:function(p){return Math.log(p)/Math.LN2},distance:function(p,v){var N=v.lng-p.lng,S=v.lat-p.lat;return Math.sqrt(N*N+S*S)},infinite:!0});_e.Earth=bt,_e.EPSG3395=Ri,_e.EPSG3857=Ve,_e.EPSG900913=ne,_e.EPSG4326=Ci,_e.Simple=Oh;var br=de.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(p){return p.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(p){return p&&p.removeLayer(this),this},getPane:function(p){return this._map.getPane(p?this.options[p]||p:this.options.pane)},addInteractiveTarget:function(p){return this._map._targets[g(p)]=this,this},removeInteractiveTarget:function(p){return delete this._map._targets[g(p)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(p){var v=p.target;if(v.hasLayer(this)){if(this._map=v,this._zoomAnimated=v._zoomAnimated,this.getEvents){var N=this.getEvents();v.on(N,this),this.once("remove",function(){v.off(N,this)},this)}this.onAdd(v),this.fire("add"),v.fire("layeradd",{layer:this})}}});it.include({addLayer:function(p){if(!p._layerAdd)throw new Error("The provided object is not a Layer.");var v=g(p);return this._layers[v]?this:(this._layers[v]=p,p._mapToAdd=this,p.beforeAdd&&p.beforeAdd(this),this.whenReady(p._layerAdd,p),this)},removeLayer:function(p){var v=g(p);return this._layers[v]?(this._loaded&&p.onRemove(this),delete this._layers[v],this._loaded&&(this.fire("layerremove",{layer:p}),p.fire("remove")),p._map=p._mapToAdd=null,this):this},hasLayer:function(p){return g(p)in this._layers},eachLayer:function(p,v){for(var N in this._layers)p.call(v,this._layers[N]);return this},_addLayers:function(p){p=p?Q(p)?p:[p]:[];for(var v=0,N=p.length;v<N;v++)this.addLayer(p[v])},_addZoomLimit:function(p){(!isNaN(p.options.maxZoom)||!isNaN(p.options.minZoom))&&(this._zoomBoundLayers[g(p)]=p,this._updateZoomLevels())},_removeZoomLimit:function(p){var v=g(p);this._zoomBoundLayers[v]&&(delete this._zoomBoundLayers[v],this._updateZoomLevels())},_updateZoomLevels:function(){var p=1/0,v=-1/0,N=this._getZoomSpan();for(var S in this._zoomBoundLayers){var U=this._zoomBoundLayers[S].options;p=U.minZoom===void 0?p:Math.min(p,U.minZoom),v=U.maxZoom===void 0?v:Math.max(v,U.maxZoom)}this._layersMaxZoom=v===-1/0?void 0:v,this._layersMinZoom=p===1/0?void 0:p,N!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var bs=br.extend({initialize:function(p,v){k(this,v),this._layers={};var N,S;if(p)for(N=0,S=p.length;N<S;N++)this.addLayer(p[N])},addLayer:function(p){var v=this.getLayerId(p);return this._layers[v]=p,this._map&&this._map.addLayer(p),this},removeLayer:function(p){var v=p in this._layers?p:this.getLayerId(p);return this._map&&this._layers[v]&&this._map.removeLayer(this._layers[v]),delete this._layers[v],this},hasLayer:function(p){var v=typeof p=="number"?p:this.getLayerId(p);return v in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(p){var v=Array.prototype.slice.call(arguments,1),N,S;for(N in this._layers)S=this._layers[N],S[p]&&S[p].apply(S,v);return this},onAdd:function(p){this.eachLayer(p.addLayer,p)},onRemove:function(p){this.eachLayer(p.removeLayer,p)},eachLayer:function(p,v){for(var N in this._layers)p.call(v,this._layers[N]);return this},getLayer:function(p){return this._layers[p]},getLayers:function(){var p=[];return this.eachLayer(p.push,p),p},setZIndex:function(p){return this.invoke("setZIndex",p)},getLayerId:function(p){return g(p)}}),qs=function(p,v){return new bs(p,v)},Kr=bs.extend({addLayer:function(p){return this.hasLayer(p)?this:(p.addEventParent(this),bs.prototype.addLayer.call(this,p),this.fire("layeradd",{layer:p}))},removeLayer:function(p){return this.hasLayer(p)?(p in this._layers&&(p=this._layers[p]),p.removeEventParent(this),bs.prototype.removeLayer.call(this,p),this.fire("layerremove",{layer:p})):this},setStyle:function(p){return this.invoke("setStyle",p)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var p=new Xe;for(var v in this._layers){var N=this._layers[v];p.extend(N.getBounds?N.getBounds():N.getLatLng())}return p}}),Ga=function(p,v){return new Kr(p,v)},ws=Ie.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(p){k(this,p)},createIcon:function(p){return this._createIcon("icon",p)},createShadow:function(p){return this._createIcon("shadow",p)},_createIcon:function(p,v){var N=this._getIconUrl(p);if(!N){if(p==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var S=this._createImg(N,v&&v.tagName==="IMG"?v:null);return this._setIconStyles(S,p),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),S},_setIconStyles:function(p,v){var N=this.options,S=N[v+"Size"];typeof S=="number"&&(S=[S,S]);var U=ce(S),Z=ce(v==="shadow"&&N.shadowAnchor||N.iconAnchor||U&&U.divideBy(2,!0));p.className="leaflet-marker-"+v+" "+(N.className||""),Z&&(p.style.marginLeft=-Z.x+"px",p.style.marginTop=-Z.y+"px"),U&&(p.style.width=U.x+"px",p.style.height=U.y+"px")},_createImg:function(p,v){return v=v||document.createElement("img"),v.src=p,v},_getIconUrl:function(p){return Ze.retina&&this.options[p+"RetinaUrl"]||this.options[p+"Url"]}});function Gh(p){return new ws(p)}var Ks=ws.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(p){return typeof Ks.imagePath!="string"&&(Ks.imagePath=this._detectIconPath()),(this.options.imagePath||Ks.imagePath)+ws.prototype._getIconUrl.call(this,p)},_stripUrl:function(p){var v=function(N,S,U){var Z=S.exec(N);return Z&&Z[U]};return p=v(p,/^url\((['"])?(.+)\1\)$/,2),p&&v(p,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var p=ct("div","leaflet-default-icon-path",document.body),v=vo(p,"background-image")||vo(p,"backgroundImage");if(document.body.removeChild(p),v=this._stripUrl(v),v)return v;var N=document.querySelector('link[href$="leaflet.css"]');return N?N.href.substring(0,N.href.length-11-1):""}}),gc=Gr.extend({initialize:function(p){this._marker=p},addHooks:function(){var p=this._marker._icon;this._draggable||(this._draggable=new yo(p,p,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),tt(p,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ot(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(p){var v=this._marker,N=v._map,S=this._marker.options.autoPanSpeed,U=this._marker.options.autoPanPadding,Z=Zo(v._icon),X=N.getPixelBounds(),z=N.getPixelOrigin(),ee=qe(X.min._subtract(z).add(U),X.max._subtract(z).subtract(U));if(!ee.contains(Z)){var le=ce((Math.max(ee.max.x,Z.x)-ee.max.x)/(X.max.x-ee.max.x)-(Math.min(ee.min.x,Z.x)-ee.min.x)/(X.min.x-ee.min.x),(Math.max(ee.max.y,Z.y)-ee.max.y)/(X.max.y-ee.max.y)-(Math.min(ee.min.y,Z.y)-ee.min.y)/(X.min.y-ee.min.y)).multiplyBy(S);N.panBy(le,{animate:!1}),this._draggable._newPos._add(le),this._draggable._startPos._add(le),Pt(v._icon,this._draggable._newPos),this._onDrag(p),this._panRequest=Ee(this._adjustPan.bind(this,p))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(p){this._marker.options.autoPan&&(Pe(this._panRequest),this._panRequest=Ee(this._adjustPan.bind(this,p)))},_onDrag:function(p){var v=this._marker,N=v._shadow,S=Zo(v._icon),U=v._map.layerPointToLatLng(S);N&&Pt(N,S),v._latlng=U,p.latlng=U,p.oldLatLng=this._oldLatLng,v.fire("move",p).fire("drag",p)},_onDragEnd:function(p){Pe(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",p)}}),Pn=br.extend({options:{icon:new Ks,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(p,v){k(this,v),this._latlng=Le(p)},onAdd:function(p){this._zoomAnimated=this._zoomAnimated&&p.options.markerZoomAnimation,this._zoomAnimated&&p.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(p){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&p.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(p){var v=this._latlng;return this._latlng=Le(p),this.update(),this.fire("move",{oldLatLng:v,latlng:this._latlng})},setZIndexOffset:function(p){return this.options.zIndexOffset=p,this.update()},getIcon:function(){return this.options.icon},setIcon:function(p){return this.options.icon=p,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var p=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(p)}return this},_initIcon:function(){var p=this.options,v="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),N=p.icon.createIcon(this._icon),S=!1;N!==this._icon&&(this._icon&&this._removeIcon(),S=!0,p.title&&(N.title=p.title),N.tagName==="IMG"&&(N.alt=p.alt||"")),tt(N,v),p.keyboard&&(N.tabIndex="0",N.setAttribute("role","button")),this._icon=N,p.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Qe(N,"focus",this._panOnFocus,this);var U=p.icon.createShadow(this._shadow),Z=!1;U!==this._shadow&&(this._removeShadow(),Z=!0),U&&(tt(U,v),U.alt=""),this._shadow=U,p.opacity<1&&this._updateOpacity(),S&&this.getPane().appendChild(this._icon),this._initInteraction(),U&&Z&&this.getPane(p.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&wt(this._icon,"focus",this._panOnFocus,this),Tt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Tt(this._shadow),this._shadow=null},_setPos:function(p){this._icon&&Pt(this._icon,p),this._shadow&&Pt(this._shadow,p),this._zIndex=p.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(p){this._icon&&(this._icon.style.zIndex=this._zIndex+p)},_animateZoom:function(p){var v=this._map._latLngToNewLayerPoint(this._latlng,p.zoom,p.center).round();this._setPos(v)},_initInteraction:function(){if(this.options.interactive&&(tt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),gc)){var p=this.options.draggable;this.dragging&&(p=this.dragging.enabled(),this.dragging.disable()),this.dragging=new gc(this),p&&this.dragging.enable()}},setOpacity:function(p){return this.options.opacity=p,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var p=this.options.opacity;this._icon&&rr(this._icon,p),this._shadow&&rr(this._shadow,p)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var p=this._map;if(p){var v=this.options.icon.options,N=v.iconSize?ce(v.iconSize):ce(0,0),S=v.iconAnchor?ce(v.iconAnchor):ce(0,0);p.panInside(this._latlng,{paddingTopLeft:S,paddingBottomRight:N.subtract(S)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Zh(p,v){return new Pn(p,v)}var Zr=br.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(p){this._renderer=p.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(p){return k(this,p),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&p&&Object.prototype.hasOwnProperty.call(p,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ii=Zr.extend({options:{fill:!0,radius:10},initialize:function(p,v){k(this,v),this._latlng=Le(p),this._radius=this.options.radius},setLatLng:function(p){var v=this._latlng;return this._latlng=Le(p),this.redraw(),this.fire("move",{oldLatLng:v,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(p){return this.options.radius=this._radius=p,this.redraw()},getRadius:function(){return this._radius},setStyle:function(p){var v=p&&p.radius||this._radius;return Zr.prototype.setStyle.call(this,p),this.setRadius(v),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var p=this._radius,v=this._radiusY||p,N=this._clickTolerance(),S=[p+N,v+N];this._pxBounds=new Be(this._point.subtract(S),this._point.add(S))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(p){return p.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Mh(p,v){return new Ii(p,v)}var di=Ii.extend({initialize:function(p,v,N){if(typeof v=="number"&&(v=e({},N,{radius:v})),k(this,v),this._latlng=Le(p),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(p){return this._mRadius=p,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var p=[this._radius,this._radiusY||this._radius];return new Xe(this._map.layerPointToLatLng(this._point.subtract(p)),this._map.layerPointToLatLng(this._point.add(p)))},setStyle:Zr.prototype.setStyle,_project:function(){var p=this._latlng.lng,v=this._latlng.lat,N=this._map,S=N.options.crs;if(S.distance===bt.distance){var U=Math.PI/180,Z=this._mRadius/bt.R/U,X=N.project([v+Z,p]),z=N.project([v-Z,p]),ee=X.add(z).divideBy(2),le=N.unproject(ee).lat,Ne=Math.acos((Math.cos(Z*U)-Math.sin(v*U)*Math.sin(le*U))/(Math.cos(v*U)*Math.cos(le*U)))/U;(isNaN(Ne)||Ne===0)&&(Ne=Z/Math.cos(Math.PI/180*v)),this._point=ee.subtract(N.getPixelOrigin()),this._radius=isNaN(Ne)?0:ee.x-N.project([le,p-Ne]).x,this._radiusY=ee.y-X.y}else{var He=S.unproject(S.project(this._latlng).subtract([this._mRadius,0]));this._point=N.latLngToLayerPoint(this._latlng),this._radius=this._point.x-N.latLngToLayerPoint(He).x}this._updateBounds()}});function Wh(p,v,N){return new di(p,v,N)}var eo=Zr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(p,v){k(this,v),this._setLatLngs(p)},getLatLngs:function(){return this._latlngs},setLatLngs:function(p){return this._setLatLngs(p),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(p){for(var v=1/0,N=null,S=Gt,U,Z,X=0,z=this._parts.length;X<z;X++)for(var ee=this._parts[X],le=1,Ne=ee.length;le<Ne;le++){U=ee[le-1],Z=ee[le];var He=S(p,U,Z,!0);He<v&&(v=He,N=S(p,U,Z))}return N&&(N.distance=Math.sqrt(v)),N},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Eo(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(p,v){return v=v||this._defaultShape(),p=Le(p),v.push(p),this._bounds.extend(p),this.redraw()},_setLatLngs:function(p){this._bounds=new Xe,this._latlngs=this._convertLatLngs(p)},_defaultShape:function(){return sr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(p){for(var v=[],N=sr(p),S=0,U=p.length;S<U;S++)N?(v[S]=Le(p[S]),this._bounds.extend(v[S])):v[S]=this._convertLatLngs(p[S]);return v},_project:function(){var p=new Be;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,p),this._bounds.isValid()&&p.isValid()&&(this._rawPxBounds=p,this._updateBounds())},_updateBounds:function(){var p=this._clickTolerance(),v=new ue(p,p);this._rawPxBounds&&(this._pxBounds=new Be([this._rawPxBounds.min.subtract(v),this._rawPxBounds.max.add(v)]))},_projectLatlngs:function(p,v,N){var S=p[0]instanceof fe,U=p.length,Z,X;if(S){for(X=[],Z=0;Z<U;Z++)X[Z]=this._map.latLngToLayerPoint(p[Z]),N.extend(X[Z]);v.push(X)}else for(Z=0;Z<U;Z++)this._projectLatlngs(p[Z],v,N)},_clipPoints:function(){var p=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(p))){if(this.options.noClip){this._parts=this._rings;return}var v=this._parts,N,S,U,Z,X,z,ee;for(N=0,U=0,Z=this._rings.length;N<Z;N++)for(ee=this._rings[N],S=0,X=ee.length;S<X-1;S++)z=dc(ee[S],ee[S+1],p,S,!0),z&&(v[U]=v[U]||[],v[U].push(z[0]),(z[1]!==ee[S+1]||S===X-2)&&(v[U].push(z[1]),U++))}},_simplifyPoints:function(){for(var p=this._parts,v=this.options.smoothFactor,N=0,S=p.length;N<S;N++)p[N]=pc(p[N],v)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(p,v){var N,S,U,Z,X,z,ee=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(p))return!1;for(N=0,Z=this._parts.length;N<Z;N++)for(z=this._parts[N],S=0,X=z.length,U=X-1;S<X;U=S++)if(!(!v&&S===0)&&uc(p,z[U],z[S])<=ee)return!0;return!1}});function Dh(p,v){return new eo(p,v)}eo._flat=ie;var xs=eo.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return hc(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(p){var v=eo.prototype._convertLatLngs.call(this,p),N=v.length;return N>=2&&v[0]instanceof fe&&v[0].equals(v[N-1])&&v.pop(),v},_setLatLngs:function(p){eo.prototype._setLatLngs.call(this,p),sr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return sr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var p=this._renderer._bounds,v=this.options.weight,N=new ue(v,v);if(p=new Be(p.min.subtract(N),p.max.add(N)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(p))){if(this.options.noClip){this._parts=this._rings;return}for(var S=0,U=this._rings.length,Z;S<U;S++)Z=cc(this._rings[S],p,!0),Z.length&&this._parts.push(Z)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(p){var v=!1,N,S,U,Z,X,z,ee,le;if(!this._pxBounds||!this._pxBounds.contains(p))return!1;for(Z=0,ee=this._parts.length;Z<ee;Z++)for(N=this._parts[Z],X=0,le=N.length,z=le-1;X<le;z=X++)S=N[X],U=N[z],S.y>p.y!=U.y>p.y&&p.x<(U.x-S.x)*(p.y-S.y)/(U.y-S.y)+S.x&&(v=!v);return v||eo.prototype._containsPoint.call(this,p,!0)}});function Ph(p,v){return new xs(p,v)}var Ji=Kr.extend({initialize:function(p,v){k(this,v),this._layers={},p&&this.addData(p)},addData:function(p){var v=Q(p)?p:p.features,N,S,U;if(v){for(N=0,S=v.length;N<S;N++)U=v[N],(U.geometries||U.geometry||U.features||U.coordinates)&&this.addData(U);return this}var Z=this.options;if(Z.filter&&!Z.filter(p))return this;var X=Qn(p,Z);return X?(X.feature=Es(p),X.defaultOptions=X.options,this.resetStyle(X),Z.onEachFeature&&Z.onEachFeature(p,X),this.addLayer(X)):this},resetStyle:function(p){return p===void 0?this.eachLayer(this.resetStyle,this):(p.options=e({},p.defaultOptions),this._setLayerStyle(p,this.options.style),this)},setStyle:function(p){return this.eachLayer(function(v){this._setLayerStyle(v,p)},this)},_setLayerStyle:function(p,v){p.setStyle&&(typeof v=="function"&&(v=v(p.feature)),p.setStyle(v))}});function Qn(p,v){var N=p.type==="Feature"?p.geometry:p,S=N?N.coordinates:null,U=[],Z=v&&v.pointToLayer,X=v&&v.coordsToLatLng||en,z,ee,le,Ne;if(!S&&!N)return null;switch(N.type){case"Point":return z=X(S),mc(Z,p,z,v);case"MultiPoint":for(le=0,Ne=S.length;le<Ne;le++)z=X(S[le]),U.push(mc(Z,p,z,v));return new Kr(U);case"LineString":case"MultiLineString":return ee=vs(S,N.type==="LineString"?0:1,X),new eo(ee,v);case"Polygon":case"MultiPolygon":return ee=vs(S,N.type==="Polygon"?1:2,X),new xs(ee,v);case"GeometryCollection":for(le=0,Ne=N.geometries.length;le<Ne;le++){var He=Qn({geometry:N.geometries[le],type:"Feature",properties:p.properties},v);He&&U.push(He)}return new Kr(U);case"FeatureCollection":for(le=0,Ne=N.features.length;le<Ne;le++){var nt=Qn(N.features[le],v);nt&&U.push(nt)}return new Kr(U);default:throw new Error("Invalid GeoJSON object.")}}function mc(p,v,N,S){return p?p(v,N):new Pn(N,S&&S.markersInheritOptions&&S)}function en(p){return new fe(p[1],p[0],p[2])}function vs(p,v,N){for(var S=[],U=0,Z=p.length,X;U<Z;U++)X=v?vs(p[U],v-1,N):(N||en)(p[U]),S.push(X);return S}function Xo(p,v){return p=Le(p),p.alt!==void 0?[R(p.lng,v),R(p.lat,v),R(p.alt,v)]:[R(p.lng,v),R(p.lat,v)]}function Xn(p,v,N,S){for(var U=[],Z=0,X=p.length;Z<X;Z++)U.push(v?Xn(p[Z],sr(p[Z])?0:v-1,N,S):Xo(p[Z],S));return!v&&N&&U.length>0&&U.push(U[0].slice()),U}function ys(p,v){return p.feature?e({},p.feature,{geometry:v}):Es(v)}function Es(p){return p.type==="Feature"||p.type==="FeatureCollection"?p:{type:"Feature",properties:{},geometry:p}}var to={toGeoJSON:function(p){return ys(this,{type:"Point",coordinates:Xo(this.getLatLng(),p)})}};Pn.include(to),di.include(to),Ii.include(to),eo.include({toGeoJSON:function(p){var v=!sr(this._latlngs),N=Xn(this._latlngs,v?1:0,!1,p);return ys(this,{type:(v?"Multi":"")+"LineString",coordinates:N})}}),xs.include({toGeoJSON:function(p){var v=!sr(this._latlngs),N=v&&!sr(this._latlngs[0]),S=Xn(this._latlngs,N?2:v?1:0,!0,p);return v||(S=[S]),ys(this,{type:(N?"Multi":"")+"Polygon",coordinates:S})}}),bs.include({toMultiPoint:function(p){var v=[];return this.eachLayer(function(N){v.push(N.toGeoJSON(p).geometry.coordinates)}),ys(this,{type:"MultiPoint",coordinates:v})},toGeoJSON:function(p){var v=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(v==="MultiPoint")return this.toMultiPoint(p);var N=v==="GeometryCollection",S=[];return this.eachLayer(function(U){if(U.toGeoJSON){var Z=U.toGeoJSON(p);if(N)S.push(Z.geometry);else{var X=Es(Z);X.type==="FeatureCollection"?S.push.apply(S,X.features):S.push(X)}}}),N?ys(this,{geometries:S,type:"GeometryCollection"}):{type:"FeatureCollection",features:S}}});function bc(p,v){return new Ji(p,v)}var ut=bc,Yn=br.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(p,v,N){this._url=p,this._bounds=ve(v),k(this,N)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(tt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Tt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(p){return this.options.opacity=p,this._image&&this._updateOpacity(),this},setStyle:function(p){return p.opacity&&this.setOpacity(p.opacity),this},bringToFront:function(){return this._map&&gs(this._image),this},bringToBack:function(){return this._map&&ms(this._image),this},setUrl:function(p){return this._url=p,this._image&&(this._image.src=p),this},setBounds:function(p){return this._bounds=ve(p),this._map&&this._reset(),this},getEvents:function(){var p={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(p.zoomanim=this._animateZoom),p},setZIndex:function(p){return this.options.zIndex=p,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var p=this._url.tagName==="IMG",v=this._image=p?this._url:ct("img");if(tt(v,"leaflet-image-layer"),this._zoomAnimated&&tt(v,"leaflet-zoom-animated"),this.options.className&&tt(v,this.options.className),v.onselectstart=A,v.onmousemove=A,v.onload=n(this.fire,this,"load"),v.onerror=n(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(v.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),p){this._url=v.src;return}v.src=this._url,v.alt=this.options.alt},_animateZoom:function(p){var v=this._map.getZoomScale(p.zoom),N=this._map._latLngBoundsToNewLayerBounds(this._bounds,p.zoom,p.center).min;Go(this._image,N,v)},_reset:function(){var p=this._image,v=new Be(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),N=v.getSize();Pt(p,v.min),p.style.width=N.x+"px",p.style.height=N.y+"px"},_updateOpacity:function(){rr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var p=this.options.errorOverlayUrl;p&&this._url!==p&&(this._url=p,this._image.src=p)},getCenter:function(){return this._bounds.getCenter()}}),Qh=function(p,v,N){return new Yn(p,v,N)},wc=Yn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var p=this._url.tagName==="VIDEO",v=this._image=p?this._url:ct("video");if(tt(v,"leaflet-image-layer"),this._zoomAnimated&&tt(v,"leaflet-zoom-animated"),this.options.className&&tt(v,this.options.className),v.onselectstart=A,v.onmousemove=A,v.onloadeddata=n(this.fire,this,"load"),p){for(var N=v.getElementsByTagName("source"),S=[],U=0;U<N.length;U++)S.push(N[U].src);this._url=N.length>0?S:[v.src];return}Q(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(v.style,"objectFit")&&(v.style.objectFit="fill"),v.autoplay=!!this.options.autoplay,v.loop=!!this.options.loop,v.muted=!!this.options.muted,v.playsInline=!!this.options.playsInline;for(var Z=0;Z<this._url.length;Z++){var X=ct("source");X.src=this._url[Z],v.appendChild(X)}}});function Xh(p,v,N){return new wc(p,v,N)}var xc=Yn.extend({_initImage:function(){var p=this._image=this._url;tt(p,"leaflet-image-layer"),this._zoomAnimated&&tt(p,"leaflet-zoom-animated"),this.options.className&&tt(p,this.options.className),p.onselectstart=A,p.onmousemove=A}});function Za(p,v,N){return new xc(p,v,N)}var Mr=br.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(p,v){p&&(p instanceof fe||Q(p))?(this._latlng=Le(p),k(this,v)):(k(this,p),this._source=v),this.options.content&&(this._content=this.options.content)},openOn:function(p){return p=arguments.length?p:this._source._map,p.hasLayer(this)||p.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(p){return this._map?this.close():(arguments.length?this._source=p:p=this._source,this._prepareOpen(),this.openOn(p._map)),this},onAdd:function(p){this._zoomAnimated=p._zoomAnimated,this._container||this._initLayout(),p._fadeAnimated&&rr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),p._fadeAnimated&&rr(this._container,1),this.bringToFront(),this.options.interactive&&(tt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(p){p._fadeAnimated?(rr(this._container,0),this._removeTimeout=setTimeout(n(Tt,void 0,this._container),200)):Tt(this._container),this.options.interactive&&(Ot(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(p){return this._latlng=Le(p),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(p){return this._content=p,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var p={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(p.zoomanim=this._animateZoom),p},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&gs(this._container),this},bringToBack:function(){return this._map&&ms(this._container),this},_prepareOpen:function(p){var v=this._source;if(!v._map)return!1;if(v instanceof Kr){v=null;var N=this._source._layers;for(var S in N)if(N[S]._map){v=N[S];break}if(!v)return!1;this._source=v}if(!p)if(v.getCenter)p=v.getCenter();else if(v.getLatLng)p=v.getLatLng();else if(v.getBounds)p=v.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(p),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var p=this._contentNode,v=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof v=="string")p.innerHTML=v;else{for(;p.hasChildNodes();)p.removeChild(p.firstChild);p.appendChild(v)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var p=this._map.latLngToLayerPoint(this._latlng),v=ce(this.options.offset),N=this._getAnchor();this._zoomAnimated?Pt(this._container,p.add(N)):v=v.add(p).add(N);var S=this._containerBottom=-v.y,U=this._containerLeft=-Math.round(this._containerWidth/2)+v.x;this._container.style.bottom=S+"px",this._container.style.left=U+"px"}},_getAnchor:function(){return[0,0]}});it.include({_initOverlay:function(p,v,N,S){var U=v;return U instanceof p||(U=new p(S).setContent(v)),N&&U.setLatLng(N),U}}),br.include({_initOverlay:function(p,v,N,S){var U=N;return U instanceof p?(k(U,S),U._source=this):(U=v&&!S?v:new p(S,this),U.setContent(N)),U}});var We=Mr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(p){return p=arguments.length?p:this._source._map,!p.hasLayer(this)&&p._popup&&p._popup.options.autoClose&&p.removeLayer(p._popup),p._popup=this,Mr.prototype.openOn.call(this,p)},onAdd:function(p){Mr.prototype.onAdd.call(this,p),p.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Zr||this._source.on("preclick",Hi))},onRemove:function(p){Mr.prototype.onRemove.call(this,p),p.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Zr||this._source.off("preclick",Hi))},getEvents:function(){var p=Mr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(p.preclick=this.close),this.options.keepInView&&(p.moveend=this._adjustPan),p},_initLayout:function(){var p="leaflet-popup",v=this._container=ct("div",p+" "+(this.options.className||"")+" leaflet-zoom-animated"),N=this._wrapper=ct("div",p+"-content-wrapper",v);if(this._contentNode=ct("div",p+"-content",N),dr(v),qr(this._contentNode),Qe(v,"contextmenu",Hi),this._tipContainer=ct("div",p+"-tip-container",v),this._tip=ct("div",p+"-tip",this._tipContainer),this.options.closeButton){var S=this._closeButton=ct("a",p+"-close-button",v);S.setAttribute("role","button"),S.setAttribute("aria-label","Close popup"),S.href="#close",S.innerHTML='<span aria-hidden="true">&#215;</span>',Qe(S,"click",function(U){ei(U),this.close()},this)}},_updateLayout:function(){var p=this._contentNode,v=p.style;v.width="",v.whiteSpace="nowrap";var N=p.offsetWidth;N=Math.min(N,this.options.maxWidth),N=Math.max(N,this.options.minWidth),v.width=N+1+"px",v.whiteSpace="",v.height="";var S=p.offsetHeight,U=this.options.maxHeight,Z="leaflet-popup-scrolled";U&&S>U?(v.height=U+"px",tt(p,Z)):Ot(p,Z),this._containerWidth=this._container.offsetWidth},_animateZoom:function(p){var v=this._map._latLngToNewLayerPoint(this._latlng,p.zoom,p.center),N=this._getAnchor();Pt(this._container,v.add(N))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var p=this._map,v=parseInt(vo(this._container,"marginBottom"),10)||0,N=this._container.offsetHeight+v,S=this._containerWidth,U=new ue(this._containerLeft,-N-this._containerBottom);U._add(Zo(this._container));var Z=p.layerPointToContainerPoint(U),X=ce(this.options.autoPanPadding),z=ce(this.options.autoPanPaddingTopLeft||X),ee=ce(this.options.autoPanPaddingBottomRight||X),le=p.getSize(),Ne=0,He=0;Z.x+S+ee.x>le.x&&(Ne=Z.x+S-le.x+ee.x),Z.x-Ne-z.x<0&&(Ne=Z.x-z.x),Z.y+N+ee.y>le.y&&(He=Z.y+N-le.y+ee.y),Z.y-He-z.y<0&&(He=Z.y-z.y),(Ne||He)&&(this.options.keepInView&&(this._autopanning=!0),p.fire("autopanstart").panBy([Ne,He]))}},_getAnchor:function(){return ce(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Yo=function(p,v){return new We(p,v)};it.mergeOptions({closePopupOnClick:!0}),it.include({openPopup:function(p,v,N){return this._initOverlay(We,p,v,N).openOn(this),this},closePopup:function(p){return p=arguments.length?p:this._popup,p&&p.close(),this}}),br.include({bindPopup:function(p,v){return this._popup=this._initOverlay(We,this._popup,p,v),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(p){return this._popup&&(this instanceof Kr||(this._popup._source=this),this._popup._prepareOpen(p||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(p){return this._popup&&this._popup.setContent(p),this},getPopup:function(){return this._popup},_openPopup:function(p){if(!(!this._popup||!this._map)){gr(p);var v=p.layer||p.target;if(this._popup._source===v&&!(v instanceof Zr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(p.latlng);return}this._popup._source=v,this.openPopup(p.latlng)}},_movePopup:function(p){this._popup.setLatLng(p.latlng)},_onKeyPress:function(p){p.originalEvent.keyCode===13&&this._openPopup(p)}});var Wr=Mr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(p){Mr.prototype.onAdd.call(this,p),this.setOpacity(this.options.opacity),p.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(p){Mr.prototype.onRemove.call(this,p),p.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var p=Mr.prototype.getEvents.call(this);return this.options.permanent||(p.preclick=this.close),p},_initLayout:function(){var p="leaflet-tooltip",v=p+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ct("div",v),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+g(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(p){var v,N,S=this._map,U=this._container,Z=S.latLngToContainerPoint(S.getCenter()),X=S.layerPointToContainerPoint(p),z=this.options.direction,ee=U.offsetWidth,le=U.offsetHeight,Ne=ce(this.options.offset),He=this._getAnchor();z==="top"?(v=ee/2,N=le):z==="bottom"?(v=ee/2,N=0):z==="center"?(v=ee/2,N=le/2):z==="right"?(v=0,N=le/2):z==="left"?(v=ee,N=le/2):X.x<Z.x?(z="right",v=0,N=le/2):(z="left",v=ee+(Ne.x+He.x)*2,N=le/2),p=p.subtract(ce(v,N,!0)).add(Ne).add(He),Ot(U,"leaflet-tooltip-right"),Ot(U,"leaflet-tooltip-left"),Ot(U,"leaflet-tooltip-top"),Ot(U,"leaflet-tooltip-bottom"),tt(U,"leaflet-tooltip-"+z),Pt(U,p)},_updatePosition:function(){var p=this._map.latLngToLayerPoint(this._latlng);this._setPosition(p)},setOpacity:function(p){this.options.opacity=p,this._container&&rr(this._container,p)},_animateZoom:function(p){var v=this._map._latLngToNewLayerPoint(this._latlng,p.zoom,p.center);this._setPosition(v)},_getAnchor:function(){return ce(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),gi=function(p,v){return new Wr(p,v)};it.include({openTooltip:function(p,v,N){return this._initOverlay(Wr,p,v,N).openOn(this),this},closeTooltip:function(p){return p.close(),this}}),br.include({bindTooltip:function(p,v){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Wr,this._tooltip,p,v),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(p){if(!(!p&&this._tooltipHandlersAdded)){var v=p?"off":"on",N={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?N.add=this._openTooltip:(N.mouseover=this._openTooltip,N.mouseout=this.closeTooltip,N.click=this._openTooltip,this._map?this._addFocusListeners():N.add=this._addFocusListeners),this._tooltip.options.sticky&&(N.mousemove=this._moveTooltip),this[v](N),this._tooltipHandlersAdded=!p}},openTooltip:function(p){return this._tooltip&&(this instanceof Kr||(this._tooltip._source=this),this._tooltip._prepareOpen(p)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(p){return this._tooltip&&this._tooltip.setContent(p),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(p){var v=typeof p.getElement=="function"&&p.getElement();v&&(Qe(v,"focus",function(){this._tooltip._source=p,this.openTooltip()},this),Qe(v,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(p){var v=typeof p.getElement=="function"&&p.getElement();v&&v.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(p){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var v=this;this._map.once("moveend",function(){v._openOnceFlag=!1,v._openTooltip(p)});return}this._tooltip._source=p.layer||p.target,this.openTooltip(this._tooltip.options.sticky?p.latlng:void 0)}},_moveTooltip:function(p){var v=p.latlng,N,S;this._tooltip.options.sticky&&p.originalEvent&&(N=this._map.mouseEventToContainerPoint(p.originalEvent),S=this._map.containerPointToLayerPoint(N),v=this._map.layerPointToLatLng(S)),this._tooltip.setLatLng(v)}});var Hn=ws.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(p){var v=p&&p.tagName==="DIV"?p:document.createElement("div"),N=this.options;if(N.html instanceof Element?(Bn(v),v.appendChild(N.html)):v.innerHTML=N.html!==!1?N.html:"",N.bgPos){var S=ce(N.bgPos);v.style.backgroundPosition=-S.x+"px "+-S.y+"px"}return this._setIconStyles(v,"icon"),v},createShadow:function(){return null}});function tn(p){return new Hn(p)}ws.Default=Ks;var ti=br.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ze.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(p){k(this,p)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(p){p._addZoomLimit(this)},onRemove:function(p){this._removeAllTiles(),Tt(this._container),p._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(gs(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ms(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(p){return this.options.opacity=p,this._updateOpacity(),this},setZIndex:function(p){return this.options.zIndex=p,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var p=this._clampZoom(this._map.getZoom());p!==this._tileZoom&&(this._tileZoom=p,this._updateLevels()),this._update()}return this},getEvents:function(){var p={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=w(this._onMoveEnd,this.options.updateInterval,this)),p.move=this._onMove),this._zoomAnimated&&(p.zoomanim=this._animateZoom),p},createTile:function(){return document.createElement("div")},getTileSize:function(){var p=this.options.tileSize;return p instanceof ue?p:new ue(p,p)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(p){for(var v=this.getPane().children,N=-p(-1/0,1/0),S=0,U=v.length,Z;S<U;S++)Z=v[S].style.zIndex,v[S]!==this._container&&Z&&(N=p(N,+Z));isFinite(N)&&(this.options.zIndex=N+p(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ze.ielt9){rr(this._container,this.options.opacity);var p=+new Date,v=!1,N=!1;for(var S in this._tiles){var U=this._tiles[S];if(!(!U.current||!U.loaded)){var Z=Math.min(1,(p-U.loaded)/200);rr(U.el,Z),Z<1?v=!0:(U.active?N=!0:this._onOpaqueTile(U),U.active=!0)}}N&&!this._noPrune&&this._pruneTiles(),v&&(Pe(this._fadeFrame),this._fadeFrame=Ee(this._updateOpacity,this))}},_onOpaqueTile:A,_initContainer:function(){this._container||(this._container=ct("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var p=this._tileZoom,v=this.options.maxZoom;if(p!==void 0){for(var N in this._levels)N=Number(N),this._levels[N].el.children.length||N===p?(this._levels[N].el.style.zIndex=v-Math.abs(p-N),this._onUpdateLevel(N)):(Tt(this._levels[N].el),this._removeTilesAtZoom(N),this._onRemoveLevel(N),delete this._levels[N]);var S=this._levels[p],U=this._map;return S||(S=this._levels[p]={},S.el=ct("div","leaflet-tile-container leaflet-zoom-animated",this._container),S.el.style.zIndex=v,S.origin=U.project(U.unproject(U.getPixelOrigin()),p).round(),S.zoom=p,this._setZoomTransform(S,U.getCenter(),U.getZoom()),A(S.el.offsetWidth),this._onCreateLevel(S)),this._level=S,S}},_onUpdateLevel:A,_onRemoveLevel:A,_onCreateLevel:A,_pruneTiles:function(){if(this._map){var p,v,N=this._map.getZoom();if(N>this.options.maxZoom||N<this.options.minZoom){this._removeAllTiles();return}for(p in this._tiles)v=this._tiles[p],v.retain=v.current;for(p in this._tiles)if(v=this._tiles[p],v.current&&!v.active){var S=v.coords;this._retainParent(S.x,S.y,S.z,S.z-5)||this._retainChildren(S.x,S.y,S.z,S.z+2)}for(p in this._tiles)this._tiles[p].retain||this._removeTile(p)}},_removeTilesAtZoom:function(p){for(var v in this._tiles)this._tiles[v].coords.z===p&&this._removeTile(v)},_removeAllTiles:function(){for(var p in this._tiles)this._removeTile(p)},_invalidateAll:function(){for(var p in this._levels)Tt(this._levels[p].el),this._onRemoveLevel(Number(p)),delete this._levels[p];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(p,v,N,S){var U=Math.floor(p/2),Z=Math.floor(v/2),X=N-1,z=new ue(+U,+Z);z.z=+X;var ee=this._tileCoordsToKey(z),le=this._tiles[ee];return le&&le.active?(le.retain=!0,!0):(le&&le.loaded&&(le.retain=!0),X>S?this._retainParent(U,Z,X,S):!1)},_retainChildren:function(p,v,N,S){for(var U=2*p;U<2*p+2;U++)for(var Z=2*v;Z<2*v+2;Z++){var X=new ue(U,Z);X.z=N+1;var z=this._tileCoordsToKey(X),ee=this._tiles[z];if(ee&&ee.active){ee.retain=!0;continue}else ee&&ee.loaded&&(ee.retain=!0);N+1<S&&this._retainChildren(U,Z,N+1,S)}},_resetView:function(p){var v=p&&(p.pinch||p.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),v,v)},_animateZoom:function(p){this._setView(p.center,p.zoom,!0,p.noUpdate)},_clampZoom:function(p){var v=this.options;return v.minNativeZoom!==void 0&&p<v.minNativeZoom?v.minNativeZoom:v.maxNativeZoom!==void 0&&v.maxNativeZoom<p?v.maxNativeZoom:p},_setView:function(p,v,N,S){var U=Math.round(v);this.options.maxZoom!==void 0&&U>this.options.maxZoom||this.options.minZoom!==void 0&&U<this.options.minZoom?U=void 0:U=this._clampZoom(U);var Z=this.options.updateWhenZooming&&U!==this._tileZoom;(!S||Z)&&(this._tileZoom=U,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),U!==void 0&&this._update(p),N||this._pruneTiles(),this._noPrune=!!N),this._setZoomTransforms(p,v)},_setZoomTransforms:function(p,v){for(var N in this._levels)this._setZoomTransform(this._levels[N],p,v)},_setZoomTransform:function(p,v,N){var S=this._map.getZoomScale(N,p.zoom),U=p.origin.multiplyBy(S).subtract(this._map._getNewPixelOrigin(v,N)).round();Ze.any3d?Go(p.el,U,S):Pt(p.el,U)},_resetGrid:function(){var p=this._map,v=p.options.crs,N=this._tileSize=this.getTileSize(),S=this._tileZoom,U=this._map.getPixelWorldBounds(this._tileZoom);U&&(this._globalTileRange=this._pxBoundsToTileRange(U)),this._wrapX=v.wrapLng&&!this.options.noWrap&&[Math.floor(p.project([0,v.wrapLng[0]],S).x/N.x),Math.ceil(p.project([0,v.wrapLng[1]],S).x/N.y)],this._wrapY=v.wrapLat&&!this.options.noWrap&&[Math.floor(p.project([v.wrapLat[0],0],S).y/N.x),Math.ceil(p.project([v.wrapLat[1],0],S).y/N.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(p){var v=this._map,N=v._animatingZoom?Math.max(v._animateToZoom,v.getZoom()):v.getZoom(),S=v.getZoomScale(N,this._tileZoom),U=v.project(p,this._tileZoom).floor(),Z=v.getSize().divideBy(S*2);return new Be(U.subtract(Z),U.add(Z))},_update:function(p){var v=this._map;if(v){var N=this._clampZoom(v.getZoom());if(p===void 0&&(p=v.getCenter()),this._tileZoom!==void 0){var S=this._getTiledPixelBounds(p),U=this._pxBoundsToTileRange(S),Z=U.getCenter(),X=[],z=this.options.keepBuffer,ee=new Be(U.getBottomLeft().subtract([z,-z]),U.getTopRight().add([z,-z]));if(!(isFinite(U.min.x)&&isFinite(U.min.y)&&isFinite(U.max.x)&&isFinite(U.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var le in this._tiles){var Ne=this._tiles[le].coords;(Ne.z!==this._tileZoom||!ee.contains(new ue(Ne.x,Ne.y)))&&(this._tiles[le].current=!1)}if(Math.abs(N-this._tileZoom)>1){this._setView(p,N);return}for(var He=U.min.y;He<=U.max.y;He++)for(var nt=U.min.x;nt<=U.max.x;nt++){var Si=new ue(nt,He);if(Si.z=this._tileZoom,!!this._isValidTile(Si)){var ci=this._tiles[this._tileCoordsToKey(Si)];ci?ci.current=!0:X.push(Si)}}if(X.sort(function(Oi,Rs){return Oi.distanceTo(Z)-Rs.distanceTo(Z)}),X.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var nr=document.createDocumentFragment();for(nt=0;nt<X.length;nt++)this._addTile(X[nt],nr);this._level.el.appendChild(nr)}}}},_isValidTile:function(p){var v=this._map.options.crs;if(!v.infinite){var N=this._globalTileRange;if(!v.wrapLng&&(p.x<N.min.x||p.x>N.max.x)||!v.wrapLat&&(p.y<N.min.y||p.y>N.max.y))return!1}if(!this.options.bounds)return!0;var S=this._tileCoordsToBounds(p);return ve(this.options.bounds).overlaps(S)},_keyToBounds:function(p){return this._tileCoordsToBounds(this._keyToTileCoords(p))},_tileCoordsToNwSe:function(p){var v=this._map,N=this.getTileSize(),S=p.scaleBy(N),U=S.add(N),Z=v.unproject(S,p.z),X=v.unproject(U,p.z);return[Z,X]},_tileCoordsToBounds:function(p){var v=this._tileCoordsToNwSe(p),N=new Xe(v[0],v[1]);return this.options.noWrap||(N=this._map.wrapLatLngBounds(N)),N},_tileCoordsToKey:function(p){return p.x+":"+p.y+":"+p.z},_keyToTileCoords:function(p){var v=p.split(":"),N=new ue(+v[0],+v[1]);return N.z=+v[2],N},_removeTile:function(p){var v=this._tiles[p];v&&(Tt(v.el),delete this._tiles[p],this.fire("tileunload",{tile:v.el,coords:this._keyToTileCoords(p)}))},_initTile:function(p){tt(p,"leaflet-tile");var v=this.getTileSize();p.style.width=v.x+"px",p.style.height=v.y+"px",p.onselectstart=A,p.onmousemove=A,Ze.ielt9&&this.options.opacity<1&&rr(p,this.options.opacity)},_addTile:function(p,v){var N=this._getTilePos(p),S=this._tileCoordsToKey(p),U=this.createTile(this._wrapCoords(p),n(this._tileReady,this,p));this._initTile(U),this.createTile.length<2&&Ee(n(this._tileReady,this,p,null,U)),Pt(U,N),this._tiles[S]={el:U,coords:p,current:!0},v.appendChild(U),this.fire("tileloadstart",{tile:U,coords:p})},_tileReady:function(p,v,N){v&&this.fire("tileerror",{error:v,tile:N,coords:p});var S=this._tileCoordsToKey(p);N=this._tiles[S],N&&(N.loaded=+new Date,this._map._fadeAnimated?(rr(N.el,0),Pe(this._fadeFrame),this._fadeFrame=Ee(this._updateOpacity,this)):(N.active=!0,this._pruneTiles()),v||(tt(N.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:N.el,coords:p})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ze.ielt9||!this._map._fadeAnimated?Ee(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(p){return p.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(p){var v=new ue(this._wrapX?y(p.x,this._wrapX):p.x,this._wrapY?y(p.y,this._wrapY):p.y);return v.z=p.z,v},_pxBoundsToTileRange:function(p){var v=this.getTileSize();return new Be(p.min.unscaleBy(v).floor(),p.max.unscaleBy(v).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var p in this._tiles)if(!this._tiles[p].loaded)return!1;return!0}});function rn(p){return new ti(p)}var Dr=ti.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(p,v){this._url=p,v=k(this,v),v.detectRetina&&Ze.retina&&v.maxZoom>0?(v.tileSize=Math.floor(v.tileSize/2),v.zoomReverse?(v.zoomOffset--,v.minZoom=Math.min(v.maxZoom,v.minZoom+1)):(v.zoomOffset++,v.maxZoom=Math.max(v.minZoom,v.maxZoom-1)),v.minZoom=Math.max(0,v.minZoom)):v.zoomReverse?v.minZoom=Math.min(v.maxZoom,v.minZoom):v.maxZoom=Math.max(v.minZoom,v.maxZoom),typeof v.subdomains=="string"&&(v.subdomains=v.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(p,v){return this._url===p&&v===void 0&&(v=!0),this._url=p,v||this.redraw(),this},createTile:function(p,v){var N=document.createElement("img");return Qe(N,"load",n(this._tileOnLoad,this,v,N)),Qe(N,"error",n(this._tileOnError,this,v,N)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(N.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(N.referrerPolicy=this.options.referrerPolicy),N.alt="",N.src=this.getTileUrl(p),N},getTileUrl:function(p){var v={r:Ze.retina?"@2x":"",s:this._getSubdomain(p),x:p.x,y:p.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var N=this._globalTileRange.max.y-p.y;this.options.tms&&(v.y=N),v["-y"]=N}return P(this._url,e(v,this.options))},_tileOnLoad:function(p,v){Ze.ielt9?setTimeout(n(p,this,null,v),0):p(null,v)},_tileOnError:function(p,v,N){var S=this.options.errorTileUrl;S&&v.getAttribute("src")!==S&&(v.src=S),p(N,v)},_onTileRemove:function(p){p.tile.onload=null},_getZoomForUrl:function(){var p=this._tileZoom,v=this.options.maxZoom,N=this.options.zoomReverse,S=this.options.zoomOffset;return N&&(p=v-p),p+S},_getSubdomain:function(p){var v=Math.abs(p.x+p.y)%this.options.subdomains.length;return this.options.subdomains[v]},_abortLoading:function(){var p,v;for(p in this._tiles)if(this._tiles[p].coords.z!==this._tileZoom&&(v=this._tiles[p].el,v.onload=A,v.onerror=A,!v.complete)){v.src=re;var N=this._tiles[p].coords;Tt(v),delete this._tiles[p],this.fire("tileabort",{tile:v,coords:N})}},_removeTile:function(p){var v=this._tiles[p];if(v)return v.el.setAttribute("src",re),ti.prototype._removeTile.call(this,p)},_tileReady:function(p,v,N){if(!(!this._map||N&&N.getAttribute("src")===re))return ti.prototype._tileReady.call(this,p,v,N)}});function Cs(p,v){return new Dr(p,v)}var Jn=Dr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(p,v){this._url=p;var N=e({},this.defaultWmsParams);for(var S in v)S in this.options||(N[S]=v[S]);v=k(this,v);var U=v.detectRetina&&Ze.retina?2:1,Z=this.getTileSize();N.width=Z.x*U,N.height=Z.y*U,this.wmsParams=N},onAdd:function(p){this._crs=this.options.crs||p.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var v=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[v]=this._crs.code,Dr.prototype.onAdd.call(this,p)},getTileUrl:function(p){var v=this._tileCoordsToNwSe(p),N=this._crs,S=qe(N.project(v[0]),N.project(v[1])),U=S.min,Z=S.max,X=(this._wmsVersion>=1.3&&this._crs===Ci?[U.y,U.x,Z.y,Z.x]:[U.x,U.y,Z.x,Z.y]).join(","),z=Dr.prototype.getTileUrl.call(this,p);return z+G(this.wmsParams,z,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+X},setParams:function(p,v){return e(this.wmsParams,p),v||this.redraw(),this}});function Ma(p,v){return new Jn(p,v)}Dr.WMS=Jn,Cs.wms=Ma;var Ti=br.extend({options:{padding:.1},initialize:function(p){k(this,p),g(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),tt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var p={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(p.zoomanim=this._onAnimZoom),p},_onAnimZoom:function(p){this._updateTransform(p.center,p.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(p,v){var N=this._map.getZoomScale(v,this._zoom),S=this._map.getSize().multiplyBy(.5+this.options.padding),U=this._map.project(this._center,v),Z=S.multiplyBy(-N).add(U).subtract(this._map._getNewPixelOrigin(p,v));Ze.any3d?Go(this._container,Z,N):Pt(this._container,Z)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var p in this._layers)this._layers[p]._reset()},_onZoomEnd:function(){for(var p in this._layers)this._layers[p]._project()},_updatePaths:function(){for(var p in this._layers)this._layers[p]._update()},_update:function(){var p=this.options.padding,v=this._map.getSize(),N=this._map.containerPointToLayerPoint(v.multiplyBy(-p)).round();this._bounds=new Be(N,N.add(v.multiplyBy(1+p*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),zn=Ti.extend({options:{tolerance:0},getEvents:function(){var p=Ti.prototype.getEvents.call(this);return p.viewprereset=this._onViewPreReset,p},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ti.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var p=this._container=document.createElement("canvas");Qe(p,"mousemove",this._onMouseMove,this),Qe(p,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Qe(p,"mouseout",this._handleMouseOut,this),p._leaflet_disable_events=!0,this._ctx=p.getContext("2d")},_destroyContainer:function(){Pe(this._redrawRequest),delete this._ctx,Tt(this._container),wt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var p;this._redrawBounds=null;for(var v in this._layers)p=this._layers[v],p._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ti.prototype._update.call(this);var p=this._bounds,v=this._container,N=p.getSize(),S=Ze.retina?2:1;Pt(v,p.min),v.width=S*N.x,v.height=S*N.y,v.style.width=N.x+"px",v.style.height=N.y+"px",Ze.retina&&this._ctx.scale(2,2),this._ctx.translate(-p.min.x,-p.min.y),this.fire("update")}},_reset:function(){Ti.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(p){this._updateDashArray(p),this._layers[g(p)]=p;var v=p._order={layer:p,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=v),this._drawLast=v,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(p){this._requestRedraw(p)},_removePath:function(p){var v=p._order,N=v.next,S=v.prev;N?N.prev=S:this._drawLast=S,S?S.next=N:this._drawFirst=N,delete p._order,delete this._layers[g(p)],this._requestRedraw(p)},_updatePath:function(p){this._extendRedrawBounds(p),p._project(),p._update(),this._requestRedraw(p)},_updateStyle:function(p){this._updateDashArray(p),this._requestRedraw(p)},_updateDashArray:function(p){if(typeof p.options.dashArray=="string"){var v=p.options.dashArray.split(/[, ]+/),N=[],S,U;for(U=0;U<v.length;U++){if(S=Number(v[U]),isNaN(S))return;N.push(S)}p.options._dashArray=N}else p.options._dashArray=p.options.dashArray},_requestRedraw:function(p){this._map&&(this._extendRedrawBounds(p),this._redrawRequest=this._redrawRequest||Ee(this._redraw,this))},_extendRedrawBounds:function(p){if(p._pxBounds){var v=(p.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Be,this._redrawBounds.extend(p._pxBounds.min.subtract([v,v])),this._redrawBounds.extend(p._pxBounds.max.add([v,v]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var p=this._redrawBounds;if(p){var v=p.getSize();this._ctx.clearRect(p.min.x,p.min.y,v.x,v.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var p,v=this._redrawBounds;if(this._ctx.save(),v){var N=v.getSize();this._ctx.beginPath(),this._ctx.rect(v.min.x,v.min.y,N.x,N.y),this._ctx.clip()}this._drawing=!0;for(var S=this._drawFirst;S;S=S.next)p=S.layer,(!v||p._pxBounds&&p._pxBounds.intersects(v))&&p._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(p,v){if(this._drawing){var N,S,U,Z,X=p._parts,z=X.length,ee=this._ctx;if(z){for(ee.beginPath(),N=0;N<z;N++){for(S=0,U=X[N].length;S<U;S++)Z=X[N][S],ee[S?"lineTo":"moveTo"](Z.x,Z.y);v&&ee.closePath()}this._fillStroke(ee,p)}}},_updateCircle:function(p){if(!(!this._drawing||p._empty())){var v=p._point,N=this._ctx,S=Math.max(Math.round(p._radius),1),U=(Math.max(Math.round(p._radiusY),1)||S)/S;U!==1&&(N.save(),N.scale(1,U)),N.beginPath(),N.arc(v.x,v.y/U,S,0,Math.PI*2,!1),U!==1&&N.restore(),this._fillStroke(N,p)}},_fillStroke:function(p,v){var N=v.options;N.fill&&(p.globalAlpha=N.fillOpacity,p.fillStyle=N.fillColor||N.color,p.fill(N.fillRule||"evenodd")),N.stroke&&N.weight!==0&&(p.setLineDash&&p.setLineDash(v.options&&v.options._dashArray||[]),p.globalAlpha=N.opacity,p.lineWidth=N.weight,p.strokeStyle=N.color,p.lineCap=N.lineCap,p.lineJoin=N.lineJoin,p.stroke())},_onClick:function(p){for(var v=this._map.mouseEventToLayerPoint(p),N,S,U=this._drawFirst;U;U=U.next)N=U.layer,N.options.interactive&&N._containsPoint(v)&&(!(p.type==="click"||p.type==="preclick")||!this._map._draggableMoved(N))&&(S=N);this._fireEvent(S?[S]:!1,p)},_onMouseMove:function(p){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var v=this._map.mouseEventToLayerPoint(p);this._handleMouseHover(p,v)}},_handleMouseOut:function(p){var v=this._hoveredLayer;v&&(Ot(this._container,"leaflet-interactive"),this._fireEvent([v],p,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(p,v){if(!this._mouseHoverThrottled){for(var N,S,U=this._drawFirst;U;U=U.next)N=U.layer,N.options.interactive&&N._containsPoint(v)&&(S=N);S!==this._hoveredLayer&&(this._handleMouseOut(p),S&&(tt(this._container,"leaflet-interactive"),this._fireEvent([S],p,"mouseover"),this._hoveredLayer=S)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,p),this._mouseHoverThrottled=!0,setTimeout(n(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(p,v,N){this._map._fireDOMEvent(v,N||v.type,p)},_bringToFront:function(p){var v=p._order;if(v){var N=v.next,S=v.prev;if(N)N.prev=S;else return;S?S.next=N:N&&(this._drawFirst=N),v.prev=this._drawLast,this._drawLast.next=v,v.next=null,this._drawLast=v,this._requestRedraw(p)}},_bringToBack:function(p){var v=p._order;if(v){var N=v.next,S=v.prev;if(S)S.next=N;else return;N?N.prev=S:S&&(this._drawLast=S),v.prev=null,v.next=this._drawFirst,this._drawFirst.prev=v,this._drawFirst=v,this._requestRedraw(p)}}});function Is(p){return Ze.canvas?new zn(p):null}var io=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(p){return document.createElement("<lvml:"+p+' class="lvml">')}}catch{}return function(p){return document.createElement("<"+p+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Wa={_initContainer:function(){this._container=ct("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ti.prototype._update.call(this),this.fire("update"))},_initPath:function(p){var v=p._container=io("shape");tt(v,"leaflet-vml-shape "+(this.options.className||"")),v.coordsize="1 1",p._path=io("path"),v.appendChild(p._path),this._updateStyle(p),this._layers[g(p)]=p},_addPath:function(p){var v=p._container;this._container.appendChild(v),p.options.interactive&&p.addInteractiveTarget(v)},_removePath:function(p){var v=p._container;Tt(v),p.removeInteractiveTarget(v),delete this._layers[g(p)]},_updateStyle:function(p){var v=p._stroke,N=p._fill,S=p.options,U=p._container;U.stroked=!!S.stroke,U.filled=!!S.fill,S.stroke?(v||(v=p._stroke=io("stroke")),U.appendChild(v),v.weight=S.weight+"px",v.color=S.color,v.opacity=S.opacity,S.dashArray?v.dashStyle=Q(S.dashArray)?S.dashArray.join(" "):S.dashArray.replace(/( *, *)/g," "):v.dashStyle="",v.endcap=S.lineCap.replace("butt","flat"),v.joinstyle=S.lineJoin):v&&(U.removeChild(v),p._stroke=null),S.fill?(N||(N=p._fill=io("fill")),U.appendChild(N),N.color=S.fillColor||S.color,N.opacity=S.fillOpacity):N&&(U.removeChild(N),p._fill=null)},_updateCircle:function(p){var v=p._point.round(),N=Math.round(p._radius),S=Math.round(p._radiusY||N);this._setPath(p,p._empty()?"M0 0":"AL "+v.x+","+v.y+" "+N+","+S+" 0,"+65535*360)},_setPath:function(p,v){p._path.v=v},_bringToFront:function(p){gs(p._container)},_bringToBack:function(p){ms(p._container)}},As=Ze.vml?io:It,wr=Ti.extend({_initContainer:function(){this._container=As("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=As("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Tt(this._container),wt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ti.prototype._update.call(this);var p=this._bounds,v=p.getSize(),N=this._container;(!this._svgSize||!this._svgSize.equals(v))&&(this._svgSize=v,N.setAttribute("width",v.x),N.setAttribute("height",v.y)),Pt(N,p.min),N.setAttribute("viewBox",[p.min.x,p.min.y,v.x,v.y].join(" ")),this.fire("update")}},_initPath:function(p){var v=p._path=As("path");p.options.className&&tt(v,p.options.className),p.options.interactive&&tt(v,"leaflet-interactive"),this._updateStyle(p),this._layers[g(p)]=p},_addPath:function(p){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(p._path),p.addInteractiveTarget(p._path)},_removePath:function(p){Tt(p._path),p.removeInteractiveTarget(p._path),delete this._layers[g(p)]},_updatePath:function(p){p._project(),p._update()},_updateStyle:function(p){var v=p._path,N=p.options;v&&(N.stroke?(v.setAttribute("stroke",N.color),v.setAttribute("stroke-opacity",N.opacity),v.setAttribute("stroke-width",N.weight),v.setAttribute("stroke-linecap",N.lineCap),v.setAttribute("stroke-linejoin",N.lineJoin),N.dashArray?v.setAttribute("stroke-dasharray",N.dashArray):v.removeAttribute("stroke-dasharray"),N.dashOffset?v.setAttribute("stroke-dashoffset",N.dashOffset):v.removeAttribute("stroke-dashoffset")):v.setAttribute("stroke","none"),N.fill?(v.setAttribute("fill",N.fillColor||N.color),v.setAttribute("fill-opacity",N.fillOpacity),v.setAttribute("fill-rule",N.fillRule||"evenodd")):v.setAttribute("fill","none"))},_updatePoly:function(p,v){this._setPath(p,qt(p._parts,v))},_updateCircle:function(p){var v=p._point,N=Math.max(Math.round(p._radius),1),S=Math.max(Math.round(p._radiusY),1)||N,U="a"+N+","+S+" 0 1,0 ",Z=p._empty()?"M0 0":"M"+(v.x-N)+","+v.y+U+N*2+",0 "+U+-N*2+",0 ";this._setPath(p,Z)},_setPath:function(p,v){p._path.setAttribute("d",v)},_bringToFront:function(p){gs(p._path)},_bringToBack:function(p){ms(p._path)}});Ze.vml&&wr.include(Wa);function Ns(p){return Ze.svg||Ze.vml?new wr(p):null}it.include({getRenderer:function(p){var v=p.options.renderer||this._getPaneRenderer(p.options.pane)||this.options.renderer||this._renderer;return v||(v=this._renderer=this._createRenderer()),this.hasLayer(v)||this.addLayer(v),v},_getPaneRenderer:function(p){if(p==="overlayPane"||p===void 0)return!1;var v=this._paneRenderers[p];return v===void 0&&(v=this._createRenderer({pane:p}),this._paneRenderers[p]=v),v},_createRenderer:function(p){return this.options.preferCanvas&&Is(p)||Ns(p)}});var Qt=xs.extend({initialize:function(p,v){xs.prototype.initialize.call(this,this._boundsToLatLngs(p),v)},setBounds:function(p){return this.setLatLngs(this._boundsToLatLngs(p))},_boundsToLatLngs:function(p){return p=ve(p),[p.getSouthWest(),p.getNorthWest(),p.getNorthEast(),p.getSouthEast()]}});function Yh(p,v){return new Qt(p,v)}wr.create=As,wr.pointsToPath=qt,Ji.geometryToLayer=Qn,Ji.coordsToLatLng=en,Ji.coordsToLatLngs=vs,Ji.latLngToCoords=Xo,Ji.latLngsToCoords=Xn,Ji.getFeature=ys,Ji.asFeature=Es,it.mergeOptions({boxZoom:!0});var vc=Gr.extend({initialize:function(p){this._map=p,this._container=p._container,this._pane=p._panes.overlayPane,this._resetStateTimeout=0,p.on("unload",this._destroy,this)},addHooks:function(){Qe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){wt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Tt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(p){if(!p.shiftKey||p.which!==1&&p.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Xs(),La(),this._startPoint=this._map.mouseEventToContainerPoint(p),Qe(document,{contextmenu:gr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(p){this._moved||(this._moved=!0,this._box=ct("div","leaflet-zoom-box",this._container),tt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(p);var v=new Be(this._point,this._startPoint),N=v.getSize();Pt(this._box,v.min),this._box.style.width=N.x+"px",this._box.style.height=N.y+"px"},_finish:function(){this._moved&&(Tt(this._box),Ot(this._container,"leaflet-crosshair")),Mo(),Ba(),wt(document,{contextmenu:gr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(p){if(!(p.which!==1&&p.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var v=new Xe(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(v).fire("boxzoomend",{boxZoomBounds:v})}},_onKeyDown:function(p){p.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});it.addInitHook("addHandler","boxZoom",vc),it.mergeOptions({doubleClickZoom:!0});var yc=Gr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(p){var v=this._map,N=v.getZoom(),S=v.options.zoomDelta,U=p.originalEvent.shiftKey?N-S:N+S;v.options.doubleClickZoom==="center"?v.setZoom(U):v.setZoomAround(p.containerPoint,U)}});it.addInitHook("addHandler","doubleClickZoom",yc),it.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ec=Gr.extend({addHooks:function(){if(!this._draggable){var p=this._map;this._draggable=new yo(p._mapPane,p._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),p.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),p.on("zoomend",this._onZoomEnd,this),p.whenReady(this._onZoomEnd,this))}tt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ot(this._map._container,"leaflet-grab"),Ot(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var p=this._map;if(p._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var v=ve(this._map.options.maxBounds);this._offsetLimit=qe(this._map.latLngToContainerPoint(v.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(v.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;p.fire("movestart").fire("dragstart"),p.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(p){if(this._map.options.inertia){var v=this._lastTime=+new Date,N=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(N),this._times.push(v),this._prunePositions(v)}this._map.fire("move",p).fire("drag",p)},_prunePositions:function(p){for(;this._positions.length>1&&p-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var p=this._map.getSize().divideBy(2),v=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=v.subtract(p).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(p,v){return p-(p-v)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var p=this._draggable._newPos.subtract(this._draggable._startPos),v=this._offsetLimit;p.x<v.min.x&&(p.x=this._viscousLimit(p.x,v.min.x)),p.y<v.min.y&&(p.y=this._viscousLimit(p.y,v.min.y)),p.x>v.max.x&&(p.x=this._viscousLimit(p.x,v.max.x)),p.y>v.max.y&&(p.y=this._viscousLimit(p.y,v.max.y)),this._draggable._newPos=this._draggable._startPos.add(p)}},_onPreDragWrap:function(){var p=this._worldWidth,v=Math.round(p/2),N=this._initialWorldOffset,S=this._draggable._newPos.x,U=(S-v+N)%p+v-N,Z=(S+v+N)%p-v-N,X=Math.abs(U+N)<Math.abs(Z+N)?U:Z;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=X},_onDragEnd:function(p){var v=this._map,N=v.options,S=!N.inertia||p.noInertia||this._times.length<2;if(v.fire("dragend",p),S)v.fire("moveend");else{this._prunePositions(+new Date);var U=this._lastPos.subtract(this._positions[0]),Z=(this._lastTime-this._times[0])/1e3,X=N.easeLinearity,z=U.multiplyBy(X/Z),ee=z.distanceTo([0,0]),le=Math.min(N.inertiaMaxSpeed,ee),Ne=z.multiplyBy(le/ee),He=le/(N.inertiaDeceleration*X),nt=Ne.multiplyBy(-He/2).round();!nt.x&&!nt.y?v.fire("moveend"):(nt=v._limitOffset(nt,v.options.maxBounds),Ee(function(){v.panBy(nt,{duration:He,easeLinearity:X,noMoveStart:!0,animate:!0})}))}}});it.addInitHook("addHandler","dragging",Ec),it.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Cc=Gr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(p){this._map=p,this._setPanDelta(p.options.keyboardPanDelta),this._setZoomDelta(p.options.zoomDelta)},addHooks:function(){var p=this._map._container;p.tabIndex<=0&&(p.tabIndex="0"),Qe(p,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),wt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var p=document.body,v=document.documentElement,N=p.scrollTop||v.scrollTop,S=p.scrollLeft||v.scrollLeft;this._map._container.focus(),window.scrollTo(S,N)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(p){var v=this._panKeys={},N=this.keyCodes,S,U;for(S=0,U=N.left.length;S<U;S++)v[N.left[S]]=[-1*p,0];for(S=0,U=N.right.length;S<U;S++)v[N.right[S]]=[p,0];for(S=0,U=N.down.length;S<U;S++)v[N.down[S]]=[0,p];for(S=0,U=N.up.length;S<U;S++)v[N.up[S]]=[0,-1*p]},_setZoomDelta:function(p){var v=this._zoomKeys={},N=this.keyCodes,S,U;for(S=0,U=N.zoomIn.length;S<U;S++)v[N.zoomIn[S]]=p;for(S=0,U=N.zoomOut.length;S<U;S++)v[N.zoomOut[S]]=-p},_addHooks:function(){Qe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){wt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(p){if(!(p.altKey||p.ctrlKey||p.metaKey)){var v=p.keyCode,N=this._map,S;if(v in this._panKeys){if(!N._panAnim||!N._panAnim._inProgress)if(S=this._panKeys[v],p.shiftKey&&(S=ce(S).multiplyBy(3)),N.options.maxBounds&&(S=N._limitOffset(ce(S),N.options.maxBounds)),N.options.worldCopyJump){var U=N.wrapLatLng(N.unproject(N.project(N.getCenter()).add(S)));N.panTo(U)}else N.panBy(S)}else if(v in this._zoomKeys)N.setZoom(N.getZoom()+(p.shiftKey?3:1)*this._zoomKeys[v]);else if(v===27&&N._popup&&N._popup.options.closeOnEscapeKey)N.closePopup();else return;gr(p)}}});it.addInitHook("addHandler","keyboard",Cc),it.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ic=Gr.extend({addHooks:function(){Qe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){wt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(p){var v=nc(p),N=this._map.options.wheelDebounceTime;this._delta+=v,this._lastMousePos=this._map.mouseEventToContainerPoint(p),this._startTime||(this._startTime=+new Date);var S=Math.max(N-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(n(this._performZoom,this),S),gr(p)},_performZoom:function(){var p=this._map,v=p.getZoom(),N=this._map.options.zoomSnap||0;p._stop();var S=this._delta/(this._map.options.wheelPxPerZoomLevel*4),U=4*Math.log(2/(1+Math.exp(-Math.abs(S))))/Math.LN2,Z=N?Math.ceil(U/N)*N:U,X=p._limitZoom(v+(this._delta>0?Z:-Z))-v;this._delta=0,this._startTime=null,X&&(p.options.scrollWheelZoom==="center"?p.setZoom(v+X):p.setZoomAround(this._lastMousePos,v+X))}});it.addInitHook("addHandler","scrollWheelZoom",Ic);var Hh=600;it.mergeOptions({tapHold:Ze.touchNative&&Ze.safari&&Ze.mobile,tapTolerance:15});var Ac=Gr.extend({addHooks:function(){Qe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){wt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(p){if(clearTimeout(this._holdTimeout),p.touches.length===1){var v=p.touches[0];this._startPos=this._newPos=new ue(v.clientX,v.clientY),this._holdTimeout=setTimeout(n(function(){this._cancel(),this._isTapValid()&&(Qe(document,"touchend",ei),Qe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",v))},this),Hh),Qe(document,"touchend touchcancel contextmenu",this._cancel,this),Qe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function p(){wt(document,"touchend",ei),wt(document,"touchend touchcancel",p)},_cancel:function(){clearTimeout(this._holdTimeout),wt(document,"touchend touchcancel contextmenu",this._cancel,this),wt(document,"touchmove",this._onMove,this)},_onMove:function(p){var v=p.touches[0];this._newPos=new ue(v.clientX,v.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(p,v){var N=new MouseEvent(p,{bubbles:!0,cancelable:!0,view:window,screenX:v.screenX,screenY:v.screenY,clientX:v.clientX,clientY:v.clientY});N._simulated=!0,v.target.dispatchEvent(N)}});it.addInitHook("addHandler","tapHold",Ac),it.mergeOptions({touchZoom:Ze.touch,bounceAtZoomLimits:!0});var Nc=Gr.extend({addHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),Qe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ot(this._map._container,"leaflet-touch-zoom"),wt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(p){var v=this._map;if(!(!p.touches||p.touches.length!==2||v._animatingZoom||this._zooming)){var N=v.mouseEventToContainerPoint(p.touches[0]),S=v.mouseEventToContainerPoint(p.touches[1]);this._centerPoint=v.getSize()._divideBy(2),this._startLatLng=v.containerPointToLatLng(this._centerPoint),v.options.touchZoom!=="center"&&(this._pinchStartLatLng=v.containerPointToLatLng(N.add(S)._divideBy(2))),this._startDist=N.distanceTo(S),this._startZoom=v.getZoom(),this._moved=!1,this._zooming=!0,v._stop(),Qe(document,"touchmove",this._onTouchMove,this),Qe(document,"touchend touchcancel",this._onTouchEnd,this),ei(p)}},_onTouchMove:function(p){if(!(!p.touches||p.touches.length!==2||!this._zooming)){var v=this._map,N=v.mouseEventToContainerPoint(p.touches[0]),S=v.mouseEventToContainerPoint(p.touches[1]),U=N.distanceTo(S)/this._startDist;if(this._zoom=v.getScaleZoom(U,this._startZoom),!v.options.bounceAtZoomLimits&&(this._zoom<v.getMinZoom()&&U<1||this._zoom>v.getMaxZoom()&&U>1)&&(this._zoom=v._limitZoom(this._zoom)),v.options.touchZoom==="center"){if(this._center=this._startLatLng,U===1)return}else{var Z=N._add(S)._divideBy(2)._subtract(this._centerPoint);if(U===1&&Z.x===0&&Z.y===0)return;this._center=v.unproject(v.project(this._pinchStartLatLng,this._zoom).subtract(Z),this._zoom)}this._moved||(v._moveStart(!0,!1),this._moved=!0),Pe(this._animRequest);var X=n(v._move,v,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Ee(X,this,!0),ei(p)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Pe(this._animRequest),wt(document,"touchmove",this._onTouchMove,this),wt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});it.addInitHook("addHandler","touchZoom",Nc),it.BoxZoom=vc,it.DoubleClickZoom=yc,it.Drag=Ec,it.Keyboard=Cc,it.ScrollWheelZoom=Ic,it.TapHold=Ac,it.TouchZoom=Nc,i.Bounds=Be,i.Browser=Ze,i.CRS=_e,i.Canvas=zn,i.Circle=di,i.CircleMarker=Ii,i.Class=Ie,i.Control=mr,i.DivIcon=Hn,i.DivOverlay=Mr,i.DomEvent=$e,i.DomUtil=Nh,i.Draggable=yo,i.Evented=de,i.FeatureGroup=Kr,i.GeoJSON=Ji,i.GridLayer=ti,i.Handler=Gr,i.Icon=ws,i.ImageOverlay=Yn,i.LatLng=fe,i.LatLngBounds=Xe,i.Layer=br,i.LayerGroup=bs,i.LineUtil=oe,i.Map=it,i.Marker=Pn,i.Mixin=Vh,i.Path=Zr,i.Point=ue,i.PolyUtil=Fh,i.Polygon=xs,i.Polyline=eo,i.Popup=We,i.PosAnimation=Mn,i.Projection=Qo,i.Rectangle=Qt,i.Renderer=Ti,i.SVG=wr,i.SVGOverlay=xc,i.TileLayer=Dr,i.Tooltip=Wr,i.Transformation=Ki,i.Util=Re,i.VideoOverlay=wc,i.bind=n,i.bounds=qe,i.canvas=Is,i.circle=Wh,i.circleMarker=Mh,i.control=Wo,i.divIcon=tn,i.extend=e,i.featureGroup=Ga,i.geoJSON=bc,i.geoJson=ut,i.gridLayer=rn,i.icon=Gh,i.imageOverlay=Qh,i.latLng=Le,i.latLngBounds=ve,i.layerGroup=qs,i.map=Th,i.marker=Zh,i.point=ce,i.polygon=Ph,i.polyline=Dh,i.popup=Yo,i.rectangle=Yh,i.setOptions=k,i.stamp=g,i.svg=Ns,i.svgOverlay=Za,i.tileLayer=Cs,i.tooltip=gi,i.transformation=ur,i.version=t,i.videoOverlay=Xh;var Jh=window.L;i.noConflict=function(){return window.L=Jh,this},window.L=i})});var C2=0,tu=class{constructor(t,e){this.from=t,this.to=e}},at=class{constructor(t={}){this.id=C2++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=vr.match(t)),e=>{let o=t(e);return o===void 0?null:[this,o]}}};at.closedBy=new at({deserialize:i=>i.split(" ")});at.openedBy=new at({deserialize:i=>i.split(" ")});at.group=new at({deserialize:i=>i.split(" ")});at.isolate=new at({deserialize:i=>{if(i&&i!="rtl"&&i!="ltr"&&i!="auto")throw new RangeError("Invalid value for isolate: "+i);return i||"auto"}});at.contextHash=new at({perNode:!0});at.lookAhead=new at({perNode:!0});at.mounted=new at({perNode:!0});var yl=class{constructor(t,e,o,n=!1){this.tree=t,this.overlay=e,this.parser=o,this.bracketed=n}static get(t){return t&&t.props&&t.props[at.mounted.id]}},I2=Object.create(null),vr=class i{constructor(t,e,o,n=0){this.name=t,this.props=e,this.id=o,this.flags=n}static define(t){let e=t.props&&t.props.length?Object.create(null):I2,o=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),n=new i(t.name||"",e,t.id,o);if(t.props){for(let c of t.props)if(Array.isArray(c)||(c=c(n)),c){if(c[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[c[0].id]=c[1]}}return n}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let e=this.prop(at.group);return e?e.indexOf(t)>-1:!1}return this.id==t}static match(t){let e=Object.create(null);for(let o in t)for(let n of o.split(" "))e[n]=t[o];return o=>{for(let n=o.prop(at.group),c=-1;c<(n?n.length:0);c++){let g=e[c<0?o.name:n[c]];if(g)return g}}}};vr.none=new vr("",Object.create(null),0,8);var mf=class i{constructor(t){this.types=t;for(let e=0;e<t.length;e++)if(t[e].id!=e)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let o of this.types){let n=null;for(let c of t){let g=c(o);if(g){n||(n=Object.assign({},o.props));let w=g[1],y=g[0];y.combine&&y.id in n&&(w=y.combine(n[y.id],w)),n[y.id]=w}}e.push(n?new vr(o.name,n,o.id,o.flags):o)}return new i(e)}},df=new WeakMap,jI=new WeakMap,hi;(function(i){i[i.ExcludeBuffers=1]="ExcludeBuffers",i[i.IncludeAnonymous=2]="IncludeAnonymous",i[i.IgnoreMounts=4]="IgnoreMounts",i[i.IgnoreOverlays=8]="IgnoreOverlays",i[i.EnterBracketed=16]="EnterBracketed"})(hi||(hi={}));var Yt=class i{constructor(t,e,o,n,c){if(this.type=t,this.children=e,this.positions=o,this.length=n,this.props=null,c&&c.length){this.props=Object.create(null);for(let[g,w]of c)this.props[typeof g=="number"?g:g.id]=w}}toString(){let t=yl.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let o of this.children){let n=o.toString();n&&(e&&(e+=","),e+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new ou(this.topNode,t)}cursorAt(t,e=0,o=0){let n=df.get(this)||this.topNode,c=new ou(n);return c.moveTo(t,e),df.set(this,c._tree),c}get topNode(){return new Ts(this,0,0,null)}resolve(t,e=0){let o=iu(df.get(this)||this.topNode,t,e,!1);return df.set(this,o),o}resolveInner(t,e=0){let o=iu(jI.get(this)||this.topNode,t,e,!0);return jI.set(this,o),o}resolveStack(t,e=0){return A2(this,t,e)}iterate(t){let{enter:e,leave:o,from:n=0,to:c=this.length}=t,g=t.mode||0,w=(g&hi.IncludeAnonymous)>0;for(let y=this.cursor(g|hi.IncludeAnonymous);;){let A=!1;if(y.from<=c&&y.to>=n&&(!w&&y.type.isAnonymous||e(y)!==!1)){if(y.firstChild())continue;A=!0}for(;A&&o&&(w||!y.type.isAnonymous)&&o(y),!y.nextSibling();){if(!y.parent())return;A=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:hy(vr.none,this.children,this.positions,0,this.children.length,0,this.length,(e,o,n)=>new i(this.type,e,o,n,this.propValues),t.makeTree||((e,o,n)=>new i(vr.none,e,o,n)))}static build(t){return N2(t)}};Yt.empty=new Yt(vr.none,[],[],0);var oy=class i{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new i(this.buffer,this.index)}},$n=class i{constructor(t,e,o){this.buffer=t,this.length=e,this.set=o}get type(){return vr.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],o=this.buffer[t+3],n=this.set.types[e],c=n.name;if(/\W/.test(c)&&!n.isError&&(c=JSON.stringify(c)),t+=4,o==t)return c;let g=[];for(;t<o;)g.push(this.childString(t)),t=this.buffer[t+3];return c+"("+g.join(",")+")"}findChild(t,e,o,n,c){let{buffer:g}=this,w=-1;for(let y=t;y!=e&&!(KI(c,n,g[y+1],g[y+2])&&(w=y,o>0));y=g[y+3]);return w}slice(t,e,o){let n=this.buffer,c=new Uint16Array(e-t),g=0;for(let w=t,y=0;w<e;){c[y++]=n[w++],c[y++]=n[w++]-o;let A=c[y++]=n[w++]-o;c[y++]=n[w++]-t,g=Math.max(g,A)}return new i(c,g,this.set)}};function KI(i,t,e,o){switch(i){case-2:return e<t;case-1:return o>=t&&e<t;case 0:return e<t&&o>t;case 1:return e<=t&&o>t;case 2:return o>t;case 4:return!0}}function iu(i,t,e,o){for(var n;i.from==i.to||(e<1?i.from>=t:i.from>t)||(e>-1?i.to<=t:i.to<t);){let g=!o&&i instanceof Ts&&i.index<0?null:i.parent;if(!g)return i;i=g}let c=o?0:hi.IgnoreOverlays;if(o)for(let g=i,w=g.parent;w;g=w,w=g.parent)g instanceof Ts&&g.index<0&&((n=w.enter(t,e,c))===null||n===void 0?void 0:n.from)!=g.from&&(i=w);for(;;){let g=i.enter(t,e,c);if(!g)return i;i=g}}var bf=class{cursor(t=0){return new ou(this,t)}getChild(t,e=null,o=null){let n=$I(this,t,e,o);return n.length?n[0]:null}getChildren(t,e=null,o=null){return $I(this,t,e,o)}resolve(t,e=0){return iu(this,t,e,!1)}resolveInner(t,e=0){return iu(this,t,e,!0)}matchContext(t){return sy(this.parent,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),o=this;for(;e;){let n=e.lastChild;if(!n||n.to!=e.to)break;n.type.isError&&n.from==n.to?(o=e,e=n.prevSibling):e=n}return o}get node(){return this}get next(){return this.parent}},Ts=class i extends bf{constructor(t,e,o,n){super(),this._tree=t,this.from=e,this.index=o,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,e,o,n,c=0){for(let g=this;;){for(let{children:w,positions:y}=g._tree,A=e>0?w.length:-1;t!=A;t+=e){let R=w[t],T=y[t]+g.from,F;if(!(!(c&hi.EnterBracketed&&R instanceof Yt&&(F=yl.get(R))&&!F.overlay&&F.bracketed&&o>=T&&o<=T+R.length)&&!KI(n,o,T,T+R.length))){if(R instanceof $n){if(c&hi.ExcludeBuffers)continue;let k=R.findChild(0,R.buffer.length,e,o-T,n);if(k>-1)return new ru(new ny(g,R,t,T),null,k)}else if(c&hi.IncludeAnonymous||!R.type.isAnonymous||cy(R)){let k;if(!(c&hi.IgnoreMounts)&&(k=yl.get(R))&&!k.overlay)return new i(k.tree,T,t,g);let G=new i(R,T,t,g);return c&hi.IncludeAnonymous||!G.type.isAnonymous?G:G.nextChild(e<0?R.children.length-1:0,e,o,n,c)}}}if(c&hi.IncludeAnonymous||!g.type.isAnonymous||(g.index>=0?t=g.index+e:t=e<0?-1:g._parent._tree.children.length,g=g._parent,!g))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,e,o=0){let n;if(!(o&hi.IgnoreOverlays)&&(n=yl.get(this._tree))&&n.overlay){let c=t-this.from,g=o&hi.EnterBracketed&&n.bracketed;for(let{from:w,to:y}of n.overlay)if((e>0||g?w<=c:w<c)&&(e<0||g?y>=c:y>c))return new i(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,o)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function $I(i,t,e,o){let n=i.cursor(),c=[];if(!n.firstChild())return c;if(e!=null){for(let g=!1;!g;)if(g=n.type.is(e),!n.nextSibling())return c}for(;;){if(o!=null&&n.type.is(o))return c;if(n.type.is(t)&&c.push(n.node),!n.nextSibling())return o==null?c:[]}}function sy(i,t,e=t.length-1){for(let o=i;e>=0;o=o.parent){if(!o)return!1;if(!o.type.isAnonymous){if(t[e]&&t[e]!=o.name)return!1;e--}}return!0}var ny=class{constructor(t,e,o,n){this.parent=t,this.buffer=e,this.index=o,this.start=n}},ru=class i extends bf{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,o){super(),this.context=t,this._parent=e,this.index=o,this.type=t.buffer.set.types[t.buffer.buffer[o]]}child(t,e,o){let{buffer:n}=this.context,c=n.findChild(this.index+4,n.buffer[this.index+3],t,e-this.context.start,o);return c<0?null:new i(this.context,this,c)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,e,o=0){if(o&hi.ExcludeBuffers)return null;let{buffer:n}=this.context,c=n.findChild(this.index+4,n.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return c<0?null:new i(this.context,this,c)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new i(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new i(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:o}=this.context,n=this.index+4,c=o.buffer[this.index+3];if(c>n){let g=o.buffer[this.index+1];t.push(o.slice(n,c,g)),e.push(0)}return new Yt(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function eA(i){if(!i.length)return null;let t=0,e=i[0];for(let c=1;c<i.length;c++){let g=i[c];(g.from>e.from||g.to<e.to)&&(e=g,t=c)}let o=e instanceof Ts&&e.index<0?null:e.parent,n=i.slice();return o?n[t]=o:n.splice(t,1),new ay(n,e)}var ay=class{constructor(t,e){this.heads=t,this.node=e}get next(){return eA(this.heads)}};function A2(i,t,e){let o=i.resolveInner(t,e),n=null;for(let c=o instanceof Ts?o:o.context.parent;c;c=c.parent)if(c.index<0){let g=c.parent;(n||(n=[o])).push(g.resolve(t,e)),c=g}else{let g=yl.get(c.tree);if(g&&g.overlay&&g.overlay[0].from<=t&&g.overlay[g.overlay.length-1].to>=t){let w=new Ts(g.tree,g.overlay[0].from+c.from,-1,c);(n||(n=[o])).push(iu(w,t,e,!1))}}return n?eA(n):o}var ou=class{get name(){return this.type.name}constructor(t,e=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=e&~hi.EnterBracketed,t instanceof Ts)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let o=t._parent;o;o=o._parent)this.stack.unshift(o.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,e){this.index=t;let{start:o,buffer:n}=this.buffer;return this.type=e||n.set.types[n.buffer[t]],this.from=o+n.buffer[t+1],this.to=o+n.buffer[t+2],!0}yield(t){return t?t instanceof Ts?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,o){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,o,this.mode));let{buffer:n}=this.buffer,c=n.findChild(this.index+4,n.buffer[this.index+3],t,e-this.buffer.start,o);return c<0?!1:(this.stack.push(this.index),this.yieldBuf(c))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,o=this.mode){return this.buffer?o&hi.ExcludeBuffers?!1:this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,o))}parent(){if(!this.buffer)return this.yieldNode(this.mode&hi.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&hi.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:e}=this.buffer,o=this.stack.length-1;if(t<0){let n=o<0?0:this.stack[o]+4;if(this.index!=n)return this.yieldBuf(e.findChild(n,this.index,-1,0,4))}else{let n=e.buffer[this.index+3];if(n<(o<0?e.buffer.length:e.buffer[this.stack[o]+3]))return this.yieldBuf(n)}return o<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,o,{buffer:n}=this;if(n){if(t>0){if(this.index<n.buffer.buffer.length)return!1}else for(let c=0;c<this.index;c++)if(n.buffer.buffer[c+3]<this.index)return!1;({index:e,parent:o}=n)}else({index:e,_parent:o}=this._tree);for(;o;{index:e,_parent:o}=o)if(e>-1)for(let c=e+t,g=t<0?-1:o._tree.children.length;c!=g;c+=t){let w=o._tree.children[c];if(this.mode&hi.IncludeAnonymous||w instanceof $n||!w.type.isAnonymous||cy(w))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,o=0;if(t&&t.context==this.buffer)e:for(let n=this.index,c=this.stack.length;c>=0;){for(let g=t;g;g=g._parent)if(g.index==n){if(n==this.index)return g;e=g,o=c+1;break e}n=this.stack[--c]}for(let n=o;n<this.stack.length;n++)e=new ru(this.buffer,e,this.stack[n]);return this.bufferNode=new ru(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let o=0;;){let n=!1;if(this.type.isAnonymous||t(this)!==!1){if(this.firstChild()){o++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&e&&e(this),n=this.type.isAnonymous,!o)return;if(this.nextSibling())break;this.parent(),o--,n=!0}}}matchContext(t){if(!this.buffer)return sy(this.node.parent,t);let{buffer:e}=this.buffer,{types:o}=e.set;for(let n=t.length-1,c=this.stack.length-1;n>=0;c--){if(c<0)return sy(this._tree,t,n);let g=o[e.buffer[this.stack[c]]];if(!g.isAnonymous){if(t[n]&&t[n]!=g.name)return!1;n--}}return!0}};function cy(i){return i.children.some(t=>t instanceof $n||!t.type.isAnonymous||cy(t))}function N2(i){var t;let{buffer:e,nodeSet:o,maxBufferLength:n=1024,reused:c=[],minRepeatType:g=o.types.length}=i,w=Array.isArray(e)?new oy(e,e.length):e,y=o.types,A=0,R=0;function T(J,te,ae,me,Ee,Pe){let{id:Re,start:Ie,end:Ye,size:Oe}=w,de=R,ue=A;if(Oe<0)if(w.next(),Oe==-1){let Xe=c[Re];ae.push(Xe),me.push(Ie-J);return}else if(Oe==-3){A=Re;return}else if(Oe==-4){R=Re;return}else throw new RangeError(`Unrecognized record size: ${Oe}`);let dt=y[Re],ce,Be,qe=Ie-J;if(Ye-Ie<=n&&(Be=P(w.pos-te,Ee))){let Xe=new Uint16Array(Be.size-Be.skip),ve=w.pos-Be.size,fe=Xe.length;for(;w.pos>ve;)fe=Q(Be.start,Xe,fe);ce=new $n(Xe,Ye-Be.start,o),qe=Be.start-J}else{let Xe=w.pos-Oe;w.next();let ve=[],fe=[],Le=Re>=g?Re:-1,_e=0,bt=Ye;for(;w.pos>Xe;)Le>=0&&w.id==Le&&w.size>=0?(w.end<=bt-n&&(G(ve,fe,Ie,_e,w.end,bt,Le,de,ue),_e=ve.length,bt=w.end),w.next()):Pe>2500?F(Ie,Xe,ve,fe):T(Ie,Xe,ve,fe,Le,Pe+1);if(Le>=0&&_e>0&&_e<ve.length&&G(ve,fe,Ie,_e,Ie,bt,Le,de,ue),ve.reverse(),fe.reverse(),Le>-1&&_e>0){let $t=k(dt,ue);ce=hy(dt,ve,fe,0,ve.length,0,Ye-Ie,$t,$t)}else ce=W(dt,ve,fe,Ye-Ie,de-Ye,ue)}ae.push(ce),me.push(qe)}function F(J,te,ae,me){let Ee=[],Pe=0,Re=-1;for(;w.pos>te;){let{id:Ie,start:Ye,end:Oe,size:de}=w;if(de>4)w.next();else{if(Re>-1&&Ye<Re)break;Re<0&&(Re=Oe-n),Ee.push(Ie,Ye,Oe),Pe++,w.next()}}if(Pe){let Ie=new Uint16Array(Pe*4),Ye=Ee[Ee.length-2];for(let Oe=Ee.length-3,de=0;Oe>=0;Oe-=3)Ie[de++]=Ee[Oe],Ie[de++]=Ee[Oe+1]-Ye,Ie[de++]=Ee[Oe+2]-Ye,Ie[de++]=de;ae.push(new $n(Ie,Ee[2]-Ye,o)),me.push(Ye-J)}}function k(J,te){return(ae,me,Ee)=>{let Pe=0,Re=ae.length-1,Ie,Ye;if(Re>=0&&(Ie=ae[Re])instanceof Yt){if(!Re&&Ie.type==J&&Ie.length==Ee)return Ie;(Ye=Ie.prop(at.lookAhead))&&(Pe=me[Re]+Ie.length+Ye)}return W(J,ae,me,Ee,Pe,te)}}function G(J,te,ae,me,Ee,Pe,Re,Ie,Ye){let Oe=[],de=[];for(;J.length>me;)Oe.push(J.pop()),de.push(te.pop()+ae-Ee);J.push(W(o.types[Re],Oe,de,Pe-Ee,Ie-Pe,Ye)),te.push(Ee-ae)}function W(J,te,ae,me,Ee,Pe,Re){if(Pe){let Ie=[at.contextHash,Pe];Re=Re?[Ie].concat(Re):[Ie]}if(Ee>25){let Ie=[at.lookAhead,Ee];Re=Re?[Ie].concat(Re):[Ie]}return new Yt(J,te,ae,me,Re)}function P(J,te){let ae=w.fork(),me=0,Ee=0,Pe=0,Re=ae.end-n,Ie={size:0,start:0,skip:0};e:for(let Ye=ae.pos-J;ae.pos>Ye;){let Oe=ae.size;if(ae.id==te&&Oe>=0){Ie.size=me,Ie.start=Ee,Ie.skip=Pe,Pe+=4,me+=4,ae.next();continue}let de=ae.pos-Oe;if(Oe<0||de<Ye||ae.start<Re)break;let ue=ae.id>=g?4:0,dt=ae.start;for(ae.next();ae.pos>de;){if(ae.size<0)if(ae.size==-3||ae.size==-4)ue+=4;else break e;else ae.id>=g&&(ue+=4);ae.next()}Ee=dt,me+=Oe,Pe+=ue}return(te<0||me==J)&&(Ie.size=me,Ie.start=Ee,Ie.skip=Pe),Ie.size>4?Ie:void 0}function Q(J,te,ae){let{id:me,start:Ee,end:Pe,size:Re}=w;if(w.next(),Re>=0&&me<g){let Ie=ae;if(Re>4){let Ye=w.pos-(Re-4);for(;w.pos>Ye;)ae=Q(J,te,ae)}te[--ae]=Ie,te[--ae]=Pe-J,te[--ae]=Ee-J,te[--ae]=me}else Re==-3?A=me:Re==-4&&(R=me);return ae}let H=[],re=[];for(;w.pos>0;)T(i.start||0,i.bufferStart||0,H,re,-1,0);let K=(t=i.length)!==null&&t!==void 0?t:H.length?re[0]+H[0].length:0;return new Yt(y[i.topID],H.reverse(),re.reverse(),K)}var qI=new WeakMap;function gf(i,t){if(!i.isAnonymous||t instanceof $n||t.type!=i)return 1;let e=qI.get(t);if(e==null){e=1;for(let o of t.children){if(o.type!=i||!(o instanceof Yt)){e=1;break}e+=gf(i,o)}qI.set(t,e)}return e}function hy(i,t,e,o,n,c,g,w,y){let A=0;for(let G=o;G<n;G++)A+=gf(i,t[G]);let R=Math.ceil(A*1.5/8),T=[],F=[];function k(G,W,P,Q,H){for(let re=P;re<Q;){let K=re,J=W[re],te=gf(i,G[re]);for(re++;re<Q;re++){let ae=gf(i,G[re]);if(te+ae>=R)break;te+=ae}if(re==K+1){if(te>R){let ae=G[K];k(ae.children,ae.positions,0,ae.children.length,W[K]+H);continue}T.push(G[K])}else{let ae=W[re-1]+G[re-1].length-J;T.push(hy(i,G,W,K,re,J,ae,null,y))}F.push(J+H-c)}}return k(t,e,o,n,0),(w||y)(T,F,g)}var El=class i{constructor(t,e,o,n,c=!1,g=!1){this.from=t,this.to=e,this.tree=o,this.offset=n,this.open=(c?1:0)|(g?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,e=[],o=!1){let n=[new i(0,t.length,t,0,!1,o)];for(let c of e)c.to>t.length&&n.push(c);return n}static applyChanges(t,e,o=128){if(!e.length)return t;let n=[],c=1,g=t.length?t[0]:null;for(let w=0,y=0,A=0;;w++){let R=w<e.length?e[w]:null,T=R?R.fromA:1e9;if(T-y>=o)for(;g&&g.from<T;){let F=g;if(y>=F.from||T<=F.to||A){let k=Math.max(F.from,y)-A,G=Math.min(F.to,T)-A;F=k>=G?null:new i(k,G,F.tree,F.offset+A,w>0,!!R)}if(F&&n.push(F),g.to>T)break;g=c<t.length?t[c++]:null}if(!R)break;y=R.toA,A=R.toA-R.toB}return n}},su=class{startParse(t,e,o){return typeof t=="string"&&(t=new ly(t)),o=o?o.length?o.map(n=>new tu(n.from,n.to)):[new tu(0,0)]:[new tu(0,t.length)],this.createParse(t,e||[],o)}parse(t,e,o){let n=this.startParse(t,e,o);for(;;){let c=n.advance();if(c)return c}}},ly=class{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}};var tX=new at({perNode:!0});var uy=[],oA=[];(()=>{let i="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,3,,4,7,2,b,2,f,,c,4,1j,2,,7,,3,,4,9,,a,2,t,3,1y,,4,6,,,,8,i,2,1p,,,8,c,8,2q,,,a,b,7,21,2,r,,,,,,4,2,1d,k,,2,5,b,,10,9,,2u,b,,6,n,4,4,3,g,4,d,,,3,6,,f,,jj,3,qa,4,s,3,t,2,u,2,1s,w,9,,19,3,,,39,2,y,,3a,c,4,c,63,5,1l,a,,,,,2,o,2,,1c,1a,2,c,k,5,1b,h,12,9,c,3,u,d,1k,e,1c,k,48,3,,l,4,,6,,2,3,5i,1s,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,n,5,4,,2b,2,1e,i,q,i,d,,12,8,p,d,18,4,1b,e,10,,1v,e,c,,8,2,1a,,1f,,,3,2,2,5,2,,,15,5,5,2,6k,8,,2,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,1t,5,8t,2,25,6,1y,b,1d,4,3e,3,1h,f,15,,2,2,a,4,19,b,7,,1p,3,10,e,g,2,18,,c,3,1c,e,8,4,,2,2k,c,6,,2,,4d,c,l,4,1j,2,,7,2,2,2,3,9,,a,2,2,7,3,5,1v,9,,,2,,,4,,5,,,e,2,2a,i,n,,29,k,6j,7,2,9,r,2,2a,h,2y,d,2t,3,2,a,74,f,6t,6,,2,2,4,,,,2,3x,7,2,7,3,,s,a,14,7,,4,8,,9,b,1a,g,5i,8,5j,8,,8,2a,m,,e,3e,6,3,,,2,,7,,,1u,5,,2,,5,9n,4,9,2,,,1c,7,3,5,n,,44l,,6,f,8ug,i,1xc,5,1n,7,t4,,,1j,7,4,29,,b,2,f57,2,3mp,1a,2,n,f2,5,3,6,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,2s,,4g,7,af,,1p,4,e4,4,72,2,6r,,2,,7,2,5,,d6,7,31,7,240,5".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,e=0;t<i.length;t++)(t%2?oA:uy).push(e=e+i[t])})();function R2(i){if(i<768)return!1;for(let t=0,e=uy.length;;){let o=t+e>>1;if(i<uy[o])e=o;else if(i>=oA[o])t=o+1;else return!0;if(t==e)return!1}}function tA(i){return i>=127462&&i<=127487}var iA=8205;function sA(i,t,e=!0,o=!0){return(e?nA:T2)(i,t,o)}function nA(i,t,e){if(t==i.length)return t;t&&aA(i.charCodeAt(t))&&lA(i.charCodeAt(t-1))&&t--;let o=py(i,t);for(t+=rA(o);t<i.length;){let n=py(i,t);if(o==iA||n==iA||e&&R2(n))t+=rA(n),o=n;else if(tA(n)){let c=0,g=t-2;for(;g>=0&&tA(py(i,g));)c++,g-=2;if(c%2==0)break;t+=2}else break}return t}function T2(i,t,e){for(;t>1;){let o=nA(i,t-2,e);if(o<t)return o;t--}return 0}function py(i,t){let e=i.charCodeAt(t);if(!lA(e)||t+1==i.length)return e;let o=i.charCodeAt(t+1);return aA(o)?(e-55296<<10)+(o-56320)+65536:e}function aA(i){return i>=56320&&i<57344}function lA(i){return i>=55296&&i<56320}function rA(i){return i<65536?1:2}var gt=class i{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,o){[t,e]=Uc(this,t,e);let n=[];return this.decompose(0,t,n,2),o.length&&o.decompose(0,o.length,n,3),this.decompose(e,this.length,n,1),kc.from(n,this.length-(e-t)+o.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=Uc(this,t,e);let o=[];return this.decompose(t,e,o,0),kc.from(o,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),o=this.length-this.scanIdentical(t,-1),n=new Nl(this),c=new Nl(t);for(let g=e,w=e;;){if(n.next(g),c.next(g),g=0,n.lineBreak!=c.lineBreak||n.done!=c.done||n.value!=c.value)return!1;if(w+=n.value.length,n.done||w>=o)return!0}}iter(t=1){return new Nl(this,t)}iterRange(t,e=this.length){return new Ef(this,t,e)}iterLines(t,e){let o;if(t==null)o=this.iter();else{e==null&&(e=this.lines+1);let n=this.line(t).from;o=this.iterRange(n,Math.max(n,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new Cf(o)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?i.empty:t.length<=32?new co(t):kc.from(co.split(t,[]))}},co=class i extends gt{constructor(t,e=S2(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,o,n){for(let c=0;;c++){let g=this.text[c],w=n+g.length;if((e?o:w)>=t)return new dy(n,w,o,g);n=w+1,o++}}decompose(t,e,o,n){let c=t<=0&&e>=this.length?this:new i(cA(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(n&1){let g=o.pop(),w=yf(c.text,g.text.slice(),0,c.length);if(w.length<=32)o.push(new i(w,g.length+c.length));else{let y=w.length>>1;o.push(new i(w.slice(0,y)),new i(w.slice(y)))}}else o.push(c)}replace(t,e,o){if(!(o instanceof i))return super.replace(t,e,o);[t,e]=Uc(this,t,e);let n=yf(this.text,yf(o.text,cA(this.text,0,t)),e),c=this.length+o.length-(e-t);return n.length<=32?new i(n,c):kc.from(i.split(n,[]),c)}sliceString(t,e=this.length,o=`
8
+ `){[t,e]=Uc(this,t,e);let n="";for(let c=0,g=0;c<=e&&g<this.text.length;g++){let w=this.text[g],y=c+w.length;c>t&&g&&(n+=o),t<y&&e>c&&(n+=w.slice(Math.max(0,t-c),e-c)),c=y+1}return n}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let o=[],n=-1;for(let c of t)o.push(c),n+=c.length+1,o.length==32&&(e.push(new i(o,n)),o=[],n=-1);return n>-1&&e.push(new i(o,n)),e}},kc=class i extends gt{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let o of t)this.lines+=o.lines}lineInner(t,e,o,n){for(let c=0;;c++){let g=this.children[c],w=n+g.length,y=o+g.lines-1;if((e?y:w)>=t)return g.lineInner(t,e,o,n);n=w+1,o=y+1}}decompose(t,e,o,n){for(let c=0,g=0;g<=e&&c<this.children.length;c++){let w=this.children[c],y=g+w.length;if(t<=y&&e>=g){let A=n&((g<=t?1:0)|(y>=e?2:0));g>=t&&y<=e&&!A?o.push(w):w.decompose(t-g,e-g,o,A)}g=y+1}}replace(t,e,o){if([t,e]=Uc(this,t,e),o.lines<this.lines)for(let n=0,c=0;n<this.children.length;n++){let g=this.children[n],w=c+g.length;if(t>=c&&e<=w){let y=g.replace(t-c,e-c,o),A=this.lines-g.lines+y.lines;if(y.lines<A>>4&&y.lines>A>>6){let R=this.children.slice();return R[n]=y,new i(R,this.length-(e-t)+o.length)}return super.replace(c,w,y)}c=w+1}return super.replace(t,e,o)}sliceString(t,e=this.length,o=`
9
+ `){[t,e]=Uc(this,t,e);let n="";for(let c=0,g=0;c<this.children.length&&g<=e;c++){let w=this.children[c],y=g+w.length;g>t&&c&&(n+=o),t<y&&e>g&&(n+=w.sliceString(t-g,e-g,o)),g=y+1}return n}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof i))return 0;let o=0,[n,c,g,w]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;n+=e,c+=e){if(n==g||c==w)return o;let y=this.children[n],A=t.children[c];if(y!=A)return o+y.scanIdentical(A,e);o+=y.length+1}}static from(t,e=t.reduce((o,n)=>o+n.length+1,-1)){let o=0;for(let k of t)o+=k.lines;if(o<32){let k=[];for(let G of t)G.flatten(k);return new co(k,e)}let n=Math.max(32,o>>5),c=n<<1,g=n>>1,w=[],y=0,A=-1,R=[];function T(k){let G;if(k.lines>c&&k instanceof i)for(let W of k.children)T(W);else k.lines>g&&(y>g||!y)?(F(),w.push(k)):k instanceof co&&y&&(G=R[R.length-1])instanceof co&&k.lines+G.lines<=32?(y+=k.lines,A+=k.length+1,R[R.length-1]=new co(G.text.concat(k.text),G.length+1+k.length)):(y+k.lines>n&&F(),y+=k.lines,A+=k.length+1,R.push(k))}function F(){y!=0&&(w.push(R.length==1?R[0]:i.from(R,A)),A=-1,y=R.length=0)}for(let k of t)T(k);return F(),w.length==1?w[0]:new i(w,e)}};gt.empty=new co([""],0);function S2(i){let t=-1;for(let e of i)t+=e.length+1;return t}function yf(i,t,e=0,o=1e9){for(let n=0,c=0,g=!0;c<i.length&&n<=o;c++){let w=i[c],y=n+w.length;y>=e&&(y>o&&(w=w.slice(0,o-n)),n<e&&(w=w.slice(e-n)),g?(t[t.length-1]+=w,g=!1):t.push(w)),n=y+1}return t}function cA(i,t,e){return yf(i,[""],t,e)}var Nl=class{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof co?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let o=this.nodes.length-1,n=this.nodes[o],c=this.offsets[o],g=c>>1,w=n instanceof co?n.text.length:n.children.length;if(g==(e>0?w:0)){if(o==0)return this.done=!0,this.value="",this;e>0&&this.offsets[o-1]++,this.nodes.pop(),this.offsets.pop()}else if((c&1)==(e>0?0:1)){if(this.offsets[o]+=e,t==0)return this.lineBreak=!0,this.value=`
10
+ `,this;t--}else if(n instanceof co){let y=n.text[g+(e<0?-1:0)];if(this.offsets[o]+=e,y.length>Math.max(0,t))return this.value=t==0?y:e>0?y.slice(t):y.slice(0,y.length-t),this;t-=y.length}else{let y=n.children[g+(e<0?-1:0)];t>y.length?(t-=y.length,this.offsets[o]+=e):(e<0&&this.offsets[o]--,this.nodes.push(y),this.offsets.push(e>0?1:(y instanceof co?y.text.length:y.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}},Ef=class{constructor(t,e,o){this.value="",this.done=!1,this.cursor=new Nl(t,e>o?-1:1),this.pos=e>o?t.length:0,this.from=Math.min(e,o),this.to=Math.max(e,o)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let o=e<0?this.pos-this.from:this.to-this.pos;t>o&&(t=o),o-=t;let{value:n}=this.cursor.next(t);return this.pos+=(n.length+t)*e,this.value=n.length<=o?n:e<0?n.slice(n.length-o):n.slice(0,o),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Cf=class{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:o,value:n}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):o?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(gt.prototype[Symbol.iterator]=function(){return this.iter()},Nl.prototype[Symbol.iterator]=Ef.prototype[Symbol.iterator]=Cf.prototype[Symbol.iterator]=function(){return this});var dy=class{constructor(t,e,o,n){this.from=t,this.to=e,this.number=o,this.text=n}get length(){return this.to-this.from}};function Uc(i,t,e){return t=Math.max(0,Math.min(i.length,t)),[t,Math.max(t,Math.min(i.length,e))]}function wi(i,t,e=!0,o=!0){return sA(i,t,e,o)}function L2(i){return i>=56320&&i<57344}function B2(i){return i>=55296&&i<56320}function hr(i,t){let e=i.charCodeAt(t);if(!B2(e)||t+1==i.length)return e;let o=i.charCodeAt(t+1);return L2(o)?(e-55296<<10)+(o-56320)+65536:e}function pu(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}function ho(i){return i<65536?1:2}var gy=/\r\n?|\n/,lr=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(lr||(lr={})),gn=class i{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let o=this.sections[e+1];t+=o<0?this.sections[e]:o}return t}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(t){for(let e=0,o=0,n=0;e<this.sections.length;){let c=this.sections[e++],g=this.sections[e++];g<0?(t(o,n,c),n+=c):n+=g,o+=c}}iterChangedRanges(t,e=!1){my(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let o=this.sections[e++],n=this.sections[e++];n<0?t.push(o,n):t.push(n,o)}return new i(t)}composeDesc(t){return this.empty?t:t.empty?this:dA(this,t)}mapDesc(t,e=!1){return t.empty?this:by(this,t,e)}mapPos(t,e=-1,o=lr.Simple){let n=0,c=0;for(let g=0;g<this.sections.length;){let w=this.sections[g++],y=this.sections[g++],A=n+w;if(y<0){if(A>t)return c+(t-n);c+=w}else{if(o!=lr.Simple&&A>=t&&(o==lr.TrackDel&&n<t&&A>t||o==lr.TrackBefore&&n<t||o==lr.TrackAfter&&A>t))return null;if(A>t||A==t&&e<0&&!w)return t==n||e<0?c:c+y;c+=y}n=A}if(t>n)throw new RangeError(`Position ${t} is out of range for changeset of length ${n}`);return c}touchesRange(t,e=t){for(let o=0,n=0;o<this.sections.length&&n<=e;){let c=this.sections[o++],g=this.sections[o++],w=n+c;if(g>=0&&n<=e&&w>=t)return n<t&&w>e?"cover":!0;n=w}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let o=this.sections[e++],n=this.sections[e++];t+=(t?" ":"")+o+(n>=0?":"+n:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new i(t)}static create(t){return new i(t)}},yr=class i extends gn{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return my(this,(e,o,n,c,g)=>t=t.replace(n,n+(o-e),g),!1),t}mapDesc(t,e=!1){return by(this,t,e,!0)}invert(t){let e=this.sections.slice(),o=[];for(let n=0,c=0;n<e.length;n+=2){let g=e[n],w=e[n+1];if(w>=0){e[n]=w,e[n+1]=g;let y=n>>1;for(;o.length<y;)o.push(gt.empty);o.push(g?t.slice(c,c+g):gt.empty)}c+=g}return new i(e,o)}compose(t){return this.empty?t:t.empty?this:dA(this,t,!0)}map(t,e=!1){return t.empty?this:by(this,t,e,!0)}iterChanges(t,e=!1){my(this,t,e)}get desc(){return gn.create(this.sections)}filter(t){let e=[],o=[],n=[],c=new Rl(this);e:for(let g=0,w=0;;){let y=g==t.length?1e9:t[g++];for(;w<y||w==y&&c.len==0;){if(c.done)break e;let R=Math.min(c.len,y-w);ar(n,R,-1);let T=c.ins==-1?-1:c.off==0?c.ins:0;ar(e,R,T),T>0&&qn(o,e,c.text),c.forward(R),w+=R}let A=t[g++];for(;w<A;){if(c.done)break e;let R=Math.min(c.len,A-w);ar(e,R,-1),ar(n,R,c.ins==-1?-1:c.off==0?c.ins:0),c.forward(R),w+=R}}return{changes:new i(e,o),filtered:gn.create(n)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let o=this.sections[e],n=this.sections[e+1];n<0?t.push(o):n==0?t.push([o]):t.push([o].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,o){let n=[],c=[],g=0,w=null;function y(R=!1){if(!R&&!n.length)return;g<e&&ar(n,e-g,-1);let T=new i(n,c);w=w?w.compose(T.map(w)):T,n=[],c=[],g=0}function A(R){if(Array.isArray(R))for(let T of R)A(T);else if(R instanceof i){if(R.length!=e)throw new RangeError(`Mismatched change set length (got ${R.length}, expected ${e})`);y(),w=w?w.compose(R.map(w)):R}else{let{from:T,to:F=T,insert:k}=R;if(T>F||T<0||F>e)throw new RangeError(`Invalid change range ${T} to ${F} (in doc of length ${e})`);let G=k?typeof k=="string"?gt.of(k.split(o||gy)):k:gt.empty,W=G.length;if(T==F&&W==0)return;T<g&&y(),T>g&&ar(n,T-g,-1),ar(n,F-T,W),qn(c,n,G),g=F}}return A(t),y(!w),w}static empty(t){return new i(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],o=[];for(let n=0;n<t.length;n++){let c=t[n];if(typeof c=="number")e.push(c,-1);else{if(!Array.isArray(c)||typeof c[0]!="number"||c.some((g,w)=>w&&typeof g!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(c.length==1)e.push(c[0],0);else{for(;o.length<n;)o.push(gt.empty);o[n]=gt.of(c.slice(1)),e.push(c[0],o[n].length)}}}return new i(e,o)}static createSet(t,e){return new i(t,e)}};function ar(i,t,e,o=!1){if(t==0&&e<=0)return;let n=i.length-2;n>=0&&e<=0&&e==i[n+1]?i[n]+=t:n>=0&&t==0&&i[n]==0?i[n+1]+=e:o?(i[n]+=t,i[n+1]+=e):i.push(t,e)}function qn(i,t,e){if(e.length==0)return;let o=t.length-2>>1;if(o<i.length)i[i.length-1]=i[i.length-1].append(e);else{for(;i.length<o;)i.push(gt.empty);i.push(e)}}function my(i,t,e){let o=i.inserted;for(let n=0,c=0,g=0;g<i.sections.length;){let w=i.sections[g++],y=i.sections[g++];if(y<0)n+=w,c+=w;else{let A=n,R=c,T=gt.empty;for(;A+=w,R+=y,y&&o&&(T=T.append(o[g-2>>1])),!(e||g==i.sections.length||i.sections[g+1]<0);)w=i.sections[g++],y=i.sections[g++];t(n,A,c,R,T),n=A,c=R}}}function by(i,t,e,o=!1){let n=[],c=o?[]:null,g=new Rl(i),w=new Rl(t);for(let y=-1;;){if(g.done&&w.len||w.done&&g.len)throw new Error("Mismatched change set lengths");if(g.ins==-1&&w.ins==-1){let A=Math.min(g.len,w.len);ar(n,A,-1),g.forward(A),w.forward(A)}else if(w.ins>=0&&(g.ins<0||y==g.i||g.off==0&&(w.len<g.len||w.len==g.len&&!e))){let A=w.len;for(ar(n,w.ins,-1);A;){let R=Math.min(g.len,A);g.ins>=0&&y<g.i&&g.len<=R&&(ar(n,0,g.ins),c&&qn(c,n,g.text),y=g.i),g.forward(R),A-=R}w.next()}else if(g.ins>=0){let A=0,R=g.len;for(;R;)if(w.ins==-1){let T=Math.min(R,w.len);A+=T,R-=T,w.forward(T)}else if(w.ins==0&&w.len<R)R-=w.len,w.next();else break;ar(n,A,y<g.i?g.ins:0),c&&y<g.i&&qn(c,n,g.text),y=g.i,g.forward(g.len-R)}else{if(g.done&&w.done)return c?yr.createSet(n,c):gn.create(n);throw new Error("Mismatched change set lengths")}}}function dA(i,t,e=!1){let o=[],n=e?[]:null,c=new Rl(i),g=new Rl(t);for(let w=!1;;){if(c.done&&g.done)return n?yr.createSet(o,n):gn.create(o);if(c.ins==0)ar(o,c.len,0,w),c.next();else if(g.len==0&&!g.done)ar(o,0,g.ins,w),n&&qn(n,o,g.text),g.next();else{if(c.done||g.done)throw new Error("Mismatched change set lengths");{let y=Math.min(c.len2,g.len),A=o.length;if(c.ins==-1){let R=g.ins==-1?-1:g.off?0:g.ins;ar(o,y,R,w),n&&R&&qn(n,o,g.text)}else g.ins==-1?(ar(o,c.off?0:c.len,y,w),n&&qn(n,o,c.textBit(y))):(ar(o,c.off?0:c.len,g.off?0:g.ins,w),n&&!g.off&&qn(n,o,g.text));w=(c.ins>y||g.ins>=0&&g.len>y)&&(w||o.length>A),c.forward2(y),g.forward(y)}}}}var Rl=class{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:t}=this.set,e=this.i-2>>1;return e>=t.length?gt.empty:t[e]}textBit(t){let{inserted:e}=this.set,o=this.i-2>>1;return o>=e.length&&!t?gt.empty:e[o].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}},Cl=class i{constructor(t,e,o,n){this.from=t,this.to=e,this.flags=o,this.goalColumn=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get undirectional(){return(this.flags&64)>0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}map(t,e=-1){let o,n;return this.empty?o=n=t.mapPos(this.from,e):(o=t.mapPos(this.from,1),n=t.mapPos(this.to,-1)),o==this.from&&n==this.to?this:new i(o,n,this.flags,this.goalColumn)}extend(t,e=t,o=0){if(t<=this.anchor&&e>=this.anchor)return se.range(t,e,void 0,void 0,o);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return se.range(this.anchor,n,void 0,void 0,o)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return se.range(t.anchor,t.head)}static create(t,e,o,n){return new i(t,e,o,n)}},se=class i{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:i.create(this.ranges.map(o=>o.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let o=0;o<this.ranges.length;o++)if(!this.ranges[o].eq(t.ranges[o],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new i([this.main],0)}addRange(t,e=!0){return i.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let o=this.ranges.slice();return o[e]=t,i.create(o,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new i(t.ranges.map(e=>Cl.fromJSON(e)),t.main)}static single(t,e=t){return new i([i.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let o=0,n=0;n<t.length;n++){let c=t[n];if(c.empty?c.from<=o:c.from<o)return i.normalized(t.slice(),e);o=c.to}return new i(t,e)}static cursor(t,e=0,o,n){return Cl.create(t,t,(e==0?0:e<0?8:16)|(o==null?7:Math.min(6,o)),n)}static range(t,e,o,n,c){let g=n==null?7:Math.min(6,n);return!c&&t!=e&&(c=e<t?1:-1),c&&(g|=c<0?8:16),e<t?Cl.create(e,t,g|32,o):Cl.create(t,e,g,o)}static undirectionalRange(t,e){return Cl.create(t,e,64,void 0)}static normalized(t,e=0){let o=t[e];t.sort((n,c)=>n.from-c.from),e=t.indexOf(o);for(let n=1;n<t.length;n++){let c=t[n],g=t[n-1];if(c.empty?c.from<=g.to:c.from<g.to){let w=g.from,y=Math.max(c.to,g.to);n<=e&&e--,t.splice(--n,2,c.anchor>c.head?i.range(y,w):i.range(w,y))}}return new i(t,e)}};function gA(i,t){for(let e of i.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}var Ry=0,Se=class i{constructor(t,e,o,n,c){this.combine=t,this.compareInput=e,this.compare=o,this.isStatic=n,this.id=Ry++,this.default=t([]),this.extensions=typeof c=="function"?c(this):c}get reader(){return this}static define(t={}){return new i(t.combine||(e=>e),t.compareInput||((e,o)=>e===o),t.compare||(t.combine?(e,o)=>e===o:Ty),!!t.static,t.enables)}of(t){return new Vc([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vc(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Vc(t,this,2,e)}from(t,e){return e||(e=o=>o),this.compute([t],o=>e(o.field(t)))}};function Ty(i,t){return i==t||i.length==t.length&&i.every((e,o)=>e===t[o])}var Vc=class{constructor(t,e,o,n){this.dependencies=t,this.facet=e,this.type=o,this.value=n,this.id=Ry++}dynamicSlot(t){var e;let o=this.value,n=this.facet.compareInput,c=this.id,g=t[c]>>1,w=this.type==2,y=!1,A=!1,R=[];for(let T of this.dependencies)T=="doc"?y=!0:T=="selection"?A=!0:((e=t[T.id])!==null&&e!==void 0?e:1)&1||R.push(t[T.id]);return{create(T){return T.values[g]=o(T),1},update(T,F){if(y&&F.docChanged||A&&(F.docChanged||F.selection)||wy(T,R)){let k=o(T);if(w?!hA(k,T.values[g],n):!n(k,T.values[g]))return T.values[g]=k,1}return 0},reconfigure:(T,F)=>{let k,G=F.config.address[c];if(G!=null){let W=Nf(F,G);if(this.dependencies.every(P=>P instanceof Se?F.facet(P)===T.facet(P):P instanceof ri?F.field(P,!1)==T.field(P,!1):!0)||(w?hA(k=o(T),W,n):n(k=o(T),W)))return T.values[g]=W,0}else k=o(T);return T.values[g]=k,1}}}get extension(){return this}};function hA(i,t,e){if(i.length!=t.length)return!1;for(let o=0;o<i.length;o++)if(!e(i[o],t[o]))return!1;return!0}function wy(i,t){let e=!1;for(let o of t)au(i,o)&1&&(e=!0);return e}function k2(i,t,e){let o=e.map(y=>i[y.id]),n=e.map(y=>y.type),c=o.filter(y=>!(y&1)),g=i[t.id]>>1;function w(y){let A=[];for(let R=0;R<o.length;R++){let T=Nf(y,o[R]);if(n[R]==2)for(let F of T)A.push(F);else A.push(T)}return t.combine(A)}return{create(y){for(let A of o)au(y,A);return y.values[g]=w(y),1},update(y,A){if(!wy(y,c))return 0;let R=w(y);return t.compare(R,y.values[g])?0:(y.values[g]=R,1)},reconfigure(y,A){let R=wy(y,o),T=A.config.facets[t.id],F=A.facet(t);if(T&&!R&&Ty(e,T))return y.values[g]=F,0;let k=w(y);return t.compare(k,F)?(y.values[g]=F,0):(y.values[g]=k,1)}}}var wf=Se.define({static:!0}),ri=class i{constructor(t,e,o,n,c){this.id=t,this.createF=e,this.updateF=o,this.compareF=n,this.spec=c,this.provides=void 0}static define(t){let e=new i(Ry++,t.create,t.update,t.compare||((o,n)=>o===n),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(wf).find(o=>o.field==this);return(e?.create||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:o=>(o.values[e]=this.create(o),1),update:(o,n)=>{let c=o.values[e],g=this.updateF(c,n);return this.compareF(c,g)?0:(o.values[e]=g,1)},reconfigure:(o,n)=>{let c=o.facet(wf),g=n.facet(wf),w;return(w=c.find(y=>y.field==this))&&w!=g.find(y=>y.field==this)?(o.values[e]=w.create(o),1):n.config.address[this.id]!=null?(o.values[e]=n.field(this),0):(o.values[e]=this.create(o),1)}}}init(t){return[this,wf.of({field:this,create:t})]}get extension(){return this}},Il={lowest:4,low:3,default:2,high:1,highest:0};function nu(i){return t=>new If(t,i)}var Er={highest:nu(Il.highest),high:nu(Il.high),default:nu(Il.default),low:nu(Il.low),lowest:nu(Il.lowest)},If=class{constructor(t,e){this.inner=t,this.prec=e}get extension(){return this}},cr=class i{of(t){return new lu(this,t)}reconfigure(t){return i.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}},lu=class{constructor(t,e){this.compartment=t,this.inner=e}get extension(){return this}},Af=class i{constructor(t,e,o,n,c,g){for(this.base=t,this.compartments=e,this.dynamicSlots=o,this.address=n,this.staticValues=c,this.facets=g,this.statusTemplate=[];this.statusTemplate.length<o.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return e==null?t.default:this.staticValues[e>>1]}static resolve(t,e,o){let n=[],c=Object.create(null),g=new Map;for(let F of V2(t,e,g))F instanceof ri?n.push(F):(c[F.facet.id]||(c[F.facet.id]=[])).push(F);let w=Object.create(null),y=[],A=[];for(let F of n)w[F.id]=A.length<<1,A.push(k=>F.slot(k));let R=o?.config.facets;for(let F in c){let k=c[F],G=k[0].facet,W=R&&R[F]||[];if(k.every(P=>P.type==0))if(w[G.id]=y.length<<1|1,Ty(W,k))y.push(o.facet(G));else{let P=G.combine(k.map(Q=>Q.value));y.push(o&&G.compare(P,o.facet(G))?o.facet(G):P)}else{for(let P of k)P.type==0?(w[P.id]=y.length<<1|1,y.push(P.value)):(w[P.id]=A.length<<1,A.push(Q=>P.dynamicSlot(Q)));w[G.id]=A.length<<1,A.push(P=>k2(P,G,k))}}let T=A.map(F=>F(w));return new i(t,g,T,w,y,c)}};function V2(i,t,e){let o=[[],[],[],[],[]],n=new Map;function c(g,w){let y=n.get(g);if(y!=null){if(y<=w)return;let A=o[y].indexOf(g);A>-1&&o[y].splice(A,1),g instanceof lu&&e.delete(g.compartment)}if(n.set(g,w),Array.isArray(g))for(let A of g)c(A,w);else if(g instanceof lu){if(e.has(g.compartment))throw new RangeError("Duplicate use of compartment in extensions");let A=t.get(g.compartment)||g.inner;e.set(g.compartment,A),c(A,w)}else if(g instanceof If)c(g.inner,g.prec);else if(g instanceof ri)o[w].push(g),g.provides&&c(g.provides,w);else if(g instanceof Vc)o[w].push(g),g.facet.extensions&&c(g.facet.extensions,Il.default);else{let A=g.extension;if(!A)throw new Error(`Unrecognized extension value in extension set (${g}).`);if(A==g)throw new Error(`Unrecognized extension value in extension set (${g}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);c(A,w)}}return c(i,Il.default),o.reduce((g,w)=>g.concat(w))}function au(i,t){if(t&1)return 2;let e=t>>1,o=i.status[e];if(o==4)throw new Error("Cyclic dependency between fields and/or facets");if(o&2)return o;i.status[e]=4;let n=i.computeSlot(i,i.config.dynamicSlots[e]);return i.status[e]=2|n}function Nf(i,t){return t&1?i.config.staticValues[t>>1]:i.values[t>>1]}var mA=Se.define(),xy=Se.define({combine:i=>i.some(t=>t),static:!0}),bA=Se.define({combine:i=>i.length?i[0]:void 0,static:!0}),wA=Se.define(),xA=Se.define(),vA=Se.define(),yA=Se.define({combine:i=>i.length?i[0]:!1}),Pr=class{constructor(t,e){this.type=t,this.value=e}static define(){return new vy}},vy=class{of(t){return new Pr(this,t)}},yy=class{constructor(t){this.map=t}of(t){return new et(this,t)}},et=class i{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new i(this.type,e)}is(t){return this.type==t}static define(t={}){return new yy(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let o=[];for(let n of t){let c=n.map(e);c&&o.push(c)}return o}};et.reconfigure=et.define();et.appendConfig=et.define();var Bi=class i{constructor(t,e,o,n,c,g){this.startState=t,this.changes=e,this.selection=o,this.effects=n,this.annotations=c,this.scrollIntoView=g,this._doc=null,this._state=null,o&&gA(o,e.newLength),c.some(w=>w.type==i.time)||(this.annotations=c.concat(i.time.of(Date.now())))}static create(t,e,o,n,c,g){return new i(t,e,o,n,c,g)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(i.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}};Bi.time=Pr.define();Bi.userEvent=Pr.define();Bi.addToHistory=Pr.define();Bi.remote=Pr.define();function F2(i,t){let e=[];for(let o=0,n=0;;){let c,g;if(o<i.length&&(n==t.length||t[n]>=i[o]))c=i[o++],g=i[o++];else if(n<t.length)c=t[n++],g=t[n++];else return e;!e.length||e[e.length-1]<c?e.push(c,g):e[e.length-1]<g&&(e[e.length-1]=g)}}function EA(i,t,e){var o;let n,c,g;return e?(n=t.changes,c=yr.empty(t.changes.length),g=i.changes.compose(t.changes)):(n=t.changes.map(i.changes),c=i.changes.mapDesc(t.changes,!0),g=i.changes.compose(n)),{changes:g,selection:t.selection?t.selection.map(c):(o=i.selection)===null||o===void 0?void 0:o.map(n),effects:et.mapEffects(i.effects,n).concat(et.mapEffects(t.effects,c)),annotations:i.annotations.length?i.annotations.concat(t.annotations):t.annotations,scrollIntoView:i.scrollIntoView||t.scrollIntoView}}function Ey(i,t,e){let o=t.selection,n=Fc(t.annotations);return t.userEvent&&(n=n.concat(Bi.userEvent.of(t.userEvent))),{changes:t.changes instanceof yr?t.changes:yr.of(t.changes||[],e,i.facet(bA)),selection:o&&(o instanceof se?o:se.single(o.anchor,o.head)),effects:Fc(t.effects),annotations:n,scrollIntoView:!!t.scrollIntoView}}function CA(i,t,e){let o=Ey(i,t.length?t[0]:{},i.doc.length);t.length&&t[0].filter===!1&&(e=!1);for(let c=1;c<t.length;c++){t[c].filter===!1&&(e=!1);let g=!!t[c].sequential;o=EA(o,Ey(i,t[c],g?o.changes.newLength:i.doc.length),g)}let n=Bi.create(i,o.changes,o.selection,o.effects,o.annotations,o.scrollIntoView);return _2(e?U2(n):n)}function U2(i){let t=i.startState,e=!0;for(let n of t.facet(wA)){let c=n(i);if(c===!1){e=!1;break}Array.isArray(c)&&(e=e===!0?c:F2(e,c))}if(e!==!0){let n,c;if(e===!1)c=i.changes.invertedDesc,n=yr.empty(t.doc.length);else{let g=i.changes.filter(e);n=g.changes,c=g.filtered.mapDesc(g.changes).invertedDesc}i=Bi.create(t,n,i.selection&&i.selection.map(c),et.mapEffects(i.effects,c),i.annotations,i.scrollIntoView)}let o=t.facet(xA);for(let n=o.length-1;n>=0;n--){let c=o[n](i);c instanceof Bi?i=c:Array.isArray(c)&&c.length==1&&c[0]instanceof Bi?i=c[0]:i=CA(t,Fc(c),!1)}return i}function _2(i){let t=i.startState,e=t.facet(vA),o=i;for(let n=e.length-1;n>=0;n--){let c=e[n](i);c&&Object.keys(c).length&&(o=EA(o,Ey(t,c,i.changes.newLength),!0))}return o==i?i:Bi.create(t,i.changes,i.selection,o.effects,o.annotations,o.scrollIntoView)}var O2=[];function Fc(i){return i==null?O2:Array.isArray(i)?i:[i]}var At=function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i}(At||(At={})),G2=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Cy;try{Cy=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Z2(i){if(Cy)return Cy.test(i);for(let t=0;t<i.length;t++){let e=i[t];if(/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||G2.test(e)))return!0}return!1}function M2(i){return t=>{if(!/\S/.test(t))return At.Space;if(Z2(t))return At.Word;for(let e=0;e<i.length;e++)if(t.indexOf(i[e])>-1)return At.Word;return At.Other}}var xt=class i{constructor(t,e,o,n,c,g){this.config=t,this.doc=e,this.selection=o,this.values=n,this.status=t.statusTemplate.slice(),this.computeSlot=c,g&&(g._state=this);for(let w=0;w<this.config.dynamicSlots.length;w++)au(this,w<<1);this.computeSlot=null}field(t,e=!0){let o=this.config.address[t.id];if(o==null){if(e)throw new RangeError("Field is not present in this state");return}return au(this,o),Nf(this,o)}update(...t){return CA(this,t,!0)}applyTransaction(t){let e=this.config,{base:o,compartments:n}=e;for(let w of t.effects)w.is(cr.reconfigure)?(e&&(n=new Map,e.compartments.forEach((y,A)=>n.set(A,y)),e=null),n.set(w.value.compartment,w.value.extension)):w.is(et.reconfigure)?(e=null,o=w.value):w.is(et.appendConfig)&&(e=null,o=Fc(o).concat(w.value));let c;e?c=t.startState.values.slice():(e=Af.resolve(o,n,this),c=new i(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(y,A)=>A.reconfigure(y,this),null).values);let g=t.startState.facet(xy)?t.newSelection:t.newSelection.asSingle();new i(e,t.newDoc,g,c,(w,y)=>y.update(w,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:se.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,o=t(e.ranges[0]),n=this.changes(o.changes),c=[o.range],g=Fc(o.effects);for(let w=1;w<e.ranges.length;w++){let y=t(e.ranges[w]),A=this.changes(y.changes),R=A.map(n);for(let F=0;F<w;F++)c[F]=c[F].map(R);let T=n.mapDesc(A,!0);c.push(y.range.map(T)),n=n.compose(R),g=et.mapEffects(g,R).concat(et.mapEffects(Fc(y.effects),T))}return{changes:n,selection:se.create(c,e.mainIndex),effects:g}}changes(t=[]){return t instanceof yr?t:yr.of(t,this.doc.length,this.facet(i.lineSeparator))}toText(t){return gt.of(t.split(this.facet(i.lineSeparator)||gy))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return e==null?t.default:(au(this,e),Nf(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let o in t){let n=t[o];n instanceof ri&&this.config.address[n.id]!=null&&(e[o]=n.spec.toJSON(this.field(t[o]),this))}return e}static fromJSON(t,e={},o){if(!t||typeof t.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(o){for(let c in o)if(Object.prototype.hasOwnProperty.call(t,c)){let g=o[c],w=t[c];n.push(g.init(y=>g.spec.fromJSON(w,y)))}}return i.create({doc:t.doc,selection:se.fromJSON(t.selection),extensions:e.extensions?n.concat([e.extensions]):n})}static create(t={}){let e=Af.resolve(t.extensions||[],new Map),o=t.doc instanceof gt?t.doc:gt.of((t.doc||"").split(e.staticFacet(i.lineSeparator)||gy)),n=t.selection?t.selection instanceof se?t.selection:se.single(t.selection.anchor,t.selection.head):se.single(0);return gA(n,o.length),e.staticFacet(xy)||(n=n.asSingle()),new i(e,o,n,e.dynamicSlots.map(()=>null),(c,g)=>g.create(c),null)}get tabSize(){return this.facet(i.tabSize)}get lineBreak(){return this.facet(i.lineSeparator)||`
11
+ `}get readOnly(){return this.facet(yA)}phrase(t,...e){for(let o of this.facet(i.phrases))if(Object.prototype.hasOwnProperty.call(o,t)){t=o[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(o,n)=>{if(n=="$")return"$";let c=+(n||1);return!c||c>e.length?o:e[c-1]})),t}languageDataAt(t,e,o=-1){let n=[];for(let c of this.facet(mA))for(let g of c(this,e,o))Object.prototype.hasOwnProperty.call(g,t)&&n.push(g[t]);return n}charCategorizer(t){let e=this.languageDataAt("wordChars",t);return M2(e.length?e[0]:"")}wordAt(t){let{text:e,from:o,length:n}=this.doc.lineAt(t),c=this.charCategorizer(t),g=t-o,w=t-o;for(;g>0;){let y=wi(e,g,!1);if(c(e.slice(y,g))!=At.Word)break;g=y}for(;w<n;){let y=wi(e,w);if(c(e.slice(w,y))!=At.Word)break;w=y}return g==w?null:se.range(g+o,w+o)}};xt.allowMultipleSelections=xy;xt.tabSize=Se.define({combine:i=>i.length?i[0]:4});xt.lineSeparator=bA;xt.readOnly=yA;xt.phrases=Se.define({compare(i,t){let e=Object.keys(i),o=Object.keys(t);return e.length==o.length&&e.every(n=>i[n]==t[n])}});xt.languageData=mA;xt.changeFilter=wA;xt.transactionFilter=xA;xt.transactionExtender=vA;cr.reconfigure=et.define();function po(i,t,e={}){let o={};for(let n of i)for(let c of Object.keys(n)){let g=n[c],w=o[c];if(w===void 0)o[c]=g;else if(!(w===g||g===void 0))if(Object.hasOwnProperty.call(e,c))o[c]=e[c](w,g);else throw new Error("Config merge conflict for field "+c)}for(let n in t)o[n]===void 0&&(o[n]=t[n]);return o}var Co=class{eq(t){return this==t}range(t,e=t){return cu.create(t,e,this)}};Co.prototype.startSide=Co.prototype.endSide=0;Co.prototype.point=!1;Co.prototype.mapMode=lr.TrackDel;function Sy(i,t){return i==t||i.constructor==t.constructor&&i.eq(t)}var cu=class i{constructor(t,e,o){this.from=t,this.to=e,this.value=o}static create(t,e,o){return new i(t,e,o)}};function Iy(i,t){return i.from-t.from||i.value.startSide-t.value.startSide}var Ay=class i{constructor(t,e,o,n){this.from=t,this.to=e,this.value=o,this.maxPoint=n}get length(){return Bc(this.to)}findIndex(t,e,o,n=0){let c=o?this.to:this.from;for(let g=n,w=c.length;;){if(g==w)return g;let y=g+w>>1,A=c[y]-t||(o?this.value[y].endSide:this.value[y].startSide)-e;if(y==g)return A>=0?g:w;A>=0?w=y:g=y+1}}between(t,e,o,n){for(let c=this.findIndex(e,-1e9,!0),g=this.findIndex(o,1e9,!1,c);c<g;c++)if(n(this.from[c]+t,this.to[c]+t,this.value[c])===!1)return!1}map(t,e,o,n,c){let g=[],w=[],y=[],A=-1,R=-1;e:for(let T=0;T<this.value.length;T++){let F=this.value[T],k=this.from[T]+t,G=this.to[T]+t,W,P;if(k==G){let Q=e.mapPos(k,F.startSide,F.mapMode);if(Q==null||(W=P=Q,F.startSide!=F.endSide&&(P=e.mapPos(k,F.endSide),P<W)))continue}else if(W=e.mapPos(k,F.startSide),P=e.mapPos(G,F.endSide),W>P||W==P&&F.startSide>0&&F.endSide<=0)continue;if(!((P-W||F.endSide-F.startSide)<0))if(A<0&&(A=W),F.point&&(R=Math.max(R,P-W)),(W-o||F.startSide-n)>=0)g.push(F),w.push(W-A),y.push(P-A),o=P,n=F.endSide;else{if(W==P){for(let Q=g.length-1;Q>0;Q--)if((W-y[Q-1]||F.startSide-g[Q-1].endSide)<=0){g.splice(Q,0,F),w.splice(Q,0,W),y.splice(Q,0,P);continue e}}c(W,P,F)}}return{mapped:g.length?new i(w,y,g,R):null,pos:A}}},ht=class i{constructor(t,e,o,n){this.chunkPos=t,this.chunk=e,this.nextLayer=o,this.maxPoint=n}static create(t,e,o,n){return new i(t,e,o,n)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:o=!1,filterFrom:n=0,filterTo:c=this.length}=t,g=t.filter;if(e.length==0&&!g)return this;if(o&&(e=e.slice().sort(Iy)),this.isEmpty)return e.length?i.of(e):this;let w=new Rf(this,null,-1).goto(0),y=0,A=[],R=new ts;for(;w.value||y<e.length;)if(y<e.length&&(w.from-e[y].from||w.startSide-e[y].value.startSide)>=0){let T=e[y++];R.addInner(T.from,T.to,T.value)||A.push(T)}else w.rangeIndex==1&&w.chunkIndex<this.chunk.length&&(y==e.length||this.chunkEnd(w.chunkIndex)<e[y].from)&&(!g||n>this.chunkEnd(w.chunkIndex)||c<this.chunkPos[w.chunkIndex])&&R.addChunk(this.chunkPos[w.chunkIndex],this.chunk[w.chunkIndex])?w.nextChunk():((!g||n>w.to||c<w.from||g(w.from,w.to,w.value))&&(R.addInner(w.from,w.to,w.value)||A.push(cu.create(w.from,w.to,w.value))),w.next());return R.finishInner(this.nextLayer.isEmpty&&!A.length?i.empty:this.nextLayer.update({add:A,filter:g,filterFrom:n,filterTo:c}))}map(t){if(t.empty||this.isEmpty)return this;let e=[],o=[],n=-1,c,g=(y,A,R)=>{c||(c=new ts),c.add(y,A,R)};for(let y=0;y<this.chunk.length;y++){let A=this.chunkPos[y],R=this.chunk[y],T=t.touchesRange(A,A+R.length);if(T===!1)n=Math.max(n,R.maxPoint),e.push(R),o.push(t.mapPos(A));else if(T===!0){let[F,k]=e.length?[Bc(o)+Bc(e).length,Bc(Bc(e).value).endSide]:[-1,-1],{mapped:G,pos:W}=R.map(A,t,F,k,g);G&&(n=Math.max(n,G.maxPoint),e.push(G),o.push(W))}}let w=this.nextLayer.map(t);return c&&(w=c.finishInner(w)),e.length==0?w:new i(o,e,w||i.empty,n)}between(t,e,o){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let c=this.chunkPos[n],g=this.chunk[n];if(e>=c&&t<=c+g.length&&g.between(c,t-c,e-c,o)===!1)return}this.nextLayer.between(t,e,o)}}iter(t=0){return hu.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return hu.from(t).goto(e)}static compare(t,e,o,n,c=-1){let g=t.filter(T=>T.maxPoint>0||!T.isEmpty&&T.maxPoint>=c),w=e.filter(T=>T.maxPoint>0||!T.isEmpty&&T.maxPoint>=c),y=pA(g,w,o),A=new Al(g,y,c),R=new Al(w,y,c);o.iterGaps((T,F,k)=>uA(A,T,R,F,k,n)),o.empty&&o.length==0&&uA(A,0,R,0,0,n)}static eq(t,e,o=0,n){n==null&&(n=999999999);let c=t.filter(R=>!R.isEmpty&&e.indexOf(R)<0),g=e.filter(R=>!R.isEmpty&&t.indexOf(R)<0);if(c.length!=g.length)return!1;if(!c.length)return!0;let w=pA(c,g),y=new Al(c,w,0).goto(o),A=new Al(g,w,0).goto(o);for(;;){if(y.to!=A.to||!Ny(y.active,A.active)||y.point&&(!A.point||!Sy(y.point,A.point)))return!1;if(y.to>n)return!0;y.next(),A.next()}}static spans(t,e,o,n,c=-1){let g=new Al(t,null,c).goto(e),w=e,y=g.openStart;for(;;){let A=Math.min(g.to,o);if(g.point){let R=g.activeForPoint(g.to),T=g.pointFrom<e?R.length+1:g.point.startSide<0?R.length:Math.min(R.length,y);n.point(w,A,g.point,R,T,g.pointRank),y=Math.min(g.openEnd(A),R.length)}else A>w&&(n.span(w,A,g.active,y),y=g.openEnd(A));if(g.to>o)return y+(g.point&&g.to>o?1:0);w=g.to,g.next()}}static of(t,e=!1){let o=new ts;for(let n of t instanceof cu?[t]:e?W2(t):t)o.add(n.from,n.to,n.value);return o.finish()}static join(t){if(!t.length)return i.empty;let e=Bc(t);for(let o=t.length-2;o>=0;o--)for(let n=t[o];n!=i.empty;n=n.nextLayer)e=new i(n.chunkPos,n.chunk,e,Math.max(n.maxPoint,e.maxPoint));return e}};ht.empty=new ht([],[],null,-1);function Bc(i){return i[i.length-1]}function W2(i){if(i.length>1)for(let t=i[0],e=1;e<i.length;e++){let o=i[e];if(Iy(t,o)>0)return i.slice().sort(Iy);t=o}return i}ht.empty.nextLayer=ht.empty;var ts=class i{finishChunk(t){this.chunks.push(new Ay(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,o){this.addInner(t,e,o)||(this.nextLayer||(this.nextLayer=new i)).add(t,e,o)}addInner(t,e,o){let n=t-this.lastTo||o.startSide-this.last.endSide;if(n<=0&&(t-this.lastFrom||o.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=o,this.lastFrom=t,this.lastTo=e,this.value.push(o),o.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let o=e.value.length-1;return this.last=e.value[o],this.lastFrom=e.from[o]+t,this.lastTo=e.to[o]+t,!0}finish(){return this.finishInner(ht.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let e=ht.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}};function pA(i,t,e){let o=new Map;for(let c of i)for(let g=0;g<c.chunk.length;g++)c.chunk[g].maxPoint<=0&&o.set(c.chunk[g],c.chunkPos[g]);let n=new Set;for(let c of t)for(let g=0;g<c.chunk.length;g++){let w=o.get(c.chunk[g]);w!=null&&(e?e.mapPos(w):w)==c.chunkPos[g]&&!e?.touchesRange(w,w+c.chunk[g].length)&&n.add(c.chunk[g])}return n}var Rf=class{constructor(t,e,o,n=0){this.layer=t,this.skip=e,this.minPoint=o,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,e=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}gotoInner(t,e,o){for(;this.chunkIndex<this.layer.chunk.length;){let n=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(n)||this.layer.chunkEnd(this.chunkIndex)<t||n.maxPoint<this.minPoint))break;this.chunkIndex++,o=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],e,!0);(!o||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(t,e){(this.to-t||this.endSide-e)<0&&this.gotoInner(t,e,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],o=t+e.from[this.rangeIndex];if(this.from=o,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}},hu=class i{constructor(t){this.heap=t}static from(t,e=null,o=-1){let n=[];for(let c=0;c<t.length;c++)for(let g=t[c];!g.isEmpty;g=g.nextLayer)g.maxPoint>=o&&n.push(new Rf(g,e,o,c));return n.length==1?n[0]:new i(n)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let o of this.heap)o.goto(t,e);for(let o=this.heap.length>>1;o>=0;o--)fy(this.heap,o);return this.next(),this}forward(t,e){for(let o of this.heap)o.forward(t,e);for(let o=this.heap.length>>1;o>=0;o--)fy(this.heap,o);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),fy(this.heap,0)}}};function fy(i,t){for(let e=i[t];;){let o=(t<<1)+1;if(o>=i.length)break;let n=i[o];if(o+1<i.length&&n.compare(i[o+1])>=0&&(n=i[o+1],o++),e.compare(n)<0)break;i[o]=e,i[t]=n,t=o}}var Al=class{constructor(t,e,o){this.minPoint=o,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=hu.from(t,e,o)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){xf(this.active,t),xf(this.activeTo,t),xf(this.activeRank,t),this.minActive=fA(this.active,this.activeTo)}addActive(t){let e=0,{value:o,to:n,rank:c}=this.cursor;for(;e<this.activeRank.length&&(c-this.activeRank[e]||n-this.activeTo[e])>0;)e++;vf(this.active,e,o),vf(this.activeTo,e,n),vf(this.activeRank,e,c),t&&vf(t,e,this.cursor.from),this.minActive=fA(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let o=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>t){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),o&&xf(o,n)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let c=this.cursor.value;if(!c.point)this.addActive(o),this.cursor.next();else if(e&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=c,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=c.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(o){this.openStart=0;for(let n=o.length-1;n>=0&&o[n]<t;n--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let e=[];for(let o=this.active.length-1;o>=0&&!(this.activeRank[o]<this.pointRank);o--)(this.activeTo[o]>t||this.activeTo[o]==t&&this.active[o].endSide>=this.point.endSide)&&e.push(this.active[o]);return e.reverse()}openEnd(t){let e=0;for(let o=this.activeTo.length-1;o>=0&&this.activeTo[o]>t;o--)e++;return e}};function uA(i,t,e,o,n,c){i.goto(t),e.goto(o);let g=o+n,w=o,y=o-t,A=!!c.boundChange;for(let R=!1;;){let T=i.to+y-e.to,F=T||i.endSide-e.endSide,k=F<0?i.to+y:e.to,G=Math.min(k,g);if(i.point||e.point?(i.point&&e.point&&Sy(i.point,e.point)&&Ny(i.activeForPoint(i.to),e.activeForPoint(e.to))||c.comparePoint(w,G,i.point,e.point),R=!1):(R&&c.boundChange(w),G>w&&!Ny(i.active,e.active)&&c.compareRange(w,G,i.active,e.active),A&&G<g&&(T||i.openEnd(k)!=e.openEnd(k))&&(R=!0)),k>g)break;w=k,F<=0&&i.next(),F>=0&&e.next()}}function Ny(i,t){if(i.length!=t.length)return!1;for(let e=0;e<i.length;e++)if(i[e]!=t[e]&&!Sy(i[e],t[e]))return!1;return!0}function xf(i,t){for(let e=t,o=i.length-1;e<o;e++)i[e]=i[e+1];i.pop()}function vf(i,t,e){for(let o=i.length-1;o>=t;o--)i[o+1]=i[o];i[t]=e}function fA(i,t){let e=-1,o=1e9;for(let n=0;n<t.length;n++)(t[n]-o||i[n].endSide-i[e].endSide)<0&&(e=n,o=t[n]);return e}function Kn(i,t,e=i.length){let o=0;for(let n=0;n<e&&n<i.length;)i.charCodeAt(n)==9?(o+=t-o%t,n++):(o++,n=wi(i,n));return o}function Tf(i,t,e,o){for(let n=0,c=0;;){if(c>=t)return n;if(n==i.length)break;c+=i.charCodeAt(n)==9?e-c%e:1,n=wi(i,n)}return o===!0?-1:i.length}var Ly="\u037C",IA=typeof Symbol>"u"?"__"+Ly:Symbol.for(Ly),By=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),AA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Io=class{constructor(t,e){this.rules=[];let{finish:o}=e||{};function n(g){return/^@/.test(g)?[g]:g.split(/,\s*/)}function c(g,w,y,A){let R=[],T=/^@(\w+)\b/.exec(g[0]),F=T&&T[1]=="keyframes";if(T&&w==null)return y.push(g[0]+";");for(let k in w){let G=w[k];if(/&/.test(k))c(k.split(/,\s*/).map(W=>g.map(P=>W.replace(/&/,P))).reduce((W,P)=>W.concat(P)),G,y);else if(G&&typeof G=="object"){if(!T)throw new RangeError("The value of a property ("+k+") should be a primitive value.");c(n(k),G,R,F)}else G!=null&&R.push(k.replace(/_.*/,"").replace(/[A-Z]/g,W=>"-"+W.toLowerCase())+": "+G+";")}(R.length||F)&&y.push((o&&!T&&!A?g.map(o):g).join(", ")+" {"+R.join(" ")+"}")}for(let g in t)c(n(g),t[g],this.rules)}getRules(){return this.rules.join(`
12
+ `)}static newName(){let t=AA[IA]||1;return AA[IA]=t+1,Ly+t.toString(36)}static mount(t,e,o){let n=t[By],c=o&&o.nonce;n?c&&n.setNonce(c):n=new ky(t,c),n.mount(Array.isArray(e)?e:[e],t)}},NA=new Map,ky=class{constructor(t,e){let o=t.ownerDocument||t,n=o.defaultView;if(!t.head&&t.adoptedStyleSheets&&n.CSSStyleSheet){let c=NA.get(o);if(c)return t[By]=c;this.sheet=new n.CSSStyleSheet,NA.set(o,this)}else this.styleTag=o.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[By]=this}mount(t,e){let o=this.sheet,n=0,c=0;for(let g=0;g<t.length;g++){let w=t[g],y=this.modules.indexOf(w);if(y<c&&y>-1&&(this.modules.splice(y,1),c--,y=-1),y==-1){if(this.modules.splice(c++,0,w),o)for(let A=0;A<w.rules.length;A++)o.insertRule(w.rules[A],n++)}else{for(;c<y;)n+=this.modules[c++].rules.length;n+=w.rules.length,c++}}if(o)e.adoptedStyleSheets.indexOf(this.sheet)<0&&(e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets]);else{let g="";for(let y=0;y<this.modules.length;y++)g+=this.modules[y].getRules()+`
13
+ `;this.styleTag.textContent=g;let w=e.head||e;this.styleTag.parentNode!=w&&w.insertBefore(this.styleTag,w.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}};var mn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},_c={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},D2=typeof navigator<"u"&&/Mac/.test(navigator.platform),P2=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(Ai=0;Ai<10;Ai++)mn[48+Ai]=mn[96+Ai]=String(Ai);var Ai;for(Ai=1;Ai<=24;Ai++)mn[Ai+111]="F"+Ai;var Ai;for(Ai=65;Ai<=90;Ai++)mn[Ai]=String.fromCharCode(Ai+32),_c[Ai]=String.fromCharCode(Ai);var Ai;for(Sf in mn)_c.hasOwnProperty(Sf)||(_c[Sf]=mn[Sf]);var Sf;function RA(i){var t=D2&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||P2&&i.shiftKey&&i.key&&i.key.length==1||i.key=="Unidentified",e=!t&&i.key||(i.shiftKey?_c:mn)[i.keyCode]||i.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}function xi(){var i=arguments[0];typeof i=="string"&&(i=document.createElement(i));var t=1,e=arguments[1];if(e&&typeof e=="object"&&e.nodeType==null&&!Array.isArray(e)){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=e[o];typeof n=="string"?i.setAttribute(o,n):n!=null&&(i[o]=n)}t++}for(;t<arguments.length;t++)TA(i,arguments[t]);return i}function TA(i,t){if(typeof t=="string")i.appendChild(document.createTextNode(t));else if(t!=null)if(t.nodeType!=null)i.appendChild(t);else if(Array.isArray(t))for(var e=0;e<t.length;e++)TA(i,t[e]);else throw new RangeError("Unsupported child node: "+t)}var Cr=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},My=typeof document<"u"?document:{documentElement:{style:{}}},Wy=/Edge\/(\d+)/.exec(Cr.userAgent),pN=/MSIE \d/.test(Cr.userAgent),Dy=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cr.userAgent),od=!!(pN||Dy||Wy),SA=!od&&/gecko\/(\d+)/i.test(Cr.userAgent),Vy=!od&&/Chrome\/(\d+)/.exec(Cr.userAgent),LA="webkitFontSmoothing"in My.documentElement.style,Py=!od&&/Apple Computer/.test(Cr.vendor),BA=Py&&(/Mobile\/\w+/.test(Cr.userAgent)||Cr.maxTouchPoints>2),Ce={mac:BA||/Mac/.test(Cr.platform),windows:/Win/.test(Cr.platform),linux:/Linux|X11/.test(Cr.platform),ie:od,ie_version:pN?My.documentMode||6:Dy?+Dy[1]:Wy?+Wy[1]:0,gecko:SA,gecko_version:SA?+(/Firefox\/(\d+)/.exec(Cr.userAgent)||[0,0])[1]:0,chrome:!!Vy,chrome_version:Vy?+Vy[1]:0,ios:BA,android:/Android\b/.test(Cr.userAgent),webkit:LA,webkit_version:LA?+(/\bAppleWebKit\/(\d+)/.exec(Cr.userAgent)||[0,0])[1]:0,safari:Py,safari_version:Py?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Cr.userAgent)||[0,0])[1]:0,tabSize:My.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function BE(i,t){for(let e in i)e=="class"&&t.class?t.class+=" "+i.class:e=="style"&&t.style?t.style+=";"+i.style:t[e]=i[e];return t}var Pf=Object.create(null);function kE(i,t,e){if(i==t)return!0;i||(i=Pf),t||(t=Pf);let o=Object.keys(i),n=Object.keys(t);if(o.length-(e&&o.indexOf(e)>-1?1:0)!=n.length-(e&&n.indexOf(e)>-1?1:0))return!1;for(let c of o)if(c!=e&&(n.indexOf(c)==-1||i[c]!==t[c]))return!1;return!0}function Q2(i,t){for(let e=i.attributes.length-1;e>=0;e--){let o=i.attributes[e].name;t[o]==null&&i.removeAttribute(o)}for(let e in t){let o=t[e];e=="style"?i.style.cssText=o:i.getAttribute(e)!=o&&i.setAttribute(e,o)}}function kA(i,t,e){let o=!1;if(t)for(let n in t)e&&n in e||(o=!0,n=="style"?i.style.cssText="":i.removeAttribute(n));if(e)for(let n in e)t&&t[n]==e[n]||(o=!0,n=="style"?i.style.cssText=e[n]:i.setAttribute(n,e[n]));return o}function X2(i){let t=Object.create(null);for(let e=0;e<i.attributes.length;e++){let o=i.attributes[e];t[o.name]=o.value}return t}var Bs=class{eq(t){return!1}updateDOM(t,e,o){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,o){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}},$i=function(i){return i[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i}($i||($i={})),ze=class extends Co{constructor(t,e,o,n){super(),this.startSide=t,this.endSide=e,this.widget=o,this.spec=n}get heightRelevant(){return!1}static mark(t){return new Iu(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),o=!!t.block;return e+=o&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new Bl(t,e,e,o,t.widget||null,!1)}static replace(t){let e=!!t.block,o,n;if(t.isBlockGap)o=-5e8,n=4e8;else{let{start:c,end:g}=uN(t,e);o=(c?e?-3e8:-1:5e8)-1,n=(g?e?2e8:1:-6e8)+1}return new Bl(t,o,n,e,t.widget||null,!0)}static line(t){return new Au(t)}static set(t,e=!1){return ht.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};ze.none=ht.empty;var Iu=class i extends ze{constructor(t){let{start:e,end:o}=uN(t);super(e?-1:5e8,o?1:-6e8,null,t),this.tagName=t.tagName||"span",this.attrs=t.class&&t.attributes?BE(t.attributes,{class:t.class}):t.class?{class:t.class}:t.attributes||Pf}eq(t){return this==t||t instanceof i&&this.tagName==t.tagName&&kE(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}};Iu.prototype.point=!1;var Au=class i extends ze{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof i&&this.spec.class==t.spec.class&&kE(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}};Au.prototype.mapMode=lr.TrackBefore;Au.prototype.point=!0;var Bl=class i extends ze{constructor(t,e,o,n,c,g){super(e,o,c,t),this.block=n,this.isReplace=g,this.mapMode=n?e<=0?lr.TrackBefore:lr.TrackAfter:lr.TrackDel}get type(){return this.startSide!=this.endSide?$i.WidgetRange:this.startSide<=0?$i.WidgetBefore:$i.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof i&&Y2(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}};Bl.prototype.point=!0;function uN(i,t=!1){let{inclusiveStart:e,inclusiveEnd:o}=i;return e==null&&(e=i.inclusive),o==null&&(o=i.inclusive),{start:e??t,end:o??t}}function Y2(i,t){return i==t||!!(i&&t&&i.compare(t))}function Dc(i,t,e,o=0){let n=e.length-1;n>=0&&e[n]+o>=i?e[n]=Math.max(e[n],t):e.push(i,t)}var Qf=class i extends Co{constructor(t,e,o){super(),this.tagName=t,this.attributes=e,this.rank=o}eq(t){return t==this||t instanceof i&&this.tagName==t.tagName&&kE(this.attributes,t.attributes)}static create(t){return new i(t.tagName,t.attributes||Pf,t.rank==null?50:Math.max(0,Math.min(t.rank,100)))}static set(t,e=!1){return ht.of(t,e)}};Qf.prototype.startSide=Qf.prototype.endSide=-1;function Nu(i){let t;return i.nodeType==11?t=i.getSelection?i:i.ownerDocument:t=i,t.getSelection()}function Qy(i,t){return t?i==t||i.contains(t.nodeType!=1?t.parentNode:t):!1}function gu(i,t){if(!t.anchorNode)return!1;try{return Qy(i,t.anchorNode)}catch{return!1}}function Gf(i){return i.nodeType==3?Ru(i,0,i.nodeValue.length).getClientRects():i.nodeType==1?i.getClientRects():[]}function mu(i,t,e,o){return e?VA(i,t,e,o,-1)||VA(i,t,e,o,1):!1}function ia(i){for(var t=0;;t++)if(i=i.previousSibling,!i)return t}function Xf(i){return i.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName)}function VA(i,t,e,o,n){for(;;){if(i==e&&t==o)return!0;if(t==(n<0?0:xn(i))){if(i.nodeName=="DIV")return!1;let c=i.parentNode;if(!c||c.nodeType!=1)return!1;t=ia(i)+(n<0?0:1),i=c}else if(i.nodeType==1){if(i=i.childNodes[t+(n<0?-1:0)],i.nodeType==1&&i.contentEditable=="false")return!1;t=n<0?xn(i):0}else return!1}}function xn(i){return i.nodeType==3?i.nodeValue.length:i.childNodes.length}function Yf(i,t){let{left:e,right:o}=i;if(e==o)return i;let n=t?e:o;return{left:n,right:n,top:i.top,bottom:i.bottom}}function H2(i){let t=i.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}function fN(i,t){let e=t.width/i.offsetWidth,o=t.height/i.offsetHeight;return(e>.995&&e<1.005||!isFinite(e)||Math.abs(t.width-i.offsetWidth)<1)&&(e=1),(o>.995&&o<1.005||!isFinite(o)||Math.abs(t.height-i.offsetHeight)<1)&&(o=1),{scaleX:e,scaleY:o}}function J2(i,t,e,o,n,c,g,w){let y=i.ownerDocument,A=y.defaultView||window;for(let R=i,T=!1;R&&!T;)if(R.nodeType==1){let F,k=R==y.body,G=1,W=1;if(k)F=H2(A);else{if(/^(fixed|sticky)$/.test(getComputedStyle(R).position)&&(T=!0),R.scrollHeight<=R.clientHeight&&R.scrollWidth<=R.clientWidth){R=R.assignedSlot||R.parentNode;continue}let H=R.getBoundingClientRect();({scaleX:G,scaleY:W}=fN(R,H)),F={left:H.left,right:H.left+R.clientWidth*G,top:H.top,bottom:H.top+R.clientHeight*W}}let P=0,Q=0;if(n=="nearest")t.top<F.top+g?(Q=t.top-(F.top+g),e>0&&t.bottom>F.bottom+Q&&(Q=t.bottom-F.bottom+g)):t.bottom>F.bottom-g&&(Q=t.bottom-F.bottom+g,e<0&&t.top-Q<F.top&&(Q=t.top-(F.top+g)));else{let H=t.bottom-t.top,re=F.bottom-F.top;Q=(n=="center"&&H<=re?t.top+H/2-re/2:n=="start"||n=="center"&&e<0?t.top-g:t.bottom-re+g)-F.top}if(o=="nearest"?t.left<F.left+c?(P=t.left-(F.left+c),e>0&&t.right>F.right+P&&(P=t.right-F.right+c)):t.right>F.right-c&&(P=t.right-F.right+c,e<0&&t.left<F.left+P&&(P=t.left-(F.left+c))):P=(o=="center"?t.left+(t.right-t.left)/2-(F.right-F.left)/2:o=="start"==w?t.left-c:t.right-(F.right-F.left)+c)-F.left,P||Q)if(k)A.scrollBy(P,Q);else{let H=0,re=0;if(Q){let K=R.scrollTop;R.scrollTop+=Q/W,re=(R.scrollTop-K)*W}if(P){let K=R.scrollLeft;R.scrollLeft+=P/G,H=(R.scrollLeft-K)*G}t={left:t.left-H,top:t.top-re,right:t.right-H,bottom:t.bottom-re},H&&Math.abs(H-P)<1&&(o="nearest"),re&&Math.abs(re-Q)<1&&(n="nearest")}if(k)break;(t.top<F.top||t.bottom>F.bottom||t.left<F.left||t.right>F.right)&&(t={left:Math.max(t.left,F.left),right:Math.min(t.right,F.right),top:Math.max(t.top,F.top),bottom:Math.min(t.bottom,F.bottom)}),R=R.assignedSlot||R.parentNode}else if(R.nodeType==11)R=R.host;else break}function dN(i,t=!0){let e=i.ownerDocument,o=null,n=null;for(let c=i.parentNode;c&&!(c==e.body||(!t||o)&&n);)if(c.nodeType==1)!n&&c.scrollHeight>c.clientHeight&&(n=c),t&&!o&&c.scrollWidth>c.clientWidth&&(o=c),c=c.assignedSlot||c.parentNode;else if(c.nodeType==11)c=c.host;else break;return{x:o,y:n}}var Xy=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:o}=t;this.set(e,Math.min(t.anchorOffset,e?xn(e):0),o,Math.min(t.focusOffset,o?xn(o):0))}set(t,e,o,n){this.anchorNode=t,this.anchorOffset=e,this.focusNode=o,this.focusOffset=n}};function gN(i){let t=[];for(let e=i;e;e=e.nodeType==11?e.host:e.parentNode)e.nodeType==1&&t.push({node:e,left:e.scrollLeft,top:e.scrollTop});return t}function mN(i,t=!0){for(let{node:e,left:o,top:n}of i)t&&e.scrollTop!=n&&(e.scrollTop=n),e.scrollLeft!=o&&(e.scrollLeft=o)}var Tl=null;Ce.safari&&Ce.safari_version>=26&&(Tl=!1);function bN(i){if(i.setActive)return i.setActive();if(Tl)return i.focus(Tl);let t=gN(i);i.focus(Tl==null?{get preventScroll(){return Tl={preventScroll:!0},!0}}:void 0),Tl||(Tl=!1,mN(t))}var FA;function Ru(i,t,e=t){let o=FA||(FA=document.createRange());return o.setEnd(i,e),o.setStart(i,t),o}function Pc(i,t,e,o){let n={key:t,code:t,keyCode:e,which:e,cancelable:!0};o&&({altKey:n.altKey,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,metaKey:n.metaKey}=o);let c=new KeyboardEvent("keydown",n);c.synthetic=!0,i.dispatchEvent(c);let g=new KeyboardEvent("keyup",n);return g.synthetic=!0,i.dispatchEvent(g),c.defaultPrevented||g.defaultPrevented}function z2(i){for(;i;){if(i&&(i.nodeType==9||i.nodeType==11&&i.host))return i;i=i.assignedSlot||i.parentNode}return null}function j2(i,t){let e=t.focusNode,o=t.focusOffset;if(!e||t.anchorNode!=e||t.anchorOffset!=o)return!1;for(o=Math.min(o,xn(e));;)if(o){if(e.nodeType!=1)return!1;let n=e.childNodes[o-1];n.contentEditable=="false"?o--:(e=n,o=xn(e))}else{if(e==i)return!0;o=ia(e),e=e.parentNode}}function wN(i){return i instanceof Window?i.pageYOffset>Math.max(0,i.document.documentElement.scrollHeight-i.innerHeight-4):i.scrollTop>Math.max(1,i.scrollHeight-i.clientHeight-4)}function xN(i,t){for(let e=i,o=t;;){if(e.nodeType==3&&o>0)return{node:e,offset:o};if(e.nodeType==1&&o>0){if(e.contentEditable=="false")return null;e=e.childNodes[o-1],o=xn(e)}else if(e.parentNode&&!Xf(e))o=ia(e),e=e.parentNode;else return null}}function vN(i,t){for(let e=i,o=t;;){if(e.nodeType==3&&o<e.nodeValue.length)return{node:e,offset:o};if(e.nodeType==1&&o<e.childNodes.length){if(e.contentEditable=="false")return null;e=e.childNodes[o],o=0}else if(e.parentNode&&!Xf(e))o=ia(e)+1,e=e.parentNode;else return null}}var Ls=class i{constructor(t,e,o=!0){this.node=t,this.offset=e,this.precise=o}static before(t,e){return new i(t.parentNode,ia(t),e)}static after(t,e){return new i(t.parentNode,ia(t)+1,e)}},Et=function(i){return i[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i}(Et||(Et={})),kl=Et.LTR,VE=Et.RTL;function yN(i){let t=[];for(let e=0;e<i.length;e++)t.push(1<<+i[e]);return t}var $2=yN("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),q2=yN("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Yy=Object.create(null),Ss=[];for(let i of["()","[]","{}"]){let t=i.charCodeAt(0),e=i.charCodeAt(1);Yy[t]=e,Yy[e]=-t}function EN(i){return i<=247?$2[i]:1424<=i&&i<=1524?2:1536<=i&&i<=1785?q2[i-1536]:1774<=i&&i<=2220?4:8192<=i&&i<=8204?256:64336<=i&&i<=65023?4:1}var K2=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,Ro=class{get dir(){return this.level%2?VE:kl}constructor(t,e,o){this.from=t,this.to=e,this.level=o}side(t,e){return this.dir==e==t?this.to:this.from}forward(t,e){return t==(this.dir==e)}static find(t,e,o,n){let c=-1;for(let g=0;g<t.length;g++){let w=t[g];if(w.from<=e&&w.to>=e){if(w.level==o)return g;(c<0||(n!=0?n<0?w.from<e:w.to>e:t[c].level>w.level))&&(c=g)}}if(c<0)throw new RangeError("Index out of range");return c}};function CN(i,t){if(i.length!=t.length)return!1;for(let e=0;e<i.length;e++){let o=i[e],n=t[e];if(o.from!=n.from||o.to!=n.to||o.direction!=n.direction||!CN(o.inner,n.inner))return!1}return!0}var kt=[];function eV(i,t,e,o,n){for(let c=0;c<=o.length;c++){let g=c?o[c-1].to:t,w=c<o.length?o[c].from:e,y=c?256:n;for(let A=g,R=y,T=y;A<w;A++){let F=EN(i.charCodeAt(A));F==512?F=R:F==8&&T==4&&(F=16),kt[A]=F==4?2:F,F&7&&(T=F),R=F}for(let A=g,R=y,T=y;A<w;A++){let F=kt[A];if(F==128)A<w-1&&R==kt[A+1]&&R&24?F=kt[A]=R:kt[A]=256;else if(F==64){let k=A+1;for(;k<w&&kt[k]==64;)k++;let G=A&&R==8||k<e&&kt[k]==8?T==1?1:8:256;for(let W=A;W<k;W++)kt[W]=G;A=k-1}else F==8&&T==1&&(kt[A]=1);R=F,F&7&&(T=F)}}}function tV(i,t,e,o,n){let c=n==1?2:1;for(let g=0,w=0,y=0;g<=o.length;g++){let A=g?o[g-1].to:t,R=g<o.length?o[g].from:e;for(let T=A,F,k,G;T<R;T++)if(k=Yy[F=i.charCodeAt(T)])if(k<0){for(let W=w-3;W>=0;W-=3)if(Ss[W+1]==-k){let P=Ss[W+2],Q=P&2?n:P&4?P&1?c:n:0;Q&&(kt[T]=kt[Ss[W]]=Q),w=W;break}}else{if(Ss.length==189)break;Ss[w++]=T,Ss[w++]=F,Ss[w++]=y}else if((G=kt[T])==2||G==1){let W=G==n;y=W?0:1;for(let P=w-3;P>=0;P-=3){let Q=Ss[P+2];if(Q&2)break;if(W)Ss[P+2]|=2;else{if(Q&4)break;Ss[P+2]|=4}}}}}function iV(i,t,e,o){for(let n=0,c=o;n<=e.length;n++){let g=n?e[n-1].to:i,w=n<e.length?e[n].from:t;for(let y=g;y<w;){let A=kt[y];if(A==256){let R=y+1;for(;;)if(R==w){if(n==e.length)break;R=e[n++].to,w=n<e.length?e[n].from:t}else if(kt[R]==256)R++;else break;let T=c==1,F=(R<t?kt[R]:o)==1,k=T==F?T?1:2:o;for(let G=R,W=n,P=W?e[W-1].to:i;G>y;)G==P&&(G=e[--W].from,P=W?e[W-1].to:i),kt[--G]=k;y=R}else c=A,y++}}}function Hy(i,t,e,o,n,c,g){let w=o%2?2:1;if(o%2==n%2)for(let y=t,A=0;y<e;){let R=!0,T=!1;if(A==c.length||y<c[A].from){let W=kt[y];W!=w&&(R=!1,T=W==16)}let F=!R&&w==1?[]:null,k=R?o:o+1,G=y;e:for(;;)if(A<c.length&&G==c[A].from){if(T)break e;let W=c[A];if(!R)for(let P=W.to,Q=A+1;;){if(P==e)break e;if(Q<c.length&&c[Q].from==P)P=c[Q++].to;else{if(kt[P]==w)break e;break}}if(A++,F)F.push(W);else{W.from>y&&g.push(new Ro(y,W.from,k));let P=W.direction==kl!=!(k%2);Jy(i,P?o+1:o,n,W.inner,W.from,W.to,g),y=W.to}G=W.to}else{if(G==e||(R?kt[G]!=w:kt[G]==w))break;G++}F?Hy(i,y,G,o+1,n,F,g):y<G&&g.push(new Ro(y,G,k)),y=G}else for(let y=e,A=c.length;y>t;){let R=!0,T=!1;if(!A||y>c[A-1].to){let W=kt[y-1];W!=w&&(R=!1,T=W==16)}let F=!R&&w==1?[]:null,k=R?o:o+1,G=y;e:for(;;)if(A&&G==c[A-1].to){if(T)break e;let W=c[--A];if(!R)for(let P=W.from,Q=A;;){if(P==t)break e;if(Q&&c[Q-1].to==P)P=c[--Q].from;else{if(kt[P-1]==w)break e;break}}if(F)F.push(W);else{W.to<y&&g.push(new Ro(W.to,y,k));let P=W.direction==kl!=!(k%2);Jy(i,P?o+1:o,n,W.inner,W.from,W.to,g),y=W.from}G=W.from}else{if(G==t||(R?kt[G-1]!=w:kt[G-1]==w))break;G--}F?Hy(i,G,y,o+1,n,F,g):G<y&&g.push(new Ro(G,y,k)),y=G}}function Jy(i,t,e,o,n,c,g){let w=t%2?2:1;eV(i,n,c,o,w),tV(i,n,c,o,w),iV(n,c,o,w),Hy(i,n,c,t,e,o,g)}function rV(i,t,e){if(!i)return[new Ro(0,0,t==VE?1:0)];if(t==kl&&!e.length&&!K2.test(i))return IN(i.length);if(e.length)for(;i.length>kt.length;)kt[kt.length]=256;let o=[],n=t==kl?0:1;return Jy(i,n,n,e,0,i.length,o),o}function IN(i){return[new Ro(0,i,0)]}var AN="";function oV(i,t,e,o,n){var c;let g=o.head-i.from,w=Ro.find(t,g,(c=o.bidiLevel)!==null&&c!==void 0?c:-1,o.assoc),y=t[w],A=y.side(n,e);if(g==A){let F=w+=n?1:-1;if(F<0||F>=t.length)return null;y=t[w=F],g=y.side(!n,e),A=y.side(n,e)}let R=wi(i.text,g,y.forward(n,e));(R<y.from||R>y.to)&&(R=A),AN=i.text.slice(Math.min(g,R),Math.max(g,R));let T=w==(n?t.length-1:0)?null:t[w+(n?1:-1)];return T&&R==A&&T.level+(n?0:1)<y.level?se.cursor(T.side(!n,e)+i.from,T.forward(n,e)?1:-1,T.level):se.cursor(R+i.from,y.forward(n,e)?-1:1,y.level)}function sV(i,t,e){for(let o=t;o<e;o++){let n=EN(i.charCodeAt(o));if(n==1)return kl;if(n==2||n==4)return VE}return kl}var NN=Se.define(),RN=Se.define(),TN=Se.define(),SN=Se.define(),zy=Se.define(),LN=Se.define(),BN=Se.define(),FE=Se.define(),UE=Se.define(),kN=Se.define({combine:i=>i.some(t=>t)}),VN=Se.define({combine:i=>i.some(t=>t)}),FN=Se.define(),bu=class i{constructor(t,e,o,n,c,g=!1){this.range=t,this.y=e,this.x=o,this.yMargin=n,this.xMargin=c,this.isSnapshot=g}map(t){return t.empty?this:new i(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new i(se.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},Lf=et.define({map:(i,t)=>i.map(t)}),UN=et.define();function Ir(i,t,e){let o=i.facet(SN);o.length?o[0](t):window.onerror&&window.onerror(String(t),e,void 0,void 0,t)||(e?console.error(e+":",t):console.error(t))}var bn=Se.define({combine:i=>i.length?i[0]:!0}),nV=0,Gc=Se.define({combine(i){return i.filter((t,e)=>{for(let o=0;o<e;o++)if(i[o].plugin==t.plugin)return!1;return!0})}}),vi=class i{constructor(t,e,o,n,c){this.id=t,this.create=e,this.domEventHandlers=o,this.domEventObservers=n,this.baseExtensions=c(this),this.extension=this.baseExtensions.concat(Gc.of({plugin:this,arg:void 0}))}of(t){return this.baseExtensions.concat(Gc.of({plugin:this,arg:t}))}static define(t,e){let{eventHandlers:o,eventObservers:n,provide:c,decorations:g}=e||{};return new i(nV++,t,o,n,w=>{let y=[];return g&&y.push(sd.of(A=>{let R=A.plugin(w);return R?g(R):ze.none})),c&&y.push(c(w)),y})}static fromClass(t,e){return i.define((o,n)=>new t(o,n),e)}},wu=class{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(o){if(Ir(e.state,o,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(t,this.spec.arg)}catch(e){Ir(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(!((e=this.value)===null||e===void 0)&&e.destroy)try{this.value.destroy()}catch(o){Ir(t.state,o,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},_N=Se.define(),_E=Se.define(),sd=Se.define(),ON=Se.define(),OE=Se.define(),Su=Se.define(),GN=Se.define();function UA(i,t){let e=i.state.facet(GN);if(!e.length)return e;let o=e.map(c=>c instanceof Function?c(i):c),n=[];return ht.spans(o,t.from,t.to,{point(){},span(c,g,w,y){let A=c-t.from,R=g-t.from,T=n;for(let F=w.length-1;F>=0;F--,y--){let k=w[F].spec.bidiIsolate,G;if(k==null&&(k=sV(t.text,A,R)),y>0&&T.length&&(G=T[T.length-1]).to==A&&G.direction==k)G.to=R,T=G.inner;else{let W={from:A,to:R,direction:k,inner:[]};T.push(W),T=W.inner}}}}),n}var ZN=Se.define();function GE(i){let t=0,e=0,o=0,n=0;for(let c of i.state.facet(ZN)){let g=c(i);g&&(g.left!=null&&(t=Math.max(t,g.left)),g.right!=null&&(e=Math.max(e,g.right)),g.top!=null&&(o=Math.max(o,g.top)),g.bottom!=null&&(n=Math.max(n,g.bottom)))}return{left:t,right:e,top:o,bottom:n}}var uu=Se.define(),rs=class i{constructor(t,e,o,n){this.fromA=t,this.toA=e,this.fromB=o,this.toB=n}join(t){return new i(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,o=this;for(;e>0;e--){let n=t[e-1];if(!(n.fromA>o.toA)){if(n.toA<o.fromA)break;o=o.join(n),t.splice(e-1,1)}}return t.splice(e,0,o),t}static extendWithRanges(t,e){if(e.length==0)return t;let o=[];for(let n=0,c=0,g=0;;){let w=n<t.length?t[n].fromB:1e9,y=c<e.length?e[c]:1e9,A=Math.min(w,y);if(A==1e9)break;let R=A+g,T=A,F=R;for(;;)if(c<e.length&&e[c]<=T){let k=e[c+1];c+=2,T=Math.max(T,k);for(let G=n;G<t.length&&t[G].fromB<=T;G++)g=t[G].toA-t[G].toB;F=Math.max(F,k+g)}else if(n<t.length&&t[n].fromB<=T){let k=t[n++];T=Math.max(T,k.toB),F=Math.max(F,k.toA),g=k.toA-k.toB}else break;o.push(new i(R,F,A,T))}return o}},Hf=class i{constructor(t,e,o){this.view=t,this.state=e,this.transactions=o,this.flags=0,this.startState=t.state,this.changes=yr.empty(this.startState.doc.length);for(let c of o)this.changes=this.changes.compose(c.changes);let n=[];this.changes.iterChangedRanges((c,g,w,y)=>n.push(new rs(c,g,w,y))),this.changedRanges=n}static create(t,e,o){return new i(t,e,o)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},aV=[],Ht=class{constructor(t,e,o=0){this.dom=t,this.length=e,this.flags=o,this.parent=null,t.cmTile=this}get breakAfter(){return this.flags&1}get children(){return aV}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(t){if(this.flags|=2,this.flags&4){this.flags&=-5;let e=this.domAttrs;e&&Q2(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(t){this.dom=t,t.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t,e=this.posAtStart){let o=e;for(let n of this.children){if(n==t)return o;o+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}covers(t){return!0}coordsIn(t,e,o){return null}domPosFor(t,e){let o=ia(this.dom),n=this.length?t>0:e>0;return new Ls(this.parent.dom,o+(n?1:0),t==0||t==this.length)}markDirty(t){this.flags&=-3,t&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let t=this;t;t=t.parent)if(t instanceof Xc)return t;return null}static get(t){return t.cmTile}},Qc=class extends Ht{constructor(t){super(t,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(t){this.children.push(t),t.parent=this}sync(t){if(this.flags&2)return;super.sync(t);let e=this.dom,o=null,n,c=t?.node==e?t:null,g=0;for(let w of this.children){if(w.sync(t),g+=w.length+w.breakAfter,n=o?o.nextSibling:e.firstChild,c&&n!=w.dom&&(c.written=!0),w.dom.parentNode==e)for(;n&&n!=w.dom;)n=_A(n);else e.insertBefore(w.dom,n);o=w.dom}for(n=o?o.nextSibling:e.firstChild,c&&n&&(c.written=!0);n;)n=_A(n);this.length=g}};function _A(i){let t=i.nextSibling;return i.parentNode.removeChild(i),t}var Xc=class extends Qc{constructor(t,e){super(e),this.view=t}owns(t){for(;t;t=t.parent)if(t==this)return!0;return!1}isBlock(){return!0}nearest(t){for(;;){if(!t)return null;let e=Ht.get(t);if(e&&this.owns(e))return e;t=t.parentNode}}blockTiles(t){for(let e=[],o=this,n=0,c=0;;)if(n==o.children.length){if(!e.length)return;o=o.parent,o.breakAfter&&c++,n=e.pop()}else{let g=o.children[n++];if(g instanceof wn)e.push(n),o=g,n=0;else{let w=c+g.length,y=t(g,c);if(y!==void 0)return y;c=w+g.breakAfter}}}resolveBlock(t,e){let o,n=-1,c,g=-1;if(this.blockTiles((w,y)=>{let A=y+w.length;if(t>=y&&t<=A){if(w.isWidget()&&e>=-1&&e<=1){if(w.flags&32)return!0;w.flags&16&&(o=void 0)}(y<t||t==A&&(e<-1?w.length:w.covers(1)))&&(!o||!w.isWidget()&&o.isWidget())&&(o=w,n=t-y),(A>t||t==y&&(e>1?w.length:w.covers(-1)))&&(!c||!w.isWidget()&&c.isWidget())&&(c=w,g=t-y)}}),!o&&!c)throw new Error("No tile at position "+t);return o&&e<0||!c?{tile:o,offset:n}:{tile:c,offset:g}}},wn=class i extends Qc{constructor(t,e){super(t),this.wrapper=e}isBlock(){return!0}covers(t){return this.children.length?t<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(t,e){let o=new i(e||document.createElement(t.tagName),t);return e||(o.flags|=4),o}},Yc=class i extends Qc{constructor(t,e){super(t),this.attrs=e}isLine(){return!0}static start(t,e,o){let n=new i(e||document.createElement("div"),t);return(!e||!o)&&(n.flags|=4),n}get domAttrs(){return this.attrs}resolveInline(t,e,o){let n=null,c=-1,g=null,w=-1;function y(R,T){for(let F=0,k=0;F<R.children.length&&k<=T;F++){let G=R.children[F],W=k+G.length;W>=T&&(G.isComposite()?y(G,T-k):(!g||g.isHidden&&(e>0&&!(g.flags&32)||o&&cV(g,G)))&&(W>T||G.flags&32&&e<=1)?(g=G,w=T-k):(k<T||G.flags&16&&!G.isHidden&&e>=-1)&&(n=G,c=T-k)),k=W}}y(this,t);let A=(e<0?n:g)||n||g;return A?{tile:A,offset:A==n?c:w}:null}coordsIn(t,e,o){let n=this.resolveInline(t,e,!0);return n?n.tile.coordsIn(Math.max(0,n.offset),e,o):lV(this)}domIn(t,e){let o=this.resolveInline(t,e);if(o){let{tile:n,offset:c}=o;if(this.dom.contains(n.dom))return n.isText()?new Ls(n.dom,Math.min(n.dom.nodeValue.length,c)):n.domPosFor(c,n.flags&16?1:n.flags&32?-1:e);let g=o.tile.parent,w=!1;for(let y of g.children){if(w)return new Ls(y.dom,0);y==o.tile&&(w=!0)}}return new Ls(this.dom,0)}};function lV(i){let t=i.dom.lastChild;if(!t)return i.dom.getBoundingClientRect();let e=Gf(t);return e[e.length-1]||null}function cV(i,t){let e=i.coordsIn(0,1),o=t.coordsIn(0,1);return e&&o&&o.top<e.bottom}var Qr=class i extends Qc{constructor(t,e){super(t),this.mark=e}get domAttrs(){return this.mark.attrs}static of(t,e){let o=new i(e||document.createElement(t.tagName),t);return e||(o.flags|=4),o}},Sl=class i extends Ht{constructor(t,e){super(t,e.length),this.text=e}sync(t){this.flags&2||(super.sync(t),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(t,e,o){let n=this.dom.nodeValue.length;t>n&&(t=n);let c=t,g=t,w=0;t==0&&e<0||t==n&&e>=0?Ce.chrome||Ce.gecko||(t?(c--,w=1):g<n&&(g++,w=-1)):e<0?c--:g<n&&g++;let y=Ru(this.dom,c,g).getClientRects();if(!y.length)return null;let A=y[(w?w<0:e>=0)?0:y.length-1];return Ce.safari&&!w&&A.width==0&&(A=Array.prototype.find.call(y,R=>R.width)||A),o==null?A:Yf(A,(w?w>0:e<0)==o)}static of(t,e){let o=new i(e||document.createTextNode(t),t);return e||(o.flags|=2),o}},Vl=class i extends Ht{constructor(t,e,o,n){super(t,e,n),this.widget=o}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(t){return this.flags&48?!1:(this.flags&(t<0?64:128))>0}coordsIn(t,e){return this.coordsInWidget(t,e,!1)}coordsInWidget(t,e,o){let n=this.widget.coordsAt(this.dom,t,e);if(n)return n;if(o)return Yf(this.dom.getBoundingClientRect(),this.length?t==0:e<=0);{let c=this.dom.getClientRects(),g=null;if(!c.length)return null;let w=this.flags&16?!0:this.flags&32?!1:t>0;for(let y=w?c.length-1:0;g=c[y],!(t>0?y==0:y==c.length-1||g.top<g.bottom);y+=w?-1:1);return Yf(g,!w)}}get overrideDOMText(){if(!this.length)return gt.empty;let{root:t}=this;if(!t)return gt.empty;let e=this.posAtStart;return t.view.state.doc.slice(e,e+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(t,e,o,n,c){return c||(c=t.toDOM(e),t.editable||(c.contentEditable="false")),new i(c,o,t,n)}},Hc=class extends Ht{constructor(t){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),super(e,0,t)}get isHidden(){return!0}get overrideDOMText(){return gt.empty}coordsIn(t,e,o){let n=this.dom.getBoundingClientRect();return o==null?n:Yf(n,e>0==o)}},jy=class{constructor(t){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=t}advance(t,e,o){let{tile:n,index:c,beforeBreak:g,parents:w}=this;for(;t||e>0;)if(n.isComposite())if(g){if(!t)break;o&&o.break(),t--,g=!1}else if(c==n.children.length){if(!t&&!w.length)break;o&&o.leave(n),g=!!n.breakAfter,{tile:n,index:c}=w.pop(),c++}else{let y=n.children[c],A=y.breakAfter;(e>0?y.length<=t:y.length<t)&&(!o||o.skip(y,0,y.length)!==!1||!y.isComposite)?(g=!!A,c++,t-=y.length):(w.push({tile:n,index:c}),n=y,c=0,o&&y.isComposite()&&o.enter(y))}else{let y=n.length;if(c<y&&t){let A=Math.min(t,y-c);o&&o.skip(n,c,c+A),t-=A,c+=A}if(c==y)g=!!n.breakAfter,{tile:n,index:c}=w.pop(),c++;else if(!t)break}return this.tile=n,this.index=c,this.beforeBreak=g,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}},$y=class{constructor(t,e,o,n){this.from=t,this.to=e,this.wrapper=o,this.rank=n}},qy=class{constructor(t,e,o){this.cache=t,this.root=e,this.blockWrappers=o,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(t,e,o,n){var c;this.flushBuffer();let g=this.ensureMarks(e,o),w=g.lastChild;if(w&&w.isText()&&!(w.flags&8)&&w.length+t.length<512){this.cache.reused.set(w,2);let y=g.children[g.children.length-1]=new Sl(w.dom,w.text+t);y.parent=g}else g.append(n||Sl.of(t,(c=this.cache.find(Sl))===null||c===void 0?void 0:c.dom));this.pos+=t.length,this.afterWidget=null}addComposition(t,e){let o=this.curLine;o.dom!=e.line.dom&&(o.setDOM(this.cache.reused.has(e.line)?Fy(e.line.dom):e.line.dom),this.cache.reused.set(e.line,2));let n=o;for(let w=e.marks.length-1;w>=0;w--){let y=e.marks[w],A=n.lastChild;if(A instanceof Qr&&A.mark.eq(y.mark))A.dom!=y.dom&&A.setDOM(Fy(y.dom)),n=A;else{if(this.cache.reused.get(y)){let T=Ht.get(y.dom);T&&T.setDOM(Fy(y.dom))}let R=Qr.of(y.mark,y.dom);n.append(R),n=R}this.cache.reused.set(y,2)}let c=Ht.get(t.text);c&&this.cache.reused.set(c,2);let g=new Sl(t.text,t.text.nodeValue);g.flags|=8,this.pos=t.range.toB,n.append(g)}addInlineWidget(t,e,o){let n=this.afterWidget&&t.flags&48&&(this.afterWidget.flags&48)==(t.flags&48);n||this.flushBuffer();let c=this.ensureMarks(e,o);!n&&!(t.flags&16)&&c.append(this.getBuffer(1)),c.append(t),this.pos+=t.length,this.afterWidget=t}addMark(t,e,o){this.flushBuffer(),this.ensureMarks(e,o).append(t),this.pos+=t.length,this.afterWidget=null}addBlockWidget(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine()}continueWidget(t){let e=this.afterWidget||this.lastBlock;e.length+=t,this.pos+=t}addLineStart(t,e){var o;t||(t=MN);let n=Yc.start(t,e||((o=this.cache.find(Yc))===null||o===void 0?void 0:o.dom),!!e);this.getBlockPos().append(this.lastBlock=this.curLine=n)}addLine(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(t){this.blockPosCovered()||this.addLineStart(t)}ensureLine(t){this.curLine||this.addLineStart(t)}ensureMarks(t,e){var o;let n=this.curLine;for(let c=t.length-1;c>=0;c--){let g=t[c],w;if(e>0&&(w=n.lastChild)&&w instanceof Qr&&w.mark.eq(g))n=w,e--;else{let y=Qr.of(g,(o=this.cache.find(Qr,A=>A.mark.eq(g)))===null||o===void 0?void 0:o.dom);n.append(y),n=y,e=0}}return n}endLine(){if(this.curLine){this.flushBuffer();let t=this.curLine.lastChild;(!t||!OA(this.curLine,!1)||t.dom.nodeName!="BR"&&t.isWidget()&&!(Ce.ios&&OA(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(Uy,0,32)||new Vl(Uy.toDOM(),0,Uy,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let t=this.wrappers.length-1;t>=0;t--)this.wrappers[t].to<this.pos&&this.wrappers.splice(t,1);for(let t=this.blockWrappers;t.value&&t.from<=this.pos;t.next())if(t.to>=this.pos){let e=t.rank*102+t.value.rank,o=new $y(t.from,t.to,t.value,e),n=this.wrappers.length;for(;n>0&&(this.wrappers[n-1].rank-o.rank||this.wrappers[n-1].to-o.to)<0;)n--;this.wrappers.splice(n,0,o)}this.wrapperPos=this.pos}getBlockPos(){var t;this.updateBlockWrappers();let e=this.root;for(let o of this.wrappers){let n=e.lastChild;if(o.from<this.pos&&n instanceof wn&&n.wrapper.eq(o.wrapper))e=n;else{let c=wn.of(o.wrapper,(t=this.cache.find(wn,g=>g.wrapper.eq(o.wrapper)))===null||t===void 0?void 0:t.dom);e.append(c),e=c}}return e}blockPosCovered(){let t=this.lastBlock;return t!=null&&!t.breakAfter&&(!t.isWidget()||(t.flags&160)>0)}getBuffer(t){let e=2|(t<0?16:32),o=this.cache.find(Hc,void 0,1);return o&&(o.flags=e),o||new Hc(e)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}},Ky=class{constructor(t){this.skipCount=0,this.text="",this.textOff=0,this.cursor=t.iter()}skip(t){this.textOff+t<=this.text.length?this.textOff+=t:(this.skipCount+=t-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(t){if(this.textOff==this.text.length){let{value:n,lineBreak:c,done:g}=this.cursor.next(this.skipCount);if(this.skipCount=0,g)throw new Error("Ran out of text content when drawing inline views");this.text=n;let w=this.textOff=Math.min(t,n.length);return c?null:n.slice(0,w)}let e=Math.min(this.text.length,this.textOff+t),o=this.text.slice(this.textOff,e);return this.textOff=e,o}},Jf=[Vl,Yc,Sl,Qr,Hc,wn,Xc];for(let i=0;i<Jf.length;i++)Jf[i].bucket=i;var eE=class{constructor(t){this.view=t,this.buckets=Jf.map(()=>[]),this.index=Jf.map(()=>0),this.reused=new Map}add(t){let e=t.constructor.bucket,o=this.buckets[e];o.length<6?o.push(t):o[this.index[e]=(this.index[e]+1)%6]=t}find(t,e,o=2){let n=t.bucket,c=this.buckets[n],g=this.index[n];for(let w=0;w<c.length;w++){let y=(w+g)%c.length,A=c[y];if((!e||e(A))&&!this.reused.has(A))return c.splice(y,1),y<g&&this.index[n]--,this.reused.set(A,o),A}return null}findWidget(t,e,o){let n=this.buckets[0];if(n.length)for(let c=0,g=0;;c++){if(c==n.length){if(g)return null;g=1,c=0}let w=n[c];if(!this.reused.has(w)&&(g==0?w.widget.compare(t):w.widget.constructor==t.constructor&&t.updateDOM(w.dom,this.view,w.widget)))return n.splice(c,1),c<this.index[0]&&this.index[0]--,w.widget==t&&w.length==e&&(w.flags&497)==o?(this.reused.set(w,1),w):(this.reused.set(w,2),new Vl(w.dom,e,t,w.flags&-498|o))}}reuse(t){return this.reused.set(t,1),t}maybeReuse(t,e=2){if(!this.reused.has(t))return this.reused.set(t,e),t.dom}clear(){for(let t=0;t<this.buckets.length;t++)this.buckets[t].length=this.index[t]=0}},tE=class{constructor(t,e,o,n,c){this.view=t,this.decorations=n,this.disallowBlockEffectsFor=c,this.openWidget=!1,this.openMarks=0,this.cache=new eE(t),this.text=new Ky(t.state.doc),this.builder=new qy(this.cache,new Xc(t,t.contentDOM),ht.iter(o)),this.cache.reused.set(e,2),this.old=new jy(e),this.reuseWalker={skip:(g,w,y)=>{if(this.cache.add(g),g.isComposite())return!1},enter:g=>this.cache.add(g),leave:()=>{},break:()=>{}}}run(t,e){let o=e&&this.getCompositionContext(e.text);for(let n=0,c=0,g=0;;){let w=g<t.length?t[g++]:null,y=w?w.fromA:this.old.root.length;if(y>n){let A=y-n;this.preserve(A,!g,!w),n=y,c+=A}if(!w)break;e&&w.fromA<=e.range.fromA&&w.toA>=e.range.toA?(this.forward(w.fromA,e.range.fromA,e.range.fromA<e.range.toA?1:-1),this.emit(c,e.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(e,o),this.text.skip(e.range.toB-e.range.fromB),this.forward(e.range.fromA,w.toA),this.emit(e.range.toB,w.toB)):(this.forward(w.fromA,w.toA),this.emit(c,w.toB)),c=w.toB,n=w.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(t,e,o){let n=uV(this.old),c=this.openMarks;this.old.advance(t,o?1:-1,{skip:(g,w,y)=>{if(g.isWidget())if(this.openWidget)this.builder.continueWidget(y-w);else{let A=y>0||w<g.length?Vl.of(g.widget,this.view,y-w,g.flags&496,this.cache.maybeReuse(g)):this.cache.reuse(g);A.flags&256?(A.flags&=-2,this.builder.addBlockWidget(A)):(this.builder.ensureLine(null),this.builder.addInlineWidget(A,n,c),c=n.length)}else if(g.isText())this.builder.ensureLine(null),!w&&y==g.length&&!this.cache.reused.has(g)?this.builder.addText(g.text,n,c,this.cache.reuse(g)):(this.cache.add(g),this.builder.addText(g.text.slice(w,y),n,c)),c=n.length;else if(g.isLine())g.flags&=-2,this.cache.reused.set(g,1),this.builder.addLine(g);else if(g instanceof Hc)this.cache.add(g);else if(g instanceof Qr)this.builder.ensureLine(null),this.builder.addMark(g,n,c),this.cache.reused.set(g,1),c=n.length;else return!1;this.openWidget=!1},enter:g=>{g.isLine()?this.builder.addLineStart(g.attrs,this.cache.maybeReuse(g)):(this.cache.add(g),g instanceof Qr&&n.unshift(g.mark)),this.openWidget=!1},leave:g=>{g.isLine()?n.length&&(n.length=c=0):g instanceof Qr&&(n.shift(),c=Math.min(c,n.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(t)}emit(t,e){let o=null,n=this.builder,c=-1,g=ht.spans(this.decorations,t,e,{point:(w,y,A,R,T,F)=>{if(A instanceof Bl){if(this.disallowBlockEffectsFor[F]){if(A.block)throw new RangeError("Block decorations may not be specified via plugins");if(y>this.view.state.doc.lineAt(w).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(c=R.length,T>R.length)n.continueWidget(y-w);else{let k=A.widget||(A.block?ra.block:ra.inline),G=hV(A),W=this.cache.findWidget(k,y-w,G)||Vl.of(k,this.view,y-w,G);A.block?(A.startSide>0&&n.addLineStartIfNotCovered(o),n.addBlockWidget(W)):(n.ensureLine(o),n.addInlineWidget(W,R,T))}o=null}else o=pV(o,A);y>w&&this.text.skip(y-w)},span:(w,y,A,R)=>{for(let T=w;T<y;){let F=this.text.next(Math.min(512,y-T));F==null?(n.addLineStartIfNotCovered(o),n.addBreak(),T++):(n.ensureLine(o),n.addText(F,A,T==w?R:A.length),T+=F.length),o=null}c=A.length}});c>-1&&(this.openWidget=g>c),this.openWidget||n.addLineStartIfNotCovered(o),this.openMarks=g}forward(t,e,o=1){e-t<=10?this.old.advance(e-t,o,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(e-t-10,-1),this.old.advance(5,o,this.reuseWalker))}getCompositionContext(t){let e=[],o=null;for(let n=t.parentNode;;n=n.parentNode){let c=Ht.get(n);if(n==this.view.contentDOM)break;c instanceof Qr?e.push(c):c?.isLine()?o=c:c instanceof wn||(n.nodeName=="DIV"&&!o&&n!=this.view.contentDOM?o=new Yc(n,MN):o||e.push(Qr.of(new Iu({tagName:n.nodeName.toLowerCase(),attributes:X2(n)}),n)))}return{line:o,marks:e}}};function OA(i,t){let e=o=>{for(let n of o.children)if((t?n.isText():n.length)||e(n))return!0;return!1};return e(i)}function hV(i){let t=i.isReplace?(i.startSide<0?64:0)|(i.endSide>0?128:0):i.startSide>0?32:16;return i.block&&(t|=256),t}var MN={class:"cm-line"};function pV(i,t){let e=t.spec.attributes,o=t.spec.class;return!e&&!o||(i||(i={class:"cm-line"}),e&&BE(e,i),o&&(i.class+=" "+o)),i}function uV(i){let t=[];for(let e=i.parents.length;e>1;e--){let o=e==i.parents.length?i.tile:i.parents[e].tile;o instanceof Qr&&t.push(o.mark)}return t}function Fy(i){let t=Ht.get(i);return t&&t.setDOM(i.cloneNode()),i}var ra=class extends Bs{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};ra.inline=new ra("span");ra.block=new ra("div");var Uy=new class extends Bs{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}},zf=class{constructor(t){this.view=t,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=ze.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new Xc(t,t.contentDOM),this.updateInner([new rs(0,0,0,t.state.doc.length)],null)}update(t){var e;let o=t.changedRanges;this.minWidth>0&&o.length&&(o.every(({fromA:R,toA:T})=>T<this.minWidthFrom||R>this.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((e=this.domChanged)===null||e===void 0)&&e.newSel?n=this.domChanged.newSel.head:!vV(t.changes,this.hasComposition)&&!t.selectionSet&&(n=t.state.selection.main.head));let c=n>-1?dV(this.view,t.changes,n):null;if(this.domChanged=null,this.hasComposition){let{from:R,to:T}=this.hasComposition;o=new rs(R,T,t.changes.mapPos(R,-1),t.changes.mapPos(T,1)).addToSet(o.slice())}this.hasComposition=c?{from:c.range.fromB,to:c.range.toB}:null,(Ce.ie||Ce.chrome)&&!c&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let g=this.decorations,w=this.blockWrappers;this.updateDeco();let y=bV(g,this.decorations,t.changes);y.length&&(o=rs.extendWithRanges(o,y));let A=wV(w,this.blockWrappers,t.changes);return A.length&&(o=rs.extendWithRanges(o,A)),c&&!o.some(R=>R.fromA<=c.range.fromA&&R.toA>=c.range.toA)&&(o=c.range.addToSet(o.slice())),this.tile.flags&2&&o.length==0?!1:(this.updateInner(o,c),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e){this.view.viewState.mustMeasureContent=!0;let{observer:o}=this.view;o.ignore(()=>{if(e||t.length){let g=this.tile,w=new tE(this.view,g,this.blockWrappers,this.decorations,this.dynamicDecorationMap);e&&Ht.get(e.text)&&w.cache.reused.set(Ht.get(e.text),2),this.tile=w.run(t,e),iE(g,w.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let c=Ce.chrome||Ce.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(c),c&&(c.written||o.selectionRange.focusNode!=c.node||!this.tile.dom.contains(c.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let c of this.tile.children)c.isWidget()&&c.widget instanceof xu&&n.push(c.dom);o.updateGaps(n)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let o of e.effects)o.is(UN)&&(this.editContextFormatting=o.value)}updateSelection(t=!1,e=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:o}=this.tile,n=this.view.root.activeElement,c=n==o,g=!c&&!(this.view.state.facet(bn)||o.tabIndex>-1)&&gu(o,this.view.observer.selectionRange)&&!(n&&o.contains(n));if(!(c||e||g))return;let w=this.forceSelection;this.forceSelection=!1;let y=this.view.state.selection.main,A,R;if(y.empty?R=A=this.inlineDOMNearPos(y.anchor,y.assoc||1):(R=this.inlineDOMNearPos(y.head,y.head==y.from?1:-1),A=this.inlineDOMNearPos(y.anchor,y.anchor==y.from?1:-1)),Ce.gecko&&y.empty&&!this.hasComposition&&fV(A)){let F=document.createTextNode("");this.view.observer.ignore(()=>A.node.insertBefore(F,A.node.childNodes[A.offset]||null)),A=R=new Ls(F,0),w=!0}let T=this.view.observer.selectionRange;(w||!T.focusNode||(!mu(A.node,A.offset,T.anchorNode,T.anchorOffset)||!mu(R.node,R.offset,T.focusNode,T.focusOffset))&&!this.suppressWidgetCursorChange(T,y))&&(this.view.observer.ignore(()=>{Ce.android&&Ce.chrome&&o.contains(T.focusNode)&&xV(T.focusNode,o)&&(o.blur(),o.focus({preventScroll:!0}));let F=Nu(this.view.root);if(F)if(y.empty){if(Ce.gecko){let k=gV(A.node,A.offset);if(k&&k!=3){let G=(k==1?xN:vN)(A.node,A.offset);G&&(A=new Ls(G.node,G.offset))}}F.collapse(A.node,A.offset),y.bidiLevel!=null&&F.caretBidiLevel!==void 0&&(F.caretBidiLevel=y.bidiLevel)}else if(F.extend){F.collapse(A.node,A.offset);try{F.extend(R.node,R.offset)}catch{}}else{let k=document.createRange();y.anchor>y.head&&([A,R]=[R,A]),k.setEnd(R.node,R.offset),k.setStart(A.node,A.offset),F.removeAllRanges(),F.addRange(k)}g&&this.view.root.activeElement==o&&(o.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(A,R)),this.impreciseAnchor=A.precise?null:new Ls(T.anchorNode,T.anchorOffset),this.impreciseHead=R.precise?null:new Ls(T.focusNode,T.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&mu(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,o=Nu(t.root),{anchorNode:n,anchorOffset:c}=t.observer.selectionRange;if(!o||!e.empty||!e.assoc||!o.modify)return;let g=this.lineAt(e.head,e.assoc);if(!g)return;let w=g.posAtStart;if(e.head==w||e.head==w+g.length)return;let y=this.coordsAt(e.head,-1),A=this.coordsAt(e.head,1);if(!y||!A||y.bottom>A.top)return;let R=this.domAtPos(e.head+e.assoc,e.assoc);o.collapse(R.node,R.offset),o.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let T=t.observer.selectionRange;t.docView.posFromDOM(T.anchorNode,T.anchorOffset)!=e.from&&o.collapse(n,c)}posFromDOM(t,e){let o=this.tile.nearest(t);if(!o)return this.tile.dom.compareDocumentPosition(t)&2?0:this.view.state.doc.length;let n=o.posAtStart;if(o.isComposite()){let c;if(t==o.dom)c=o.dom.childNodes[e];else{let g=xn(t)==0?0:e==0?-1:1;for(;;){let w=t.parentNode;if(w==o.dom)break;g==0&&w.firstChild!=w.lastChild&&(t==w.firstChild?g=-1:g=1),t=w}g<0?c=t:c=t.nextSibling}if(c==o.dom.firstChild)return n;for(;c&&!Ht.get(c);)c=c.nextSibling;if(!c)return n+o.length;for(let g=0,w=n;;g++){let y=o.children[g];if(y.dom==c)return w;w+=y.length+y.breakAfter}}else return o.isText()?t==o.dom?n+e:n+(e?o.length:0):n}domAtPos(t,e){let{tile:o,offset:n}=this.tile.resolveBlock(t,e);return o.isWidget()?o.domPosFor(n,e):o.domIn(n,e)}inlineDOMNearPos(t,e){let o,n=-1,c=!1,g,w=-1,y=!1;return this.tile.blockTiles((A,R)=>{if(A.isWidget()){if(A.flags&32&&R>=t)return!0;A.flags&16&&(c=!0)}else{let T=R+A.length;if(R<=t&&(o=A,n=t-R,c=T<t),T>=t&&!g&&(g=A,w=t-R,y=R>t),R>t&&g)return!0}}),!o&&!g?this.domAtPos(t,e):(c&&g?o=null:y&&o&&(g=null),o&&e<0||!g?o.domIn(n,e):g.domIn(w,e))}coordsAt(t,e,o){let{tile:n,offset:c}=this.tile.resolveBlock(t,e);return n.isWidget()?n.widget instanceof xu?null:n.coordsInWidget(c,e,!0):n.coordsIn(c,e,o)}lineAt(t,e){let{tile:o}=this.tile.resolveBlock(t,e);return o.isLine()?o:null}coordsForChar(t){let{tile:e,offset:o}=this.tile.resolveBlock(t,1);if(!e.isLine())return null;function n(c,g){if(c.isComposite())for(let w of c.children){if(w.length>=g){let y=n(w,g);if(y)return y}if(g-=w.length,g<0)break}else if(c.isText()&&g<c.length){let w=wi(c.text,g);if(w==g)return null;let y=Ru(c.dom,g,w).getClientRects();for(let A=0;A<y.length;A++){let R=y[A];if(A==y.length-1||R.top<R.bottom&&R.left<R.right)return R}}return null}return n(e,o)}measureVisibleLineHeights(t){let e=[],{from:o,to:n}=t,c=this.view.contentDOM.clientWidth,g=c>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,w=-1,y=this.view.textDirection==Et.LTR,A=0,R=(T,F,k)=>{for(let G=0;G<T.children.length&&!(F>n);G++){let W=T.children[G],P=F+W.length,Q=W.dom.getBoundingClientRect(),{height:H}=Q;if(k&&!G&&(A+=Q.top-k.top),W instanceof wn)P>o&&R(W,F,Q);else if(F>=o&&(A>0&&e.push(-A),e.push(H+A),A=0,g)){let re=W.dom.lastChild,K=re?Gf(re):[];if(K.length){let J=K[K.length-1],te=y?J.right-Q.left:Q.right-J.left;te>w&&(w=te,this.minWidth=c,this.minWidthFrom=F,this.minWidthTo=P)}}k&&G==T.children.length-1&&(A+=k.bottom-Q.bottom),F=P+W.breakAfter}};return R(this.tile,0,null),e}textDirectionAt(t){let{tile:e}=this.tile.resolveBlock(t,1);return getComputedStyle(e.dom).direction=="rtl"?Et.RTL:Et.LTR}measureTextSize(){let t=this.tile.blockTiles(g=>{if(g.isLine()&&g.children.length&&g.length<=20){let w=0,y;for(let A of g.children){if(!A.isText()||/[^ -~]/.test(A.text))return;let R=Gf(A.dom);if(R.length!=1)return;w+=R[0].width,y=R[0].height}if(w)return{lineHeight:g.dom.getBoundingClientRect().height,charWidth:w/g.length,textHeight:y}}});if(t)return t;let e=document.createElement("div"),o,n,c;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(e);let g=Gf(e.firstChild)[0];o=e.getBoundingClientRect().height,n=g&&g.width?g.width/27:7,c=g&&g.height?g.height:o,e.remove()}),{lineHeight:o,charWidth:n,textHeight:c}}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let o=0,n=0;;n++){let c=n==e.viewports.length?null:e.viewports[n],g=c?c.from-1:this.view.state.doc.length;if(g>o){let w=(e.lineBlockAt(g).bottom-e.lineBlockAt(o).top)/this.view.scaleY;t.push(ze.replace({widget:new xu(w),block:!0,inclusive:!0,isBlockGap:!0}).range(o,g))}if(!c)break;o=c.to+1}return ze.set(t)}updateDeco(){let t=1,e=this.view.state.facet(sd).map(c=>(this.dynamicDecorationMap[t++]=typeof c=="function")?c(this.view):c),o=!1,n=this.view.state.facet(OE).map((c,g)=>{let w=typeof c=="function";return w&&(o=!0),w?c(this.view):c});for(n.length&&(this.dynamicDecorationMap[t++]=o,e.push(ht.join(n))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];t<this.decorations.length;)this.dynamicDecorationMap[t++]=!1;this.blockWrappers=this.view.state.facet(ON).map(c=>typeof c=="function"?c(this.view):c)}scrollIntoView(t){if(t.isSnapshot){let A=this.view.viewState.lineBlockAt(t.range.head);this.view.scrollDOM.scrollTop=A.top-t.yMargin,this.view.scrollDOM.scrollLeft=t.xMargin;return}for(let A of this.view.state.facet(FN))try{if(A(this.view,t.range,t))return!0}catch(R){Ir(this.view.state,R,"scroll handler")}let{range:e}=t,o=this.coordsAt(e.head,e.assoc||(e.head>e.anchor?-1:1)),n;if(!o)return;!e.empty&&(n=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(o={left:Math.min(o.left,n.left),top:Math.min(o.top,n.top),right:Math.max(o.right,n.right),bottom:Math.max(o.bottom,n.bottom)});let c=GE(this.view),g={left:o.left-c.left,top:o.top-c.top,right:o.right+c.right,bottom:o.bottom+c.bottom},{offsetWidth:w,offsetHeight:y}=this.view.scrollDOM;if(J2(this.view.scrollDOM,g,e.head<e.anchor?-1:1,t.x,t.y,Math.max(Math.min(t.xMargin,w),-w),Math.max(Math.min(t.yMargin,y),-y),this.view.textDirection==Et.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(o.top>window.visualViewport.offsetTop+window.visualViewport.height||o.bottom<window.visualViewport.offsetTop)){let A=this.view.docView.lineAt(e.head,1);if(A){let R=gN(A.dom);A.dom.scrollIntoView({block:"nearest"}),mN(R,!1)}}}lineHasWidget(t){let e=o=>o.isWidget()||o.children.some(e);return e(this.tile.resolveBlock(t,1).tile)}destroy(){iE(this.tile)}};function iE(i,t){let e=t?.get(i);if(e!=1){e==null&&i.destroy();for(let o of i.children)iE(o,t)}}function fV(i){return i.node.nodeType==1&&i.node.firstChild&&(i.offset==0||i.node.childNodes[i.offset-1].contentEditable=="false")&&(i.offset==i.node.childNodes.length||i.node.childNodes[i.offset].contentEditable=="false")}function WN(i,t){let e=i.observer.selectionRange;if(!e.focusNode)return null;let o=xN(e.focusNode,e.focusOffset),n=vN(e.focusNode,e.focusOffset),c=o||n;if(n&&o&&n.node!=o.node){let w=Ht.get(n.node);if(!w||w.isText()&&w.text!=n.node.nodeValue)c=n;else if(i.docView.lastCompositionAfterCursor){let y=Ht.get(o.node);!y||y.isText()&&y.text!=o.node.nodeValue||(c=n)}}if(i.docView.lastCompositionAfterCursor=c!=o,!c)return null;let g=t-c.offset;return{from:g,to:g+c.node.nodeValue.length,node:c.node}}function dV(i,t,e){let o=WN(i,e);if(!o)return null;let{node:n,from:c,to:g}=o,w=n.nodeValue;if(/[\n\r]/.test(w)||i.state.doc.sliceString(o.from,o.to)!=w)return null;let y=t.invertedDesc;return{range:new rs(y.mapPos(c),y.mapPos(g),c,g),text:n}}function gV(i,t){return i.nodeType!=1?0:(t&&i.childNodes[t-1].contentEditable=="false"?1:0)|(t<i.childNodes.length&&i.childNodes[t].contentEditable=="false"?2:0)}var mV=class{constructor(){this.changes=[]}compareRange(t,e){Dc(t,e,this.changes)}comparePoint(t,e){Dc(t,e,this.changes)}boundChange(t){Dc(t,t,this.changes)}};function bV(i,t,e){let o=new mV;return ht.compare(i,t,e,o),o.changes}var rE=class{constructor(){this.changes=[]}compareRange(t,e){Dc(t,e,this.changes)}comparePoint(){}boundChange(t){Dc(t,t,this.changes)}};function wV(i,t,e){let o=new rE;return ht.compare(i,t,e,o),o.changes}function xV(i,t){for(let e=i;e&&e!=t;e=e.assignedSlot||e.parentNode)if(e.nodeType==1&&e.contentEditable=="false")return!0;return!1}function vV(i,t){let e=!1;return t&&i.iterChangedRanges((o,n)=>{o<t.to&&n>t.from&&(e=!0)}),e}var xu=class extends Bs{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}};function yV(i,t,e=1){let o=i.charCategorizer(t),n=i.doc.lineAt(t),c=t-n.from;if(n.length==0)return se.cursor(t);c==0?e=1:c==n.length&&(e=-1);let g=c,w=c;e<0?g=wi(n.text,c,!1):w=wi(n.text,c);let y=o(n.text.slice(g,w));for(;g>0;){let A=wi(n.text,g,!1);if(o(n.text.slice(A,g))!=y)break;g=A}for(;w<n.length;){let A=wi(n.text,w);if(o(n.text.slice(w,A))!=y)break;w=A}return se.undirectionalRange(g+n.from,w+n.from)}function EV(i,t,e,o,n){let c=Math.round((o-t.left)*i.defaultCharacterWidth);if(i.lineWrapping&&e.height>i.defaultLineHeight*1.5){let w=i.viewState.heightOracle.textHeight,y=Math.floor((n-e.top-(i.defaultLineHeight-w)*.5)/w);c+=y*i.viewState.heightOracle.lineLength}let g=i.state.sliceDoc(e.from,e.to);return e.from+Tf(g,c,i.state.tabSize)}function oE(i,t,e){let o=i.lineBlockAt(t);if(Array.isArray(o.type)){let n;for(let c of o.type){if(c.from>t)break;if(!(c.to<t)){if(c.from<t&&c.to>t)return c;(!n||c.type==$i.Text&&(n.type!=c.type||(e<0?c.from<t:c.to>t)))&&(n=c)}}return n||o}return o}function CV(i,t,e,o){let n=oE(i,t.head,t.assoc||-1),c=!o||n.type!=$i.Text||!(i.lineWrapping||n.widgetLineBreaks)?null:i.coordsAtPos(t.assoc<0&&t.head>n.from?t.head-1:t.head);if(c){let g=i.dom.getBoundingClientRect(),w=i.textDirectionAt(n.from),y=i.posAtCoords({x:e==(w==Et.LTR)?g.right-1:g.left+1,y:(c.top+c.bottom)/2});if(y!=null)return se.cursor(y,e?-1:1)}return se.cursor(e?n.to:n.from,e?-1:1)}function GA(i,t,e,o){let n=i.state.doc.lineAt(t.head),c=i.bidiSpans(n),g=i.textDirectionAt(n.from);for(let w=t,y=null;;){let A=oV(n,c,g,w,e),R=AN;if(!A){if(n.number==(e?i.state.doc.lines:1))return w;R=`
14
+ `,n=i.state.doc.line(n.number+(e?1:-1)),c=i.bidiSpans(n),A=i.visualLineSide(n,!e)}if(y){if(!y(R))return w}else{if(!o)return A;y=o(R)}w=A}}function IV(i,t,e){let o=i.state.charCategorizer(t),n=o(e);return c=>{let g=o(c);return n==At.Space&&(n=g),n==g}}function AV(i,t,e,o){let n=t.head,c=e?1:-1;if(n==(e?i.state.doc.length:0))return se.cursor(n,t.assoc);let g=t.goalColumn,w,y=i.contentDOM.getBoundingClientRect(),A=i.coordsAtPos(n,t.assoc||((t.empty?e:t.head==t.from)?1:-1)),R=i.documentTop;if(A)g==null&&(g=A.left-y.left),w=c<0?A.top:A.bottom;else{let G=i.viewState.lineBlockAt(n);g==null&&(g=Math.min(y.right-y.left,i.defaultCharacterWidth*(n-G.from))),w=(c<0?G.top:G.bottom)+R}let T=y.left+g,F=i.viewState.heightOracle.textHeight>>1,k=o??F;for(let G=0;;G+=F){let W=w+(k+G)*c,P=sE(i,{x:T,y:W},!1,c);if(e?W>y.bottom:W<y.top)return se.cursor(P.pos,P.assoc);let Q=i.coordsAtPos(P.pos,P.assoc),H=Q?(Q.top+Q.bottom)/2:0;if(!Q||(e?H>w:H<w))return se.cursor(P.pos,P.assoc,void 0,g)}}function vu(i,t,e){for(;;){let o=0;for(let n of i)n.between(t-1,t+1,(c,g,w)=>{if(t>c&&t<g){let y=o||e||(t-c<g-t?-1:1);t=y<0?c:g,o=y}});if(!o)return t}}function DN(i,t){let e=null;for(let o=0;o<t.ranges.length;o++){let n=t.ranges[o],c=null;if(n.empty){let g=vu(i,n.from,0);g!=n.from&&(c=se.cursor(g,-1))}else{let g=vu(i,n.from,-1),w=vu(i,n.to,1);(g!=n.from||w!=n.to)&&(n.undirectional?c=se.undirectionalRange(n.from,n.to):c=se.range(n.from==n.anchor?g:w,n.from==n.head?g:w))}c&&(e||(e=t.ranges.slice()),e[o]=c)}return e?se.create(e,t.mainIndex):t}function _y(i,t,e){let o=vu(i.state.facet(Su).map(n=>n(i)),e.from,t.head>e.from?-1:1);return o==e.from?e:se.cursor(o,o<e.from?1:-1)}var No=class{constructor(t,e){this.pos=t,this.assoc=e}};function sE(i,t,e,o){let n=i.contentDOM.getBoundingClientRect(),c=n.top+i.viewState.paddingTop,{x:g,y:w}=t,y=w-c,A;for(;;){if(y<0)return new No(0,1);if(y>i.viewState.docHeight)return new No(i.state.doc.length,-1);if(A=i.elementAtHeight(y),o==null)break;if(A.type==$i.Text){if(o<0?A.to<i.viewport.from:A.from>i.viewport.to)break;let F=i.docView.coordsAt(o<0?A.from:A.to,o>0?-1:1);if(F&&(o<0?F.top<=y+c:F.bottom>=y+c))break}let T=i.viewState.heightOracle.textHeight/2;y=o>0?A.bottom+T:A.top-T}if(i.viewport.from>=A.to||i.viewport.to<=A.from){if(e)return null;if(A.type==$i.Text){let T=EV(i,n,A,g,w);return new No(T,T==A.from?1:-1)}}if(A.type!=$i.Text)return y<(A.top+A.bottom)/2?new No(A.from,1):new No(A.to,-1);let R=i.docView.lineAt(A.from,2);return(!R||R.length!=A.length)&&(R=i.docView.lineAt(A.from,-2)),new nE(i,g,w,i.textDirectionAt(A.from)).scanTile(R,A.from)}var nE=class{constructor(t,e,o,n){this.view=t,this.x=e,this.y=o,this.baseDir=n,this.line=null,this.spans=null}bidiSpansAt(t){return(!this.line||this.line.from>t||this.line.to<t)&&(this.line=this.view.state.doc.lineAt(t),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(t,e){let{line:o,spans:n}=this.bidiSpansAt(t);return n[Ro.find(n,t-o.from,-1,e)].level==this.baseDir}dirAt(t,e){let{line:o,spans:n}=this.bidiSpansAt(t);return n[Ro.find(n,t-o.from,-1,e)].dir}bidiIn(t,e){let{spans:o,line:n}=this.bidiSpansAt(t);return o.length>1||o.length&&(o[0].level!=this.baseDir||o[0].to+n.from<e)}scan(t,e,o=!1){let n=0,c=t.length-1,g=new Set,w=this.bidiIn(t[0],t[c]),y,A,R=-1,T=1e9,F;e:for(;n<c;){let G=c-n,W=n+c>>1;t:if(g.has(W)){for(let H=1;H<G;H++){let re=W+H;if(re>=c&&(re-=G),!g.has(re)){W=re;break t}}break e}g.add(W);let P=e(W),Q=0;if(P)for(let H=0;H<P.length;H++){let re=P[H];if(!(re.width==0&&P.length>1))if(re.bottom<this.y)(!y||y.bottom<re.bottom)&&(y=re),Q=1;else if(re.top>this.y)(!A||A.top>re.top)&&(A=re),Q=-1;else{let K=re.left>this.x?this.x-re.left:re.right<this.x?this.x-re.right:0,J=Math.abs(K);J<T&&(R=W,T=J,F=re),K&&(Q=K<0==(this.baseDir==Et.LTR)?-1:1)}}Q==-1&&(!w||this.baseDirAt(t[W],1))?c=W:Q==1&&(!w||this.baseDirAt(t[W+1],-1))&&(n=W+1)}if(!F){if(!A&&!y)return{i:t[0],after:!1};let G=y&&(!A||this.y-y.bottom<A.top-this.y)?y:A;return this.y=(G.top+G.bottom)/2,this.scan(t,e,!0)}if(T&&!o){let{top:G,bottom:W}=F;if(y&&y.bottom>(G+G+W)/3)return this.y=y.bottom-1,this.scan(t,e,!0);if(A&&A.top<(G+W+W)/3)return this.y=A.top+1,this.scan(t,e,!0)}let k=(w?this.dirAt(t[R],1):this.baseDir)==Et.LTR;return{i:R,after:this.x>(F.left+F.right)/2==k}}scanText(t,e){let o=[];for(let c=0;c<t.length;c=wi(t.text,c))o.push(e+c);o.push(e+t.length);let n=this.scan(o,c=>{let g=o[c]-e,w=o[c+1]-e;return Ru(t.dom,g,w).getClientRects()});return n.after?new No(o[n.i+1],-1):new No(o[n.i],1)}scanTile(t,e){if(!t.length)return new No(e,1);if(t.children.length==1){let w=t.children[0];if(w.isText())return this.scanText(w,e);if(w.isComposite())return this.scanTile(w,e)}let o=[e];for(let w=0,y=e;w<t.children.length;w++)o.push(y+=t.children[w].length);let n=this.scan(o,w=>{let y=t.children[w];return y.flags&48?null:(y.dom.nodeType==1?y.dom:Ru(y.dom,0,y.length)).getClientRects()}),c=t.children[n.i],g=o[n.i];return c.isText()?this.scanText(c,g):c.isComposite()?this.scanTile(c,g):n.after?new No(o[n.i+1],-1):new No(g,1)}},Oc="\uFFFF",aE=class{constructor(t,e){this.points=t,this.view=e,this.text="",this.lineSeparator=e.state.facet(xt.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=Oc}readRange(t,e){if(!t)return this;let o=t.parentNode;for(let n=t;;){this.findPointBefore(o,n);let c=this.text.length;this.readNode(n);let g=Ht.get(n),w=n.nextSibling;if(w==e){g?.breakAfter&&!w&&o!=this.view.contentDOM&&this.lineBreak();break}let y=Ht.get(w);(g&&y?g.breakAfter:(g?g.breakAfter:Xf(n))||Xf(w)&&(n.nodeName!="BR"||g?.isWidget())&&this.text.length>c)&&!RV(w,e)&&this.lineBreak(),n=w}return this.findPointBefore(o,e),this}readTextNode(t){let e=t.nodeValue;for(let o of this.points)o.node==t&&(o.pos=this.text.length+Math.min(o.offset,e.length));for(let o=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let c=-1,g=1,w;if(this.lineSeparator?(c=e.indexOf(this.lineSeparator,o),g=this.lineSeparator.length):(w=n.exec(e))&&(c=w.index,g=w[0].length),this.append(e.slice(o,c<0?e.length:c)),c<0)break;if(this.lineBreak(),g>1)for(let y of this.points)y.node==t&&y.pos>this.text.length&&(y.pos-=g-1);o=c+g}}readNode(t){let e=Ht.get(t),o=e&&e.overrideDOMText;if(o!=null){this.findPointInside(t,o.length);for(let n=o.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let o of this.points)o.node==t&&t.childNodes[o.offset]==e&&(o.pos=this.text.length)}findPointInside(t,e){for(let o of this.points)(t.nodeType==3?o.node==t:t.contains(o.node))&&(o.pos=this.text.length+(NV(t,o.node,o.offset)?e:0))}};function NV(i,t,e){for(;;){if(!t||e<xn(t))return!1;if(t==i)return!0;e=ia(t)+1,t=t.parentNode}}function RV(i,t){let e;for(;!(i==t||!i);i=i.nextSibling){let o=Ht.get(i);if(!o?.isWidget())return!1;o&&(e||(e=[])).push(o)}if(e)for(let o of e){let n=o.overrideDOMText;if(n?.length)return!1}return!0}var jf=class{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}},lE=class{constructor(t,e,o,n){this.typeOver=n,this.bounds=null,this.text="",this.domChanged=e>-1;let{impreciseHead:c,impreciseAnchor:g}=t.docView,w=t.state.selection;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=PN(t.docView.tile,e,o,0))){let y=c||g?[]:SV(t),A=new aE(y,t);A.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=A.text,this.newSel=LV(y,this.bounds.from)}else{let y=t.observer.selectionRange,A=c&&c.node==y.focusNode&&c.offset==y.focusOffset||!Qy(t.contentDOM,y.focusNode)?w.main.head:t.docView.posFromDOM(y.focusNode,y.focusOffset),R=g&&g.node==y.anchorNode&&g.offset==y.anchorOffset||!Qy(t.contentDOM,y.anchorNode)?w.main.anchor:t.docView.posFromDOM(y.anchorNode,y.anchorOffset),T=t.viewport;if((Ce.ios||Ce.chrome)&&A!=R&&Math.min(A,R)<=w.main.from&&Math.max(A,R)>=w.main.to&&(T.from>0||T.to<t.state.doc.length)){let F=Math.min(A,R),k=Math.max(A,R),G=T.from-F,W=T.to-k;(G==0||G==1||F==0)&&(W==0||W==-1||k==t.state.doc.length)&&(A=0,R=t.state.doc.length)}if(t.inputState.composing>-1&&w.ranges.length>1)this.newSel=w.replaceRange(se.range(R,A));else if(t.lineWrapping&&R==A&&!(w.main.empty&&w.main.head==A)&&t.inputState.lastTouchTime>Date.now()-100){let F=t.coordsAtPos(A,-1),k=0;F&&(k=t.inputState.lastTouchY<=F.bottom?-1:1),this.newSel=se.create([se.cursor(A,k)])}else this.newSel=se.single(R,A)}}};function PN(i,t,e,o){if(i.isComposite()){let n=-1,c=-1,g=-1,w=-1;for(let y=0,A=o,R=o;y<i.children.length;y++){let T=i.children[y],F=A+T.length;if(A<t&&F>e)return PN(T,t,e,A);if(F>=t&&n==-1&&(n=y,c=A),A>e&&T.dom.parentNode==i.dom){g=y,w=R;break}R=F,A=F+T.breakAfter}return{from:c,to:w<0?o+i.length:w,startDOM:(n?i.children[n-1].dom.nextSibling:null)||i.dom.firstChild,endDOM:g<i.children.length&&g>=0?i.children[g].dom:null}}else return i.isText()?{from:o,to:o+i.length,startDOM:i.dom,endDOM:i.dom.nextSibling}:null}function QN(i,t){let e,{newSel:o}=t,{state:n}=i,c=n.selection.main,g=i.inputState.lastKeyTime>Date.now()-100?i.inputState.lastKeyCode:-1;if(t.bounds){let{from:w,to:y}=t.bounds,A=c.from,R=null;(g===8||Ce.android&&t.text.length<y-w)&&(A=c.to,R="end");let T=n.doc.sliceString(w,y,Oc),F,k;!c.empty&&c.from>=w&&c.to<=y&&(t.typeOver||T!=t.text)&&T.slice(0,c.from-w)==t.text.slice(0,c.from-w)&&T.slice(c.to-w)==t.text.slice(F=t.text.length-(T.length-(c.to-w)))?e={from:c.from,to:c.to,insert:gt.of(t.text.slice(c.from-w,F).split(Oc))}:(k=XN(T,t.text,A-w,R))&&(Ce.chrome&&g==13&&k.toB==k.from+2&&t.text.slice(k.from,k.toB)==Oc+Oc&&k.toB--,e={from:w+k.from,to:w+k.toA,insert:gt.of(t.text.slice(k.from,k.toB).split(Oc))})}else o&&(!i.hasFocus&&n.facet(bn)||$f(o,c))&&(o=null);if(!e&&!o)return!1;if((Ce.mac||Ce.android)&&e&&e.from==e.to&&e.from==c.head-1&&/^\. ?$/.test(e.insert.toString())&&i.contentDOM.getAttribute("autocorrect")=="off"?(o&&e.insert.length==2&&(o=se.single(o.main.anchor-1,o.main.head-1)),e={from:e.from,to:e.to,insert:gt.of([e.insert.toString().replace("."," ")])}):n.doc.lineAt(c.from).to<c.to&&i.docView.lineHasWidget(c.to)&&i.inputState.insertingTextAt>Date.now()-50?e={from:c.from,to:c.to,insert:n.toText(i.inputState.insertingText)}:Ce.chrome&&e&&e.from==e.to&&e.from==c.head&&e.insert.toString()==`
15
+ `&&i.lineWrapping&&(o&&(o=se.single(o.main.anchor-1,o.main.head-1)),e={from:c.from,to:c.to,insert:gt.of([" "])}),e)return ZE(i,e,o,g);if(o&&!$f(o,c)){let w=!1,y="select";return i.inputState.lastSelectionTime>Date.now()-50&&(i.inputState.lastSelectionOrigin=="select"&&(w=!0),y=i.inputState.lastSelectionOrigin,y=="select.pointer"&&(o=DN(n.facet(Su).map(A=>A(i)),o))),i.dispatch({selection:o,scrollIntoView:w,userEvent:y}),!0}else return!1}function ZE(i,t,e,o=-1){if(Ce.ios&&i.inputState.flushIOSKey(t))return!0;let n=i.state.selection.main;if(Ce.android&&(t.to==n.to&&(t.from==n.from||t.from==n.from-1&&i.state.sliceDoc(t.from,n.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Pc(i.contentDOM,"Enter",13)||(t.from==n.from-1&&t.to==n.to&&t.insert.length==0||o==8&&t.insert.length<t.to-t.from&&t.to>n.head)&&Pc(i.contentDOM,"Backspace",8)||t.from==n.from&&t.to==n.to+1&&t.insert.length==0&&Pc(i.contentDOM,"Delete",46)))return!0;let c=t.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let g,w=()=>g||(g=TV(i,t,e));return i.state.facet(LN).some(y=>y(i,t.from,t.to,c,w))||i.dispatch(w()),!0}function TV(i,t,e){let o,n=i.state,c=n.selection.main,g=-1;if(t.from==t.to&&t.from<c.from||t.from>c.to){let y=t.from<c.from?-1:1,A=y<0?c.from:c.to,R=vu(n.facet(Su).map(T=>T(i)),A,y);t.from==R&&(g=R)}if(g>-1)o={changes:t,selection:se.cursor(t.from+t.insert.length,-1)};else if(t.from>=c.from&&t.to<=c.to&&t.to-t.from>=(c.to-c.from)/3&&(!e||e.main.empty&&e.main.from==t.from+t.insert.length)&&i.inputState.composing<0){let y=c.from<t.from?n.sliceDoc(c.from,t.from):"",A=c.to>t.to?n.sliceDoc(t.to,c.to):"";o=n.replaceSelection(i.state.toText(y+t.insert.sliceString(0,void 0,i.state.lineBreak)+A))}else{let y=n.changes(t),A=e&&e.main.to<=y.newLength?e.main:void 0;if(n.selection.ranges.length>1&&(i.inputState.composing>=0||i.inputState.compositionPendingChange)&&t.to<=c.to+10&&t.to>=c.to-10){let R=i.state.sliceDoc(t.from,t.to),T,F=e&&WN(i,e.main.head);if(F){let G=t.insert.length-(t.to-t.from);T={from:F.from,to:F.to-G}}else T=i.state.doc.lineAt(c.head);let k=c.to-t.to;o=n.changeByRange(G=>{if(G.from==c.from&&G.to==c.to)return{changes:y,range:A||G.map(y)};let W=G.to-k,P=W-R.length;if(i.state.sliceDoc(P,W)!=R||W>=T.from&&P<=T.to)return{range:G};let Q=n.changes({from:P,to:W,insert:t.insert}),H=G.to-c.to;return{changes:Q,range:A?se.range(Math.max(0,A.anchor+H),Math.max(0,A.head+H)):G.map(Q)}})}else o={changes:y,selection:A&&n.selection.replaceRange(A)}}let w="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,w+=".compose",i.inputState.compositionFirstChange&&(w+=".start",i.inputState.compositionFirstChange=!1)),n.update(o,{userEvent:w,scrollIntoView:!0})}function XN(i,t,e,o){let n=Math.min(i.length,t.length),c=0;for(;c<n&&i.charCodeAt(c)==t.charCodeAt(c);)c++;if(c==n&&i.length==t.length)return null;let g=i.length,w=t.length;for(;g>0&&w>0&&i.charCodeAt(g-1)==t.charCodeAt(w-1);)g--,w--;if(o=="end"){let y=Math.max(0,c-Math.min(g,w));e-=g+y-c}if(g<c&&i.length<t.length){let y=e<=c&&e>=g?c-e:0;c-=y,w=c+(w-g),g=c}else if(w<c){let y=e<=c&&e>=w?c-e:0;c-=y,g=c+(g-w),w=c}return{from:c,toA:g,toB:w}}function SV(i){let t=[];if(i.root.activeElement!=i.contentDOM)return t;let{anchorNode:e,anchorOffset:o,focusNode:n,focusOffset:c}=i.observer.selectionRange;return e&&(t.push(new jf(e,o)),(n!=e||c!=o)&&t.push(new jf(n,c))),t}function LV(i,t){if(i.length==0)return null;let e=i[0].pos,o=i.length==2?i[1].pos:e;return e>-1&&o>-1?se.single(e+t,o+t):null}function $f(i,t){return t.head==i.main.head&&t.anchor==i.main.anchor}var cE=class{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,Ce.safari&&t.contentDOM.addEventListener("input",()=>null),Ce.gecko&&XV(t.contentDOM.ownerDocument)}handleEvent(t){!GV(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(t.type,t)):this.runHandlers(t.type,t))}runHandlers(t,e){let o=this.handlers[t];if(o){for(let n of o.observers)n(this.view,e);for(let n of o.handlers){if(e.defaultPrevented)break;if(n(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=kV(t),o=this.handlers,n=this.view.contentDOM;for(let c in e)if(c!="scroll"){let g=!e[c].handlers.length,w=o[c];w&&g!=!w.handlers.length&&(n.removeEventListener(c,this.handleEvent),w=null),w||n.addEventListener(c,this.handleEvent,{passive:g})}for(let c in o)c!="scroll"&&!e[c]&&n.removeEventListener(c,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&t.keyCode!=27&&HN.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),Ce.android&&Ce.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;if(Ce.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&(YN.some(e=>e.keyCode==t.keyCode)&&!t.ctrlKey||VV.indexOf(t.key)>-1&&t.ctrlKey)){let e={ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey,shiftKey:t.shiftKey};return e.shiftKey&&Ce.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&BV(this.view.win)&&(e.shiftKey=!1),this.pendingIOSKey={key:t.key,keyCode:t.keyCode,mods:e},setTimeout(()=>this.flushIOSKey(),250),!0}return t.keyCode!=229&&this.view.observer.forceFlush(),!1}flushIOSKey(t){let e=this.pendingIOSKey;return!e||e.key=="Enter"&&t&&t.from<t.to&&/^\S+$/.test(t.insert.toString())?!1:(this.pendingIOSKey=void 0,Pc(this.view.contentDOM,e.key,e.keyCode,e.mods))}ignoreDuringComposition(t){return!/^key/.test(t.type)||t.synthetic?!1:this.composing>0?!0:Ce.safari&&!Ce.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function BV(i){return i.visualViewport?i.visualViewport.height*i.visualViewport.scale/i.document.documentElement.clientHeight<.85:!1}function ZA(i,t){return(e,o)=>{try{return t.call(i,o,e)}catch(n){Ir(e.state,n)}}}function kV(i){let t=Object.create(null);function e(o){return t[o]||(t[o]={observers:[],handlers:[]})}for(let o of i){let n=o.spec,c=n&&n.plugin.domEventHandlers,g=n&&n.plugin.domEventObservers;if(c)for(let w in c){let y=c[w];y&&e(w).handlers.push(ZA(o.value,y))}if(g)for(let w in g){let y=g[w];y&&e(w).observers.push(ZA(o.value,y))}}for(let o in os)e(o).handlers.push(os[o]);for(let o in Ar)e(o).observers.push(Ar[o]);return t}var YN=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],VV="dthko",HN=[16,17,18,20,91,92,224,225],Bf=6;function kf(i){return Math.max(0,i)*.7+8}function FV(i,t){return Math.max(Math.abs(i.clientX-t.clientX),Math.abs(i.clientY-t.clientY))}var hE=class{constructor(t,e,o,n){this.view=t,this.startEvent=e,this.style=o,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParents=dN(t.contentDOM),this.atoms=t.state.facet(Su).map(g=>g(t));let c=t.contentDOM.ownerDocument;c.addEventListener("mousemove",this.move=this.move.bind(this)),c.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(xt.allowMultipleSelections)&&UV(t,e),this.dragging=OV(t,e)&&jN(e)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&FV(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let e=0,o=0,n=0,c=0,g=this.view.win.innerWidth,w=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:g}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:c,bottom:w}=this.scrollParents.y.getBoundingClientRect());let y=GE(this.view);t.clientX-y.left<=n+Bf?e=-kf(n-t.clientX):t.clientX+y.right>=g-Bf&&(e=kf(t.clientX-g)),t.clientY-y.top<=c+Bf?o=-kf(c-t.clientY):t.clientY+y.bottom>=w-Bf&&(o=kf(t.clientY-w)),this.setScrollSpeed(e,o)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:t,y:e}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),e&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=e,e=0),(t||e)&&this.view.win.scrollBy(t,e),this.dragging===!1&&this.select(this.lastEvent)}select(t){let{view:e}=this,o=DN(this.atoms,this.style.get(t,this.extend,this.multiple));(this.mustSelect||!o.eq(e.state.selection,this.dragging===!1))&&this.view.dispatch({selection:o,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}};function UV(i,t){let e=i.state.facet(NN);return e.length?e[0](t):Ce.mac?t.metaKey:t.ctrlKey}function _V(i,t){let e=i.state.facet(RN);return e.length?e[0](t):Ce.mac?!t.altKey:!t.ctrlKey}function OV(i,t){let{main:e}=i.state.selection;if(e.empty)return!1;let o=Nu(i.root);if(!o||o.rangeCount==0)return!0;let n=o.getRangeAt(0).getClientRects();for(let c=0;c<n.length;c++){let g=n[c];if(g.left<=t.clientX&&g.right>=t.clientX&&g.top<=t.clientY&&g.bottom>=t.clientY)return!0}return!1}function GV(i,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target,o;e!=i.contentDOM;e=e.parentNode)if(!e||e.nodeType==11||(o=Ht.get(e))&&o.isWidget()&&!o.isHidden&&o.widget.ignoreEvent(t))return!1;return!0}var os=Object.create(null),Ar=Object.create(null),JN=Ce.ie&&Ce.ie_version<15||Ce.ios&&Ce.webkit_version<604;function ZV(i){let t=i.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{i.focus(),e.remove(),zN(i,e.value)},50)}function nd(i,t,e){for(let o of i.facet(t))e=o(e,i);return e}function zN(i,t){t=nd(i.state,FE,t);let{state:e}=i,o,n=1,c=e.toText(t),g=c.lines==e.selection.ranges.length;if(pE!=null&&e.selection.ranges.every(y=>y.empty)&&pE==c.toString()){let y=-1;o=e.changeByRange(A=>{let R=e.doc.lineAt(A.from);if(R.from==y)return{range:A};y=R.from;let T=e.toText((g?c.line(n++).text:t)+e.lineBreak);return{changes:{from:R.from,insert:T},range:se.cursor(A.from+T.length)}})}else g?o=e.changeByRange(y=>{let A=c.line(n++);return{changes:{from:y.from,to:y.to,insert:A.text},range:se.cursor(y.from+A.length)}}):o=e.replaceSelection(c);i.dispatch(o,{userEvent:"input.paste",scrollIntoView:!0})}Ar.scroll=i=>{let t=i.inputState;t.lastScrollTop=i.scrollDOM.scrollTop,t.lastScrollLeft=i.scrollDOM.scrollLeft,Ce.ios&&!t.touchActive&&(t.lastIOSMomentumScroll=Date.now())};Ar.wheel=Ar.mousewheel=i=>{i.inputState.lastWheelEvent=Date.now()};os.keydown=(i,t)=>(i.inputState.setSelectionOrigin("select"),t.keyCode==27&&i.inputState.tabFocusMode!=0&&(i.inputState.tabFocusMode=Date.now()+2e3),!1);Ar.touchstart=(i,t)=>{let e=i.inputState,o=t.targetTouches[0];e.touchActive=!0,e.lastTouchTime=Date.now(),o&&(e.lastTouchX=o.clientX,e.lastTouchY=o.clientY),e.setSelectionOrigin("select.pointer")};Ar.touchmove=i=>{i.inputState.setSelectionOrigin("select.pointer")};Ar.touchend=(i,t)=>{i.inputState.touchActive=!1};os.mousedown=(i,t)=>{if(i.observer.flush(),i.inputState.lastTouchTime>Date.now()-2e3)return!1;let e=null;for(let o of i.state.facet(TN))if(e=o(i,t),e)break;if(!e&&t.button==0&&(e=WV(i,t)),e){let o=!i.hasFocus;i.inputState.startMouseSelection(new hE(i,t,e,o)),o&&i.observer.ignore(()=>{bN(i.contentDOM);let c=i.root.activeElement;c&&!c.contains(i.contentDOM)&&c.blur()});let n=i.inputState.mouseSelection;if(n)return n.start(t),n.dragging===!1}else i.inputState.setSelectionOrigin("select.pointer");return!1};function MA(i,t,e,o){if(o==1)return se.cursor(t,e);if(o==2)return yV(i.state,t,e);{let n=i.docView.lineAt(t,e),c=i.state.doc.lineAt(n?n.posAtEnd:t),g=n?n.posAtStart:c.from,w=n?n.posAtEnd:c.to;return w<i.state.doc.length&&w==c.to&&w++,se.undirectionalRange(g,w)}}var MV=Ce.ie&&Ce.ie_version<=11,WA=null,DA=0,PA=0;function jN(i){if(!MV)return i.detail;let t=WA,e=PA;return WA=i,PA=Date.now(),DA=!t||e>Date.now()-400&&Math.abs(t.clientX-i.clientX)<2&&Math.abs(t.clientY-i.clientY)<2?(DA+1)%3:1}function WV(i,t){let e=i.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),o=jN(t),n=i.state.selection;return{update(c){c.docChanged&&(e.pos=c.changes.mapPos(e.pos),n=n.map(c.changes))},get(c,g,w){let y=i.posAndSideAtCoords({x:c.clientX,y:c.clientY},!1),A,R=MA(i,y.pos,y.assoc,o);if(e.pos!=y.pos&&!g){let T=MA(i,e.pos,e.assoc,o),F=Math.min(T.from,R.from),k=Math.max(T.to,R.to);R=F<R.from?se.range(F,k,R.assoc):se.range(k,F,R.assoc)}return g?n.replaceRange(n.main.extend(R.from,R.to,R.assoc)):w&&o==1&&n.ranges.length>1&&(A=DV(n,y.pos))?A:w?n.addRange(R):se.create([R])}}}function DV(i,t){for(let e=0;e<i.ranges.length;e++){let{from:o,to:n}=i.ranges[e];if(o<=t&&n>=t)return se.create(i.ranges.slice(0,e).concat(i.ranges.slice(e+1)),i.mainIndex==e?0:i.mainIndex-(i.mainIndex>e?1:0))}return null}os.dragstart=(i,t)=>{let{selection:{main:e}}=i.state;if(t.target.draggable){let n=i.docView.tile.nearest(t.target);if(n&&n.isWidget()){let c=n.posAtStart,g=c+n.length;(c>=e.to||g<=e.from)&&(e=se.undirectionalRange(c,g))}}let{inputState:o}=i;return o.mouseSelection&&(o.mouseSelection.dragging=!0),o.draggedContent=e,t.dataTransfer&&(t.dataTransfer.setData("Text",nd(i.state,UE,i.state.sliceDoc(e.from,e.to))),t.dataTransfer.effectAllowed="copyMove"),!1};os.dragend=i=>(i.inputState.draggedContent=null,!1);function QA(i,t,e,o){if(e=nd(i.state,FE,e),!e)return;let n=i.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:c}=i.inputState,g=o&&c&&_V(i,t)?{from:c.from,to:c.to}:null,w={from:n,insert:e},y=i.state.changes(g?[g,w]:w);i.focus(),i.dispatch({changes:y,selection:{anchor:y.mapPos(n,-1),head:y.mapPos(n,1)},userEvent:g?"move.drop":"input.drop"}),i.inputState.draggedContent=null}os.drop=(i,t)=>{if(!t.dataTransfer)return!1;if(i.state.readOnly)return!0;let e=t.dataTransfer.files;if(e&&e.length){let o=Array(e.length),n=0,c=()=>{++n==e.length&&QA(i,t,o.filter(g=>g!=null).join(i.state.lineBreak),!1)};for(let g=0;g<e.length;g++){let w=new FileReader;w.onerror=c,w.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(w.result)||(o[g]=w.result),c()},w.readAsText(e[g])}return!0}else{let o=t.dataTransfer.getData("Text");if(o)return QA(i,t,o,!0),!0}return!1};os.paste=(i,t)=>{if(i.state.readOnly)return!0;i.observer.flush();let e=JN?null:t.clipboardData;return e?(zN(i,e.getData("text/plain")||e.getData("text/uri-list")),!0):(ZV(i),!1)};function PV(i,t){let e=i.dom.parentNode;if(!e)return;let o=e.appendChild(document.createElement("textarea"));o.style.cssText="position: fixed; left: -10000px; top: 10px",o.value=t,o.focus(),o.selectionEnd=t.length,o.selectionStart=0,setTimeout(()=>{o.remove(),i.focus()},50)}function QV(i){let t=[],e=[],o=!1;for(let n of i.selection.ranges)n.empty||(t.push(i.sliceDoc(n.from,n.to)),e.push(n));if(!t.length){let n=-1;for(let{from:c}of i.selection.ranges){let g=i.doc.lineAt(c);g.number>n&&(t.push(g.text),e.push({from:g.from,to:Math.min(i.doc.length,g.to+1)})),n=g.number}o=!0}return{text:nd(i,UE,t.join(i.lineBreak)),ranges:e,linewise:o}}var pE=null;os.copy=os.cut=(i,t)=>{if(!gu(i.contentDOM,i.observer.selectionRange))return!1;let{text:e,ranges:o,linewise:n}=QV(i.state);if(!e&&!n)return!1;pE=n?e:null,t.type=="cut"&&!i.state.readOnly&&i.dispatch({changes:o,scrollIntoView:!0,userEvent:"delete.cut"});let c=JN?null:t.clipboardData;return c?(c.clearData(),c.setData("text/plain",e),!0):(PV(i,e),!1)};var $N=Pr.define();function qN(i,t){let e=[];for(let o of i.facet(BN)){let n=o(i,t);n&&e.push(n)}return e.length?i.update({effects:e,annotations:$N.of(!0)}):null}function KN(i){setTimeout(()=>{let t=i.hasFocus;if(t!=i.inputState.notifiedFocused){let e=qN(i.state,t);e?i.dispatch(e):i.update([])}},10)}Ar.focus=i=>{i.inputState.lastFocusTime=Date.now(),!i.scrollDOM.scrollTop&&(i.inputState.lastScrollTop||i.inputState.lastScrollLeft)&&(i.scrollDOM.scrollTop=i.inputState.lastScrollTop,i.scrollDOM.scrollLeft=i.inputState.lastScrollLeft),KN(i)};Ar.blur=i=>{i.observer.clearSelectionRange(),KN(i)};Ar.compositionstart=Ar.compositionupdate=i=>{i.observer.editContext||(i.inputState.compositionFirstChange==null&&(i.inputState.compositionFirstChange=!0),i.inputState.composing<0&&(i.inputState.composing=0))};Ar.compositionend=i=>{i.observer.editContext||(i.inputState.composing=-1,i.inputState.compositionEndedAt=Date.now(),i.inputState.compositionPendingKey=!0,i.inputState.compositionPendingChange=i.observer.pendingRecords().length>0,i.inputState.compositionFirstChange=null,Ce.chrome&&Ce.android?i.observer.flushSoon():i.inputState.compositionPendingChange?Promise.resolve().then(()=>i.observer.flush()):setTimeout(()=>{i.inputState.composing<0&&i.docView.hasComposition&&i.update([])},50))};Ar.contextmenu=i=>{i.inputState.lastContextMenu=Date.now()};os.beforeinput=(i,t)=>{var e,o;if((t.inputType=="insertText"||t.inputType=="insertCompositionText")&&(i.inputState.insertingText=t.data,i.inputState.insertingTextAt=Date.now()),t.inputType=="insertReplacementText"&&i.observer.editContext){let c=(e=t.dataTransfer)===null||e===void 0?void 0:e.getData("text/plain"),g=t.getTargetRanges();if(c&&g.length){let w=g[0],y=i.posAtDOM(w.startContainer,w.startOffset),A=i.posAtDOM(w.endContainer,w.endOffset);return ZE(i,{from:y,to:A,insert:i.state.toText(c)},null),!0}}let n;if(Ce.chrome&&Ce.android&&(n=YN.find(c=>c.inputType==t.inputType))&&(i.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let c=((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0;setTimeout(()=>{var g;(((g=window.visualViewport)===null||g===void 0?void 0:g.height)||0)>c+10&&i.hasFocus&&(i.contentDOM.blur(),i.focus())},100)}return Ce.ios&&t.inputType=="deleteContentForward"&&i.observer.flushSoon(),Ce.safari&&t.inputType=="insertText"&&i.inputState.composing>=0&&setTimeout(()=>Ar.compositionend(i,t),20),!1};var XA=new Set;function XV(i){XA.has(i)||(XA.add(i),i.addEventListener("copy",()=>{}),i.addEventListener("cut",()=>{}))}var YA=["pre-wrap","normal","pre-line","break-spaces"],Jc=!1;function HA(){Jc=!1}var uE=class{constructor(t){this.lineWrapping=t,this.doc=gt.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(t,e){let o=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(o+=Math.max(0,Math.ceil((e-t-o*this.lineLength*.5)/this.lineLength))),this.lineHeight*o}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return YA.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let o=0;o<t.length;o++){let n=t[o];n<0?o++:this.heightSamples[Math.floor(n*10)]||(e=!0,this.heightSamples[Math.floor(n*10)]=!0)}return e}refresh(t,e,o,n,c,g){let w=YA.indexOf(t)>-1,y=Math.abs(e-this.lineHeight)>.3||this.lineWrapping!=w;if(this.lineWrapping=w,this.lineHeight=e,this.charWidth=o,this.textHeight=n,this.lineLength=c,y){this.heightSamples={};for(let A=0;A<g.length;A++){let R=g[A];R<0?A++:this.heightSamples[Math.floor(R*10)]=!0}}return y}},fE=class{constructor(t,e){this.from=t,this.heights=e,this.index=0}get more(){return this.index<this.heights.length}},is=class i{constructor(t,e,o,n,c){this.from=t,this.length=e,this.top=o,this.height=n,this._content=c}get type(){return typeof this._content=="number"?$i.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Bl?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(t){let e=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new i(this.from,this.length+t.length,this.top,this.height+t.height,e)}},Ft=function(i){return i[i.ByPos=0]="ByPos",i[i.ByHeight=1]="ByHeight",i[i.ByPosNoHeight=2]="ByPosNoHeight",i}(Ft||(Ft={})),Zf=.001,uo=class i{constructor(t,e,o=2){this.length=t,this.height=e,this.flags=o}get outdated(){return(this.flags&2)>0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>Zf&&(Jc=!0),this.height=t)}replace(t,e,o){return i.of(o)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,o,n){let c=this,g=o.doc;for(let w=n.length-1;w>=0;w--){let{fromA:y,toA:A,fromB:R,toB:T}=n[w],F=c.lineAt(y,Ft.ByPosNoHeight,o.setDoc(e),0,0),k=F.to>=A?F:c.lineAt(A,Ft.ByPosNoHeight,o,0,0);for(T+=k.to-A,A=k.to;w>0&&F.from<=n[w-1].toA;)y=n[w-1].fromA,R=n[w-1].fromB,w--,y<F.from&&(F=c.lineAt(y,Ft.ByPosNoHeight,o,0,0));R+=F.from-y,y=F.from;let G=gE.build(o.setDoc(g),t,R,T);c=qf(c,c.replace(y,A,G))}return c.updateHeight(o,0)}static empty(){return new Ao(0,0,0)}static of(t){if(t.length==1)return t[0];let e=0,o=t.length,n=0,c=0;for(;;)if(e==o)if(n>c*2){let w=t[e-1];w.break?t.splice(--e,1,w.left,null,w.right):t.splice(--e,1,w.left,w.right),o+=1+w.break,n-=w.size}else if(c>n*2){let w=t[o];w.break?t.splice(o,1,w.left,null,w.right):t.splice(o,1,w.left,w.right),o+=2+w.break,c-=w.size}else break;else if(n<c){let w=t[e++];w&&(n+=w.size)}else{let w=t[--o];w&&(c+=w.size)}let g=0;return t[e-1]==null?(g=1,e--):t[e]==null&&(g=1,o++),new dE(i.of(t.slice(0,e)),g,i.of(t.slice(o)))}};function qf(i,t){return i==t?i:(i.constructor!=t.constructor&&(Jc=!0),t)}uo.prototype.size=1;var YV=ze.replace({}),Kf=class extends uo{constructor(t,e,o){super(t,e),this.deco=o,this.spaceAbove=0}mainBlock(t,e){return new is(e,this.length,t+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(t,e,o,n){return this.spaceAbove&&t<o+this.spaceAbove?new is(n,0,o,this.spaceAbove,YV):this.mainBlock(o,n)}lineAt(t,e,o,n,c){let g=this.mainBlock(n,c);return this.spaceAbove?this.blockAt(0,o,n,c).join(g):g}forEachLine(t,e,o,n,c,g){t<=c+this.length&&e>=c&&g(this.lineAt(0,Ft.ByPos,o,n,c))}setMeasuredHeight(t){let e=t.heights[t.index++];e<0?(this.spaceAbove=-e,e=t.heights[t.index++]):this.spaceAbove=0,this.setHeight(e)}updateHeight(t,e=0,o=!1,n){return n&&n.from<=e&&n.more&&this.setMeasuredHeight(n),this.outdated=!1,this}toString(){return`block(${this.length})`}},Ao=class i extends Kf{constructor(t,e,o){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=o}mainBlock(t,e){return new is(e,this.length,t+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(t,e,o){let n=o[0];return o.length==1&&(n instanceof i||n instanceof ta&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof ta?n=new i(n.length,this.height,this.spaceAbove):n.height=this.height,this.outdated||(n.outdated=!1),n):uo.of(o)}updateHeight(t,e=0,o=!1,n){return n&&n.from<=e&&n.more?this.setMeasuredHeight(n):(o||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},ta=class i extends uo{constructor(t){super(t,0)}heightMetrics(t,e){let o=t.doc.lineAt(e).number,n=t.doc.lineAt(e+this.length).number,c=n-o+1,g,w=0;if(t.lineWrapping){let y=Math.min(this.height,t.lineHeight*c);g=y/c,this.length>c+1&&(w=(this.height-y)/(this.length-c-1))}else g=this.height/c;return{firstLine:o,lastLine:n,perLine:g,perChar:w}}blockAt(t,e,o,n){let{firstLine:c,lastLine:g,perLine:w,perChar:y}=this.heightMetrics(e,n);if(e.lineWrapping){let A=n+(t<e.lineHeight?0:Math.round(Math.max(0,Math.min(1,(t-o)/this.height))*this.length)),R=e.doc.lineAt(A),T=w+R.length*y,F=Math.max(o,t-T/2);return new is(R.from,R.length,F,T,0)}else{let A=Math.max(0,Math.min(g-c,Math.floor((t-o)/w))),{from:R,length:T}=e.doc.line(c+A);return new is(R,T,o+w*A,w,0)}}lineAt(t,e,o,n,c){if(e==Ft.ByHeight)return this.blockAt(t,o,n,c);if(e==Ft.ByPosNoHeight){let{from:k,to:G}=o.doc.lineAt(t);return new is(k,G-k,0,0,0)}let{firstLine:g,perLine:w,perChar:y}=this.heightMetrics(o,c),A=o.doc.lineAt(t),R=w+A.length*y,T=A.number-g,F=n+w*T+y*(A.from-c-T);return new is(A.from,A.length,Math.max(n,Math.min(F,n+this.height-R)),R,0)}forEachLine(t,e,o,n,c,g){t=Math.max(t,c),e=Math.min(e,c+this.length);let{firstLine:w,perLine:y,perChar:A}=this.heightMetrics(o,c);for(let R=t,T=n;R<=e;){let F=o.doc.lineAt(R);if(R==t){let G=F.number-w;T+=y*G+A*(t-c-G)}let k=y+A*F.length;g(new is(F.from,F.length,T,k,0)),T+=k,R=F.to+1}}replace(t,e,o){let n=this.length-e;if(n>0){let c=o[o.length-1];c instanceof i?o[o.length-1]=new i(c.length+n):o.push(null,new i(n-1))}if(t>0){let c=o[0];c instanceof i?o[0]=new i(t+c.length):o.unshift(new i(t-1),null)}return uo.of(o)}decomposeLeft(t,e){e.push(new i(t-1),null)}decomposeRight(t,e){e.push(null,new i(this.length-t-1))}updateHeight(t,e=0,o=!1,n){let c=e+this.length;if(n&&n.from<=e+this.length&&n.more){let g=[],w=Math.max(e,n.from),y=-1;for(n.from>e&&g.push(new i(n.from-e-1).updateHeight(t,e));w<=c&&n.more;){let R=t.doc.lineAt(w).length;g.length&&g.push(null);let T=n.heights[n.index++],F=0;T<0&&(F=-T,T=n.heights[n.index++]),y==-1?y=T:Math.abs(T-y)>=Zf&&(y=-2);let k=new Ao(R,T,F);k.outdated=!1,g.push(k),w+=R+1}w<=c&&g.push(null,new i(c-w).updateHeight(t,w));let A=uo.of(g);return(y<0||Math.abs(A.height-this.height)>=Zf||Math.abs(y-this.heightMetrics(t,e).perLine)>=Zf)&&(Jc=!0),qf(this,A)}else(o||this.outdated)&&(this.setHeight(t.heightForGap(e,e+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},dE=class extends uo{constructor(t,e,o){super(t.length+e+o.length,t.height+o.height,e|(t.outdated||o.outdated?2:0)),this.left=t,this.right=o,this.size=t.size+o.size}get break(){return this.flags&1}blockAt(t,e,o,n){let c=o+this.left.height;return t<c?this.left.blockAt(t,e,o,n):this.right.blockAt(t,e,c,n+this.left.length+this.break)}lineAt(t,e,o,n,c){let g=n+this.left.height,w=c+this.left.length+this.break,y=e==Ft.ByHeight?t<g:t<w,A=y?this.left.lineAt(t,e,o,n,c):this.right.lineAt(t,e,o,g,w);if(this.break||(y?A.to<w:A.from>w))return A;let R=e==Ft.ByPosNoHeight?Ft.ByPosNoHeight:Ft.ByPos;return y?A.join(this.right.lineAt(w,R,o,g,w)):this.left.lineAt(w,R,o,n,c).join(A)}forEachLine(t,e,o,n,c,g){let w=n+this.left.height,y=c+this.left.length+this.break;if(this.break)t<y&&this.left.forEachLine(t,e,o,n,c,g),e>=y&&this.right.forEachLine(t,e,o,w,y,g);else{let A=this.lineAt(y,Ft.ByPos,o,n,c);t<A.from&&this.left.forEachLine(t,A.from-1,o,n,c,g),A.to>=t&&A.from<=e&&g(A),e>A.to&&this.right.forEachLine(A.to+1,e,o,w,y,g)}}replace(t,e,o){let n=this.left.length+this.break;if(e<n)return this.balanced(this.left.replace(t,e,o),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-n,e-n,o));let c=[];t>0&&this.decomposeLeft(t,c);let g=c.length;for(let w of o)c.push(w);if(t>0&&JA(c,g-1),e<this.length){let w=c.length;this.decomposeRight(e,c),JA(c,w)}return uo.of(c)}decomposeLeft(t,e){let o=this.left.length;if(t<=o)return this.left.decomposeLeft(t,e);e.push(this.left),this.break&&(o++,t>=o&&e.push(null)),t>o&&this.right.decomposeLeft(t-o,e)}decomposeRight(t,e){let o=this.left.length,n=o+this.break;if(t>=n)return this.right.decomposeRight(t-n,e);t<o&&this.left.decomposeRight(t,e),this.break&&t<n&&e.push(null),e.push(this.right)}balanced(t,e){return t.size>2*e.size||e.size>2*t.size?uo.of(this.break?[t,null,e]:[t,e]):(this.left=qf(this.left,t),this.right=qf(this.right,e),this.setHeight(t.height+e.height),this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,o=!1,n){let{left:c,right:g}=this,w=e+c.length+this.break,y=null;return n&&n.from<=e+c.length&&n.more?y=c=c.updateHeight(t,e,o,n):c.updateHeight(t,e,o),n&&n.from<=w+g.length&&n.more?y=g=g.updateHeight(t,w,o,n):g.updateHeight(t,w,o),y?this.balanced(c,g):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function JA(i,t){let e,o;i[t]==null&&(e=i[t-1])instanceof ta&&(o=i[t+1])instanceof ta&&i.splice(t-1,3,new ta(e.length+1+o.length))}var HV=5,gE=class i{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let o=Math.min(e,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Ao?n.length+=o-this.pos:(o>this.pos||!this.isCovered)&&this.nodes.push(new Ao(o-this.pos,-1,0)),this.writtenTo=o,e>o&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,o){if(t<e||o.heightRelevant){let n=o.widget?o.widget.estimatedHeight:0,c=o.widget?o.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let g=e-t;o.block?this.addBlock(new Kf(g,n,o)):(g||c||n>=HV)&&this.addLineDeco(n,c,g)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTo<t&&((this.writtenTo<t-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new Ao(this.pos-t,-1,0)),this.writtenTo=this.pos}blankContent(t,e){let o=new ta(e-t);return this.oracle.doc.lineAt(t).to==e&&(o.flags|=4),o}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Ao)return t;let e=new Ao(0,-1,0);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,o){let n=this.ensureLine();n.length+=o,n.collapsed+=o,n.widgetHeight=Math.max(n.widgetHeight,t),n.breaks+=e,this.writtenTo=this.pos=this.pos+o}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(e instanceof Ao)&&!this.isCovered?this.nodes.push(new Ao(0,-1,0)):(this.writtenTo<this.pos||e==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let o=t;for(let n of this.nodes)n instanceof Ao&&n.updateHeight(this.oracle,o),o+=n?n.length:1;return this.nodes}static build(t,e,o,n){let c=new i(o,t);return ht.spans(e,o,n,c,0),c.finish(o)}};function JV(i,t,e){let o=new mE;return ht.compare(i,t,e,o,0),o.changes}var mE=class{constructor(){this.changes=[]}compareRange(){}comparePoint(t,e,o,n){(t<e||o&&o.heightRelevant||n&&n.heightRelevant)&&Dc(t,e,this.changes,5)}};function zV(i,t){let e=i.getBoundingClientRect(),o=i.ownerDocument,n=o.defaultView||window,c=Math.max(0,e.left),g=Math.min(n.innerWidth,e.right),w=Math.max(0,e.top),y=Math.min(n.innerHeight,e.bottom);for(let A=i.parentNode;A&&A!=o.body;)if(A.nodeType==1){let R=A,T=window.getComputedStyle(R);if((R.scrollHeight>R.clientHeight||R.scrollWidth>R.clientWidth)&&T.overflow!="visible"){let F=R.getBoundingClientRect();c=Math.max(c,F.left),g=Math.min(g,F.right),w=Math.max(w,F.top),y=Math.min(A==i.parentNode?n.innerHeight:y,F.bottom)}A=T.position=="absolute"||T.position=="fixed"?R.offsetParent:R.parentNode}else if(A.nodeType==11)A=A.host;else break;return{left:c-e.left,right:Math.max(c,g)-e.left,top:w-(e.top+t),bottom:Math.max(w,y)-(e.top+t)}}function jV(i){let t=i.getBoundingClientRect(),e=i.ownerDocument.defaultView||window;return t.left<e.innerWidth&&t.right>0&&t.top<e.innerHeight&&t.bottom>0}function $V(i,t){let e=i.getBoundingClientRect();return{left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}var yu=class{constructor(t,e,o,n){this.from=t,this.to=e,this.size=o,this.displaySize=n}static same(t,e){if(t.length!=e.length)return!1;for(let o=0;o<t.length;o++){let n=t[o],c=e[o];if(n.from!=c.from||n.to!=c.to||n.size!=c.size)return!1}return!0}draw(t,e){return ze.replace({widget:new bE(this.displaySize*(e?t.scaleY:t.scaleX),e)}).range(this.from,this.to)}},bE=class extends Bs{constructor(t,e){super(),this.size=t,this.vertical=e}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}},ed=class{constructor(t,e){this.view=t,this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=zA,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Et.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let o=e.facet(_E).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new uE(o),this.stateDeco=jA(e),this.heightMap=uo.empty().applyChanges(this.stateDeco,gt.empty,this.heightOracle.setDoc(e.doc),[new rs(0,0,0,e.doc.length)]);for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());n++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ze.set(this.lineGaps.map(n=>n.draw(this,!1))),this.scrollParent=t.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let o=0;o<=1;o++){let n=o?e.head:e.anchor;if(!t.some(({from:c,to:g})=>n>=c&&n<=g)){let{from:c,to:g}=this.lineBlockAt(n);t.push(new Zc(c,g))}}return this.viewports=t.sort((o,n)=>o.from-n.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?zA:new wE(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(fu(t,this.scaler))})}update(t,e=null){this.state=t.state;let o=this.stateDeco;this.stateDeco=jA(this.state);let n=t.changedRanges,c=rs.extendWithRanges(n,JV(o,this.stateDeco,t?t.changes:yr.empty(this.state.doc.length))),g=this.heightMap.height,w=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);HA(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),c),(this.heightMap.height!=g||Jc)&&(t.flags|=2),w?(this.scrollAnchorPos=t.changes.mapPos(w.from,-1),this.scrollAnchorHeight=w.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=g);let y=c.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.head<y.from||e.range.head>y.to)||!this.viewportIsAppropriate(y))&&(y=this.getViewport(0,e));let A=y.from!=this.viewport.from||y.to!=this.viewport.to;this.viewport=y,t.flags|=this.updateForViewport(),(A||!t.changes.empty||t.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(t.changes),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&(t.selectionSet||t.focusChanged)&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(VN)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:t}=this,e=t.contentDOM,o=window.getComputedStyle(e),n=this.heightOracle,c=o.whiteSpace;this.defaultTextDirection=o.direction=="rtl"?Et.RTL:Et.LTR;let g=this.heightOracle.mustRefreshForWrapping(c)||this.mustMeasureContent==="refresh",w=e.getBoundingClientRect(),y=g||this.mustMeasureContent||this.contentDOMHeight!=w.height;this.contentDOMHeight=w.height,this.mustMeasureContent=!1;let A=0,R=0;if(w.width&&w.height){let{scaleX:J,scaleY:te}=fN(e,w);(J>.005&&Math.abs(this.scaleX-J)>.005||te>.005&&Math.abs(this.scaleY-te)>.005)&&(this.scaleX=J,this.scaleY=te,A|=16,g=y=!0)}let T=(parseInt(o.paddingTop)||0)*this.scaleY,F=(parseInt(o.paddingBottom)||0)*this.scaleY;(this.paddingTop!=T||this.paddingBottom!=F)&&(this.paddingTop=T,this.paddingBottom=F,A|=18),this.editorWidth!=t.scrollDOM.clientWidth&&(n.lineWrapping&&(y=!0),this.editorWidth=t.scrollDOM.clientWidth,A|=16);let k=dN(this.view.contentDOM,!1).y;k!=this.scrollParent&&(this.scrollParent=k,this.scrollAnchorHeight=-1,this.scrollOffset=0);let G=this.getScrollOffset();this.scrollOffset!=G&&(this.scrollAnchorHeight=-1,this.scrollOffset=G),this.scrolledToBottom=wN(this.scrollParent||t.win);let W=(this.printing?$V:zV)(e,this.paddingTop),P=W.top-this.pixelViewport.top,Q=W.bottom-this.pixelViewport.bottom;this.pixelViewport=W;let H=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(H!=this.inView&&(this.inView=H,H&&(y=!0)),!this.inView&&!this.scrollTarget&&!jV(t.dom))return 0;let re=w.width;if((this.contentDOMWidth!=re||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=w.width,this.editorHeight=t.scrollDOM.clientHeight,A|=16),y){let J=t.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(J)&&(g=!0),g||n.lineWrapping&&Math.abs(re-this.contentDOMWidth)>n.charWidth){let{lineHeight:te,charWidth:ae,textHeight:me}=t.docView.measureTextSize();g=te>0&&n.refresh(c,te,ae,me,Math.max(5,re/ae),J),g&&(t.docView.minWidth=0,A|=16)}P>0&&Q>0?R=Math.max(P,Q):P<0&&Q<0&&(R=Math.min(P,Q)),HA();for(let te of this.viewports){let ae=te.from==this.viewport.from?J:t.docView.measureVisibleLineHeights(te);this.heightMap=(g?uo.empty().applyChanges(this.stateDeco,gt.empty,this.heightOracle,[new rs(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(n,0,g,new fE(te.from,ae))}Jc&&(A|=2)}let K=!this.viewportIsAppropriate(this.viewport,R)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return K&&(A&2&&(A|=this.updateScaler()),this.viewport=this.getViewport(R,this.scrollTarget),A|=this.updateForViewport()),(A&2||K)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(g?[]:this.lineGaps,t)),A|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),A}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let o=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),n=this.heightMap,c=this.heightOracle,{visibleTop:g,visibleBottom:w}=this,y=new Zc(n.lineAt(g-o*1e3,Ft.ByHeight,c,0,0).from,n.lineAt(w+(1-o)*1e3,Ft.ByHeight,c,0,0).to);if(e){let{head:A}=e.range;if(A<y.from||A>y.to){let R=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),T=n.lineAt(A,Ft.ByPos,c,0,0),F;e.y=="center"?F=(T.top+T.bottom)/2-R/2:e.y=="start"||e.y=="nearest"&&A<y.from?F=T.top:F=T.bottom-R,y=new Zc(n.lineAt(F-1e3/2,Ft.ByHeight,c,0,0).from,n.lineAt(F+R+1e3/2,Ft.ByHeight,c,0,0).to)}}return y}mapViewport(t,e){let o=e.mapPos(t.from,-1),n=e.mapPos(t.to,1);return new Zc(this.heightMap.lineAt(o,Ft.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,Ft.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:e},o=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(t,Ft.ByPos,this.heightOracle,0,0),{bottom:c}=this.heightMap.lineAt(e,Ft.ByPos,this.heightOracle,0,0),{visibleTop:g,visibleBottom:w}=this;return(t==0||n<=g-Math.max(10,Math.min(-o,250)))&&(e==this.state.doc.length||c>=w+Math.max(10,Math.min(o,250)))&&n>g-2*1e3&&c<w+2*1e3}mapLineGaps(t,e){if(!t.length||e.empty)return t;let o=[];for(let n of t)e.touchesRange(n.from,n.to)||o.push(new yu(e.mapPos(n.from),e.mapPos(n.to),n.size,n.displaySize));return o}ensureLineGaps(t,e){let o=this.heightOracle.lineWrapping,n=o?1e4:2e3,c=n>>1,g=n<<1;if(this.defaultTextDirection!=Et.LTR&&!o)return[];let w=[],y=(R,T,F,k)=>{if(T-R<c)return;let G=this.state.selection.main,W=[G.from];G.empty||W.push(G.to);for(let Q of W)if(Q>R&&Q<T){y(R,Q-10,F,k),y(Q+10,T,F,k);return}let P=KV(t,Q=>Q.from>=F.from&&Q.to<=F.to&&Math.abs(Q.from-R)<c&&Math.abs(Q.to-T)<c&&!W.some(H=>Q.from<H&&Q.to>H));if(!P){if(T<F.to&&e&&o&&e.visibleRanges.some(re=>re.from<=T&&re.to>=T)){let re=e.moveToLineBoundary(se.cursor(T),!1,!0).head;re>R&&(T=re)}let Q=this.gapSize(F,R,T,k),H=o||Q<2e6?Q:2e6;P=new yu(R,T,Q,H)}w.push(P)},A=R=>{if(R.length<g||R.type!=$i.Text)return;let T=qV(R.from,R.to,this.stateDeco);if(T.total<g)return;let F=this.scrollTarget?this.scrollTarget.range.head:null,k,G;if(o){let W=n/this.heightOracle.lineLength*this.heightOracle.lineHeight,P,Q;if(F!=null){let H=Ff(T,F),re=((this.visibleBottom-this.visibleTop)/2+W)/R.height;P=H-re,Q=H+re}else P=(this.visibleTop-R.top-W)/R.height,Q=(this.visibleBottom-R.top+W)/R.height;k=Vf(T,P),G=Vf(T,Q)}else{let W=T.total*this.heightOracle.charWidth,P=n*this.heightOracle.charWidth,Q=0;if(W>2e6)for(let te of t)te.from>=R.from&&te.from<R.to&&te.size!=te.displaySize&&te.from*this.heightOracle.charWidth+Q<this.pixelViewport.left&&(Q=te.size-te.displaySize);let H=this.pixelViewport.left+Q,re=this.pixelViewport.right+Q,K,J;if(F!=null){let te=Ff(T,F),ae=((re-H)/2+P)/W;K=te-ae,J=te+ae}else K=(H-P)/W,J=(re+P)/W;k=Vf(T,K),G=Vf(T,J)}k>R.from&&y(R.from,k,R,T),G<R.to&&y(G,R.to,R,T)};for(let R of this.viewportLines)Array.isArray(R.type)?R.type.forEach(A):A(R);return w}gapSize(t,e,o,n){let c=Ff(n,o)-Ff(n,e);return this.heightOracle.lineWrapping?t.height*c:n.total*this.heightOracle.charWidth*c}updateLineGaps(t){yu.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=ze.set(t.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(t){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let o=[];ht.spans(e,this.viewport.from,this.viewport.to,{span(c,g){o.push({from:c,to:g})},point(){}},20);let n=0;if(o.length!=this.visibleRanges.length)n=12;else for(let c=0;c<o.length&&!(n&8);c++){let g=this.visibleRanges[c],w=o[c];(g.from!=w.from||g.to!=w.to)&&(n|=4,t&&t.mapPos(g.from,-1)==w.from&&t.mapPos(g.to,1)==w.to||(n|=8))}return this.visibleRanges=o,n}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||fu(this.heightMap.lineAt(t,Ft.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(e=>e.top<=t&&e.bottom>=t)||fu(this.heightMap.lineAt(this.scaler.fromDOM(t),Ft.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop*this.scaleY:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return fu(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},Zc=class{constructor(t,e){this.from=t,this.to=e}};function qV(i,t,e){let o=[],n=i,c=0;return ht.spans(e,i,t,{span(){},point(g,w){g>n&&(o.push({from:n,to:g}),c+=g-n),n=w}},20),n<t&&(o.push({from:n,to:t}),c+=t-n),{total:c,ranges:o}}function Vf({total:i,ranges:t},e){if(e<=0)return t[0].from;if(e>=1)return t[t.length-1].to;let o=Math.floor(i*e);for(let n=0;;n++){let{from:c,to:g}=t[n],w=g-c;if(o<=w)return c+o;o-=w}}function Ff(i,t){let e=0;for(let{from:o,to:n}of i.ranges){if(t<=n){e+=t-o;break}e+=n-o}return e/i.total}function KV(i,t){for(let e of i)if(t(e))return e}var zA={toDOM(i){return i},fromDOM(i){return i},scale:1,eq(i){return i==this}};function jA(i){let t=i.facet(sd).filter(o=>typeof o!="function"),e=i.facet(OE).filter(o=>typeof o!="function");return e.length&&t.push(ht.join(e)),t}var wE=class i{constructor(t,e,o){let n=0,c=0,g=0;this.viewports=o.map(({from:w,to:y})=>{let A=e.lineAt(w,Ft.ByPos,t,0,0).top,R=e.lineAt(y,Ft.ByPos,t,0,0).bottom;return n+=R-A,{from:w,to:y,top:A,bottom:R,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(e.height-n);for(let w of this.viewports)w.domTop=g+(w.top-c)*this.scale,g=w.domBottom=w.domTop+(w.bottom-w.top),c=w.bottom}toDOM(t){for(let e=0,o=0,n=0;;e++){let c=e<this.viewports.length?this.viewports[e]:null;if(!c||t<c.top)return n+(t-o)*this.scale;if(t<=c.bottom)return c.domTop+(t-c.top);o=c.bottom,n=c.domBottom}}fromDOM(t){for(let e=0,o=0,n=0;;e++){let c=e<this.viewports.length?this.viewports[e]:null;if(!c||t<c.domTop)return o+(t-n)/this.scale;if(t<=c.domBottom)return c.top+(t-c.domTop);o=c.bottom,n=c.domBottom}}eq(t){return t instanceof i?this.scale==t.scale&&this.viewports.length==t.viewports.length&&this.viewports.every((e,o)=>e.from==t.viewports[o].from&&e.to==t.viewports[o].to):!1}};function fu(i,t){if(t.scale==1)return i;let e=t.toDOM(i.top),o=t.toDOM(i.bottom);return new is(i.from,i.length,e,o-e,Array.isArray(i._content)?i._content.map(n=>fu(n,t)):i._content)}var Uf=Se.define({combine:i=>i.join(" ")}),xE=Se.define({combine:i=>i.indexOf(!0)>-1}),vE=Io.newName(),e1=Io.newName(),t1=Io.newName(),i1={"&light":"."+e1,"&dark":"."+t1};function yE(i,t,e){return new Io(t,{finish(o){return/&/.test(o)?o.replace(/&\w*/,n=>{if(n=="&")return i;if(!e||!e[n])throw new RangeError(`Unsupported selector: ${n}`);return e[n]}):i+" "+o}})}var eF=yE("."+vE,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},".cm-panels-top":{top:"0"},".cm-panels-bottom":{bottom:"0"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{background:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 0) no-repeat",backgroundSize:".4em",backgroundPosition:"calc(min(50%, 0px)) center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},i1),tF={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Oy=Ce.ie&&Ce.ie_version<=11,EE=class{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new Xy,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let o of e)this.queue.push(o);(Ce.ie&&Ce.ie_version<=11||Ce.ios&&t.composing)&&e.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&Ce.android&&t.constructor.EDIT_CONTEXT!==!1&&!(Ce.chrome&&Ce.chrome_version<126)&&(this.editContext=new CE(t),t.state.facet(bn)&&(t.contentDOM.editContext=this.editContext.editContext)),Oy&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var e;((e=this.view.docView)===null||e===void 0?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(t.scrollDOM)),this.addWindowListeners(this.win=t.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){(t.type=="change"||!t.type)&&!t.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,o)=>e!=t[o]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:o}=this,n=this.selectionRange;if(o.state.facet(bn)?o.root.activeElement!=this.dom:!gu(this.dom,n))return;let c=n.anchorNode&&o.docView.tile.nearest(n.anchorNode);if(c&&c.isWidget()&&c.widget.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(Ce.ie&&Ce.ie_version<=11||Ce.android&&Ce.chrome)&&!o.state.selection.main.empty&&n.focusNode&&mu(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=Nu(t.root);if(!e)return!1;let o=Ce.safari&&t.root.nodeType==11&&t.root.activeElement==this.dom&&iF(this.view,e)||e;if(!o||this.selectionRange.eq(o))return!1;let n=gu(this.dom,o);return n&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&j2(this.dom,o)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(o),n&&(this.selectionChanged=!0),!0)}setSelectionRange(t,e){this.selectionRange.set(t.node,t.offset,e.node,e.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,e=null;for(let o=this.dom;o;)if(o.nodeType==1)!e&&t<this.scrollTargets.length&&this.scrollTargets[t]==o?t++:e||(e=this.scrollTargets.slice(0,t)),e&&e.push(o),o=o.assignedSlot||o.parentNode;else if(o.nodeType==11)o=o.host;else break;if(t<this.scrollTargets.length&&!e&&(e=this.scrollTargets.slice(0,t)),e){for(let o of this.scrollTargets)o.removeEventListener("scroll",this.onScroll);for(let o of this.scrollTargets=e)o.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,tF),Oy&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Oy&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,e){var o;if(!this.delayedAndroidKey){let n=()=>{let c=this.delayedAndroidKey;c&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=c.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&c.force&&Pc(this.dom,c.key,c.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange<Date.now()-50||!!(!((o=this.delayedAndroidKey)===null||o===void 0)&&o.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,o=-1,n=!1;for(let c of t){let g=this.readMutation(c);g&&(g.typeOver&&(n=!0),e==-1?{from:e,to:o}=g:(e=Math.min(g.from,e),o=Math.max(g.to,o)))}return{from:e,to:o,typeOver:n}}readChange(){let{from:t,to:e,typeOver:o}=this.processRecords(),n=this.selectionChanged&&gu(this.dom,this.selectionRange);if(t<0&&!n)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let c=new lE(this.view,t,e,o);return this.view.docView.domChanged={newSel:c.newSel?c.newSel.main:null},c}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let o=this.view.state,n=QN(this.view,e);return this.view.state==o&&(e.domChanged||e.newSel&&!$f(this.view.state.selection,e.newSel.main))&&this.view.update([]),n}readMutation(t){let e=this.view.docView.tile.nearest(t.target);if(!e||e.isWidget())return null;if(e.markDirty(t.type=="attributes"),t.type=="childList"){let o=$A(e,t.previousSibling||t.target.previousSibling,-1),n=$A(e,t.nextSibling||t.target.nextSibling,1);return{from:o?e.posAfter(o):e.posAtStart,to:n?e.posBefore(n):e.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(bn)!=t.state.facet(bn)&&(t.view.contentDOM.editContext=t.state.facet(bn)?this.editContext.editContext:null))}destroy(){var t,e,o;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(e=this.gapIntersection)===null||e===void 0||e.disconnect(),(o=this.resizeScroll)===null||o===void 0||o.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function $A(i,t,e){for(;t;){let o=Ht.get(t);if(o&&o.parent==i)return o;let n=t.parentNode;t=n!=i.dom?n:e>0?t.nextSibling:t.previousSibling}return null}function qA(i,t){let e=t.startContainer,o=t.startOffset,n=t.endContainer,c=t.endOffset,g=i.docView.domAtPos(i.state.selection.main.anchor,1);return mu(g.node,g.offset,n,c)&&([e,o,n,c]=[n,c,e,o]),{anchorNode:e,anchorOffset:o,focusNode:n,focusOffset:c}}function iF(i,t){if(t.getComposedRanges){let n=t.getComposedRanges(i.root)[0];if(n)return qA(i,n)}let e=null;function o(n){n.preventDefault(),n.stopImmediatePropagation(),e=n.getTargetRanges()[0]}return i.contentDOM.addEventListener("beforeinput",o,!0),i.dom.ownerDocument.execCommand("indent"),i.contentDOM.removeEventListener("beforeinput",o,!0),e?qA(i,e):null}var CE=class{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=o=>{let n=t.state.selection.main,{anchor:c,head:g}=n,w=this.toEditorPos(o.updateRangeStart),y=this.toEditorPos(o.updateRangeEnd);t.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:o.updateRangeStart,editorBase:w,drifted:!1});let A=y-w>o.text.length;w==this.from&&c<this.from?w=c:y==this.to&&c>this.to&&(y=c);let R=XN(t.state.sliceDoc(w,y),o.text,(A?n.from:n.to)-w,A?"end":null);if(!R){let F=se.single(this.toEditorPos(o.selectionStart),this.toEditorPos(o.selectionEnd));$f(F,n)||t.dispatch({selection:F,userEvent:"select"});return}let T={from:R.from+w,to:R.toA+w,insert:gt.of(o.text.slice(R.from,R.toB).split(`
16
+ `))};if((Ce.mac||Ce.android)&&T.from==g-1&&/^\. ?$/.test(o.text)&&t.contentDOM.getAttribute("autocorrect")=="off"&&(T={from:w,to:y,insert:gt.of([o.text.replace("."," ")])}),this.pendingContextChange=T,!t.state.readOnly){let F=this.to-this.from+(T.to-T.from+T.insert.length);ZE(t,T,se.single(this.toEditorPos(o.selectionStart,F),this.toEditorPos(o.selectionEnd,F)))}this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)),T.from<T.to&&!T.insert.length&&t.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(e.text.slice(Math.max(0,o.updateRangeStart-1),Math.min(e.text.length,o.updateRangeStart+1)))&&this.handlers.compositionend(o)},this.handlers.characterboundsupdate=o=>{let n=[],c=null;for(let g=this.toEditorPos(o.rangeStart),w=this.toEditorPos(o.rangeEnd);g<w;g++){let y=t.coordsForChar(g);c=y&&new DOMRect(y.left,y.top,y.right-y.left,y.bottom-y.top)||c||new DOMRect,n.push(c)}e.updateCharacterBounds(o.rangeStart,n)},this.handlers.textformatupdate=o=>{let n=[];for(let c of o.getTextFormats()){let g=c.underlineStyle,w=c.underlineThickness;if(!/none/i.test(g)&&!/none/i.test(w)){let y=this.toEditorPos(c.rangeStart),A=this.toEditorPos(c.rangeEnd);if(y<A){let R=`text-decoration: underline ${/^[a-z]/.test(g)?g+" ":g=="Dashed"?"dashed ":g=="Squiggle"?"wavy ":""}${/thin/i.test(w)?1:2}px`;n.push(ze.mark({attributes:{style:R}}).range(y,A))}}}t.dispatch({effects:UN.of(ze.set(n))})},this.handlers.compositionstart=()=>{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(t.inputState.composing=-1,t.inputState.compositionFirstChange=null,this.composing){let{drifted:o}=this.composing;this.composing=null,o&&this.reset(t.state)}};for(let o in this.handlers)e.addEventListener(o,this.handlers[o]);this.measureReq={read:o=>{let n=Nu(o.root);n&&n.rangeCount&&this.editContext.updateSelectionBounds(n.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,o=!1,n=this.pendingContextChange;return t.changes.iterChanges((c,g,w,y,A)=>{if(o)return;let R=A.length-(g-c);if(n&&g>=n.to)if(n.from==c&&n.to==g&&n.insert.eq(A)){n=this.pendingContextChange=null,e+=R,this.to+=R;return}else n=null,this.revertPending(t.state);if(c+=e,g+=e,g<=this.from)this.from+=R,this.to+=R;else if(c<this.to){if(c<this.from||g>this.to||this.to-this.from+A.length>3e4){o=!0;return}this.editContext.updateText(this.toContextPos(c),this.toContextPos(g),A.toString()),this.to+=R}e+=R}),n&&!o&&this.revertPending(t.state),!o}update(t){let e=this.pendingContextChange,o=t.startState.selection.main;this.composing&&(this.composing.drifted||!t.changes.touchesRange(o.from,o.to)&&t.transactions.some(n=>!n.isUserEvent("input.type")&&n.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)):!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.reset(t.state)):(t.docChanged||t.selectionSet||e)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4)}reset(t){this.resetRange(t),this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to)),this.setSelection(t)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection,o=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),n=this.toContextPos(e.head);(this.editContext.selectionStart!=o||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(o,n)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to<t.doc.length&&this.to-e<500||this.to-this.from>1e4*3)}toEditorPos(t,e=this.to-this.from){t=Math.min(t,e);let o=this.composing;return o&&o.drifted?o.editorBase+(t-o.contextBase):t+this.from}toContextPos(t){let e=this.composing;return e&&e.drifted?e.contextBase+(t-e.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}},we=class i{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var e;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:o}=t;this.dispatchTransactions=t.dispatchTransactions||o&&(n=>n.forEach(c=>o(c,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=t.root||z2(t.parent)||document,this.viewState=new ed(this,t.state||xt.create(t)),t.scrollTo&&t.scrollTo.is(Lf)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Gc).map(n=>new wu(n));for(let n of this.plugins)n.update(this);this.observer=new EE(this),this.inputState=new cE(this),this.inputState.ensureHandlers(this.plugins),this.docView=new zf(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((e=document.fonts)===null||e===void 0)&&e.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...t){let e=t.length==1&&t[0]instanceof Bi?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,o=!1,n,c=this.state;for(let F of t){if(F.startState!=c)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");c=F.state}if(this.destroyed){this.viewState.state=c;return}let g=this.hasFocus,w=0,y=null;t.some(F=>F.annotation($N))?(this.inputState.notifiedFocused=g,w=1):g!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=g,y=qN(c,g),y||(w=1));let A=this.observer.delayedAndroidKey,R=null;if(A?(this.observer.clearDelayedAndroidKey(),R=this.observer.readChange(),(R&&!this.state.doc.eq(c.doc)||!this.state.selection.eq(c.selection))&&(R=null)):this.observer.clear(),c.facet(xt.phrases)!=this.state.facet(xt.phrases))return this.setState(c);n=Hf.create(this,c,t),n.flags|=w;let T=this.viewState.scrollTarget;try{this.updateState=2;for(let F of t){if(T&&(T=T.map(F.changes)),F.scrollIntoView){let{main:k}=F.state.selection,{x:G,y:W}=this.state.facet(i.cursorScrollMargin);T=new bu(k.empty?k:se.cursor(k.head,k.head>k.anchor?-1:1),"nearest","nearest",W,G)}for(let k of F.effects)k.is(Lf)&&(T=k.value.clip(this.state))}this.viewState.update(n,T),this.bidiCache=td.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),e=this.docView.update(n),this.state.facet(uu)!=this.styleModules&&this.mountStyles(),o=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(F=>F.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(Uf)!=n.state.facet(Uf)&&(this.viewState.mustMeasureContent=!0),(e||o||T||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),e&&this.docViewUpdate(),!n.empty)for(let F of this.state.facet(zy))try{F(n)}catch(k){Ir(this.state,k,"update listener")}(y||R)&&Promise.resolve().then(()=>{y&&this.state==y.startState&&this.dispatch(y),R&&!QN(this,R)&&A.force&&Pc(this.contentDOM,A.key,A.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let o of this.plugins)o.destroy(this);this.viewState=new ed(this,t),this.plugins=t.facet(Gc).map(o=>new wu(o)),this.pluginMap.clear();for(let o of this.plugins)o.update(this);this.docView.destroy(),this.docView=new zf(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Gc),o=t.state.facet(Gc);if(e!=o){let n=[];for(let c of o){let g=e.indexOf(c);if(g<0)n.push(new wu(c));else{let w=this.plugins[g];w.mustUpdate=t,n.push(w)}}for(let c of this.plugins)c.mustUpdate!=t&&c.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=t;for(let n=0;n<this.plugins.length;n++)this.plugins[n].update(this);e!=o&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let t of this.plugins){let e=t.value;if(e&&e.docViewUpdate)try{e.docViewUpdate(this)}catch(o){Ir(this.state,o,"doc view update listener")}}}measure(t=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,o=this.viewState.scrollParent,n=this.viewState.getScrollOffset(),{scrollAnchorPos:c,scrollAnchorHeight:g,scaleY:w}=this.viewState;Math.abs(n-this.viewState.scrollOffset)>1&&(g=-1),this.viewState.scrollAnchorHeight=-1;try{for(let y=0;;y++){if(g<0){if(wN(o||this.win))c=-1,g=this.viewState.heightMap.height/this.viewState.scaleY;else{let G=this.viewState.scrollAnchorAt(n);c=G.from,g=G.top}w=this.viewState.scaleY}this.updateState=1;let A=this.viewState.measure();if(!A&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(y>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let R=[];A&4||([this.measureRequests,R]=[R,this.measureRequests]);let T=R.map(G=>{try{return G.read(this)}catch(W){return Ir(this.state,W),KA}}),F=Hf.create(this,this.state,[]),k=!1;F.flags|=A,e?e.flags|=A:e=F,this.updateState=2,F.empty||(this.updatePlugins(F),this.inputState.update(F),this.updateAttrs(),k=this.docView.update(F),k&&this.docViewUpdate());for(let G=0;G<R.length;G++)if(T[G]!=KA)try{let W=R[G];W.write&&W.write(T[G],this)}catch(W){Ir(this.state,W)}if(k&&this.docView.updateSelection(!0),!F.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,g=-1;continue}else{let W=(c<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(c).top)/this.viewState.scaleY-g/w;if((W>1||W<-1)&&!(Ce.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(o==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){n=n+W,o?c<0?o.scrollTop=o.scrollHeight:o.scrollTop+=W:this.win.scrollBy(0,W),g=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let y of this.state.facet(zy))y(e)}get themeClasses(){return vE+" "+(this.state.facet(xE)?t1:e1)+" "+this.state.facet(Uf)}updateAttrs(){let t=eN(this,_N,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(bn)?"true":"false",class:"cm-content",style:`${Ce.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),eN(this,_E,e);let o=this.observer.ignore(()=>{let n=kA(this.contentDOM,this.contentAttrs,e),c=kA(this.dom,this.editorAttrs,t);return n||c});return this.editorAttrs=t,this.contentAttrs=e,o}showAnnouncements(t){let e=!0;for(let o of t)for(let n of o.effects)if(n.is(i.announce)){e&&(this.announceDOM.textContent=""),e=!1;let c=this.announceDOM.appendChild(document.createElement("div"));c.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(uu);let t=this.state.facet(i.cspNonce);Io.mount(this.root,this.styleModules.concat(eF).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let e=0;e<this.measureRequests.length;e++)if(this.measureRequests[e].key===t.key){this.measureRequests[e]=t;return}}this.measureRequests.push(t)}}plugin(t){let e=this.pluginMap.get(t);return(e===void 0||e&&e.plugin!=t)&&this.pluginMap.set(t,e=this.plugins.find(o=>o.plugin==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,o){return _y(this,t,GA(this,t,e,o))}moveByGroup(t,e){return _y(this,t,GA(this,t,e,o=>IV(this,t.head,o)))}visualLineSide(t,e){let o=this.bidiSpans(t),n=this.textDirectionAt(t.from),c=o[e?o.length-1:0];return se.cursor(c.side(e,n)+t.from,c.forward(!e,n)?1:-1)}moveToLineBoundary(t,e,o=!0){return CV(this,t,e,o)}moveVertically(t,e,o){return _y(this,t,AV(this,t,e,o))}domAtPos(t,e=1){return this.docView.domAtPos(t,e)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){this.readMeasured();let o=sE(this,t,e);return o&&o.pos}posAndSideAtCoords(t,e=!0){return this.readMeasured(),sE(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let o=this.state.doc.lineAt(t),n=this.bidiSpans(o),c=n[Ro.find(n,t-o.from,-1,e)];return this.docView.coordsAt(t,e,c.dir==Et.RTL)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(kN)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>rF)return IN(t.length);let e=this.textDirectionAt(t.from),o;for(let c of this.bidiCache)if(c.from==t.from&&c.dir==e&&(c.fresh||CN(c.isolates,o=UA(this,t))))return c.order;o||(o=UA(this,t));let n=rV(t.text,e,o);return this.bidiCache.push(new td(t.from,t.to,e,o,!0,n)),n}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Ce.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{bN(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){var o,n,c,g;return Lf.of(new bu(typeof t=="number"?se.cursor(t):t,(o=e.y)!==null&&o!==void 0?o:"nearest",(n=e.x)!==null&&n!==void 0?n:"nearest",(c=e.yMargin)!==null&&c!==void 0?c:5,(g=e.xMargin)!==null&&g!==void 0?g:5))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,o=this.viewState.scrollAnchorAt(t);return Lf.of(new bu(se.cursor(o.from),"start","start",o.top-t,e,!0))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return vi.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return vi.define(()=>({}),{eventObservers:t})}static theme(t,e){let o=Io.newName(),n=[Uf.of(o),uu.of(yE(`.${o}`,t))];return e&&e.dark&&n.push(xE.of(!0)),n}static baseTheme(t){return Er.lowest(uu.of(yE("."+vE,t,i1)))}static findFromDOM(t){var e;let o=t.querySelector(".cm-content"),n=o&&Ht.get(o)||Ht.get(t);return((e=n?.root)===null||e===void 0?void 0:e.view)||null}};we.styleModule=uu;we.inputHandler=LN;we.clipboardInputFilter=FE;we.clipboardOutputFilter=UE;we.scrollHandler=FN;we.focusChangeEffect=BN;we.perLineTextDirection=kN;we.exceptionSink=SN;we.updateListener=zy;we.editable=bn;we.mouseSelectionStyle=TN;we.dragMovesSelection=RN;we.clickAddsSelectionRange=NN;we.decorations=sd;we.blockWrappers=ON;we.outerDecorations=OE;we.atomicRanges=Su;we.bidiIsolatedRanges=GN;we.cursorScrollMargin=Se.define({combine:i=>{let t=5,e=5;for(let o of i)typeof o=="number"?t=e=o:{x:t,y:e}=o;return{x:t,y:e}}});we.scrollMargins=ZN;we.darkTheme=xE;we.cspNonce=Se.define({combine:i=>i.length?i[0]:""});we.contentAttributes=_E;we.editorAttributes=_N;we.lineWrapping=we.contentAttributes.of({class:"cm-lineWrapping"});we.announce=et.define();var rF=4096,KA={},td=class i{constructor(t,e,o,n,c,g){this.from=t,this.to=e,this.dir=o,this.isolates=n,this.fresh=c,this.order=g}static update(t,e){if(e.empty&&!t.some(c=>c.fresh))return t;let o=[],n=t.length?t[t.length-1].dir:Et.LTR;for(let c=Math.max(0,t.length-10);c<t.length;c++){let g=t[c];g.dir==n&&!e.touchesRange(g.from,g.to)&&o.push(new i(e.mapPos(g.from,1),e.mapPos(g.to,-1),g.dir,g.isolates,!1,g.order))}return o}};function eN(i,t,e){for(let o=i.state.facet(t),n=o.length-1;n>=0;n--){let c=o[n],g=typeof c=="function"?c(i):c;g&&BE(g,e)}return e}var oF=Ce.mac?"mac":Ce.windows?"win":Ce.linux?"linux":"key";function sF(i,t){let e=i.split(/-(?!$)/),o=e[e.length-1];o=="Space"&&(o=" ");let n,c,g,w;for(let y=0;y<e.length-1;++y){let A=e[y];if(/^(cmd|meta|m)$/i.test(A))w=!0;else if(/^a(lt)?$/i.test(A))n=!0;else if(/^(c|ctrl|control)$/i.test(A))c=!0;else if(/^s(hift)?$/i.test(A))g=!0;else if(/^mod$/i.test(A))t=="mac"?w=!0:c=!0;else throw new Error("Unrecognized modifier name: "+A)}return n&&(o="Alt-"+o),c&&(o="Ctrl-"+o),w&&(o="Meta-"+o),g&&(o="Shift-"+o),o}function _f(i,t,e){return t.altKey&&(i="Alt-"+i),t.ctrlKey&&(i="Ctrl-"+i),t.metaKey&&(i="Meta-"+i),e!==!1&&t.shiftKey&&(i="Shift-"+i),i}var nF=Er.default(we.domEventHandlers({keydown(i,t){return s1(r1(t.state),i,t,"editor")}})),ss=Se.define({enables:nF}),tN=new WeakMap;function r1(i){let t=i.facet(ss),e=tN.get(t);return e||tN.set(t,e=lF(t.reduce((o,n)=>o.concat(n),[]))),e}function o1(i,t,e){return s1(r1(i.state),t,i,e)}var ea=null,aF=4e3;function lF(i,t=oF){let e=Object.create(null),o=Object.create(null),n=(g,w)=>{let y=o[g];if(y==null)o[g]=w;else if(y!=w)throw new Error("Key binding "+g+" is used both as a regular binding and as a multi-stroke prefix")},c=(g,w,y,A,R)=>{var T,F;let k=e[g]||(e[g]=Object.create(null)),G=w.split(/ (?!$)/).map(Q=>sF(Q,t));for(let Q=1;Q<G.length;Q++){let H=G.slice(0,Q).join(" ");n(H,!0),k[H]||(k[H]={preventDefault:!0,stopPropagation:!1,run:[re=>{let K=ea={view:re,prefix:H,scope:g};return setTimeout(()=>{ea==K&&(ea=null)},aF),!0}]})}let W=G.join(" ");n(W,!1);let P=k[W]||(k[W]={preventDefault:!1,stopPropagation:!1,run:((F=(T=k._any)===null||T===void 0?void 0:T.run)===null||F===void 0?void 0:F.slice())||[]});y&&P.run.push(y),A&&(P.preventDefault=!0),R&&(P.stopPropagation=!0)};for(let g of i){let w=g.scope?g.scope.split(" "):["editor"];if(g.any)for(let A of w){let R=e[A]||(e[A]=Object.create(null));R._any||(R._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:T}=g;for(let F in R)R[F].run.push(k=>T(k,IE))}let y=g[t]||g.key;if(y)for(let A of w)c(A,y,g.run,g.preventDefault,g.stopPropagation),g.shift&&c(A,"Shift-"+y,g.shift,g.preventDefault,g.stopPropagation)}return e}var IE=null;function s1(i,t,e,o){IE=t;let n=RA(t),c=hr(n,0),g=ho(c)==n.length&&n!=" ",w="",y=!1,A=!1,R=!1;ea&&ea.view==e&&ea.scope==o&&(w=ea.prefix+" ",HN.indexOf(t.keyCode)<0&&(A=!0,ea=null));let T=new Set,F=P=>{if(P){for(let Q of P.run)if(!T.has(Q)&&(T.add(Q),Q(e)))return P.stopPropagation&&(R=!0),!0;P.preventDefault&&(P.stopPropagation&&(R=!0),A=!0)}return!1},k=i[o],G,W;return k&&(F(k[w+_f(n,t,!g)])?y=!0:g&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Ce.windows&&t.ctrlKey&&t.altKey)&&!(Ce.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(G=mn[t.keyCode])&&G!=n?(F(k[w+_f(G,t,!0)])||t.shiftKey&&(W=_c[t.keyCode])!=n&&W!=G&&F(k[w+_f(W,t,!1)]))&&(y=!0):g&&t.shiftKey&&F(k[w+_f(n,t,!0)])&&(y=!0),!y&&F(k._any)&&(y=!0)),A&&(y=!0),y&&R&&t.stopPropagation(),IE=null,y}var Ll=class i{constructor(t,e,o,n,c){this.className=t,this.left=e,this.top=o,this.width=n,this.height=c}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,o){if(o.empty){let n=t.coordsAtPos(o.head,o.assoc||1);if(!n)return[];let c=n1(t);return[new i(e,n.left-c.left,n.top-c.top,null,n.bottom-n.top)]}else return cF(t,e,o)}};function n1(i){let t=i.scrollDOM.getBoundingClientRect();return{left:(i.textDirection==Et.LTR?t.left:t.right-i.scrollDOM.clientWidth*i.scaleX)-i.scrollDOM.scrollLeft*i.scaleX,top:t.top-i.scrollDOM.scrollTop*i.scaleY}}function iN(i,t,e,o){let n=i.coordsAtPos(t,e*2);if(!n)return o;let c=i.dom.getBoundingClientRect(),g=(n.top+n.bottom)/2,w=i.posAtCoords({x:c.left+1,y:g}),y=i.posAtCoords({x:c.right-1,y:g});return w==null||y==null?o:{from:Math.max(o.from,Math.min(w,y)),to:Math.min(o.to,Math.max(w,y))}}function cF(i,t,e){if(e.to<=i.viewport.from||e.from>=i.viewport.to)return[];let o=Math.max(e.from,i.viewport.from),n=Math.min(e.to,i.viewport.to),c=i.textDirection==Et.LTR,g=i.contentDOM,w=g.getBoundingClientRect(),y=n1(i),A=g.querySelector(".cm-line"),R=A&&window.getComputedStyle(A),T=w.left+(R?parseInt(R.paddingLeft)+Math.min(0,parseInt(R.textIndent)):0),F=w.right-(R?parseInt(R.paddingRight):0),k=oE(i,o,1),G=oE(i,n,-1),W=k.type==$i.Text?k:null,P=G.type==$i.Text?G:null;if(W&&(i.lineWrapping||k.widgetLineBreaks)&&(W=iN(i,o,1,W)),P&&(i.lineWrapping||G.widgetLineBreaks)&&(P=iN(i,n,-1,P)),W&&P&&W.from==P.from&&W.to==P.to)return H(re(e.from,e.to,W));{let J=W?re(e.from,null,W):K(k,!1),te=P?re(null,e.to,P):K(G,!0),ae=[];return(W||k).to<(P||G).from-(W&&P?1:0)||k.widgetLineBreaks>1&&J.bottom+i.defaultLineHeight/2<te.top?ae.push(Q(T,J.bottom,F,te.top)):J.bottom<te.top&&i.elementAtHeight((J.bottom+te.top)/2).type==$i.Text&&(J.bottom=te.top=(J.bottom+te.top)/2),H(J).concat(ae).concat(H(te))}function Q(J,te,ae,me){return new Ll(t,J-y.left,te-y.top,Math.max(0,ae-J),me-te)}function H({top:J,bottom:te,horizontal:ae}){let me=[];for(let Ee=0;Ee<ae.length;Ee+=2)me.push(Q(ae[Ee],J,ae[Ee+1],te));return me}function re(J,te,ae){let me=1e9,Ee=-1e9,Pe=[];function Re(Oe,de,ue,dt,ce){let Be=i.coordsAtPos(Oe,Oe==ae.to?-2:2),qe=i.coordsAtPos(ue,ue==ae.from?2:-2);!Be||!qe||(me=Math.min(Be.top,qe.top,me),Ee=Math.max(Be.bottom,qe.bottom,Ee),ce==Et.LTR?Pe.push(c&&de?T:Be.left,c&&dt?F:qe.right):Pe.push(!c&&dt?T:qe.left,!c&&de?F:Be.right))}let Ie=J??ae.from,Ye=te??ae.to;for(let Oe of i.visibleRanges)if(Oe.to>Ie&&Oe.from<Ye)for(let de=Math.max(Oe.from,Ie),ue=Math.min(Oe.to,Ye);;){let dt=i.state.doc.lineAt(de);for(let ce of i.bidiSpans(dt)){let Be=ce.from+dt.from,qe=ce.to+dt.from;if(Be>=ue)break;qe>de&&Re(Math.max(Be,de),J==null&&Be<=Ie,Math.min(qe,ue),te==null&&qe>=Ye,ce.dir)}if(de=dt.to+1,de>=ue)break}return Pe.length==0&&Re(Ie,J==null,Ye,te==null,i.textDirection),{top:me,bottom:Ee,horizontal:Pe}}function K(J,te){let ae=w.top+(te?J.top:J.bottom);return{top:ae,bottom:ae,horizontal:[]}}}function hF(i,t){return i.constructor==t.constructor&&i.eq(t)}var AE=class{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(Mf)!=t.state.facet(Mf)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){this.layer.updateOnDocViewUpdate!==!1&&t.requestMeasure(this.measureReq)}setOrder(t){let e=0,o=t.facet(Mf);for(;e<o.length&&o[e]!=this.layer;)e++;this.dom.style.zIndex=String((this.layer.above?150:-1)-e)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:t,scaleY:e}=this.view;(t!=this.scaleX||e!=this.scaleY)&&(this.scaleX=t,this.scaleY=e,this.dom.style.transform=`scale(${1/t}, ${1/e})`)}draw(t){if(t.length!=this.drawn.length||t.some((e,o)=>!hF(e,this.drawn[o]))){let e=this.dom.firstChild,o=0;for(let n of t)n.update&&e&&n.constructor&&this.drawn[o].constructor&&n.update(e,this.drawn[o])?(e=e.nextSibling,o++):this.dom.insertBefore(n.draw(),e);for(;e;){let n=e.nextSibling;e.remove(),e=n}this.drawn=t,Ce.webkit&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}},Mf=Se.define();function a1(i){return[vi.define(t=>new AE(t,i)),Mf.of(i)]}var zc=Se.define({combine(i){return po(i,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})}});function l1(i={}){return[zc.of(i),pF,uF,dF,VN.of(!0)]}function c1(i){return i.startState.facet(zc)!=i.state.facet(zc)}var pF=a1({above:!0,markers(i){let{state:t}=i,e=t.facet(zc),o=[];for(let n of t.selection.ranges){let c=n==t.selection.main;if(n.empty||e.drawRangeCursor&&!(c&&Ce.ios&&e.iosSelectionHandles)){let g=c?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",w=n.empty?n:se.cursor(n.head,n.assoc);for(let y of Ll.forRange(i,g,w))o.push(y)}}return o},update(i,t){i.transactions.some(o=>o.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let e=c1(i);return e&&rN(i.state,t),i.docChanged||i.selectionSet||e},mount(i,t){rN(t.state,i)},class:"cm-cursorLayer"});function rN(i,t){t.style.animationDuration=i.facet(zc).cursorBlinkRate+"ms"}var uF=a1({above:!1,markers(i){let t=[],{main:e,ranges:o}=i.state.selection;for(let n of o)if(!n.empty)for(let c of Ll.forRange(i,"cm-selectionBackground",n))t.push(c);if(Ce.ios&&!e.empty&&i.state.facet(zc).iosSelectionHandles){for(let n of Ll.forRange(i,"cm-selectionHandle cm-selectionHandle-start",se.cursor(e.from,1)))t.push(n);for(let n of Ll.forRange(i,"cm-selectionHandle cm-selectionHandle-end",se.cursor(e.to,1)))t.push(n)}return t},update(i,t){return i.docChanged||i.selectionSet||i.viewportChanged||c1(i)},class:"cm-selectionLayer"}),fF=Ce.gecko&&Ce.gecko_version==153?"#ffffff01":"transparent",dF=Er.highest(we.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:`${fF} !important`},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),h1=et.define({map(i,t){return i==null?null:t.mapPos(i)}}),du=ri.define({create(){return null},update(i,t){return i!=null&&(i=t.changes.mapPos(i)),t.effects.reduce((e,o)=>o.is(h1)?o.value:e,i)}}),gF=vi.fromClass(class{constructor(i){this.view=i,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(i){var t;let e=i.state.field(du);e==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(i.startState.field(du)!=e||i.docChanged||i.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:i}=this,t=i.state.field(du),e=t!=null&&i.coordsAtPos(t);if(!e)return null;let o=i.scrollDOM.getBoundingClientRect();return{left:e.left-o.left+i.scrollDOM.scrollLeft*i.scaleX,top:e.top-o.top+i.scrollDOM.scrollTop*i.scaleY,height:e.bottom-e.top}}drawCursor(i){if(this.cursor){let{scaleX:t,scaleY:e}=this.view;i?(this.cursor.style.left=i.left/t+"px",this.cursor.style.top=i.top/e+"px",this.cursor.style.height=i.height/e+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(i){this.view.state.field(du)!=i&&this.view.dispatch({effects:h1.of(i)})}},{eventObservers:{dragover(i){this.setDropPos(this.view.posAtCoords({x:i.clientX,y:i.clientY}))},dragleave(i){(i.target==this.view.contentDOM||!this.view.contentDOM.contains(i.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function p1(){return[du,gF]}var dX=/x/.unicode!=null?"gu":"g";function u1(){return bF}var mF=ze.line({class:"cm-activeLine"}),bF=vi.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.docChanged||i.selectionSet)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let t=-1,e=[];for(let o of i.state.selection.ranges){let n=i.lineBlockAt(o.head);n.from>t&&(e.push(mF.range(n.from)),t=n.from)}return ze.set(e)}},{decorations:i=>i.decorations});var NE=2e3;function wF(i,t,e){let o=Math.min(t.line,e.line),n=Math.max(t.line,e.line),c=[];if(t.off>NE||e.off>NE||t.col<0||e.col<0){let g=Math.min(t.off,e.off),w=Math.max(t.off,e.off);for(let y=o;y<=n;y++){let A=i.doc.line(y);A.length<=w&&c.push(se.range(A.from+g,A.to+w))}}else{let g=Math.min(t.col,e.col),w=Math.max(t.col,e.col);for(let y=o;y<=n;y++){let A=i.doc.line(y),R=Tf(A.text,g,i.tabSize,!0);if(R<0)c.push(se.cursor(A.to));else{let T=Tf(A.text,w,i.tabSize);c.push(se.range(A.from+R,A.from+T))}}}return c}function xF(i,t){let e=i.coordsAtPos(i.viewport.from);return e?Math.round(Math.abs((e.left-t)/i.defaultCharacterWidth)):-1}function oN(i,t){let e=i.posAtCoords({x:t.clientX,y:t.clientY},!1),o=i.state.doc.lineAt(e),n=e-o.from,c=n>NE?-1:n==o.length?xF(i,t.clientX):Kn(o.text,i.state.tabSize,e-o.from);return{line:o.number,col:c,off:n}}function vF(i,t){let e=oN(i,t),o=i.state.selection;return e?{update(n){if(n.docChanged){let c=n.changes.mapPos(n.startState.doc.line(e.line).from),g=n.state.doc.lineAt(c);e={line:g.number,col:e.col,off:Math.min(e.off,g.length)},o=o.map(n.changes)}},get(n,c,g){let w=oN(i,n);if(!w)return o;let y=wF(i.state,e,w);return y.length?g?se.create(y.concat(o.ranges)):se.create(y):o}}:null}function f1(i){let t=i?.eventFilter||(e=>e.altKey&&e.button==0);return we.mouseSelectionStyle.of((e,o)=>t(o)?vF(e,o):null)}var yF={Alt:[18,i=>!!i.altKey],Control:[17,i=>!!i.ctrlKey],Shift:[16,i=>!!i.shiftKey],Meta:[91,i=>!!i.metaKey]},EF={style:"cursor: crosshair"};function d1(i={}){let[t,e]=yF[i.key||"Alt"],o=vi.fromClass(class{constructor(n){this.view=n,this.isDown=!1}set(n){this.isDown!=n&&(this.isDown=n,this.view.update([]))}},{eventObservers:{keydown(n){this.set(n.keyCode==t||e(n))},keyup(n){(n.keyCode==t||!e(n))&&this.set(!1)},mousemove(n){this.set(e(n))}}});return[o,we.contentAttributes.of(n=>{var c;return!((c=n.plugin(o))===null||c===void 0)&&c.isDown?EF:null})]}var Of="-10000px",RE=class{constructor(t,e,o,n){this.facet=e,this.createTooltipView=o,this.removeTooltipView=n,this.input=t.state.facet(e),this.tooltips=this.input.filter(g=>g);let c=null;this.tooltipViews=this.tooltips.map(g=>c=o(g,c))}update(t,e){var o;let n=t.state.facet(this.facet),c=n.filter(y=>y);if(n===this.input){for(let y of this.tooltipViews)y.update&&y.update(t);return!1}let g=[],w=e?[]:null;for(let y=0;y<c.length;y++){let A=c[y],R=-1;if(A){for(let T=0;T<this.tooltips.length;T++){let F=this.tooltips[T];F&&F.create==A.create&&(R=T)}if(R<0)g[y]=this.createTooltipView(A,y?g[y-1]:null),w&&(w[y]=!!A.above);else{let T=g[y]=this.tooltipViews[R];w&&(w[y]=e[R]),T.update&&T.update(t)}}}for(let y of this.tooltipViews)g.indexOf(y)<0&&(this.removeTooltipView(y),(o=y.destroy)===null||o===void 0||o.call(y));return e&&(w.forEach((y,A)=>e[A]=y),e.length=w.length),this.input=n,this.tooltips=c,this.tooltipViews=g,!0}};function CF(i){let t=i.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}var Gy=Se.define({combine:i=>{var t,e,o;return{position:Ce.ios?"absolute":((t=i.find(n=>n.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((e=i.find(n=>n.parent))===null||e===void 0?void 0:e.parent)||null,tooltipSpace:((o=i.find(n=>n.tooltipSpace))===null||o===void 0?void 0:o.tooltipSpace)||CF}}}),sN=new WeakMap,g1=vi.fromClass(class{constructor(i){this.view=i,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=i.state.facet(Gy);this.position=t.position,this.parent=t.parent,this.classes=i.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new RE(i,ME,(e,o)=>this.createTooltip(e,o),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),i.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let i of this.manager.tooltipViews)this.intersectionObserver.observe(i.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(i){i.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(i,this.above);t&&this.observeIntersection();let e=t||i.geometryChanged,o=i.state.facet(Gy);if(o.position!=this.position&&!this.madeAbsolute){this.position=o.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;e=!0}if(o.parent!=this.parent){this.parent&&this.container.remove(),this.parent=o.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);e=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure()}createTooltip(i,t){let e=i.create(this.view),o=t?t.dom:null;if(e.dom.classList.add("cm-tooltip"),i.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",e.dom.appendChild(n)}return e.dom.style.position=this.position,e.dom.style.top=Of,e.dom.style.left="0px",this.container.insertBefore(e.dom,o),e.mount&&e.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(e.dom),e}destroy(){var i,t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let o of this.manager.tooltipViews)o.dom.remove(),(i=o.destroy)===null||i===void 0||i.call(o);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let i=1,t=1,e=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:c}=this.manager.tooltipViews[0];if(Ce.safari){let g=c.getBoundingClientRect();e=Math.abs(g.top+1e4)>1||Math.abs(g.left)>1}else e=!!c.offsetParent&&c.offsetParent!=this.container.ownerDocument.body}if(e||this.position=="absolute")if(this.parent){let c=this.parent.getBoundingClientRect();c.width&&c.height&&(i=c.width/this.parent.offsetWidth,t=c.height/this.parent.offsetHeight)}else({scaleX:i,scaleY:t}=this.view.viewState);let o=this.view.scrollDOM.getBoundingClientRect(),n=GE(this.view);return{visible:{left:o.left+n.left,top:o.top+n.top,right:o.right-n.right,bottom:o.bottom-n.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((c,g)=>{let w=this.manager.tooltipViews[g];return w.getCoords?w.getCoords(c.pos):this.view.coordsAtPos(c.pos)}),size:this.manager.tooltipViews.map(({dom:c})=>c.getBoundingClientRect()),space:this.view.state.facet(Gy).tooltipSpace(this.view),scaleX:i,scaleY:t,makeAbsolute:e}}writeMeasure(i){var t;if(i.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let w of this.manager.tooltipViews)w.dom.style.position="absolute"}let{visible:e,space:o,scaleX:n,scaleY:c}=i,g=[];for(let w=0;w<this.manager.tooltips.length;w++){let y=this.manager.tooltips[w],A=this.manager.tooltipViews[w],{dom:R}=A,T=i.pos[w],F=i.size[w];if(!T||y.clip!==!1&&(T.bottom<=Math.max(e.top,o.top)||T.top>=Math.min(e.bottom,o.bottom)||T.right<Math.max(e.left,o.left)-.1||T.left>Math.min(e.right,o.right)+.1)){R.style.top=Of;continue}let k=y.arrow?A.dom.querySelector(".cm-tooltip-arrow"):null,G=k?7:0,W=F.right-F.left,P=(t=sN.get(A))!==null&&t!==void 0?t:F.bottom-F.top,Q=A.offset||AF,H=this.view.textDirection==Et.LTR,re=F.width>o.right-o.left?H?o.left:o.right-F.width:H?Math.max(o.left,Math.min(T.left-(k?14:0)+Q.x,o.right-W)):Math.min(Math.max(o.left,T.left-W+(k?14:0)-Q.x),o.right-W),K=this.above[w];!y.strictSide&&(K?T.top-P-G-Q.y<o.top:T.bottom+P+G+Q.y>o.bottom)&&K==o.bottom-T.bottom>T.top-o.top&&(K=this.above[w]=!K);let J=(K?T.top-o.top:o.bottom-T.bottom)-G;if(J<P&&A.resize!==!1){if(J<this.view.defaultLineHeight){R.style.top=Of;continue}sN.set(A,P),R.style.height=(P=J)/c+"px"}else R.style.height&&(R.style.height="");let te=K?T.top-P-G-Q.y:T.bottom+G+Q.y,ae=re+W;if(A.overlap!==!0)for(let me of g)me.left<ae&&me.right>re&&me.top<te+P&&me.bottom>te&&(te=K?me.top-P-2-G:me.bottom+G+2);if(this.position=="absolute"?(R.style.top=(te-i.parent.top)/c+"px",nN(R,(re-i.parent.left)/n)):(R.style.top=te/c+"px",nN(R,re/n)),k){let me=T.left+(H?Q.x:-Q.x)-(re+14-7);k.style.left=me/n+"px"}A.overlap!==!0&&g.push({left:re,top:te,right:ae,bottom:te+P}),R.classList.toggle("cm-tooltip-above",K),R.classList.toggle("cm-tooltip-below",!K),A.positioned&&A.positioned(i.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let i of this.manager.tooltipViews)i.dom.style.top=Of}},{eventObservers:{scroll(){this.maybeMeasure()}}});function nN(i,t){let e=parseInt(i.style.left,10);(isNaN(e)||Math.abs(t-e)>1)&&(i.style.left=t+"px")}var IF=we.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),AF={x:0,y:0},ME=Se.define({enables:[g1,IF]});function WE(i,t){let e=i.plugin(g1);if(!e)return null;let o=e.manager.tooltips.indexOf(t);return o<0?null:e.manager.tooltipViews[o]}var aN=Se.define({combine(i){let t,e;for(let o of i)t=t||o.topContainer,e=e||o.bottomContainer;return{topContainer:t,bottomContainer:e}}});function ad(i,t){let e=i.plugin(m1),o=e?e.specs.indexOf(t):-1;return o>-1?e.panels[o]:null}var m1=vi.fromClass(class{constructor(i){this.input=i.state.facet(Tu),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(e=>e(i));let t=i.state.facet(aN);this.top=new Mc(i,!0,t.topContainer),this.bottom=new Mc(i,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(i){let t=i.state.facet(aN);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Mc(i.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Mc(i.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let e=i.state.facet(Tu);if(e!=this.input){let o=e.filter(y=>y),n=[],c=[],g=[],w=[];for(let y of o){let A=this.specs.indexOf(y),R;A<0?(R=y(i.view),w.push(R)):(R=this.panels[A],R.update&&R.update(i)),n.push(R),(R.top?c:g).push(R)}this.specs=o,this.panels=n,this.top.sync(c),this.bottom.sync(g);for(let y of w)y.dom.classList.add("cm-panel"),y.mount&&y.mount()}else for(let o of this.panels)o.update&&o.update(i)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:i=>we.scrollMargins.of(t=>{let e=t.plugin(i);return e&&{top:e.top.scrollMargin(),bottom:e.bottom.scrollMargin()}})}),Mc=class{constructor(t,e,o){this.view=t,this.top=e,this.container=o,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let e of this.panels)e.destroy&&t.indexOf(e)<0&&e.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels)if(e.dom.parentNode==this.dom){for(;t!=e.dom;)t=lN(t);t=t.nextSibling}else this.dom.insertBefore(e.dom,t);for(;t;)t=lN(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}};function lN(i){let t=i.nextSibling;return i.remove(),t}var Tu=Se.define({enables:m1});function b1(i,t){let e,o=new Promise(g=>e=g),n=g=>NF(g,t,e);i.state.field(Wf,!1)?i.dispatch({effects:x1.of(n)}):i.dispatch({effects:et.appendConfig.of(Wf.init(()=>[n]))});let c=v1.of(n);return{close:c,result:o.then(g=>((i.win.queueMicrotask||(y=>i.win.setTimeout(y,10)))(()=>{i.state.field(Wf).indexOf(n)>-1&&i.dispatch({effects:c})}),g))}}function w1(i,t){let e=i.state.field(Wf,!1)||[];for(let o of e){let n=ad(i,o);if(n&&n.dom.classList.contains(t))return n}return null}var Wf=ri.define({create(){return[]},update(i,t){for(let e of t.effects)e.is(x1)?i=[e.value].concat(i):e.is(v1)&&(i=i.filter(o=>o!=e.value));return i},provide:i=>Tu.computeN([i],t=>t.field(i))}),x1=et.define(),v1=et.define();function NF(i,t,e){let o=t.content?t.content(i,()=>g(null)):null;if(!o){if(o=xi("form"),t.input){let w=xi("input",t.input);/^(text|password|number|email|tel|url)$/.test(w.type)&&w.classList.add("cm-textfield"),w.name||(w.name="input"),o.appendChild(xi("label",(t.label||"")+": ",w))}else o.appendChild(document.createTextNode(t.label||""));o.appendChild(document.createTextNode(" ")),o.appendChild(xi("button",{class:"cm-button",type:"submit"},t.submitLabel||"OK"))}let n=o.nodeName=="FORM"?[o]:o.querySelectorAll("form");for(let w=0;w<n.length;w++){let y=n[w];y.addEventListener("keydown",A=>{A.keyCode==27?(A.preventDefault(),g(null)):A.keyCode==13&&(A.preventDefault(),g(y))}),y.addEventListener("submit",A=>{A.preventDefault(),g(y)})}let c=xi("div",o,xi("button",{onclick:()=>g(null),"aria-label":i.state.phrase("close"),class:"cm-dialog-close",type:"button"},["\xD7"]));t.class&&(c.className=t.class),c.classList.add("cm-dialog");function g(w){c.contains(c.ownerDocument.activeElement)&&i.focus(),e(w)}return{dom:c,top:t.top,mount:()=>{if(t.focus){let w;typeof t.focus=="string"?w=o.querySelector(t.focus):w=o.querySelector("input")||o.querySelector("button"),w&&"select"in w?w.select():w&&"focus"in w&&w.focus()}}}}var Xr=class extends Co{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}};Xr.prototype.elementClass="";Xr.prototype.toDOM=void 0;Xr.prototype.mapMode=lr.TrackBefore;Xr.prototype.startSide=Xr.prototype.endSide=-1;Xr.prototype.point=!0;var Df=Se.define(),RF=Se.define(),TF={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>ht.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Eu=Se.define();function ld(i){return[y1(),Eu.of({...TF,...i})]}var TE=Se.define({combine:i=>i.some(t=>t)});function y1(i){let t=[SF];return i&&i.fixed===!1&&t.push(TE.of(!0)),t}var SF=vi.fromClass(class{constructor(i){this.view=i,this.domAfter=null,this.prevViewport=i.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=i.state.facet(Eu).map(t=>new id(i,t)),this.fixed=!i.state.facet(TE);for(let t of this.gutters)t.config.side=="after"?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),i.scrollDOM.insertBefore(this.dom,i.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(i){if(this.updateGutters(i)){let t=this.prevViewport,e=i.view.viewport,o=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(o<(e.to-e.from)*.8)}if(i.geometryChanged){let t=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=t,this.domAfter&&(this.domAfter.style.minHeight=t)}this.view.state.facet(TE)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=i.view.viewport}syncGutters(i){let t=this.dom.nextSibling;i&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let e=ht.iter(this.view.state.facet(Df),this.view.viewport.from),o=[],n=this.gutters.map(c=>new LE(c,this.view.viewport,-this.view.documentPadding.top));for(let c of this.view.viewportLineBlocks)if(o.length&&(o=[]),Array.isArray(c.type)){let g=!0;for(let w of c.type)if(w.type==$i.Text&&g){SE(e,o,w.from);for(let y of n)y.line(this.view,w,o);g=!1}else if(w.widget)for(let y of n)y.widget(this.view,w)}else if(c.type==$i.Text){SE(e,o,c.from);for(let g of n)g.line(this.view,c,o)}else if(c.widget)for(let g of n)g.widget(this.view,c);for(let c of n)c.finish();i&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(i){let t=i.startState.facet(Eu),e=i.state.facet(Eu),o=i.docChanged||i.heightChanged||i.viewportChanged||!ht.eq(i.startState.facet(Df),i.state.facet(Df),i.view.viewport.from,i.view.viewport.to);if(t==e)for(let n of this.gutters)n.update(i)&&(o=!0);else{o=!0;let n=[];for(let c of e){let g=t.indexOf(c);g<0?n.push(new id(this.view,c)):(this.gutters[g].update(i),n.push(this.gutters[g]))}for(let c of this.gutters)c.dom.remove(),n.indexOf(c)<0&&c.destroy();for(let c of n)c.config.side=="after"?this.getDOMAfter().appendChild(c.dom):this.dom.appendChild(c.dom);this.gutters=n}return o}destroy(){for(let i of this.gutters)i.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:i=>we.scrollMargins.of(t=>{let e=t.plugin(i);if(!e||e.gutters.length==0||!e.fixed)return null;let o=e.dom.offsetWidth*t.scaleX,n=e.domAfter?e.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==Et.LTR?{left:o,right:n}:{right:o,left:n}})});function cN(i){return Array.isArray(i)?i:[i]}function SE(i,t,e){for(;i.value&&i.from<=e;)i.from==e&&t.push(i.value),i.next()}var LE=class{constructor(t,e,o){this.gutter=t,this.height=o,this.i=0,this.cursor=ht.iter(t.markers,e.from)}addElement(t,e,o){let{gutter:n}=this,c=(e.top-this.height)/t.scaleY,g=e.height/t.scaleY;if(this.i==n.elements.length){let w=new rd(t,g,c,o);n.elements.push(w),n.dom.appendChild(w.dom)}else n.elements[this.i].update(t,g,c,o);this.height=e.bottom,this.i++}line(t,e,o){let n=[];SE(this.cursor,n,e.from),o.length&&(n=n.concat(o));let c=this.gutter.config.lineMarker(t,e,n);c&&n.unshift(c);let g=this.gutter;n.length==0&&!g.config.renderEmptyElements||this.addElement(t,e,n)}widget(t,e){let o=this.gutter.config.widgetMarker(t,e.widget,e),n=o?[o]:null;for(let c of t.state.facet(RF)){let g=c(t,e.widget,e);g&&(n||(n=[])).push(g)}n&&this.addElement(t,e,n)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}},id=class{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let o in e.domEventHandlers)this.dom.addEventListener(o,n=>{let c=n.target,g;if(c!=this.dom&&this.dom.contains(c)){for(;c.parentNode!=this.dom;)c=c.parentNode;let y=c.getBoundingClientRect();g=(y.top+y.bottom)/2}else g=n.clientY;let w=t.lineBlockAtHeight(g-t.documentTop);e.domEventHandlers[o](t,w,n)&&n.preventDefault()});this.markers=cN(e.markers(t)),e.initialSpacer&&(this.spacer=new rd(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=cN(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],t);n!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[n])}let o=t.view.viewport;return!ht.eq(this.markers,e,o.from,o.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}},rd=class{constructor(t,e,o,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,o,n)}update(t,e,o,n){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=o&&(this.dom.style.marginTop=(this.above=o)?o+"px":""),LF(this.markers,n)||this.setMarkers(t,n)}setMarkers(t,e){let o="cm-gutterElement",n=this.dom.firstChild;for(let c=0,g=0;;){let w=g,y=c<e.length?e[c++]:null,A=!1;if(y){let R=y.elementClass;R&&(o+=" "+R);for(let T=g;T<this.markers.length;T++)if(this.markers[T].compare(y)){w=T,A=!0;break}}else w=this.markers.length;for(;g<w;){let R=this.markers[g++];if(R.toDOM){R.destroy(n);let T=n.nextSibling;n.remove(),n=T}}if(!y)break;y.toDOM&&(A?n=n.nextSibling:this.dom.insertBefore(y.toDOM(t),n)),A&&g++}this.dom.className=o,this.markers=e}destroy(){this.setMarkers(null,[])}};function LF(i,t){if(i.length!=t.length)return!1;for(let e=0;e<i.length;e++)if(!i[e].compare(t[e]))return!1;return!0}var BF=Se.define(),kF=Se.define(),Wc=Se.define({combine(i){return po(i,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let o=Object.assign({},t);for(let n in e){let c=o[n],g=e[n];o[n]=c?(w,y,A)=>c(w,y,A)||g(w,y,A):g}return o}})}}),Cu=class extends Xr{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}};function Zy(i,t){return i.state.facet(Wc).formatNumber(t,i.state)}var VF=Eu.compute([Wc],i=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(BF)},lineMarker(t,e,o){return o.some(n=>n.toDOM)?null:new Cu(Zy(t,t.state.doc.lineAt(e.from).number))},widgetMarker:(t,e,o)=>{for(let n of t.state.facet(kF)){let c=n(t,e,o);if(c)return c}return null},lineMarkerChange:t=>t.startState.facet(Wc)!=t.state.facet(Wc),initialSpacer(t){return new Cu(Zy(t,hN(t.state.doc.lines)))},updateSpacer(t,e){let o=Zy(e.view,hN(e.view.state.doc.lines));return o==t.number?t:new Cu(o)},domEventHandlers:i.facet(Wc).domEventHandlers,side:"before"}));function DE(i={}){return[Wc.of(i),y1(),VF]}function hN(i){let t=9;for(;t<i;)t=t*10+9;return t}var FF=new class extends Xr{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},UF=Df.compute(["selection"],i=>{let t=[],e=-1;for(let o of i.selection.ranges){let n=i.doc.lineAt(o.head).from;n>e&&(e=n,t.push(FF.range(n)))}return ht.of(t)});function PE(){return UF}var _F=0,fo=class i{constructor(t,e,o,n){this.name=t,this.set=e,this.base=o,this.modified=n,this.id=_F++}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){let o=typeof t=="string"?t:"?";if(t instanceof i&&(e=t),e?.base)throw new Error("Can not derive from a modified tag");let n=new i(o,[],null,[]);if(n.set.push(n),e)for(let c of e.set)n.set.push(c);return n}static defineModifier(t){let e=new ud(t);return o=>o.modified.indexOf(e)>-1?o:ud.get(o.base||o,o.modified.concat(e).sort((n,c)=>n.id-c.id))}},OF=0,ud=class i{constructor(t){this.name=t,this.instances=[],this.id=OF++}static get(t,e){if(!e.length)return t;let o=e[0].instances.find(w=>w.base==t&&GF(e,w.modified));if(o)return o;let n=[],c=new fo(t.name,n,t,e);for(let w of e)w.instances.push(c);let g=ZF(e);for(let w of t.set)if(!w.modified.length)for(let y of g)n.push(i.get(w,y));return c}};function GF(i,t){return i.length==t.length&&i.every((e,o)=>e==t[o])}function ZF(i){let t=[[]];for(let e=0;e<i.length;e++)for(let o=0,n=t.length;o<n;o++)t.push(t[o].concat(i[e]));return t.sort((e,o)=>o.length-e.length)}function I1(i){let t=Object.create(null);for(let e in i){let o=i[e];Array.isArray(o)||(o=[o]);for(let n of e.split(" "))if(n){let c=[],g=2,w=n;for(let T=0;;){if(w=="..."&&T>0&&T+3==n.length){g=1;break}let F=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(w);if(!F)throw new RangeError("Invalid path: "+n);if(c.push(F[0]=="*"?"":F[0][0]=='"'?JSON.parse(F[0]):F[0]),T+=F[0].length,T==n.length)break;let k=n[T++];if(T==n.length&&k=="!"){g=0;break}if(k!="/")throw new RangeError("Invalid path: "+n);w=n.slice(T)}let y=c.length-1,A=c[y];if(!A)throw new RangeError("Invalid path: "+n);let R=new Ul(o,g,y>0?c.slice(0,y):null);t[A]=R.sort(t[A])}}return A1.add(t)}var A1=new at({combine(i,t){let e,o,n;for(;i||t;){if(!i||t&&i.depth>=t.depth?(n=t,t=t.next):(n=i,i=i.next),e&&e.mode==n.mode&&!n.context&&!e.context)continue;let c=new Ul(n.tags,n.mode,n.context);e?e.next=c:o=c,e=c}return o}}),Ul=class{constructor(t,e,o,n){this.tags=t,this.mode=e,this.context=o,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}};Ul.empty=new Ul([],2,null);function HE(i,t){let e=Object.create(null);for(let c of i)if(!Array.isArray(c.tag))e[c.tag.id]=c.class;else for(let g of c.tag)e[g.id]=c.class;let{scope:o,all:n=null}=t||{};return{style:c=>{let g=n;for(let w of c)for(let y of w.set){let A=e[y.id];if(A){g=g?g+" "+A:A;break}}return g},scope:o}}function MF(i,t){let e=null;for(let o of i){let n=o.style(t);n&&(e=e?e+" "+n:n)}return e}function N1(i,t,e,o=0,n=i.length){let c=new XE(o,Array.isArray(t)?t:[t],e);c.highlightRange(i.cursor(),o,n,"",c.highlighters),c.flush(n)}var XE=class{constructor(t,e,o){this.at=t,this.highlighters=e,this.span=o,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,o,n,c){let{type:g,from:w,to:y}=t;if(w>=o||y<=e)return;g.isTop&&(c=this.highlighters.filter(k=>!k.scope||k.scope(g)));let A=n,R=WF(t)||Ul.empty,T=MF(c,R.tags);if(T&&(A&&(A+=" "),A+=T,R.mode==1&&(n+=(n?" ":"")+T)),this.startSpan(Math.max(e,w),A),R.opaque)return;let F=t.tree&&t.tree.prop(at.mounted);if(F&&F.overlay){let k=t.node.enter(F.overlay[0].from+w,1),G=this.highlighters.filter(P=>!P.scope||P.scope(F.tree.type)),W=t.firstChild();for(let P=0,Q=w;;P++){let H=P<F.overlay.length?F.overlay[P]:null,re=H?H.from+w:y,K=Math.max(e,Q),J=Math.min(o,re);if(K<J&&W)for(;t.from<J&&(this.highlightRange(t,K,J,n,c),this.startSpan(Math.min(J,t.to),A),!(t.to>=re||!t.nextSibling())););if(!H||re>o)break;Q=H.to+w,Q>e&&(this.highlightRange(k.cursor(),Math.max(e,H.from+w),Math.min(o,Q),"",G),this.startSpan(Math.min(o,Q),A))}W&&t.parent()}else if(t.firstChild()){F&&(n="");do if(!(t.to<=e)){if(t.from>=o)break;this.highlightRange(t,e,o,n,c),this.startSpan(Math.min(o,t.to),A)}while(t.nextSibling());t.parent()}}};function WF(i){let t=i.type.prop(A1);for(;t&&t.context&&!i.matchContext(t.context);)t=t.next;return t||null}var xe=fo.define,cd=xe(),oa=xe(),E1=xe(oa),C1=xe(oa),sa=xe(),hd=xe(sa),QE=xe(sa),Fs=xe(),Fl=xe(Fs),ks=xe(),Vs=xe(),YE=xe(),Lu=xe(YE),pd=xe(),Ae={comment:cd,lineComment:xe(cd),blockComment:xe(cd),docComment:xe(cd),name:oa,variableName:xe(oa),typeName:E1,tagName:xe(E1),propertyName:C1,attributeName:xe(C1),className:xe(oa),labelName:xe(oa),namespace:xe(oa),macroName:xe(oa),literal:sa,string:hd,docString:xe(hd),character:xe(hd),attributeValue:xe(hd),number:QE,integer:xe(QE),float:xe(QE),bool:xe(sa),regexp:xe(sa),escape:xe(sa),color:xe(sa),url:xe(sa),keyword:ks,self:xe(ks),null:xe(ks),atom:xe(ks),unit:xe(ks),modifier:xe(ks),operatorKeyword:xe(ks),controlKeyword:xe(ks),definitionKeyword:xe(ks),moduleKeyword:xe(ks),operator:Vs,derefOperator:xe(Vs),arithmeticOperator:xe(Vs),logicOperator:xe(Vs),bitwiseOperator:xe(Vs),compareOperator:xe(Vs),updateOperator:xe(Vs),definitionOperator:xe(Vs),typeOperator:xe(Vs),controlOperator:xe(Vs),punctuation:YE,separator:xe(YE),bracket:Lu,angleBracket:xe(Lu),squareBracket:xe(Lu),paren:xe(Lu),brace:xe(Lu),content:Fs,heading:Fl,heading1:xe(Fl),heading2:xe(Fl),heading3:xe(Fl),heading4:xe(Fl),heading5:xe(Fl),heading6:xe(Fl),contentSeparator:xe(Fs),list:xe(Fs),quote:xe(Fs),emphasis:xe(Fs),strong:xe(Fs),link:xe(Fs),monospace:xe(Fs),strikethrough:xe(Fs),inserted:xe(),deleted:xe(),changed:xe(),invalid:xe(),meta:pd,documentMeta:xe(pd),annotation:xe(pd),processingInstruction:xe(pd),definition:fo.defineModifier("definition"),constant:fo.defineModifier("constant"),function:fo.defineModifier("function"),standard:fo.defineModifier("standard"),local:fo.defineModifier("local"),special:fo.defineModifier("special")};for(let i in Ae){let t=Ae[i];t instanceof fo&&(t.name=i)}var AX=HE([{tag:Ae.link,class:"tok-link"},{tag:Ae.heading,class:"tok-heading"},{tag:Ae.emphasis,class:"tok-emphasis"},{tag:Ae.strong,class:"tok-strong"},{tag:Ae.keyword,class:"tok-keyword"},{tag:Ae.atom,class:"tok-atom"},{tag:Ae.bool,class:"tok-bool"},{tag:Ae.url,class:"tok-url"},{tag:Ae.labelName,class:"tok-labelName"},{tag:Ae.inserted,class:"tok-inserted"},{tag:Ae.deleted,class:"tok-deleted"},{tag:Ae.literal,class:"tok-literal"},{tag:Ae.string,class:"tok-string"},{tag:Ae.number,class:"tok-number"},{tag:[Ae.regexp,Ae.escape,Ae.special(Ae.string)],class:"tok-string2"},{tag:Ae.variableName,class:"tok-variableName"},{tag:Ae.local(Ae.variableName),class:"tok-variableName tok-local"},{tag:Ae.definition(Ae.variableName),class:"tok-variableName tok-definition"},{tag:Ae.special(Ae.variableName),class:"tok-variableName2"},{tag:Ae.definition(Ae.propertyName),class:"tok-propertyName tok-definition"},{tag:Ae.typeName,class:"tok-typeName"},{tag:Ae.namespace,class:"tok-namespace"},{tag:Ae.className,class:"tok-className"},{tag:Ae.macroName,class:"tok-macroName"},{tag:Ae.propertyName,class:"tok-propertyName"},{tag:Ae.operator,class:"tok-operator"},{tag:Ae.comment,class:"tok-comment"},{tag:Ae.meta,class:"tok-meta"},{tag:Ae.invalid,class:"tok-invalid"},{tag:Ae.punctuation,class:"tok-punctuation"}]);var JE,jc=new at;function DF(i){return Se.define({combine:i?t=>t.concat(i):void 0})}var PF=new at,go=class{constructor(t,e,o=[],n=""){this.data=t,this.name=n,xt.prototype.hasOwnProperty("tree")||Object.defineProperty(xt.prototype,"tree",{get(){return Zi(this)}}),this.parser=e,this.extension=[na.of(this),xt.languageData.of((c,g,w)=>{let y=R1(c,g,w),A=y.type.prop(jc);if(!A)return[];let R=c.facet(A),T=y.type.prop(PF);if(T){let F=y.resolve(g-y.from,w);for(let k of T)if(k.test(F,c)){let G=c.facet(k.facet);return k.type=="replace"?G:G.concat(R)}}return R})].concat(o)}isActiveAt(t,e,o=-1){return R1(t,e,o).type.prop(jc)==this.data}findRegions(t){let e=t.facet(na);if(e?.data==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let o=[],n=(c,g)=>{if(c.prop(jc)==this.data){o.push({from:g,to:g+c.length});return}let w=c.prop(at.mounted);if(w){if(w.tree.prop(jc)==this.data){if(w.overlay)for(let y of w.overlay)o.push({from:y.from+g,to:y.to+g});else o.push({from:g,to:g+c.length});return}else if(w.overlay){let y=o.length;if(n(w.tree,w.overlay[0].from+g),o.length>y)return}}for(let y=0;y<c.children.length;y++){let A=c.children[y];A instanceof Yt&&n(A,c.positions[y]+g)}};return n(Zi(t),0),o}get allowsNesting(){return!0}};go.setState=et.define();function R1(i,t,e){let o=i.facet(na),n=Zi(i).topNode;if(!o||o.allowsNesting)for(let c=n;c;c=c.enter(t,e,hi.ExcludeBuffers|hi.EnterBracketed))c.type.isTop&&(n=c);return n}function Zi(i){let t=i.field(go.state,!1);return t?t.tree:Yt.empty}var qE=class{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let o=this.cursorPos-this.string.length;return t<o||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-o,e-o)}},Bu=null,Vu=class i{constructor(t,e,o=[],n,c,g,w,y){this.parser=t,this.state=e,this.fragments=o,this.tree=n,this.treeLen=c,this.viewport=g,this.skipped=w,this.scheduleOn=y,this.parse=null,this.tempSkipped=[]}static create(t,e,o){return new i(t,e,[],Yt.empty,0,o,[],null)}startParse(){return this.parser.startParse(new qE(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=Yt.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var o;if(typeof t=="number"){let n=Date.now()+t;t=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let n=this.parse.advance();if(n)if(this.fragments=this.withoutTempSkipped(El.addTree(n,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(o=this.parse.stoppedAt)!==null&&o!==void 0?o:this.state.doc.length,this.tree=n,this.parse=null,this.treeLen<(e??this.state.doc.length))this.parse=this.startParse();else return!0;if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(El.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=Bu;Bu=this;try{return t()}finally{Bu=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=T1(t,e.from,e.to);return t}changes(t,e){let{fragments:o,tree:n,treeLen:c,viewport:g,skipped:w}=this;if(this.takeTree(),!t.empty){let y=[];if(t.iterChangedRanges((A,R,T,F)=>y.push({fromA:A,toA:R,fromB:T,toB:F})),o=El.applyChanges(o,y),n=Yt.empty,c=0,g={from:t.mapPos(g.from,-1),to:t.mapPos(g.to,1)},this.skipped.length){w=[];for(let A of this.skipped){let R=t.mapPos(A.from,1),T=t.mapPos(A.to,-1);R<T&&w.push({from:R,to:T})}}}return new i(this.parser,e,o,n,c,g,w,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let o=0;o<this.skipped.length;o++){let{from:n,to:c}=this.skipped[o];n<t.to&&c>t.from&&(this.fragments=T1(this.fragments,n,c),this.skipped.splice(o--,1))}return this.skipped.length>=e?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends su{createParse(e,o,n){let c=n[0].from,g=n[n.length-1].to;return{parsedPos:c,advance(){let y=Bu;if(y){for(let A of n)y.tempSkipped.push(A);t&&(y.scheduleOn=y.scheduleOn?Promise.all([y.scheduleOn,t]):t)}return this.parsedPos=g,new Yt(vr.none,[],[],g-c)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return Bu}};function T1(i,t,e){return El.applyChanges(i,[{fromA:t,toA:e,fromB:t,toB:e}])}var Fu=class i{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),o=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,o)||e.takeTree(),new i(e)}static init(t){let e=Math.min(3e3,t.doc.length),o=Vu.create(t.facet(na).parser,t,{from:0,to:e});return o.work(20,e)||o.takeTree(),new i(o)}};go.state=ri.define({create:Fu.init,update(i,t){for(let e of t.effects)if(e.is(go.setState))return e.value;return t.startState.facet(na)!=t.state.facet(na)?Fu.init(t.state):i.apply(t)}});var _1=i=>{let t=setTimeout(()=>i(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(_1=i=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(i,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});var zE=typeof navigator<"u"&&(!((JE=navigator.scheduling)===null||JE===void 0)&&JE.isInputPending)?()=>navigator.scheduling.isInputPending():null,QF=vi.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(go.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(go.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=_1(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:o,viewport:{to:n}}=this.view,c=o.field(go.state);if(c.tree==c.context.tree&&c.context.isDone(n+1e5))return;let g=Date.now()+Math.min(this.chunkBudget,100,t&&!zE?Math.max(25,t.timeRemaining()-5):1e9),w=c.context.treeLen<n&&o.doc.length>n+1e3,y=c.context.work(()=>zE&&zE()||Date.now()>g,n+(w?0:1e5));this.chunkBudget-=Date.now()-e,(y||this.chunkBudget<=0)&&(c.context.takeTree(),this.view.dispatch({effects:go.setState.of(new Fu(c.context))})),this.chunkBudget>0&&!(y&&!w)&&this.scheduleWork(),this.checkAsyncSchedule(c.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Ir(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),na=Se.define({combine(i){return i.length?i[0]:null},enables:i=>[go.state,QF,we.contentAttributes.compute([i],t=>{let e=t.facet(i);return e&&e.name?{"data-language":e.name}:{}})]}),fd=class{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}};var XF=Se.define(),ca=Se.define({combine:i=>{if(!i.length)return" ";let t=i[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(i[0]));return t}});function aa(i){let t=i.facet(ca);return t.charCodeAt(0)==9?i.tabSize*t.length:t.length}function Gl(i,t){let e="",o=i.tabSize,n=i.facet(ca)[0];if(n==" "){for(;t>=o;)e+=" ",t-=o;n=" "}for(let c=0;c<t;c++)e+=n;return e}function _u(i,t){i instanceof xt&&(i=new _l(i));for(let o of i.state.facet(XF)){let n=o(i,t);if(n!==void 0)return n}let e=Zi(i.state);return e.length>=t?YF(i,e,t):null}var _l=class{constructor(t,e={}){this.state=t,this.options=e,this.unit=aa(t)}lineAt(t,e=1){let o=this.state.doc.lineAt(t),{simulateBreak:n,simulateDoubleBreak:c}=this.options;return n!=null&&n>=o.from&&n<=o.to?c&&n==t?{text:"",from:t}:(e<0?n<t:n<=t)?{text:o.text.slice(n-o.from),from:n}:{text:o.text.slice(0,n-o.from),from:o.from}:o}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:o,from:n}=this.lineAt(t,e);return o.slice(t-n,Math.min(o.length,t+100-n))}column(t,e=1){let{text:o,from:n}=this.lineAt(t,e),c=this.countColumn(o,t-n),g=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return g>-1&&(c+=g-this.countColumn(o,o.search(/\S|$/))),c}countColumn(t,e=t.length){return Kn(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:o,from:n}=this.lineAt(t,e),c=this.options.overrideIndentation;if(c){let g=c(n);if(g>-1)return g}return this.countColumn(o,o.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},O1=new at;function YF(i,t,e){let o=t.resolveStack(e),n=t.resolveInner(e,-1).resolve(e,0).enterUnfinishedNodesBefore(e);if(n!=o.node){let c=[];for(let g=n;g&&!(g.from<o.node.from||g.to>o.node.to||g.from==o.node.from&&g.type==o.node.type);g=g.parent)c.push(g);for(let g=c.length-1;g>=0;g--)o={node:c[g],next:o}}return G1(o,i,e)}function G1(i,t,e){for(let o=i;o;o=o.next){let n=JF(o.node);if(n)return n(KE.create(t,e,o))}return 0}function HF(i){return i.pos==i.options.simulateBreak&&i.options.simulateDoubleBreak}function JF(i){let t=i.type.prop(O1);if(t)return t;let e=i.firstChild,o;if(e&&(o=e.type.prop(at.closedBy))){let n=i.lastChild,c=n&&o.indexOf(n.name)>-1;return g=>qF(g,!0,1,void 0,c&&!HF(g)?n.from:void 0)}return i.parent==null?zF:null}function zF(){return 0}var KE=class i extends _l{constructor(t,e,o){super(t.state,t.options),this.base=t,this.pos=e,this.context=o}get node(){return this.context.node}static create(t,e,o){return new i(t,e,o)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let o=t.resolve(e.from);for(;o.parent&&o.parent.from==o.from;)o=o.parent;if(jF(o,t))break;e=this.state.doc.lineAt(o.from)}return this.lineIndent(e.from)}continue(){return G1(this.context.next,this.base,this.pos)}};function jF(i,t){for(let e=t;e;e=e.parent)if(i==e)return!0;return!1}function $F(i){let t=i.node,e=t.childAfter(t.from),o=t.lastChild;if(!e)return null;let n=i.options.simulateBreak,c=i.state.doc.lineAt(e.from),g=n==null||n<=c.from?c.to:Math.min(c.to,n);for(let w=e.to;;){let y=t.childAfter(w);if(!y||y==o)return null;if(!y.type.isSkipped){if(y.from>=g)return null;let A=/^ */.exec(c.text.slice(e.to-c.from))[0].length;return{from:e.from,to:e.to+A}}w=y.to}}function qF(i,t,e,o,n){let c=i.textAfter,g=c.match(/^\s*/)[0].length,w=o&&c.slice(g,g+o.length)==o||n==i.pos+g,y=t?$F(i):null;return y?w?i.column(y.from):i.column(y.to):i.baseIndent+(w?0:i.unit*e)}var nC=Se.define(),KF=new at;function eU(i,t,e){let o=Zi(i);if(o.length<e)return null;let n=o.resolveStack(e,1),c=null;for(let g=n;g;g=g.next){let w=g.node;if(w.to<=e||w.from>e)continue;if(c&&w.from<t)break;let y=w.type.prop(KF);if(y&&(w.to<o.length-50||o.length==i.doc.length||!tU(w))){let A=y(w,i);A&&A.from<=e&&A.from>=t&&A.to>e&&(c=A)}}return c}function tU(i){let t=i.lastChild;return t&&t.to==i.to&&t.type.isError}function Ol(i,t,e){for(let o of i.facet(nC)){let n=o(i,t,e);if(n)return n}return eU(i,t,e)}function Z1(i,t){let e=t.mapPos(i.from,1),o=t.mapPos(i.to,-1);return e>=o?void 0:{from:e,to:o}}var Zl=et.define({map:Z1}),ha=et.define({map:Z1});function M1(i){let t=[];for(let{head:e}of i.state.selection.ranges)t.some(o=>o.from<=e&&o.to>=e)||t.push(i.lineBlockAt(e));return t}var la=ri.define({create(){return ze.none},update(i,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((o,n)=>i=S1(i,o,n)),i=i.map(t.changes);let e=[];for(let o of t.effects)o.is(Zl)&&!iU(i,o.value.from,o.value.to)?e.push(o.value):o.is(ha)&&(i=i.update({filter:(n,c)=>o.value.from!=n||o.value.to!=c,filterFrom:o.value.from,filterTo:o.value.to}));if(e.length){let{preparePlaceholder:o}=t.state.facet(aC),n=e.map(c=>(o?ze.replace({widget:new eC(o(t.state,c))}):L1).range(c.from,c.to));i=i.update({add:n})}return t.selection&&(i=S1(i,t.selection.main.head)),i},provide:i=>we.decorations.from(i),toJSON(i,t){let e=[];return i.between(0,t.doc.length,(o,n)=>{e.push(o,n)}),e},fromJSON(i){if(!Array.isArray(i)||i.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e<i.length;){let o=i[e++],n=i[e++];if(typeof o!="number"||typeof n!="number")throw new RangeError("Invalid JSON for fold state");t.push(L1.range(o,n))}return ze.set(t,!0)}});function S1(i,t,e=t){let o=!1;return i.between(t,e,(n,c)=>{n<e&&c>t&&(o=!0)}),o?i.update({filterFrom:t,filterTo:e,filter:(n,c)=>n>=e||c<=t}):i}function bd(i){return i.field(la,!1)||ht.empty}function dd(i,t,e){var o;let n=null;return(o=i.field(la,!1))===null||o===void 0||o.between(t,e,(c,g)=>{(!n||n.from>c)&&(n={from:c,to:g})}),n}function iU(i,t,e){let o=!1;return i.between(t,t,(n,c)=>{n==t&&c==e&&(o=!0)}),o}function W1(i,t){return i.field(la,!1)?t:t.concat(et.appendConfig.of(Q1()))}var rU=i=>{for(let t of M1(i)){let e=Ol(i.state,t.from,t.to);if(e)return i.dispatch({effects:W1(i.state,[Zl.of(e),D1(i,e)])}),!0}return!1},oU=i=>{if(!i.state.field(la,!1))return!1;let t=[];for(let e of M1(i)){let o=dd(i.state,e.from,e.to);o&&t.push(ha.of(o),D1(i,o,!1))}return t.length&&i.dispatch({effects:t}),t.length>0};function D1(i,t,e=!0){let o=i.state.doc.lineAt(t.from).number,n=i.state.doc.lineAt(t.to).number;return we.announce.of(`${i.state.phrase(e?"Folded lines":"Unfolded lines")} ${o} ${i.state.phrase("to")} ${n}.`)}var sU=i=>{let{state:t}=i,e=[];for(let o=0;o<t.doc.length;){let n=i.lineBlockAt(o),c=Ol(t,n.from,n.to);c&&e.push(Zl.of(c)),o=(c?i.lineBlockAt(c.to):n).to+1}return e.length&&i.dispatch({effects:W1(i.state,e)}),!!e.length},nU=i=>{let t=i.state.field(la,!1);if(!t||!t.size)return!1;let e=[];return t.between(0,i.state.doc.length,(o,n)=>{e.push(ha.of({from:o,to:n}))}),i.dispatch({effects:e}),!0};var P1=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:rU},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:oU},{key:"Ctrl-Alt-[",run:sU},{key:"Ctrl-Alt-]",run:nU}],aU={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},aC=Se.define({combine(i){return po(i,aU)}});function Q1(i){let t=[la,cU];return i&&t.push(aC.of(i)),t}function X1(i,t){let{state:e}=i,o=e.facet(aC),n=g=>{let w=i.lineBlockAt(i.posAtDOM(g.target)),y=dd(i.state,w.from,w.to);y&&i.dispatch({effects:ha.of(y)}),g.preventDefault()};if(o.placeholderDOM)return o.placeholderDOM(i,n,t);let c=document.createElement("span");return c.textContent=o.placeholderText,c.setAttribute("aria-label",e.phrase("folded code")),c.title=e.phrase("unfold"),c.className="cm-foldPlaceholder",c.onclick=n,c}var L1=ze.replace({widget:new class extends Bs{toDOM(i){return X1(i,null)}}}),eC=class extends Bs{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return X1(t,this.value)}},lU={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1},ku=class extends Xr{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}};function Y1(i={}){let t={...lU,...i},e=new ku(t,!0),o=new ku(t,!1),n=vi.fromClass(class{constructor(g){this.from=g.viewport.from,this.markers=this.buildMarkers(g)}update(g){(g.docChanged||g.viewportChanged||g.startState.facet(na)!=g.state.facet(na)||g.startState.field(la,!1)!=g.state.field(la,!1)||Zi(g.startState)!=Zi(g.state)||t.foldingChanged(g))&&(this.markers=this.buildMarkers(g.view))}buildMarkers(g){let w=new ts;for(let y of g.viewportLineBlocks){let A=dd(g.state,y.from,y.to)?o:Ol(g.state,y.from,y.to)?e:null;A&&w.add(y.from,y.from,A)}return w.finish()}}),{domEventHandlers:c}=t;return[n,ld({class:"cm-foldGutter",markers(g){var w;return((w=g.plugin(n))===null||w===void 0?void 0:w.markers)||ht.empty},initialSpacer(){return new ku(t,!1)},domEventHandlers:{...c,click:(g,w,y)=>{if(c.click&&c.click(g,w,y))return!0;let A=dd(g.state,w.from,w.to);if(A)return g.dispatch({effects:ha.of(A)}),!0;let R=Ol(g.state,w.from,w.to);return R?(g.dispatch({effects:Zl.of(R)}),!0):!1}}}),Q1()]}var cU=we.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),$c=class i{constructor(t,e){this.specs=t;let o;function n(w){let y=Io.newName();return(o||(o=Object.create(null)))["."+y]=w,y}let c=typeof e.all=="string"?e.all:e.all?n(e.all):void 0,g=e.scope;this.scope=g instanceof go?w=>w.prop(jc)==g.data:g?w=>w==g:void 0,this.style=HE(t.map(w=>({tag:w.tag,class:w.class||n(Object.assign({},w,{tag:null}))})),{all:c}).style,this.module=o?new Io(o):null,this.themeType=e.themeType}static define(t,e){return new i(t,e||{})}},tC=Se.define(),H1=Se.define({combine(i){return i.length?[i[0]]:null}});function jE(i){let t=i.facet(tC);return t.length?t:i.facet(H1)}function J1(i,t){let e=[hU],o;return i instanceof $c&&(i.module&&e.push(we.styleModule.of(i.module)),o=i.themeType),t?.fallback?e.push(H1.of(i)):o?e.push(tC.computeN([we.darkTheme],n=>n.facet(we.darkTheme)==(o=="dark")?[i]:[])):e.push(tC.of(i)),e}var iC=class{constructor(t){this.markCache=Object.create(null),this.tree=Zi(t.state),this.decorations=this.buildDeco(t,jE(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=Zi(t.state),o=jE(t.state),n=o!=jE(t.startState),{viewport:c}=t.view,g=t.changes.mapPos(this.decoratedTo,1);e.length<c.to&&!n&&e.type==this.tree.type&&g>=c.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=g):(e!=this.tree||t.viewportChanged||n)&&(this.tree=e,this.decorations=this.buildDeco(t.view,o),this.decoratedTo=c.to)}buildDeco(t,e){if(!e||!this.tree.length)return ze.none;let o=new ts;for(let{from:n,to:c}of t.visibleRanges)N1(this.tree,e,(g,w,y)=>{o.add(g,w,this.markCache[y]||(this.markCache[y]=ze.mark({class:y})))},n,c);return o.finish()}},hU=Er.high(vi.fromClass(iC,{decorations:i=>i.decorations})),VX=$c.define([{tag:Ae.meta,color:"#404740"},{tag:Ae.link,textDecoration:"underline"},{tag:Ae.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ae.emphasis,fontStyle:"italic"},{tag:Ae.strong,fontWeight:"bold"},{tag:Ae.strikethrough,textDecoration:"line-through"},{tag:Ae.keyword,color:"#708"},{tag:[Ae.atom,Ae.bool,Ae.url,Ae.contentSeparator,Ae.labelName],color:"#219"},{tag:[Ae.literal,Ae.inserted],color:"#164"},{tag:[Ae.string,Ae.deleted],color:"#a11"},{tag:[Ae.regexp,Ae.escape,Ae.special(Ae.string)],color:"#e40"},{tag:Ae.definition(Ae.variableName),color:"#00f"},{tag:Ae.local(Ae.variableName),color:"#30a"},{tag:[Ae.typeName,Ae.namespace],color:"#085"},{tag:Ae.className,color:"#167"},{tag:[Ae.special(Ae.variableName),Ae.macroName],color:"#256"},{tag:Ae.definition(Ae.propertyName),color:"#00c"},{tag:Ae.comment,color:"#940"},{tag:Ae.invalid,color:"#f00"}]),pU=we.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),z1=1e4,j1="()[]{}",$1=Se.define({combine(i){return po(i,{afterCursor:!0,brackets:j1,maxScanDistance:z1,renderMatch:dU})}}),uU=ze.mark({class:"cm-matchingBracket"}),fU=ze.mark({class:"cm-nonmatchingBracket"});function dU(i){let t=[],e=i.matched?uU:fU;return t.push(e.range(i.start.from,i.start.to)),i.end&&t.push(e.range(i.end.from,i.end.to)),t}function B1(i){let t=[],e=i.facet($1);for(let o of i.selection.ranges){if(!o.empty)continue;let n=ns(i,o.head,-1,e)||o.head>0&&ns(i,o.head-1,1,e)||e.afterCursor&&(ns(i,o.head,1,e)||o.head<i.doc.length&&ns(i,o.head+1,-1,e));n&&(t=t.concat(e.renderMatch(n,i)))}return ze.set(t,!0)}var gU=vi.fromClass(class{constructor(i){this.paused=!1,this.decorations=B1(i.state)}update(i){(i.docChanged||i.selectionSet||this.paused)&&(i.view.composing?(this.decorations=this.decorations.map(i.changes),this.paused=!0):(this.decorations=B1(i.state),this.paused=!1))}},{decorations:i=>i.decorations}),mU=[gU,pU];function lC(i={}){return[$1.of(i),mU]}var bU=new at;function rC(i,t,e){let o=i.prop(t<0?at.openedBy:at.closedBy);if(o)return o;if(i.name.length==1){let n=e.indexOf(i.name);if(n>-1&&n%2==(t<0?1:0))return[e[n+t]]}return null}function oC(i){let t=i.type.prop(bU);return t?t(i.node):i}function ns(i,t,e,o={}){let n=o.maxScanDistance||z1,c=o.brackets||j1,g=Zi(i),w=g.resolveInner(t,e);for(let y=w;y;y=y.parent){let A=rC(y.type,e,c);if(A&&y.from<y.to){let R=oC(y);if(R&&(e>0?t>=R.from&&t<R.to:t>R.from&&t<=R.to))return wU(i,t,e,y,R,A,c)}}return xU(i,t,e,g,w.type,n,c)}function wU(i,t,e,o,n,c,g){let w=o.parent,y={from:n.from,to:n.to},A=0,R=w?.cursor();if(R&&(e<0?R.childBefore(o.from):R.childAfter(o.to)))do if(e<0?R.to<=o.from:R.from>=o.to){if(A==0&&c.indexOf(R.type.name)>-1&&R.from<R.to){let T=oC(R);return{start:y,end:T?{from:T.from,to:T.to}:void 0,matched:!0}}else if(rC(R.type,e,g))A++;else if(rC(R.type,-e,g)){if(A==0){let T=oC(R);return{start:y,end:T&&T.from<T.to?{from:T.from,to:T.to}:void 0,matched:!1}}A--}}while(e<0?R.prevSibling():R.nextSibling());return{start:y,matched:!1}}function xU(i,t,e,o,n,c,g){if(e<0?!t:t==i.doc.length)return null;let w=e<0?i.sliceDoc(t-1,t):i.sliceDoc(t,t+1),y=g.indexOf(w);if(y<0||y%2==0!=e>0)return null;let A={from:e<0?t-1:t,to:e>0?t+1:t},R=i.doc.iterRange(t,e>0?i.doc.length:0),T=0;for(let F=0;!R.next().done&&F<=c;){let k=R.value;e<0&&(F+=k.length);let G=t+F*e;for(let W=e>0?0:k.length-1,P=e>0?k.length:-1;W!=P;W+=e){let Q=g.indexOf(k[W]);if(!(Q<0||o.resolveInner(G+W,1).type!=n))if(Q%2==0==e>0)T++;else{if(T==1)return{start:A,end:{from:G+W,to:G+W+1},matched:Q>>1==y>>1};T--}}e>0&&(F+=k.length)}return R.done?{start:A,matched:!1}:null}function k1(i,t,e,o=0,n=0){t==null&&(t=i.search(/[^\s\u00a0]/),t==-1&&(t=i.length));let c=n;for(let g=o;g<t;g++)i.charCodeAt(g)==9?c+=e-c%e:c++;return c}var qc=class{constructor(t,e,o,n){this.string=t,this.tabSize=e,this.indentUnit=o,this.overrideIndent=n,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(t){let e=this.string.charAt(this.pos),o;if(typeof t=="string"?o=e==t:o=e&&(t instanceof RegExp?t.test(e):t(e)),o)return++this.pos,e}eatWhile(t){let e=this.pos;for(;this.eat(t););return this.pos>e}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=k1(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var t;return(t=this.overrideIndent)!==null&&t!==void 0?t:k1(this.string,null,this.tabSize)}match(t,e,o){if(typeof t=="string"){let n=g=>o?g.toLowerCase():g,c=this.string.substr(this.pos,t.length);return n(c)==n(t)?(e!==!1&&(this.pos+=t.length),!0):null}else{let n=this.string.slice(this.pos).match(t);return n&&n.index>0?null:(n&&e!==!1&&(this.pos+=n[0].length),n)}}current(){return this.string.slice(this.start,this.pos)}};function vU(i){return{name:i.name||"",token:i.token,blankLine:i.blankLine||(()=>{}),startState:i.startState||(()=>!0),copyState:i.copyState||yU,indent:i.indent||(()=>null),languageData:i.languageData||{},tokenTable:i.tokenTable||hC,mergeTokens:i.mergeTokens!==!1}}function yU(i){if(typeof i!="object")return i;let t={};for(let e in i){let o=i[e];t[e]=o instanceof Array?o.slice():o}return t}var V1=new WeakMap,gd=class i extends go{constructor(t){let e=DF(t.languageData),o=vU(t),n,c=new class extends su{createParse(g,w,y){return new sC(n,g,w,y)}};super(e,c,[],t.name),this.topNode=AU(e,this),n=this,this.streamParser=o,this.stateAfter=new at({perNode:!0}),this.tokenTable=t.tokenTable?new md(o.tokenTable):IU}static define(t){return new i(t)}getIndent(t){let e,{overrideIndentation:o}=t.options;o&&(e=V1.get(t.state),e!=null&&e<t.pos-1e4&&(e=void 0));let n=cC(this,t.node.tree,t.node.from,t.node.from,e??t.pos),c,g;if(n?(g=n.state,c=n.pos+1):(g=this.streamParser.startState(t.unit),c=t.node.from),t.pos-c>1e4)return null;for(;c<t.pos;){let y=t.state.doc.lineAt(c),A=Math.min(t.pos,y.to);if(y.length){let R=o?o(y.from):-1,T=new qc(y.text,t.state.tabSize,t.unit,R<0?void 0:R);for(;T.pos<A-y.from;)K1(this.streamParser.token,T,g)}else this.streamParser.blankLine(g,t.unit);if(A==t.pos)break;c=y.to+1}let w=t.lineAt(t.pos);return o&&e==null&&V1.set(t.state,w.from),this.streamParser.indent(g,/^\s*(.*)/.exec(w.text)[1],t)}get allowsNesting(){return!1}};function cC(i,t,e,o,n){let c=e>=o&&e+t.length<=n&&t.prop(i.stateAfter);if(c)return{state:i.streamParser.copyState(c),pos:e+t.length};for(let g=t.children.length-1;g>=0;g--){let w=t.children[g],y=e+t.positions[g],A=w instanceof Yt&&y<n&&cC(i,w,y,o,n);if(A)return A}return null}function q1(i,t,e,o,n){if(n&&e<=0&&o>=t.length)return t;!n&&e==0&&t.type==i.topNode&&(n=!0);for(let c=t.children.length-1;c>=0;c--){let g=t.positions[c],w=t.children[c],y;if(g<o&&w instanceof Yt){if(!(y=q1(i,w,e-g,o-g,n)))break;return n?new Yt(t.type,t.children.slice(0,c).concat(y),t.positions.slice(0,c+1),g+y.length):y}}return null}function EU(i,t,e,o,n){for(let c of t){let g=c.from+(c.openStart?25:0),w=c.to-(c.openEnd?25:0),y=g<=e&&w>e&&cC(i,c.tree,0-c.offset,e,w),A;if(y&&y.pos<=o&&(A=q1(i,c.tree,e+c.offset,y.pos+c.offset,!1)))return{state:y.state,tree:A}}return{state:i.streamParser.startState(n?aa(n):4),tree:Yt.empty}}var sC=class{constructor(t,e,o,n){this.lang=t,this.input=e,this.fragments=o,this.ranges=n,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=n[n.length-1].to;let c=Vu.get(),g=n[0].from,{state:w,tree:y}=EU(t,o,g,this.to,c?.state);this.state=w,this.parsedPos=this.chunkStart=g+y.length;for(let A=0;A<y.children.length;A++)this.chunks.push(y.children[A]),this.chunkPos.push(y.positions[A]);c&&this.parsedPos<c.viewport.from-1e5&&n.some(A=>A.from<=c.viewport.from&&A.to>=c.viewport.from)&&(this.state=this.lang.streamParser.startState(aa(c.state)),c.skipUntilInView(this.parsedPos,c.viewport.from),this.parsedPos=c.viewport.from),this.moveRangeIndex()}advance(){let t=Vu.get(),e=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),o=Math.min(e,this.chunkStart+512);for(t&&(o=Math.min(o,t.viewport.to));this.parsedPos<o;)this.parseLine(t);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)e==`
17
+ `&&(e="");else{let o=e.indexOf(`
18
+ `);o>-1&&(e=e.slice(0,o))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),o=t+e.length;for(let n=this.rangeIndex;;){let c=this.ranges[n].to;if(c>=o||(e=e.slice(0,c-(o-e.length)),n++,n==this.ranges.length))break;let g=this.ranges[n].from,w=this.lineAfter(g);e+=w,o=g+w.length}return{line:e,end:o}}skipGapsTo(t,e,o){for(;;){let n=this.ranges[this.rangeIndex].to,c=t+e;if(o>0?n>c:n>=c)break;let g=this.ranges[++this.rangeIndex].from;e+=g-n}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(t,e,o,n){let c=4;if(this.ranges.length>1){n=this.skipGapsTo(e,n,1),e+=n;let w=this.chunk.length;n=this.skipGapsTo(o,n,-1),o+=n,c+=this.chunk.length-w}let g=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&c==4&&g>=0&&this.chunk[g]==t&&this.chunk[g+2]==e?this.chunk[g+2]=o:this.chunk.push(t,e,o,c),n}parseLine(t){let{line:e,end:o}=this.nextLine(),n=0,{streamParser:c}=this.lang,g=new qc(e,t?t.state.tabSize:4,t?aa(t.state):2);if(g.eol())c.blankLine(this.state,g.indentUnit);else for(;!g.eol();){let w=K1(c.token,g,this.state);if(w&&(n=this.emitToken(this.lang.tokenTable.resolve(w),this.parsedPos+g.start,this.parsedPos+g.pos,n)),g.start>1e4)break}this.parsedPos=o,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let t=Yt.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:CU,topID:0,maxBufferLength:512,reused:this.chunkReused});t=new Yt(t.type,t.children,t.positions,t.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(t),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new Yt(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}};function K1(i,t,e){t.start=t.pos;for(let o=0;o<10;o++){let n=i(t,e);if(t.pos>t.start)return n}throw new Error("Stream parser failed to advance stream.")}var hC=Object.create(null),Uu=[vr.none],CU=new mf(Uu),F1=[],U1=Object.create(null),eR=Object.create(null);for(let[i,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])eR[i]=tR(hC,t);var md=class{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),eR)}resolve(t){return t?this.table[t]||(this.table[t]=tR(this.extra,t)):0}},IU=new md(hC);function $E(i,t){F1.indexOf(i)>-1||(F1.push(i),console.warn(t))}function tR(i,t){let e=[];for(let w of t.split(" ")){let y=[];for(let A of w.split(".")){let R=i[A]||Ae[A];R?typeof R=="function"?y.length?y=y.map(R):$E(A,`Modifier ${A} used at start of tag`):y.length?$E(A,`Tag ${A} used as modifier`):y=Array.isArray(R)?R:[R]:$E(A,`Unknown highlighting tag ${A}`)}for(let A of y)e.push(A)}if(!e.length)return 0;let o=t.replace(/ /g,"_"),n=o+" "+e.map(w=>w.id),c=U1[n];if(c)return c.id;let g=U1[n]=vr.define({id:Uu.length,name:o,props:[I1({[o]:e})]});return Uu.push(g),g.id}function AU(i,t){let e=vr.define({id:Uu.length,name:"Document",props:[jc.add(()=>i),O1.add(()=>o=>t.getIndent(o))],top:!0});return Uu.push(e),e}var FX={rtl:ze.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:Et.RTL}),ltr:ze.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:Et.LTR}),auto:ze.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var wd="PREFIX ";function pC(i,t,e){return i.getTokenAt(t,e).type}function iR(i){return!!i&&(i==="punc"||i.split(/\s+/).some(t=>t==="punc"||t.startsWith("bracket")))}function NU(i,t,e){let o=t.line(e+1).text,n={"{":"}","[":"]","(":")"},c=-1,g="";for(let R=o.length-1;R>=0;R--){let T=o[R];if(n[T]&&iR(pC(i,t,{line:e,ch:R+1}))){c=R,g=T;break}}if(c<0)return;let w=n[g],y=1,A=t.lines-1;for(let R=e;R<=A;R++){let T=t.line(R+1).text,F=R===e?c+1:0;for(;F<T.length;F++){let k=T[F];if(!(k!==g&&k!==w)&&iR(pC(i,t,{line:R,ch:F+1}))){if(k===g)y++;else if(--y===0)return R===e?void 0:{from:t.line(e+1).from+c+1,to:t.line(R+1).from+F}}}}}function rR(i,t,e,o=0){let n=t.line(e+1).text;if(!n)return;let c=n.toUpperCase().indexOf(wd,o);if(c>=0&&pC(i,t,{line:e,ch:c+1})==="keyword")return c}function oR(i,t){for(let e=0;e<t.lines;e++){let o=rR(i,t,e);if(o!==void 0&&o>=0)return e}}function RU(i,t,e){for(let T=e-1;T>=0;T--)if(t.line(T+1).text.toUpperCase().indexOf(wd)>=0)return;let o=rR(i,t,e);if(o===void 0)return;let n=(T,F)=>{let k=i.getTokenAt(t,{line:T,ch:F});if(!(k.end<F)){for(;k.type==="ws";){let G=i.getTokenAt(t,{line:T,ch:k.end+1});if(G.end<k.end+1)return;k=G}return k}},c=(T,F)=>{let k=i.getTokenAt(t,{line:T,ch:F+1});if(k.type!=="keyword")return-1;let G=n(T,k.end+1);if(!G||G.type!=="string-2")return-1;let W=n(T,G.end+1);return!W||W.type!=="variable-3"?-1:W.end},g=c(e,o),w=e,y=!1;for(let T=e;T<t.lines&&!y;T++){let F=t.line(T+1).text,k=T===e?o+1:0;for(;;){!y&&F.indexOf("{")>=0&&(y=!0);let G=F.toUpperCase().indexOf(wd,k);if(G<0)break;let W=c(T,G);W>0&&(g=W,w=T,k=g),k++}}if(g<0)return;let A=t.line(e+1).from+o+wd.length,R=t.line(w+1).from+g;if(!(R<=A))return{from:A,to:R}}function TU(i,t,e){return NU(i,t,e)||RU(i,t,e)}function sR(i){return[nC.of((t,e)=>{let o=t.doc.lineAt(e).number-1;return TU(i,t.doc,o)||null}),Y1({markerDOM(t){let e=document.createElement("span");return e.className=`cm-foldMarker CodeMirror-foldgutter-${t?"open":"folded"}`,e.title=t?"Fold":"Unfold",e}})]}function nR(i,t){let e=i.state.doc.lineAt(t),o=!1;if(bd(i.state).between(e.from,e.to,(c,g)=>{if(c>=e.from&&c<=e.to)return i.dispatch({effects:ha.of({from:c,to:g})}),o=!0,!1}),o)return;let n=Ol(i.state,e.from,e.to);n&&i.dispatch({effects:Zl.of(n)})}function xd(i,t){let e=i.state.doc.lineAt(t),o=!1;if(bd(i.state).between(e.from,e.to,()=>(o=!0,!1)),o)return;let n=Ol(i.state,e.from,e.to);n&&i.dispatch({effects:Zl.of(n)})}function aR(i,t){let e=i.state.doc.lineAt(t),o=[];bd(i.state).between(e.from,e.to,(n,c)=>{n>=e.from&&n<=e.to&&o.push(ha.of({from:n,to:c}))}),o.length&&i.dispatch({effects:o})}function cR(i,t){var e=i.getPrefixesFromQuery();if(typeof t=="string")lR(i,t);else for(var o in t)o in e||lR(i,o+": <"+t[o]+">");i.collapsePrefixes(!1)}function lR(i,t){i.getDoc().replaceRange("PREFIX "+t+`
19
+ `,{line:0,ch:0}),i.collapsePrefixes(!1)}function hR(i,t){var e=function(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var o in t)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+o+":\\s*"+e("<"+t[o]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function pR(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}function uR(i,t,e){return e||(e=i.getDoc().getCursor()),t||(t=i.getTokenAt(e)),dR(i,fR(i,t,e),e)}function fR(i,t,e){var o=i.getTokenAt({line:e.line,ch:t.start});return(t.type==="punc"||t.type==="error")&&!t.state.possibleFullIri&&!t.state.inPrefixDecl?(t.state.possibleCurrent=t.state.possibleNext,t):o.type==="punc"&&!o.state.possibleFullIri&&!o.state.inPrefixDecl?t:o.type!=null&&o.type!="ws"&&t.type!=null&&t.type!="ws"?(t.start=o.start,t.string=o.string+t.string,fR(i,t,{line:e.line,ch:o.start})):(t.type!=null&&t.type=="ws"&&(t.start=t.start+1,t.string=t.string.substring(1)),t)}function dR(i,t,e){if(t.string.indexOf(" ")>=0){let n=t.string.indexOf(" ");return t.string=t.string.substr(0,n),t.end=t.start+t.string.length,t}if(!t.type)return t;var o=i.getTokenAt({line:e.line,ch:t.end+1});return o.type!=="ws"&&t.state.possibleFullIri&&t.type!==null&&t.type!=="ws"&&o.end!==t.end?(t.end=o.end,t.string=t.string+o.string,dR(i,t,{line:e.line,ch:o.end})):(t.type==="ws"&&(t.end=t.end+1,t.string=t.string.substring(t.string.length-1)),t)}function uC(i,t,e){var o=i.getTokenAt({line:t,ch:e.start});return o!=null&&o.type=="ws"&&(o=uC(i,t,o)),o}function fC(i,t,e){e==null&&(e=1);var o=i.getTokenAt({line:t,ch:e});if(!(o==null||o==null||o.end<e))return o.type=="ws"?fC(i,t,o.end+1):o}var{entries:CR,setPrototypeOf:gR,isFrozen:SU,getPrototypeOf:LU,getOwnPropertyDescriptor:BU}=Object,{freeze:Rr,seal:To,create:vC}=Object,{apply:yC,construct:EC}=typeof Reflect<"u"&&Reflect;Rr||(Rr=function(t){return t});To||(To=function(t){return t});yC||(yC=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),c=2;c<o;c++)n[c-2]=arguments[c];return t.apply(e,n)});EC||(EC=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});var vd=Tr(Array.prototype.forEach),kU=Tr(Array.prototype.lastIndexOf),mR=Tr(Array.prototype.pop),Ou=Tr(Array.prototype.push),VU=Tr(Array.prototype.splice),Ed=Tr(String.prototype.toLowerCase),dC=Tr(String.prototype.toString),gC=Tr(String.prototype.match),Gu=Tr(String.prototype.replace),FU=Tr(String.prototype.indexOf),UU=Tr(String.prototype.trim),as=Tr(Object.prototype.hasOwnProperty),Nr=Tr(RegExp.prototype.test),Zu=_U(TypeError);function Tr(i){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return yC(i,t,o)}}function _U(i){return function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return EC(i,e)}}function pt(i,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ed;gR&&gR(i,null);let o=t.length;for(;o--;){let n=t[o];if(typeof n=="string"){let c=e(n);c!==n&&(SU(t)||(t[o]=c),n=c)}i[n]=!0}return i}function OU(i){for(let t=0;t<i.length;t++)as(i,t)||(i[t]=null);return i}function Us(i){let t=vC(null);for(let[e,o]of CR(i))as(i,e)&&(Array.isArray(o)?t[e]=OU(o):o&&typeof o=="object"&&o.constructor===Object?t[e]=Us(o):t[e]=o);return t}function Mu(i,t){for(;i!==null;){let o=BU(i,t);if(o){if(o.get)return Tr(o.get);if(typeof o.value=="function")return Tr(o.value)}i=LU(i)}function e(){return null}return e}var bR=Rr(["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"]),mC=Rr(["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"]),bC=Rr(["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"]),GU=Rr(["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"]),wC=Rr(["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"]),ZU=Rr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wR=Rr(["#text"]),xR=Rr(["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"]),xC=Rr(["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"]),vR=Rr(["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"]),yd=Rr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MU=To(/\{\{[\w\W]*|[\w\W]*\}\}/gm),WU=To(/<%[\w\W]*|[\w\W]*%>/gm),DU=To(/\$\{[\w\W]*/gm),PU=To(/^data-[\-\w.\u00B7-\uFFFF]+$/),QU=To(/^aria-[\-\w]+$/),IR=To(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),XU=To(/^(?:\w+script|data):/i),YU=To(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),AR=To(/^html$/i),HU=To(/^[a-z][.\w]*(-[.\w]+)+$/i),yR=Object.freeze({__proto__:null,ARIA_ATTR:QU,ATTR_WHITESPACE:YU,CUSTOM_ELEMENT:HU,DATA_ATTR:PU,DOCTYPE_NAME:AR,ERB_EXPR:WU,IS_ALLOWED_URI:IR,IS_SCRIPT_OR_DATA:XU,MUSTACHE_EXPR:MU,TMPLIT_EXPR:DU}),Wu={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},JU=function(){return typeof window>"u"?null:window},zU=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));let c="dompurify"+(o?"#"+o:"");try{return t.createPolicy(c,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},ER=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function NR(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:JU(),t=Me=>NR(Me);if(t.version="3.3.1",t.removed=[],!i||!i.document||i.document.nodeType!==Wu.document||!i.Element)return t.isSupported=!1,t;let{document:e}=i,o=e,n=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:g,Node:w,Element:y,NodeFilter:A,NamedNodeMap:R=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:T,DOMParser:F,trustedTypes:k}=i,G=y.prototype,W=Mu(G,"cloneNode"),P=Mu(G,"remove"),Q=Mu(G,"nextSibling"),H=Mu(G,"childNodes"),re=Mu(G,"parentNode");if(typeof g=="function"){let Me=e.createElement("template");Me.content&&Me.content.ownerDocument&&(e=Me.content.ownerDocument)}let K,J="",{implementation:te,createNodeIterator:ae,createDocumentFragment:me,getElementsByTagName:Ee}=e,{importNode:Pe}=o,Re=ER();t.isSupported=typeof CR=="function"&&typeof re=="function"&&te&&te.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ie,ERB_EXPR:Ye,TMPLIT_EXPR:Oe,DATA_ATTR:de,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:dt,ATTR_WHITESPACE:ce,CUSTOM_ELEMENT:Be}=yR,{IS_ALLOWED_URI:qe}=yR,Xe=null,ve=pt({},[...bR,...mC,...bC,...wC,...wR]),fe=null,Le=pt({},[...xR,...xC,...vR,...yd]),_e=Object.seal(vC(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}})),bt=null,$t=null,Fi=Object.seal(vC(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ki=!0,ur=!0,Ve=!1,ne=!0,It=!1,qt=!0,De=!1,oi=!1,Fo=!1,je=!1,Ui=!1,si=!1,pi=!0,Uo=!1,Ge="user-content-",ui=!0,Te=!1,ot={},ni=null,fi=pt({},["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"]),st=null,Kt=pt({},["audio","video","img","source","image","track"]),ai=null,Wi=pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Di="http://www.w3.org/1998/Math/MathML",er="http://www.w3.org/2000/svg",Ut="http://www.w3.org/1999/xhtml",_i=Ut,zr=!1,Fr=null,Ur=pt({},[Di,er,Ut],dC),Pi=pt({},["mi","mo","mn","ms","mtext"]),tr=pt({},["annotation-xml"]),_o=pt({},["title","style","font","a","script"]),yt=null,Ca=["application/xhtml+xml","text/html"],Ia="text/html",_t=null,_r=null,Aa=e.createElement("form"),Nn=function(Y){return Y instanceof RegExp||Y instanceof Function},Ms=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(_r&&_r===Y)){if((!Y||typeof Y!="object")&&(Y={}),Y=Us(Y),yt=Ca.indexOf(Y.PARSER_MEDIA_TYPE)===-1?Ia:Y.PARSER_MEDIA_TYPE,_t=yt==="application/xhtml+xml"?dC:Ed,Xe=as(Y,"ALLOWED_TAGS")?pt({},Y.ALLOWED_TAGS,_t):ve,fe=as(Y,"ALLOWED_ATTR")?pt({},Y.ALLOWED_ATTR,_t):Le,Fr=as(Y,"ALLOWED_NAMESPACES")?pt({},Y.ALLOWED_NAMESPACES,dC):Ur,ai=as(Y,"ADD_URI_SAFE_ATTR")?pt(Us(Wi),Y.ADD_URI_SAFE_ATTR,_t):Wi,st=as(Y,"ADD_DATA_URI_TAGS")?pt(Us(Kt),Y.ADD_DATA_URI_TAGS,_t):Kt,ni=as(Y,"FORBID_CONTENTS")?pt({},Y.FORBID_CONTENTS,_t):fi,bt=as(Y,"FORBID_TAGS")?pt({},Y.FORBID_TAGS,_t):Us({}),$t=as(Y,"FORBID_ATTR")?pt({},Y.FORBID_ATTR,_t):Us({}),ot=as(Y,"USE_PROFILES")?Y.USE_PROFILES:!1,Ki=Y.ALLOW_ARIA_ATTR!==!1,ur=Y.ALLOW_DATA_ATTR!==!1,Ve=Y.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=Y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,It=Y.SAFE_FOR_TEMPLATES||!1,qt=Y.SAFE_FOR_XML!==!1,De=Y.WHOLE_DOCUMENT||!1,je=Y.RETURN_DOM||!1,Ui=Y.RETURN_DOM_FRAGMENT||!1,si=Y.RETURN_TRUSTED_TYPE||!1,Fo=Y.FORCE_BODY||!1,pi=Y.SANITIZE_DOM!==!1,Uo=Y.SANITIZE_NAMED_PROPS||!1,ui=Y.KEEP_CONTENT!==!1,Te=Y.IN_PLACE||!1,qe=Y.ALLOWED_URI_REGEXP||IR,_i=Y.NAMESPACE||Ut,Pi=Y.MATHML_TEXT_INTEGRATION_POINTS||Pi,tr=Y.HTML_INTEGRATION_POINTS||tr,_e=Y.CUSTOM_ELEMENT_HANDLING||{},Y.CUSTOM_ELEMENT_HANDLING&&Nn(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&Nn(Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&typeof Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_e.allowCustomizedBuiltInElements=Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),It&&(ur=!1),Ui&&(je=!0),ot&&(Xe=pt({},wR),fe=[],ot.html===!0&&(pt(Xe,bR),pt(fe,xR)),ot.svg===!0&&(pt(Xe,mC),pt(fe,xC),pt(fe,yd)),ot.svgFilters===!0&&(pt(Xe,bC),pt(fe,xC),pt(fe,yd)),ot.mathMl===!0&&(pt(Xe,wC),pt(fe,vR),pt(fe,yd))),Y.ADD_TAGS&&(typeof Y.ADD_TAGS=="function"?Fi.tagCheck=Y.ADD_TAGS:(Xe===ve&&(Xe=Us(Xe)),pt(Xe,Y.ADD_TAGS,_t))),Y.ADD_ATTR&&(typeof Y.ADD_ATTR=="function"?Fi.attributeCheck=Y.ADD_ATTR:(fe===Le&&(fe=Us(fe)),pt(fe,Y.ADD_ATTR,_t))),Y.ADD_URI_SAFE_ATTR&&pt(ai,Y.ADD_URI_SAFE_ATTR,_t),Y.FORBID_CONTENTS&&(ni===fi&&(ni=Us(ni)),pt(ni,Y.FORBID_CONTENTS,_t)),Y.ADD_FORBID_CONTENTS&&(ni===fi&&(ni=Us(ni)),pt(ni,Y.ADD_FORBID_CONTENTS,_t)),ui&&(Xe["#text"]=!0),De&&pt(Xe,["html","head","body"]),Xe.table&&(pt(Xe,["tbody"]),delete bt.tbody),Y.TRUSTED_TYPES_POLICY){if(typeof Y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');K=Y.TRUSTED_TYPES_POLICY,J=K.createHTML("")}else K===void 0&&(K=zU(k,n)),K!==null&&typeof J=="string"&&(J=K.createHTML(""));Rr&&Rr(Y),_r=Y}},Rn=pt({},[...mC,...bC,...GU]),Qi=pt({},[...wC,...ZU]),Ze=function(Y){let pe=re(Y);(!pe||!pe.tagName)&&(pe={namespaceURI:_i,tagName:"template"});let ke=Ed(Y.tagName),vt=Ed(pe.tagName);return Fr[Y.namespaceURI]?Y.namespaceURI===er?pe.namespaceURI===Ut?ke==="svg":pe.namespaceURI===Di?ke==="svg"&&(vt==="annotation-xml"||Pi[vt]):!!Rn[ke]:Y.namespaceURI===Di?pe.namespaceURI===Ut?ke==="math":pe.namespaceURI===er?ke==="math"&&tr[vt]:!!Qi[ke]:Y.namespaceURI===Ut?pe.namespaceURI===er&&!tr[vt]||pe.namespaceURI===Di&&!Pi[vt]?!1:!Qi[ke]&&(_o[ke]||!Rn[ke]):!!(yt==="application/xhtml+xml"&&Fr[Y.namespaceURI]):!1},Xi=function(Y){Ou(t.removed,{element:Y});try{re(Y).removeChild(Y)}catch{P(Y)}},Or=function(Y,pe){try{Ou(t.removed,{attribute:pe.getAttributeNode(Y),from:pe})}catch{Ou(t.removed,{attribute:null,from:pe})}if(pe.removeAttribute(Y),Y==="is")if(je||Ui)try{Xi(pe)}catch{}else try{pe.setAttribute(Y,"")}catch{}},Ws=function(Y){let pe=null,ke=null;if(Fo)Y="<remove></remove>"+Y;else{let Vt=gC(Y,/^[\r\n\t ]+/);ke=Vt&&Vt[0]}yt==="application/xhtml+xml"&&_i===Ut&&(Y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Y+"</body></html>");let vt=K?K.createHTML(Y):Y;if(_i===Ut)try{pe=new F().parseFromString(vt,yt)}catch{}if(!pe||!pe.documentElement){pe=te.createDocument(_i,"template",null);try{pe.documentElement.innerHTML=zr?J:vt}catch{}}let li=pe.body||pe.documentElement;return Y&&ke&&li.insertBefore(e.createTextNode(ke),li.childNodes[0]||null),_i===Ut?Ee.call(pe,De?"html":"body")[0]:De?pe.documentElement:li},Ds=function(Y){return ae.call(Y.ownerDocument||Y,Y,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},Oo=function(Y){return Y instanceof T&&(typeof Y.nodeName!="string"||typeof Y.textContent!="string"||typeof Y.removeChild!="function"||!(Y.attributes instanceof R)||typeof Y.removeAttribute!="function"||typeof Y.setAttribute!="function"||typeof Y.namespaceURI!="string"||typeof Y.insertBefore!="function"||typeof Y.hasChildNodes!="function")},Ps=function(Y){return typeof w=="function"&&Y instanceof w};function yi(Me,Y,pe){vd(Me,ke=>{ke.call(t,Y,pe,_r)})}let Qs=function(Y){let pe=null;if(yi(Re.beforeSanitizeElements,Y,null),Oo(Y))return Xi(Y),!0;let ke=_t(Y.nodeName);if(yi(Re.uponSanitizeElement,Y,{tagName:ke,allowedTags:Xe}),qt&&Y.hasChildNodes()&&!Ps(Y.firstElementChild)&&Nr(/<[/\w!]/g,Y.innerHTML)&&Nr(/<[/\w!]/g,Y.textContent)||Y.nodeType===Wu.progressingInstruction||qt&&Y.nodeType===Wu.comment&&Nr(/<[/\w]/g,Y.data))return Xi(Y),!0;if(!(Fi.tagCheck instanceof Function&&Fi.tagCheck(ke))&&(!Xe[ke]||bt[ke])){if(!bt[ke]&&Sn(ke)&&(_e.tagNameCheck instanceof RegExp&&Nr(_e.tagNameCheck,ke)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(ke)))return!1;if(ui&&!ni[ke]){let vt=re(Y)||Y.parentNode,li=H(Y)||Y.childNodes;if(li&&vt){let Vt=li.length;for(let Ei=Vt-1;Ei>=0;--Ei){let Yi=W(li[Ei],!0);Yi.__removalCount=(Y.__removalCount||0)+1,vt.insertBefore(Yi,Q(Y))}}}return Xi(Y),!0}return Y instanceof y&&!Ze(Y)||(ke==="noscript"||ke==="noembed"||ke==="noframes")&&Nr(/<\/no(script|embed|frames)/i,Y.innerHTML)?(Xi(Y),!0):(It&&Y.nodeType===Wu.text&&(pe=Y.textContent,vd([Ie,Ye,Oe],vt=>{pe=Gu(pe,vt," ")}),Y.textContent!==pe&&(Ou(t.removed,{element:Y.cloneNode()}),Y.textContent=pe)),yi(Re.afterSanitizeElements,Y,null),!1)},Tn=function(Y,pe,ke){if(pi&&(pe==="id"||pe==="name")&&(ke in e||ke in Aa))return!1;if(!(ur&&!$t[pe]&&Nr(de,pe))){if(!(Ki&&Nr(ue,pe))){if(!(Fi.attributeCheck instanceof Function&&Fi.attributeCheck(pe,Y))){if(!fe[pe]||$t[pe]){if(!(Sn(Y)&&(_e.tagNameCheck instanceof RegExp&&Nr(_e.tagNameCheck,Y)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(Y))&&(_e.attributeNameCheck instanceof RegExp&&Nr(_e.attributeNameCheck,pe)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(pe,Y))||pe==="is"&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&Nr(_e.tagNameCheck,ke)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(ke))))return!1}else if(!ai[pe]){if(!Nr(qe,Gu(ke,ce,""))){if(!((pe==="src"||pe==="xlink:href"||pe==="href")&&Y!=="script"&&FU(ke,"data:")===0&&st[Y])){if(!(Ve&&!Nr(dt,Gu(ke,ce,"")))){if(ke)return!1}}}}}}}return!0},Sn=function(Y){return Y!=="annotation-xml"&&gC(Y,Be)},Ln=function(Y){yi(Re.beforeSanitizeAttributes,Y,null);let{attributes:pe}=Y;if(!pe||Oo(Y))return;let ke={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:fe,forceKeepAttr:void 0},vt=pe.length;for(;vt--;){let li=pe[vt],{name:Vt,namespaceURI:Ei,value:Yi}=li,ir=_t(Vt),ds=Yi,Dt=Vt==="value"?ds:UU(ds);if(ke.attrName=ir,ke.attrValue=Dt,ke.keepAttr=!0,ke.forceKeepAttr=void 0,yi(Re.uponSanitizeAttribute,Y,ke),Dt=ke.attrValue,Uo&&(ir==="id"||ir==="name")&&(Or(Vt,Y),Dt=Ge+Dt),qt&&Nr(/((--!?|])>)|<\/(style|title|textarea)/i,Dt)){Or(Vt,Y);continue}if(ir==="attributename"&&gC(Dt,"href")){Or(Vt,Y);continue}if(ke.forceKeepAttr)continue;if(!ke.keepAttr){Or(Vt,Y);continue}if(!ne&&Nr(/\/>/i,Dt)){Or(Vt,Y);continue}It&&vd([Ie,Ye,Oe],ct=>{Dt=Gu(Dt,ct," ")});let vo=_t(Y.nodeName);if(!Tn(vo,ir,Dt)){Or(Vt,Y);continue}if(K&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!Ei)switch(k.getAttributeType(vo,ir)){case"TrustedHTML":{Dt=K.createHTML(Dt);break}case"TrustedScriptURL":{Dt=K.createScriptURL(Dt);break}}if(Dt!==ds)try{Ei?Y.setAttributeNS(Ei,Vt,Dt):Y.setAttribute(Vt,Dt),Oo(Y)?Xi(Y):mR(t.removed)}catch{Or(Vt,Y)}}yi(Re.afterSanitizeAttributes,Y,null)},Na=function Me(Y){let pe=null,ke=Ds(Y);for(yi(Re.beforeSanitizeShadowDOM,Y,null);pe=ke.nextNode();)yi(Re.uponSanitizeShadowNode,pe,null),Qs(pe),Ln(pe),pe.content instanceof c&&Me(pe.content);yi(Re.afterSanitizeShadowDOM,Y,null)};return t.sanitize=function(Me){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=null,ke=null,vt=null,li=null;if(zr=!Me,zr&&(Me="<!-->"),typeof Me!="string"&&!Ps(Me))if(typeof Me.toString=="function"){if(Me=Me.toString(),typeof Me!="string")throw Zu("dirty is not a string, aborting")}else throw Zu("toString is not a function");if(!t.isSupported)return Me;if(oi||Ms(Y),t.removed=[],typeof Me=="string"&&(Te=!1),Te){if(Me.nodeName){let Yi=_t(Me.nodeName);if(!Xe[Yi]||bt[Yi])throw Zu("root node is forbidden and cannot be sanitized in-place")}}else if(Me instanceof w)pe=Ws("<!---->"),ke=pe.ownerDocument.importNode(Me,!0),ke.nodeType===Wu.element&&ke.nodeName==="BODY"||ke.nodeName==="HTML"?pe=ke:pe.appendChild(ke);else{if(!je&&!It&&!De&&Me.indexOf("<")===-1)return K&&si?K.createHTML(Me):Me;if(pe=Ws(Me),!pe)return je?null:si?J:""}pe&&Fo&&Xi(pe.firstChild);let Vt=Ds(Te?Me:pe);for(;vt=Vt.nextNode();)Qs(vt),Ln(vt),vt.content instanceof c&&Na(vt.content);if(Te)return Me;if(je){if(Ui)for(li=me.call(pe.ownerDocument);pe.firstChild;)li.appendChild(pe.firstChild);else li=pe;return(fe.shadowroot||fe.shadowrootmode)&&(li=Pe.call(o,li,!0)),li}let Ei=De?pe.outerHTML:pe.innerHTML;return De&&Xe["!doctype"]&&pe.ownerDocument&&pe.ownerDocument.doctype&&pe.ownerDocument.doctype.name&&Nr(AR,pe.ownerDocument.doctype.name)&&(Ei="<!DOCTYPE "+pe.ownerDocument.doctype.name+`>
20
+ `+Ei),It&&vd([Ie,Ye,Oe],Yi=>{Ei=Gu(Ei,Yi," ")}),K&&si?K.createHTML(Ei):Ei},t.setConfig=function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ms(Me),oi=!0},t.clearConfig=function(){_r=null,oi=!1},t.isValidAttribute=function(Me,Y,pe){_r||Ms({});let ke=_t(Me),vt=_t(Y);return Tn(ke,vt,pe)},t.addHook=function(Me,Y){typeof Y=="function"&&Ou(Re[Me],Y)},t.removeHook=function(Me,Y){if(Y!==void 0){let pe=kU(Re[Me],Y);return pe===-1?void 0:VU(Re[Me],pe,1)[0]}return mR(Re[Me])},t.removeHooks=function(Me){Re[Me]=[]},t.removeAllHooks=function(){Re=ER()},t}var RR=NR();var ls=Lc(oT()),Pl=class{constructor(t){this.namespace=t}set(t,e,o,n){if(ls.default.enabled&&(this.removeExpiredKeys(),t&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{ls.default.set(t,{namespace:this.namespace,val:e,exp:o,time:new Date().getTime()/1e3})}catch(c){if(c instanceof Error){let g=c;if(g.quotaExceeded=K_(c),g.quotaExceeded&&n)n(c);else throw g}throw c}}}remove(t){ls.default.enabled&&t&&ls.default.remove(t)}removeExpiredKeys(){ls.default.enabled&&ls.default.each((t,e)=>{t&&t.exp&&new Date().getTime()/1e3-t.time>t.exp&&this.remove(e)})}removeAll(){ls.default.enabled}removeNamespace(){ls.default.each((t,e)=>{t.namespace&&t.namespace===this.namespace&&this.remove(e)})}get(t){if(ls.default.enabled&&t)if(this.removeExpiredKeys(),t){var e=ls.default.get(t);return e?e.val:void 0}else return}};function K_(i){var t=!1;if(i)if(i.code)switch(i.code){case 22:t=!0;break;case 1014:i.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(t=!0);break}else i.number===-2147024882&&(t=!0);return t}var{sanitize:sY}=RR;function sT(i,t){if(i)return i.classList?i.classList.contains(t):!!i.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function ge(i,...t){if(i)for(let e of t)i.classList?i.classList.add(e):sT(i,e)||(i.className+=" "+e)}function mo(i,t){if(i){if(i.classList)i.classList.remove(t);else if(sT(i,t)){var e=new RegExp("(\\s|^)"+t+"(\\s|$)");i.className=i.className.replace(e," ")}}}var Og=Lc(Cd());function ih(i,t,e){let o;t.onmouseover=function(){o||(o=document.createElement("div"),o.className="yasqe_tooltip",i.rootEl.appendChild(o)),o.innerHTML=e,o.style.display="block";let n=this.getBoundingClientRect();o.style.position="fixed",o.style.left=`${n.right+6}px`,o.style.top=`${n.top}px`,o.style.zIndex="10000"},t.onmouseout=function(){o&&(o.style.display="none")}}var jC={};y2(jC,{base64EncodeUnicode:()=>qL,executeQuery:()=>QC,getAcceptHeader:()=>eB,getAjaxConfig:()=>jl,getAsCurlString:()=>HC,getAsPowerShellString:()=>JC,getAsWgetString:()=>zC,getUrlArguments:()=>KL,hasAuthenticationCredentials:()=>YC});var cO=typeof global=="object"&&global&&global.Object===Object&&global,Id=cO;var hO=typeof self=="object"&&self&&self.Object===Object&&self,pO=Id||hO||Function("return this")(),Ni=pO;var uO=Ni.Symbol,Sr=uO;var IT=Object.prototype,fO=IT.hasOwnProperty,dO=IT.toString,Yu=Sr?Sr.toStringTag:void 0;function gO(i){var t=fO.call(i,Yu),e=i[Yu];try{i[Yu]=void 0;var o=!0}catch{}var n=dO.call(i);return o&&(t?i[Yu]=e:delete i[Yu]),n}var AT=gO;var mO=Object.prototype,bO=mO.toString;function wO(i){return bO.call(i)}var NT=wO;var xO="[object Null]",vO="[object Undefined]",RT=Sr?Sr.toStringTag:void 0;function yO(i){return i==null?i===void 0?vO:xO:RT&&RT in Object(i)?AT(i):NT(i)}var bo=yO;function EO(i){return i!=null&&typeof i=="object"}var Lr=EO;var CO="[object Symbol]";function IO(i){return typeof i=="symbol"||Lr(i)&&bo(i)==CO}var cs=IO;function AO(i,t){for(var e=-1,o=i==null?0:i.length,n=Array(o);++e<o;)n[e]=t(i[e],e,i);return n}var rh=AO;var NO=Array.isArray,Jt=NO;var RO=1/0,TT=Sr?Sr.prototype:void 0,ST=TT?TT.toString:void 0;function LT(i){if(typeof i=="string")return i;if(Jt(i))return rh(i,LT)+"";if(cs(i))return ST?ST.call(i):"";var t=i+"";return t=="0"&&1/i==-RO?"-0":t}var BT=LT;var TO=/\s/;function SO(i){for(var t=i.length;t--&&TO.test(i.charAt(t)););return t}var kT=SO;var LO=/^\s+/;function BO(i){return i&&i.slice(0,kT(i)+1).replace(LO,"")}var VT=BO;function kO(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}var ki=kO;var FT=NaN,VO=/^[-+]0x[0-9a-f]+$/i,FO=/^0b[01]+$/i,UO=/^0o[0-7]+$/i,_O=parseInt;function OO(i){if(typeof i=="number")return i;if(cs(i))return FT;if(ki(i)){var t=typeof i.valueOf=="function"?i.valueOf():i;i=ki(t)?t+"":t}if(typeof i!="string")return i===0?i:+i;i=VT(i);var e=FO.test(i);return e||UO.test(i)?_O(i.slice(2),e?2:8):VO.test(i)?FT:+i}var UT=OO;var _T=1/0,GO=17976931348623157e292;function ZO(i){if(!i)return i===0?i:0;if(i=UT(i),i===_T||i===-_T){var t=i<0?-1:1;return t*GO}return i===i?i:0}var OT=ZO;function MO(i){var t=OT(i),e=t%1;return t===t?e?t-e:t:0}var GT=MO;function WO(i){return i}var ua=WO;var DO="[object AsyncFunction]",PO="[object Function]",QO="[object GeneratorFunction]",XO="[object Proxy]";function YO(i){if(!ki(i))return!1;var t=bo(i);return t==PO||t==QO||t==DO||t==XO}var zt=YO;var HO=Ni["__core-js_shared__"],Ad=HO;var ZT=function(){var i=/[^.]+$/.exec(Ad&&Ad.keys&&Ad.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function JO(i){return!!ZT&&ZT in i}var MT=JO;var zO=Function.prototype,jO=zO.toString;function $O(i){if(i!=null){try{return jO.call(i)}catch{}try{return i+""}catch{}}return""}var vn=$O;var qO=/[\\^$.*+?()[\]{}|]/g,KO=/^\[object .+?Constructor\]$/,eG=Function.prototype,tG=Object.prototype,iG=eG.toString,rG=tG.hasOwnProperty,oG=RegExp("^"+iG.call(rG).replace(qO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sG(i){if(!ki(i)||MT(i))return!1;var t=zt(i)?oG:KO;return t.test(vn(i))}var WT=sG;function nG(i,t){return i?.[t]}var DT=nG;function aG(i,t){var e=DT(i,t);return WT(e)?e:void 0}var Hr=aG;var lG=Hr(Ni,"WeakMap"),Nd=lG;var PT=Object.create,cG=function(){function i(){}return function(t){if(!ki(t))return{};if(PT)return PT(t);i.prototype=t;var e=new i;return i.prototype=void 0,e}}(),QT=cG;function hG(i,t,e){switch(e.length){case 0:return i.call(t);case 1:return i.call(t,e[0]);case 2:return i.call(t,e[0],e[1]);case 3:return i.call(t,e[0],e[1],e[2])}return i.apply(t,e)}var XT=hG;function pG(i,t){var e=-1,o=i.length;for(t||(t=Array(o));++e<o;)t[e]=i[e];return t}var YT=pG;var uG=800,fG=16,dG=Date.now;function gG(i){var t=0,e=0;return function(){var o=dG(),n=fG-(o-e);if(e=o,n>0){if(++t>=uG)return arguments[0]}else t=0;return i.apply(void 0,arguments)}}var HT=gG;function mG(i){return function(){return i}}var JT=mG;var bG=function(){try{var i=Hr(Object,"defineProperty");return i({},"",{}),i}catch{}}(),oh=bG;var wG=oh?function(i,t){return oh(i,"toString",{configurable:!0,enumerable:!1,value:JT(t),writable:!0})}:ua,zT=wG;var xG=HT(zT),jT=xG;var vG=9007199254740991,yG=/^(?:0|[1-9]\d*)$/;function EG(i,t){var e=typeof i;return t=t??vG,!!t&&(e=="number"||e!="symbol"&&yG.test(i))&&i>-1&&i%1==0&&i<t}var sh=EG;function CG(i,t,e){t=="__proto__"&&oh?oh(i,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[t]=e}var nh=CG;function IG(i,t){return i===t||i!==i&&t!==t}var _s=IG;var AG=Object.prototype,NG=AG.hasOwnProperty;function RG(i,t,e){var o=i[t];(!(NG.call(i,t)&&_s(o,e))||e===void 0&&!(t in i))&&nh(i,t,e)}var $T=RG;function TG(i,t,e,o){var n=!e;e||(e={});for(var c=-1,g=t.length;++c<g;){var w=t[c],y=o?o(e[w],i[w],w,e,i):void 0;y===void 0&&(y=i[w]),n?nh(e,w,y):$T(e,w,y)}return e}var qT=TG;var KT=Math.max;function SG(i,t,e){return t=KT(t===void 0?i.length-1:t,0),function(){for(var o=arguments,n=-1,c=KT(o.length-t,0),g=Array(c);++n<c;)g[n]=o[t+n];n=-1;for(var w=Array(t+1);++n<t;)w[n]=o[n];return w[t]=e(g),XT(i,this,w)}}var eS=SG;function LG(i,t){return jT(eS(i,t,ua),i+"")}var Rd=LG;var BG=9007199254740991;function kG(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=BG}var ah=kG;function VG(i){return i!=null&&ah(i.length)&&!zt(i)}var So=VG;function FG(i,t,e){if(!ki(e))return!1;var o=typeof t;return(o=="number"?So(e)&&sh(t,e.length):o=="string"&&t in e)?_s(e[t],i):!1}var Hu=FG;function UG(i){return Rd(function(t,e){var o=-1,n=e.length,c=n>1?e[n-1]:void 0,g=n>2?e[2]:void 0;for(c=i.length>3&&typeof c=="function"?(n--,c):void 0,g&&Hu(e[0],e[1],g)&&(c=n<3?void 0:c,n=1),t=Object(t);++o<n;){var w=e[o];w&&i(t,w,o,c)}return t})}var Td=UG;var _G=Object.prototype;function OG(i){var t=i&&i.constructor,e=typeof t=="function"&&t.prototype||_G;return i===e}var lh=OG;function GG(i,t){for(var e=-1,o=Array(i);++e<i;)o[e]=t(e);return o}var tS=GG;var ZG="[object Arguments]";function MG(i){return Lr(i)&&bo(i)==ZG}var VC=MG;var iS=Object.prototype,WG=iS.hasOwnProperty,DG=iS.propertyIsEnumerable,PG=VC(function(){return arguments}())?VC:function(i){return Lr(i)&&WG.call(i,"callee")&&!DG.call(i,"callee")},yn=PG;function QG(){return!1}var rS=QG;var nS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,oS=nS&&typeof module=="object"&&module&&!module.nodeType&&module,XG=oS&&oS.exports===nS,sS=XG?Ni.Buffer:void 0,YG=sS?sS.isBuffer:void 0,HG=YG||rS,Xl=HG;var JG="[object Arguments]",zG="[object Array]",jG="[object Boolean]",$G="[object Date]",qG="[object Error]",KG="[object Function]",eZ="[object Map]",tZ="[object Number]",iZ="[object Object]",rZ="[object RegExp]",oZ="[object Set]",sZ="[object String]",nZ="[object WeakMap]",aZ="[object ArrayBuffer]",lZ="[object DataView]",cZ="[object Float32Array]",hZ="[object Float64Array]",pZ="[object Int8Array]",uZ="[object Int16Array]",fZ="[object Int32Array]",dZ="[object Uint8Array]",gZ="[object Uint8ClampedArray]",mZ="[object Uint16Array]",bZ="[object Uint32Array]",Wt={};Wt[cZ]=Wt[hZ]=Wt[pZ]=Wt[uZ]=Wt[fZ]=Wt[dZ]=Wt[gZ]=Wt[mZ]=Wt[bZ]=!0;Wt[JG]=Wt[zG]=Wt[aZ]=Wt[jG]=Wt[lZ]=Wt[$G]=Wt[qG]=Wt[KG]=Wt[eZ]=Wt[tZ]=Wt[iZ]=Wt[rZ]=Wt[oZ]=Wt[sZ]=Wt[nZ]=!1;function wZ(i){return Lr(i)&&ah(i.length)&&!!Wt[bo(i)]}var aS=wZ;function xZ(i){return function(t){return i(t)}}var Sd=xZ;var lS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ju=lS&&typeof module=="object"&&module&&!module.nodeType&&module,vZ=Ju&&Ju.exports===lS,FC=vZ&&Id.process,yZ=function(){try{var i=Ju&&Ju.require&&Ju.require("util").types;return i||FC&&FC.binding&&FC.binding("util")}catch{}}(),UC=yZ;var cS=UC&&UC.isTypedArray,EZ=cS?Sd(cS):aS,ch=EZ;var CZ=Object.prototype,IZ=CZ.hasOwnProperty;function AZ(i,t){var e=Jt(i),o=!e&&yn(i),n=!e&&!o&&Xl(i),c=!e&&!o&&!n&&ch(i),g=e||o||n||c,w=g?tS(i.length,String):[],y=w.length;for(var A in i)(t||IZ.call(i,A))&&!(g&&(A=="length"||n&&(A=="offset"||A=="parent")||c&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||sh(A,y)))&&w.push(A);return w}var Ld=AZ;function NZ(i,t){return function(e){return i(t(e))}}var Bd=NZ;var RZ=Bd(Object.keys,Object),hS=RZ;var TZ=Object.prototype,SZ=TZ.hasOwnProperty;function LZ(i){if(!lh(i))return hS(i);var t=[];for(var e in Object(i))SZ.call(i,e)&&e!="constructor"&&t.push(e);return t}var pS=LZ;function BZ(i){return So(i)?Ld(i):pS(i)}var hh=BZ;function kZ(i){var t=[];if(i!=null)for(var e in Object(i))t.push(e);return t}var uS=kZ;var VZ=Object.prototype,FZ=VZ.hasOwnProperty;function UZ(i){if(!ki(i))return uS(i);var t=lh(i),e=[];for(var o in i)o=="constructor"&&(t||!FZ.call(i,o))||e.push(o);return e}var fS=UZ;function _Z(i){return So(i)?Ld(i,!0):fS(i)}var kd=_Z;var OZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GZ=/^\w*$/;function ZZ(i,t){if(Jt(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||cs(i)?!0:GZ.test(i)||!OZ.test(i)||t!=null&&i in Object(t)}var ph=ZZ;var MZ=Hr(Object,"create"),En=MZ;function WZ(){this.__data__=En?En(null):{},this.size=0}var dS=WZ;function DZ(i){var t=this.has(i)&&delete this.__data__[i];return this.size-=t?1:0,t}var gS=DZ;var PZ="__lodash_hash_undefined__",QZ=Object.prototype,XZ=QZ.hasOwnProperty;function YZ(i){var t=this.__data__;if(En){var e=t[i];return e===PZ?void 0:e}return XZ.call(t,i)?t[i]:void 0}var mS=YZ;var HZ=Object.prototype,JZ=HZ.hasOwnProperty;function zZ(i){var t=this.__data__;return En?t[i]!==void 0:JZ.call(t,i)}var bS=zZ;var jZ="__lodash_hash_undefined__";function $Z(i,t){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=En&&t===void 0?jZ:t,this}var wS=$Z;function uh(i){var t=-1,e=i==null?0:i.length;for(this.clear();++t<e;){var o=i[t];this.set(o[0],o[1])}}uh.prototype.clear=dS;uh.prototype.delete=gS;uh.prototype.get=mS;uh.prototype.has=bS;uh.prototype.set=wS;var _C=uh;function qZ(){this.__data__=[],this.size=0}var xS=qZ;function KZ(i,t){for(var e=i.length;e--;)if(_s(i[e][0],t))return e;return-1}var fa=KZ;var eM=Array.prototype,tM=eM.splice;function iM(i){var t=this.__data__,e=fa(t,i);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():tM.call(t,e,1),--this.size,!0}var vS=iM;function rM(i){var t=this.__data__,e=fa(t,i);return e<0?void 0:t[e][1]}var yS=rM;function oM(i){return fa(this.__data__,i)>-1}var ES=oM;function sM(i,t){var e=this.__data__,o=fa(e,i);return o<0?(++this.size,e.push([i,t])):e[o][1]=t,this}var CS=sM;function fh(i){var t=-1,e=i==null?0:i.length;for(this.clear();++t<e;){var o=i[t];this.set(o[0],o[1])}}fh.prototype.clear=xS;fh.prototype.delete=vS;fh.prototype.get=yS;fh.prototype.has=ES;fh.prototype.set=CS;var da=fh;var nM=Hr(Ni,"Map"),ga=nM;function aM(){this.size=0,this.__data__={hash:new _C,map:new(ga||da),string:new _C}}var IS=aM;function lM(i){var t=typeof i;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?i!=="__proto__":i===null}var AS=lM;function cM(i,t){var e=i.__data__;return AS(t)?e[typeof t=="string"?"string":"hash"]:e.map}var ma=cM;function hM(i){var t=ma(this,i).delete(i);return this.size-=t?1:0,t}var NS=hM;function pM(i){return ma(this,i).get(i)}var RS=pM;function uM(i){return ma(this,i).has(i)}var TS=uM;function fM(i,t){var e=ma(this,i),o=e.size;return e.set(i,t),this.size+=e.size==o?0:1,this}var SS=fM;function dh(i){var t=-1,e=i==null?0:i.length;for(this.clear();++t<e;){var o=i[t];this.set(o[0],o[1])}}dh.prototype.clear=IS;dh.prototype.delete=NS;dh.prototype.get=RS;dh.prototype.has=TS;dh.prototype.set=SS;var Yl=dh;var dM="Expected a function";function OC(i,t){if(typeof i!="function"||t!=null&&typeof t!="function")throw new TypeError(dM);var e=function(){var o=arguments,n=t?t.apply(this,o):o[0],c=e.cache;if(c.has(n))return c.get(n);var g=i.apply(this,o);return e.cache=c.set(n,g)||c,g};return e.cache=new(OC.Cache||Yl),e}OC.Cache=Yl;var LS=OC;var gM=500;function mM(i){var t=LS(i,function(o){return e.size===gM&&e.clear(),o}),e=t.cache;return t}var BS=mM;var bM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wM=/\\(\\)?/g,xM=BS(function(i){var t=[];return i.charCodeAt(0)===46&&t.push(""),i.replace(bM,function(e,o,n,c){t.push(n?c.replace(wM,"$1"):o||e)}),t}),kS=xM;function vM(i){return i==null?"":BT(i)}var Vd=vM;function yM(i,t){return Jt(i)?i:ph(i,t)?[i]:kS(Vd(i))}var Fd=yM;var EM=1/0;function CM(i){if(typeof i=="string"||cs(i))return i;var t=i+"";return t=="0"&&1/i==-EM?"-0":t}var ba=CM;function IM(i,t){t=Fd(t,i);for(var e=0,o=t.length;i!=null&&e<o;)i=i[ba(t[e++])];return e&&e==o?i:void 0}var gh=IM;function AM(i,t,e){var o=i==null?void 0:gh(i,t);return o===void 0?e:o}var VS=AM;function NM(i,t){for(var e=-1,o=t.length,n=i.length;++e<o;)i[n+e]=t[e];return i}var Ud=NM;var FS=Sr?Sr.isConcatSpreadable:void 0;function RM(i){return Jt(i)||yn(i)||!!(FS&&i&&i[FS])}var US=RM;function _S(i,t,e,o,n){var c=-1,g=i.length;for(e||(e=US),n||(n=[]);++c<g;){var w=i[c];t>0&&e(w)?t>1?_S(w,t-1,e,o,n):Ud(n,w):o||(n[n.length]=w)}return n}var OS=_S;var TM=Bd(Object.getPrototypeOf,Object),_d=TM;var SM="[object Object]",LM=Function.prototype,BM=Object.prototype,GS=LM.toString,kM=BM.hasOwnProperty,VM=GS.call(Object);function FM(i){if(!Lr(i)||bo(i)!=SM)return!1;var t=_d(i);if(t===null)return!0;var e=kM.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&GS.call(e)==VM}var ZS=FM;function UM(i,t,e){var o=-1,n=i.length;t<0&&(t=-t>n?0:n+t),e=e>n?n:e,e<0&&(e+=n),n=t>e?0:e-t>>>0,t>>>=0;for(var c=Array(n);++o<n;)c[o]=i[o+t];return c}var MS=UM;function _M(i){return function(t){return i?.[t]}}var WS=_M;function OM(){this.__data__=new da,this.size=0}var DS=OM;function GM(i){var t=this.__data__,e=t.delete(i);return this.size=t.size,e}var PS=GM;function ZM(i){return this.__data__.get(i)}var QS=ZM;function MM(i){return this.__data__.has(i)}var XS=MM;var WM=200;function DM(i,t){var e=this.__data__;if(e instanceof da){var o=e.__data__;if(!ga||o.length<WM-1)return o.push([i,t]),this.size=++e.size,this;e=this.__data__=new Yl(o)}return e.set(i,t),this.size=e.size,this}var YS=DM;function mh(i){var t=this.__data__=new da(i);this.size=t.size}mh.prototype.clear=DS;mh.prototype.delete=PS;mh.prototype.get=QS;mh.prototype.has=XS;mh.prototype.set=YS;var wa=mh;var jS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,HS=jS&&typeof module=="object"&&module&&!module.nodeType&&module,PM=HS&&HS.exports===jS,JS=PM?Ni.Buffer:void 0,zS=JS?JS.allocUnsafe:void 0;function QM(i,t){if(t)return i.slice();var e=i.length,o=zS?zS(e):new i.constructor(e);return i.copy(o),o}var $S=QM;function XM(i,t){for(var e=-1,o=i==null?0:i.length,n=0,c=[];++e<o;){var g=i[e];t(g,e,i)&&(c[n++]=g)}return c}var qS=XM;function YM(){return[]}var KS=YM;var HM=Object.prototype,JM=HM.propertyIsEnumerable,eL=Object.getOwnPropertySymbols,zM=eL?function(i){return i==null?[]:(i=Object(i),qS(eL(i),function(t){return JM.call(i,t)}))}:KS,tL=zM;function jM(i,t,e){var o=t(i);return Jt(i)?o:Ud(o,e(i))}var iL=jM;function $M(i){return iL(i,hh,tL)}var GC=$M;var qM=Hr(Ni,"DataView"),Od=qM;var KM=Hr(Ni,"Promise"),Gd=KM;var eW=Hr(Ni,"Set"),Zd=eW;var rL="[object Map]",tW="[object Object]",oL="[object Promise]",sL="[object Set]",nL="[object WeakMap]",aL="[object DataView]",iW=vn(Od),rW=vn(ga),oW=vn(Gd),sW=vn(Zd),nW=vn(Nd),Hl=bo;(Od&&Hl(new Od(new ArrayBuffer(1)))!=aL||ga&&Hl(new ga)!=rL||Gd&&Hl(Gd.resolve())!=oL||Zd&&Hl(new Zd)!=sL||Nd&&Hl(new Nd)!=nL)&&(Hl=function(i){var t=bo(i),e=t==tW?i.constructor:void 0,o=e?vn(e):"";if(o)switch(o){case iW:return aL;case rW:return rL;case oW:return oL;case sW:return sL;case nW:return nL}return t});var ZC=Hl;var aW=Ni.Uint8Array,bh=aW;function lW(i){var t=new i.constructor(i.byteLength);return new bh(t).set(new bh(i)),t}var lL=lW;function cW(i,t){var e=t?lL(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var cL=cW;function hW(i){return typeof i.constructor=="function"&&!lh(i)?QT(_d(i)):{}}var hL=hW;var pW="__lodash_hash_undefined__";function uW(i){return this.__data__.set(i,pW),this}var pL=uW;function fW(i){return this.__data__.has(i)}var uL=fW;function Md(i){var t=-1,e=i==null?0:i.length;for(this.__data__=new Yl;++t<e;)this.add(i[t])}Md.prototype.add=Md.prototype.push=pL;Md.prototype.has=uL;var fL=Md;function dW(i,t){for(var e=-1,o=i==null?0:i.length;++e<o;)if(t(i[e],e,i))return!0;return!1}var dL=dW;function gW(i,t){return i.has(t)}var gL=gW;var mW=1,bW=2;function wW(i,t,e,o,n,c){var g=e&mW,w=i.length,y=t.length;if(w!=y&&!(g&&y>w))return!1;var A=c.get(i),R=c.get(t);if(A&&R)return A==t&&R==i;var T=-1,F=!0,k=e&bW?new fL:void 0;for(c.set(i,t),c.set(t,i);++T<w;){var G=i[T],W=t[T];if(o)var P=g?o(W,G,T,t,i,c):o(G,W,T,i,t,c);if(P!==void 0){if(P)continue;F=!1;break}if(k){if(!dL(t,function(Q,H){if(!gL(k,H)&&(G===Q||n(G,Q,e,o,c)))return k.push(H)})){F=!1;break}}else if(!(G===W||n(G,W,e,o,c))){F=!1;break}}return c.delete(i),c.delete(t),F}var Wd=wW;function xW(i){var t=-1,e=Array(i.size);return i.forEach(function(o,n){e[++t]=[n,o]}),e}var mL=xW;function vW(i){var t=-1,e=Array(i.size);return i.forEach(function(o){e[++t]=o}),e}var bL=vW;var yW=1,EW=2,CW="[object Boolean]",IW="[object Date]",AW="[object Error]",NW="[object Map]",RW="[object Number]",TW="[object RegExp]",SW="[object Set]",LW="[object String]",BW="[object Symbol]",kW="[object ArrayBuffer]",VW="[object DataView]",wL=Sr?Sr.prototype:void 0,MC=wL?wL.valueOf:void 0;function FW(i,t,e,o,n,c,g){switch(e){case VW:if(i.byteLength!=t.byteLength||i.byteOffset!=t.byteOffset)return!1;i=i.buffer,t=t.buffer;case kW:return!(i.byteLength!=t.byteLength||!c(new bh(i),new bh(t)));case CW:case IW:case RW:return _s(+i,+t);case AW:return i.name==t.name&&i.message==t.message;case TW:case LW:return i==t+"";case NW:var w=mL;case SW:var y=o&yW;if(w||(w=bL),i.size!=t.size&&!y)return!1;var A=g.get(i);if(A)return A==t;o|=EW,g.set(i,t);var R=Wd(w(i),w(t),o,n,c,g);return g.delete(i),R;case BW:if(MC)return MC.call(i)==MC.call(t)}return!1}var xL=FW;var UW=1,_W=Object.prototype,OW=_W.hasOwnProperty;function GW(i,t,e,o,n,c){var g=e&UW,w=GC(i),y=w.length,A=GC(t),R=A.length;if(y!=R&&!g)return!1;for(var T=y;T--;){var F=w[T];if(!(g?F in t:OW.call(t,F)))return!1}var k=c.get(i),G=c.get(t);if(k&&G)return k==t&&G==i;var W=!0;c.set(i,t),c.set(t,i);for(var P=g;++T<y;){F=w[T];var Q=i[F],H=t[F];if(o)var re=g?o(H,Q,F,t,i,c):o(Q,H,F,i,t,c);if(!(re===void 0?Q===H||n(Q,H,e,o,c):re)){W=!1;break}P||(P=F=="constructor")}if(W&&!P){var K=i.constructor,J=t.constructor;K!=J&&"constructor"in i&&"constructor"in t&&!(typeof K=="function"&&K instanceof K&&typeof J=="function"&&J instanceof J)&&(W=!1)}return c.delete(i),c.delete(t),W}var vL=GW;var ZW=1,yL="[object Arguments]",EL="[object Array]",Dd="[object Object]",MW=Object.prototype,CL=MW.hasOwnProperty;function WW(i,t,e,o,n,c){var g=Jt(i),w=Jt(t),y=g?EL:ZC(i),A=w?EL:ZC(t);y=y==yL?Dd:y,A=A==yL?Dd:A;var R=y==Dd,T=A==Dd,F=y==A;if(F&&Xl(i)){if(!Xl(t))return!1;g=!0,R=!1}if(F&&!R)return c||(c=new wa),g||ch(i)?Wd(i,t,e,o,n,c):xL(i,t,y,e,o,n,c);if(!(e&ZW)){var k=R&&CL.call(i,"__wrapped__"),G=T&&CL.call(t,"__wrapped__");if(k||G){var W=k?i.value():i,P=G?t.value():t;return c||(c=new wa),n(W,P,e,o,c)}}return F?(c||(c=new wa),vL(i,t,e,o,n,c)):!1}var IL=WW;function AL(i,t,e,o,n){return i===t?!0:i==null||t==null||!Lr(i)&&!Lr(t)?i!==i&&t!==t:IL(i,t,e,o,AL,n)}var Pd=AL;var DW=1,PW=2;function QW(i,t,e,o){var n=e.length,c=n,g=!o;if(i==null)return!c;for(i=Object(i);n--;){var w=e[n];if(g&&w[2]?w[1]!==i[w[0]]:!(w[0]in i))return!1}for(;++n<c;){w=e[n];var y=w[0],A=i[y],R=w[1];if(g&&w[2]){if(A===void 0&&!(y in i))return!1}else{var T=new wa;if(o)var F=o(A,R,y,i,t,T);if(!(F===void 0?Pd(R,A,DW|PW,o,T):F))return!1}}return!0}var NL=QW;function XW(i){return i===i&&!ki(i)}var Qd=XW;function YW(i){for(var t=hh(i),e=t.length;e--;){var o=t[e],n=i[o];t[e]=[o,n,Qd(n)]}return t}var RL=YW;function HW(i,t){return function(e){return e==null?!1:e[i]===t&&(t!==void 0||i in Object(e))}}var Xd=HW;function JW(i){var t=RL(i);return t.length==1&&t[0][2]?Xd(t[0][0],t[0][1]):function(e){return e===i||NL(e,i,t)}}var TL=JW;function zW(i,t){return i!=null&&t in Object(i)}var SL=zW;function jW(i,t,e){t=Fd(t,i);for(var o=-1,n=t.length,c=!1;++o<n;){var g=ba(t[o]);if(!(c=i!=null&&e(i,g)))break;i=i[g]}return c||++o!=n?c:(n=i==null?0:i.length,!!n&&ah(n)&&sh(g,n)&&(Jt(i)||yn(i)))}var LL=jW;function $W(i,t){return i!=null&&LL(i,t,SL)}var BL=$W;var qW=1,KW=2;function eD(i,t){return ph(i)&&Qd(t)?Xd(ba(i),t):function(e){var o=VS(e,i);return o===void 0&&o===t?BL(e,i):Pd(t,o,qW|KW)}}var kL=eD;function tD(i){return function(t){return t?.[i]}}var VL=tD;function iD(i){return function(t){return gh(t,i)}}var FL=iD;function rD(i){return ph(i)?VL(ba(i)):FL(i)}var UL=rD;function oD(i){return typeof i=="function"?i:i==null?ua:typeof i=="object"?Jt(i)?kL(i[0],i[1]):TL(i):UL(i)}var _L=oD;function sD(i){return function(t,e,o){for(var n=-1,c=Object(t),g=o(t),w=g.length;w--;){var y=g[i?w:++n];if(e(c[y],y,c)===!1)break}return t}}var OL=sD;var nD=OL(),Yd=nD;function aD(i,t){return i&&Yd(i,t,hh)}var GL=aD;function lD(i,t){return function(e,o){if(e==null)return e;if(!So(e))return i(e,o);for(var n=e.length,c=t?n:-1,g=Object(e);(t?c--:++c<n)&&o(g[c],c,g)!==!1;);return e}}var ZL=lD;var cD=ZL(GL),ML=cD;function hD(i,t,e){(e!==void 0&&!_s(i[t],e)||e===void 0&&!(t in i))&&nh(i,t,e)}var zu=hD;function pD(i){return Lr(i)&&So(i)}var WL=pD;function uD(i,t){if(!(t==="constructor"&&typeof i[t]=="function")&&t!="__proto__")return i[t]}var ju=uD;function fD(i){return qT(i,kd(i))}var DL=fD;function dD(i,t,e,o,n,c,g){var w=ju(i,e),y=ju(t,e),A=g.get(y);if(A){zu(i,e,A);return}var R=c?c(w,y,e+"",i,t,g):void 0,T=R===void 0;if(T){var F=Jt(y),k=!F&&Xl(y),G=!F&&!k&&ch(y);R=y,F||k||G?Jt(w)?R=w:WL(w)?R=YT(w):k?(T=!1,R=$S(y,!0)):G?(T=!1,R=cL(y,!0)):R=[]:ZS(y)||yn(y)?(R=w,yn(w)?R=DL(w):(!ki(w)||zt(w))&&(R=hL(y))):T=!1}T&&(g.set(y,R),n(R,y,o,c,g),g.delete(y)),zu(i,e,R)}var PL=dD;function QL(i,t,e,o,n){i!==t&&Yd(t,function(c,g){if(n||(n=new wa),ki(c))PL(i,t,g,e,QL,o,n);else{var w=o?o(ju(i,g),c,g+"",i,t,n):void 0;w===void 0&&(w=c),zu(i,g,w)}},kd)}var Hd=QL;var gD=Td(function(i,t,e,o){Hd(i,t,e,o)}),WC=gD;var mD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bD=WS(mD),XL=bD;var YL=/[&<>"']/g,wD=RegExp(YL.source);function xD(i){return i=Vd(i),i&&wD.test(i)?i.replace(YL,XL):i}var $u=xD;function vD(i,t){var e=-1,o=So(i)?Array(i.length):[];return ML(i,function(n,c,g){o[++e]=t(n,c,g)}),o}var HL=vD;var yD=Td(function(i,t,e){Hd(i,t,e)}),Jd=yD;function ED(i,t){var e=i.length;for(i.sort(t);e--;)i[e]=i[e].value;return i}var JL=ED;function CD(i,t){if(i!==t){var e=i!==void 0,o=i===null,n=i===i,c=cs(i),g=t!==void 0,w=t===null,y=t===t,A=cs(t);if(!w&&!A&&!c&&i>t||c&&g&&y&&!w&&!A||o&&g&&y||!e&&y||!n)return 1;if(!o&&!c&&!A&&i<t||A&&e&&n&&!o&&!c||w&&e&&n||!g&&n||!y)return-1}return 0}var zL=CD;function ID(i,t,e){for(var o=-1,n=i.criteria,c=t.criteria,g=n.length,w=e.length;++o<g;){var y=zL(n[o],c[o]);if(y){if(o>=w)return y;var A=e[o];return y*(A=="desc"?-1:1)}}return i.index-t.index}var jL=ID;function AD(i,t,e){t.length?t=rh(t,function(c){return Jt(c)?function(g){return gh(g,c.length===1?c[0]:c)}:c}):t=[ua];var o=-1;t=rh(t,Sd(_L));var n=HL(i,function(c,g,w){var y=rh(t,function(A){return A(c)});return{criteria:y,index:++o,value:c}});return JL(n,function(c,g){return jL(c,g,e)})}var $L=AD;var ND=Rd(function(i,t){if(i==null)return[];var e=t.length;return e>1&&Hu(i,t[0],t[1])?t=[]:e>2&&Hu(t[0],t[1],t[2])&&(t=[t[0]]),$L(i,OS(t,1),[])}),DC=ND;function RD(i,t,e){return i&&i.length?(t=e||t===void 0?1:GT(t),MS(i,0,t<0?0:t)):[]}var PC=RD;var Os=Lc(Cd());function zl(i,t){return zt(t)?t(i):t??{}}function TD(i,t){let e=`${i}:${t}`;return`Basic ${qL(e)}`}function qL(i){if(typeof window<"u"&&typeof window.TextEncoder<"u"){let t=new window.TextEncoder().encode(i),e="";for(let o=0;o<t.length;o++)e+=String.fromCharCode(t[o]);return btoa(e)}else if(typeof TextEncoder<"u"){let t=new TextEncoder().encode(i),e="";for(let o=0;o<t.length;o++)e+=String.fromCharCode(t[o]);return btoa(e)}else try{return btoa(i)}catch{throw new Error("Basic authentication credentials contain unsupported Unicode characters. Please use a modern browser or restrict credentials to Latin1 characters.")}}function jl(i,t={}){let e=Jd({},zl(i,i.config.requestConfig),zl(i,t));if(!e.endpoint||e.endpoint.length==0)return;var o=i.getQueryMode();let n=zt(e.endpoint)?e.endpoint(i):e.endpoint;var c=o=="update"?"POST":zt(e.method)?e.method(i):e.method;let g=zt(e.headers)?e.headers(i):e.headers,w=zt(e.withCredentials)?e.withCredentials(i):e.withCredentials,y={...g},A=!1;try{let R=zt(e.oauth2Auth)?e.oauth2Auth(i):e.oauth2Auth,T=R?.idToken||R?.accessToken,F=T?T.trim():"";R&&F.length>0&&(A=!0,y.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping OAuth 2.0 Auth header to avoid overwrite."):y.Authorization=`Bearer ${F}`);let k=zt(e.bearerAuth)?e.bearerAuth(i):e.bearerAuth,G=k&&k.token?k.token.trim():"";k&&G.length>0&&(A=!0,y.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Bearer Auth header to avoid overwrite."):y.Authorization=`Bearer ${G}`);let W=zt(e.apiKeyAuth)?e.apiKeyAuth(i):e.apiKeyAuth,P=W&&W.headerName?W.headerName.trim():"",Q=W&&W.apiKey?W.apiKey.trim():"";W&&P.length>0&&Q.length>0&&(A=!0,y[P]!==void 0?console.warn(`Header "${P}" already exists in request headers; skipping API Key header to avoid overwrite.`):y[P]=Q);let H=zt(e.basicAuth)?e.basicAuth(i):e.basicAuth;H&&H.username&&H.password&&(A=!0,y.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Basic Auth header to avoid overwrite."):y.Authorization=TD(H.username,H.password))}catch(R){console.warn("Failed to configure authentication:",R)}return A&&(w=!0),{reqMethod:c,url:n,args:KL(i,e),headers:y,accept:eB(i,e),withCredentials:w??!1}}async function QC(i,t,e){let o=Date.now(),n=!!e?.silent;try{n||i.emit("queryBefore",i,t);let c=jl(i,t);if(!c)return;let g=new AbortController;e?.signal&&(e.signal.aborted?g.abort():e.signal.addEventListener("abort",()=>g.abort(),{once:!0}));let w=e?.customAccept||c.accept,y={method:c.reqMethod,headers:{Accept:w,...c.headers||{}},credentials:c.withCredentials?"include":"same-origin",signal:g.signal,mode:"cors"};y?.headers&&c.reqMethod==="POST"&&(y.headers["Content-Type"]="application/x-www-form-urlencoded");let A=new URLSearchParams,R=(P,Q=[])=>{for(let H in P)if(!Q.includes(H)){let re=P[H];Array.isArray(re)?re.forEach(K=>A.append(H,K)):A.append(H,re)}},T=P=>P.query!==void 0?"query":P.update!==void 0?"update":"query";if(e?.customQuery?(A.append("query",e.customQuery),R(c.args,["query","update"])):R(c.args),c.reqMethod==="POST")y.body=A.toString();else{let P=new URL(c.url);A.forEach((Q,H)=>{P.searchParams.append(H,Q)}),c.url=P.toString()}let F=new Request(c.url,y);n||i.emit("query",F,g);let k=await fetch(F),G=await k.text(),W={ok:k.ok,status:k.status,statusText:k.statusText,headers:k.headers,type:k.type,content:G,data:G,json:async()=>JSON.parse(G),text:async()=>G};if(!k.ok){let P=new Error(W.content||k.statusText);throw P.status=k.status,P.statusText=k.statusText,P.response=W,P}return n||(i.emit("queryResponse",W,Date.now()-o),i.emit("queryResults",W.content,Date.now()-o)),W}catch(c){if(!(c instanceof Error&&c.message==="Aborted"))if(c instanceof Error&&!("status"in c)){let g=c;(c.message.includes("Failed to fetch")||c.message.includes("NetworkError"))&&(g.message=`${c.message}. The server may have returned an error response (check browser dev tools), but CORS headers are preventing JavaScript from accessing it. Ensure the endpoint returns proper CORS headers even for error responses (Access-Control-Allow-Origin, etc.).`),n||i.emit("queryResponse",g,Date.now()-o)}else n||i.emit("queryResponse",c,Date.now()-o);throw n||i.emit("error",c),c}}function KL(i,t){var e=i.getQueryMode(),o={};let n=zl(i,t);var c=zt(n.queryArgument)?n.queryArgument(i):n.queryArgument;c||(c=i.getQueryMode()),o[c]=n.adjustQueryBeforeRequest?n.adjustQueryBeforeRequest(i):i.getValue();let g=zt(n.namedGraphs)?n.namedGraphs(i):n.namedGraphs;if(g&&g.length>0){let A=e==="query"?"named-graph-uri":"using-named-graph-uri ";o[A]=g}let w=zt(n.defaultGraphs)?n.defaultGraphs(i):n.defaultGraphs;if(w&&w.length>0){let A=e=="query"?"default-graph-uri":"using-graph-uri ";o[A]=w}let y=zt(n.args)?n.args(i):n.args;return y&&y.length>0&&Jd(o,y.reduce((A,R)=>(A[R.name]?A[R.name].push(R.value):A[R.name]=[R.value],A),{})),o}function eB(i,t){let e=zl(i,t);var o=null;if(i.getQueryMode()=="update")o=zt(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var n=i.getQueryType();n=="DESCRIBE"||n=="CONSTRUCT"?o=zt(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:o=zt(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return o}function XC(i){if(i.indexOf("http")!==0){let t=`${window.location.protocol}//${window.location.host}`;if(i.indexOf("/")===0)t+=i;else{let e=window.location.pathname;if(!e.endsWith("/")){let o=e.lastIndexOf("/");e=o>=0?e.substring(0,o+1):"/"}t+=e+i}return t}return i}function YC(i){if(!i)return!1;if(i.headers&&i.headers.Authorization)return!0;if(i.headers)for(let t in i.headers){let e=t.toLowerCase();if(e.startsWith("x-api-key")||e.startsWith("x-auth-")||e==="apikey"||e==="api-key"||e.endsWith("-token")&&e.startsWith("x-")||e.includes("-auth-")&&e.includes("token"))return!0}return!1}function Br(i){return i.replace(/'/g,"'\\''")}function HC(i,t){let e=jl(i,zl(i,t));if(!e)return"";let o=XC(e.url),n=["curl"];if(e.reqMethod==="GET")o+=`?${Os.stringify(e.args)}`,n.push(`'${Br(o)}'`);else if(e.reqMethod==="POST"){n.push(`'${Br(o)}'`);let c=Os.stringify(e.args);n.push("--data",`'${Br(c)}'`)}else console.warn("Unexpected request-method",e.reqMethod),n.push(`'${Br(o)}'`);n.push("-X",e.reqMethod),e.accept&&n.push("-H",`'Accept: ${Br(e.accept)}'`);for(let c in e.headers)n.push("-H",`'${Br(c)}: ${Br(e.headers[c])}'`);return n.join(` \\
21
+ `)}function Jl(i){return i.replace(/`/g,"``").replace(/"/g,'`"').replace(/\$/g,"`$")}function JC(i,t){let e=jl(i,zl(i,t));if(!e)return"";let o=XC(e.url),n=[],c=e.accept,g="json";c&&(c.includes("text/turtle")||c.includes("application/x-turtle")?g="ttl":c.includes("application/rdf+xml")?g="xml":c.includes("application/n-triples")?g="nt":c.includes("application/ld+json")?g="jsonld":c.includes("text/csv")?g="csv":c.includes("text/tab-separated-values")&&(g="tsv"));let w=[];c&&w.push(` "Accept" = "${Jl(c)}"`);for(let y in e.headers)w.push(` "${Jl(y)}" = "${Jl(e.headers[y])}"`);if(e.reqMethod==="GET")o+=`?${Os.stringify(e.args)}`,n.push("$params = @{"),n.push(` Uri = "${Jl(o)}"`),n.push(' Method = "Get"'),w.length>0&&(n.push(" Headers = @{"),n.push(w.join(`
22
+ `)),n.push(" }")),n.push(` OutFile = "sparql-generated.${g}"`),n.push("}");else if(e.reqMethod==="POST"){let y=e.args.query!==void 0?"query":"update",A=e.args[y],R={};for(let k in e.args)k!=="query"&&k!=="update"&&(R[k]=e.args[k]);if(A){let k=Array.isArray(A)?A[0]:A;n.push(`$${y} = @"`),n.push(k),n.push('"@'),n.push("")}let T,F=`[System.Net.WebUtility]::UrlEncode($${y})`;if(A&&Object.keys(R).length>0){let k=Os.stringify(R);T=`"${y}=$(${F})&${Jl(k)}"`}else if(A)T=`"${y}=$(${F})"`;else{let k=Os.stringify(R);T=`"${Jl(k)}"`}n.push("$params = @{"),n.push(` Uri = "${Jl(o)}"`),n.push(' Method = "Post"'),w.length>0&&(n.push(" Headers = @{"),n.push(w.join(`
23
+ `)),n.push(" }")),n.push(' ContentType = "application/x-www-form-urlencoded"'),n.push(` Body = ${T}`),n.push(` OutFile = "sparql-generated.${g}"`),n.push("}")}else{console.warn("Unexpected request-method for PowerShell",e.reqMethod);let y=Os.stringify(e.args);n.push("$params = @{"),n.push(` Uri = "${o}"`),n.push(` Method = "${e.reqMethod}"`),w.length>0&&(n.push(" Headers = @{"),n.push(w.join(`
24
+ `)),n.push(" }")),y&&(n.push(' ContentType = "application/x-www-form-urlencoded"'),n.push(` Body = "${y.replace(/"/g,'`"')}"`)),n.push(` OutFile = "sparql-generated.${g}"`),n.push("}")}return n.push(""),n.push("Invoke-WebRequest @params"),n.join(`
25
+ `)}function zC(i,t){let e=jl(i,zl(i,t));if(!e)return"";let o=XC(e.url),n=["wget"];if(e.reqMethod==="GET")o+=`?${Os.stringify(e.args)}`,n.push(`'${Br(o)}'`);else if(e.reqMethod==="POST"){n.push(`'${Br(o)}'`);let c=Os.stringify(e.args);n.push("--post-data",`'${Br(c)}'`)}else{console.warn("Unexpected request-method for wget",e.reqMethod),n.push(`'${Br(o)}'`);let c=Os.stringify(e.args);c&&n.push("--post-data",`'${Br(c)}'`)}e.reqMethod!=="GET"&&n.push("--method",e.reqMethod),e.accept&&n.push("--header",`'Accept: ${Br(e.accept)}'`);for(let c in e.headers)n.push("--header",`'${Br(c)}: ${Br(e.headers[c])}'`);return n.push("-O -"),n.join(` \\
26
+ `)}var qu=class i{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(t,e){if(t.length!=0){var o=this,n,c;if(e===void 0&&(e=0),e===t.length){o.words++;return}o.prefixes++,n=t[e],o.children[n]===void 0&&(o.children[n]=new i),c=o.children[n],c.insert(t,e+1)}}remove(t,e){if(t.length!=0){var o=this,n,c;if(e===void 0&&(e=0),o!==void 0){if(e===t.length){o.words--;return}o.prefixes--,n=t[e],c=o.children[n],c.remove(t,e+1)}}}update(t,e){t.length==0||e.length==0||(this.remove(t),this.insert(e))}countWord(t,e){if(t.length==0)return 0;var o=this,n,c,g=0;return e===void 0&&(e=0),e===t.length?o.words:(n=t[e],c=o.children[n],c!==void 0&&(g=c.countWord(t,e+1)),g)}countPrefix(t,e){if(t.length==0)return 0;var o=this,g,n,c=0;if(e===void 0&&(e=0),e===t.length)return o.prefixes;var g=t[e];return n=o.children[g],n!==void 0&&(c=n.countPrefix(t,e+1)),c}find(t){return t.length==0?!1:this.countWord(t)>0}getAllWords(t){var e=this,o,n,c=[];if(t===void 0&&(t=""),e===void 0)return[];e.words>0&&c.push(t);for(o in e.children)e.children.hasOwnProperty(o)&&(n=e.children[o],c=c.concat(n.getAllWords(t+o)));return c}autoComplete(t,e){var o=this,n,c;return t.length==0?e===void 0?o.getAllWords(t):[]:(e===void 0&&(e=0),n=t[e],c=o.children[n],c===void 0?[]:e===t.length-1?c.getAllWords(t):c.autoComplete(t,e+1))}};var IB=Lc(pB());var uB={"*[&&,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"]}},fB=/^(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,dB=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,$d="sparql11",gB=!0;var qC=["ws","comment","variable-3","atom","meta","number","string","string-2","punc","keyword","error","bracket","bracket-level-0","bracket-level-1","bracket-level-2","bracket-level-3","bracket-paren","bracket-mismatch"];function qd(i){return{...i,possibleCurrent:i.possibleCurrent.slice(),possibleNext:i.possibleNext.slice(),stack:i.stack.slice(),variables:{...i.variables},prefixes:{...i.prefixes},constructVariables:{...i.constructVariables},whereVariables:{...i.whereVariables},pendingToken:i.pendingToken?{...i.pendingToken}:void 0,bracketStack:i.bracketStack.map(t=>({...t}))}}function mB(i={}){let t=uB,e='<[^<>"`|{}^\\\0- ]*>',o="[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]",n=o+"|_",c="("+n+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",g="("+n+"|[0-9])("+n+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",w="\\?"+g,y="\\$"+g,A="("+o+")((("+c+")|\\.)*("+c+"))?",R="[0-9A-Fa-f]",k="("+("(%"+R+R+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",G="("+n+"|:|[0-9]|"+k+")(("+c+"|\\.|:|"+k+")*("+c+"|:|"+k+"))?",W="_:("+n+"|[0-9])(("+c+"|\\.)*"+c+")?",P="("+A+")?:",Q=P+G,H="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",re="[eE][\\+-]?[0-9]+",K="[0-9]+",J="[0-9]*\\.[0-9]+",te="(([0-9]+\\.[0-9]*"+re+")|(\\.[0-9]+"+re+")|([0-9]+"+re+"))",ae="\\+"+K,me="\\+"+J,Ee="\\+"+te,Pe="-"+K,Re="-"+J,Ie="-"+te,Ye=`\\\\[tbnrf\\\\"']`,Oe=R+"{4}",de="(\\\\u"+Oe+"|\\\\U00(10|0"+R+")"+Oe+")",ue="'(([^\\x27\\x5C\\x0A\\x0D])|"+Ye+"|"+de+")*'",dt='"(([^\\x22\\x5C\\x0A\\x0D])|'+Ye+"|"+de+')*"',ce={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+Ye+"|"+de+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+Ye+"|"+de+"))*"}};for(let Ve in ce)ce[Ve].COMPLETE=ce[Ve].QUOTES+ce[Ve].CONTENTS+ce[Ve].QUOTES;var Be={};for(let Ve in ce)Be[Ve]={complete:{name:"STRING_LITERAL_LONG_"+Ve,regex:new RegExp("^"+ce[Ve].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Ve,regex:new RegExp("^"+ce[Ve].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Ve,regex:new RegExp("^"+ce[Ve].CONTENTS+ce[Ve].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Ve,regex:new RegExp("^"+ce[Ve].QUOTES),style:"string"}};let qe="[\\x20\\x09\\x0D\\x0A]",Xe="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",ve="("+qe+"|("+Xe+"))*",fe="\\("+ve+"\\)",Le="\\["+ve+"\\]",_e=[{name:"WS",regex:new RegExp("^"+qe+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+Xe),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+w),style:"atom"},{name:"VAR2",regex:new RegExp("^"+y),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+H),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+te),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+J),style:"number"},{name:"INTEGER",regex:new RegExp("^"+K),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+Ee),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+me),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+ae),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Ie),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Re),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+Pe),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+ue),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+dt),style:"string"},{name:"NIL",regex:new RegExp("^"+fe),style:"punc"},{name:"ANON",regex:new RegExp("^"+Le),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+Q),style:"string"},{name:"PNAME_NS",regex:new RegExp("^"+P),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+W),style:"string-2"}];function bt(Ve){var ne=[],It=t[Ve];if(It!=null)for(let qt in It)ne.push(qt.toString());else ne.push(Ve);return ne}function $t(Ve,ne){if(ne.pendingToken){let Te=ne.pendingToken;return ne.pendingToken=void 0,Ve.pos+=Te.string.length,Te.style}function It(){let Te;if(ne.inLiteral){var ot=!1;if(Te=Ve.match(Be[ne.inLiteral].contents.regex,!0,!1),Te&&Te[0].length==0&&(Te=Ve.match(Be[ne.inLiteral].closing.regex,!0,!1),ot=!0),Te&&Te[0].length>0){let st={quotePos:ot?"end":"content",cat:ce[ne.inLiteral].CAT,style:Be[ne.inLiteral].complete.style,string:Te[0],start:Ve.start};return ot&&(ne.inLiteral=void 0),st}}for(let st in Be)if(Te=Ve.match(Be[st].quotes.regex,!0,!1),Te){var ni;return ne.inLiteral?(ne.inLiteral=void 0,ni="end"):(ne.inLiteral=st,ni="start"),{cat:ce[st].CAT,style:Be[st].quotes.style,string:Te[0],quotePos:ni,start:Ve.start}}for(var fi=0;fi<_e.length;++fi)if(Te=Ve.match(_e[fi].regex,!0,!1),Te){if(_e[fi].name==="PNAME_LN"){let st=Te[0],Kt=st.indexOf(":");if(Kt>=0){let ai=st.substring(0,Kt+1),Wi=st.substring(Kt+1);if(Wi.length>0)return ne.pendingToken={cat:"PNAME_LN_LOCAL",style:"string",string:Wi,start:Ve.start+ai.length,quotePos:void 0},Ve.pos=Ve.start+ai.length,{cat:"PNAME_LN_PREFIX",style:"string-2",string:ai,start:Ve.start,quotePos:void 0}}}return{cat:_e[fi].name,style:_e[fi].style,string:Te[0],start:Ve.start,quotePos:void 0}}if(Te=Ve.match(fB,!0,!1),Te)return{cat:Ve.current().toUpperCase(),style:"keyword",string:Te[0],start:Ve.start,quotePos:void 0};if(Te=Ve.match(dB,!0,!1),Te){let st=Te[0],Kt="punc";if(st==="{")ne.bracketStack.push({type:st,level:ne.bracketLevel}),Kt="bracket bracket-level-"+ne.bracketLevel%4,ne.bracketLevel++;else if(st==="}")if(ne.bracketStack.length>0){let ai=ne.bracketStack.pop();ai&&(ne.bracketLevel=ai.level,Kt="bracket bracket-level-"+ai.level%4)}else Kt="bracket bracket-mismatch";else(st==="["||st==="("||st==="]"||st===")")&&(Kt="bracket bracket-paren");return{cat:Ve.current(),style:Kt,string:Te[0],start:Ve.start,quotePos:void 0}}return Te=Ve.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:Te[0],start:Ve.start,quotePos:void 0}}function qt(){let Te=Ve.column();ne.errorStartPos=Te,ne.errorEndPos=Te+je.string.length}function De(Te){if(ne.queryType==null)switch(Te){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":ne.queryType=Te}}function oi(Te){switch(Te==="prefixDecl"?ne.inPrefixDecl=!0:ne.inPrefixDecl=!1,Te){case"disallowVars":ne.allowVars=!1;break;case"allowVars":ne.allowVars=!0;break;case"disallowBnodes":ne.allowBnodes=!1;break;case"allowBnodes":ne.allowBnodes=!0;break;case"storeProperty":ne.storeProperty=!0;break;case"constructTemplate":ne.inConstructTemplate=!0;break;case"whereClause":ne.inConstructTemplate=!1,ne.seenWhereClause=!0;break}}function Fo(Te){return(ne.allowVars||Te!="var")&&(ne.allowBnodes||Te!="blankNode"&&Te!="blankNodePropertyList"&&Te!="blankNodePropertyListPath")}Ve.pos==0&&(ne.possibleCurrent=ne.possibleNext);let je=It();if(je.cat==="PNAME_LN_LOCAL")return ne.possibleCurrent=ne.possibleNext,je.style;if(je.cat=="<invalid_token>")return ne.OK==!0&&(ne.OK=!1,qt()),ne.complete=!1,je.style;if(je.cat==="WS"||je.cat==="COMMENT"||je.quotePos&&je.quotePos!="end")return ne.possibleCurrent=ne.possibleNext,ne.possibleFullIri=!1,je.style;var Ui=!1,si;let pi=je.cat==="PNAME_LN_PREFIX"?"PNAME_LN":je.cat;if(ne.possibleFullIri&&je.string===">"&&(ne.possibleFullIri=!1),!ne.possibleFullIri&&je.string==="<"&&(ne.possibleFullIri=!0),!je.quotePos||je.quotePos=="end")for(;ne.stack.length>0&&pi&&ne.OK&&!Ui;)if(si=ne.stack.pop(),si==="var"&&je.string&&(ne.variables[je.string]=je.string,ne.queryType==="CONSTRUCT"&&(ne.inConstructTemplate?ne.constructVariables[je.string]=je.string:ne.seenWhereClause&&(ne.whereVariables[je.string]=je.string))),t[si]){let Te=t[si][pi];if(Te!=null&&Fo(si)){for(var ui=Te.length-1;ui>=0;--ui)ne.stack.push(Te[ui]);oi(si)}else ne.OK=!1,ne.complete=!1,qt(),ne.stack.push(si)}else if(si==pi){ne.inPrefixDecl&&(si==="PNAME_NS"&&je.string.length>0?ne.currentPnameNs=je.string.slice(0,-1):typeof ne.currentPnameNs=="string"&&je.string.length>1&&(ne.prefixes[ne.currentPnameNs]=je.string.slice(1,-1),ne.currentPnameNs=void 0)),Ui=!0,De(si);for(var Uo=!0,Ge=ne.stack.length;Ge>0;--Ge){let Te=t[ne.stack[Ge-1]];(!Te||!Te.$)&&(Uo=!1)}if(ne.complete=Uo,ne.storeProperty&&pi!="punc"?(ne.lastProperty=je.string,ne.lastPropertyIndex=je.start,ne.storeProperty=!1):(pi==="."||pi===";")&&(ne.lastProperty="",ne.lastPropertyIndex=0),!ne.inPrefixDecl&&(pi==="PNAME_NS"||pi==="PNAME_LN"||pi==="PNAME_LN_PREFIX")){let Te=je.string.indexOf(":");if(Te>=0){let ot=je.string.slice(0,Te);ne.prefixes[ot]===void 0&&(ne.OK=!1,qt(),ne.errorMsg="Prefix '"+ot+"' is not defined")}}}else ne.OK=!1,ne.complete=!1,qt();if(!Ui&&ne.OK&&(ne.OK=!1,ne.complete=!1,qt()),ne.possibleNext.indexOf("a")>=0){let Te=Ve.string;for(let ot=je.start;ot>=0;ot--)if(Te[ot-1]!==" "){Te[ot-1]==="|"||Te[ot-1]==="/"||je.style==="punc"||(ne.lastPredicateOffset=je.start);break}}return ne.possibleCurrent=ne.possibleNext,ne.possibleNext=bt(ne.stack[ne.stack.length-1]),je.style}let Fi={"*[,, 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},Ki={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function ur(Ve,ne,It){if(Ve.inLiteral)return 0;if(Ve.lastPredicateOffset!==void 0&&Ve.stack.length&&Ve.stack[Ve.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return Ve.lastPredicateOffset;var qt=0,De=Ve.stack.length-1;if(/^[\}\]\)]/.test(ne)){let oi=ne.substr(0,1);for(;De>=0;--De)if(Ve.stack[De]==oi){--De;break}}else{let oi=Fi[Ve.stack[De]];oi&&(qt+=oi,--De)}for(;De>=0;--De){let oi=Ki[Ve.stack[De]];oi&&(qt+=oi)}return qt*It}return{name:"sparql11",token:$t,copyState:qd,indent:(Ve,ne,It)=>ur(Ve,ne,It.unit??i.indentUnit??2),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\}\]\)]$/,closeBrackets:{brackets:["(","[","{","'",'"']}},startState:function(){return{tokenize:$t,OK:!0,complete:gB,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:bt($d),possibleNext:bt($d),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[$d],lastPredicateOffset:i.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1,inConstructTemplate:!1,seenWhereClause:!1,constructVariables:{},whereVariables:{},pendingToken:void 0,bracketStack:[],bracketLevel:0}}}}var bB=qC.reduce((i,t)=>(i[t]=fo.define(),i),{});function KC(i={}){let t=mB(i);return t.tokenTable=bB,t}var _D=gd.define(KC()),OD=$c.define(qC.map(i=>({tag:bB[i],class:`cm-${i}`})));function wB(){return new fd(_D,[J1(OD)])}var Ku=class{constructor(t={}){this.lineStartStates=[];this.tabSize=t.tabSize??4,this.indentUnit=t.indentUnit??2,this.parser=KC({indentUnit:this.indentUnit})}startState(){return this.parser.startState(this.indentUnit)}invalidate(t=0){t<=0?(this.lineStartStates=[],this.cachedDoc=void 0):this.lineStartStates.length=Math.min(this.lineStartStates.length,t)}bindDoc(t){this.cachedDoc!==t&&(this.lineStartStates.length>t.lines&&(this.lineStartStates.length=t.lines),this.cachedDoc=t)}tokenizeLine(t,e,o,n){let c=new qc(t,this.tabSize,this.indentUnit);if(t.length===0)return this.parser.blankLine&&this.parser.blankLine(e,this.indentUnit),c;for(;!c.eol()&&!(n!==void 0&&c.pos>=n);){c.start=c.pos;let g=this.parser.token(c,e);c.pos<=c.start&&(c.pos=c.start+1),o&&o(c.start,c.pos,g)}return c}getStateBefore(t,e,o=!1){o&&this.invalidate(),this.bindDoc(t),e<0&&(e=0),e>t.lines&&(e=t.lines),this.lineStartStates[0]||(this.lineStartStates[0]=this.startState());let n=Math.min(e,this.lineStartStates.length-1);for(;n>0&&!this.lineStartStates[n];)n--;let c=qd(this.lineStartStates[n]);for(let g=n;g<e;g++)this.tokenizeLine(t.line(g+1).text,c),this.lineStartStates[g+1]=qd(c);return c}getFinalState(t,e=!1){let o=t.lines-1,n=this.getStateBefore(t,o,e);return this.tokenizeLine(t.line(o+1).text,n),n}getTokenAt(t,e,o=!1){let n=Math.max(0,Math.min(e.line,t.lines-1)),c=t.line(n+1).text,g=Math.max(0,Math.min(e.ch,c.length)),w=this.getStateBefore(t,n,o),y=0,A=0,R=null;return c.length>0&&g>0&&this.tokenizeLine(c,w,(T,F,k)=>{y=T,A=F,R=k},g),{start:y,end:A,string:c.slice(y,A),type:R,state:w}}getTokenTypeAt(t,e){return this.getTokenAt(t,e).type}runMode(t,e){let o=t.split(/\r?\n/),n=this.startState();for(let c=0;c<o.length;c++){let g=o[c];this.tokenizeLine(g,n,(w,y,A)=>{e(g.slice(w,y),A,c,w,n)}),c<o.length-1&&e(`
27
+ `,null,c,g.length,n)}return n}},GD=new Ku;function Kd(i,t){return GD.runMode(i,t)}var ZD={name:"variables",isValidCompletionPosition:function(i){var t=i.getTokenAt(i.getDoc().getCursor());return!!(t.type!="ws"&&(t=i.getCompleteToken(t),t&&(t.string[0]==="?"||t.string[0]==="$")))},get:function(i,t){if(!t||t.string.length==0)return[];let e={},o=[],n=[];Kd(i.getValue(),(c,g)=>{g==="atom"&&(c[0]==="?"||c[0]==="$")&&n.push(c)});for(let c of n)e[c]||c.length<=1||c.indexOf(t.string)===0&&c!==t.string&&(e[c]=!0,o.push(c));return o.sort()},bulk:!1,autoShow:!0},xB=ZD;var vB={madsrdf:"http://www.loc.gov/mads/rdf/v1#",bflc:"http://id.loc.gov/ontologies/bflc/",foaf:"http://xmlns.com/foaf/0.1/",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",dbo:"http://dbpedia.org/ontology/",rdfs:"http://www.w3.org/2000/01/rdf-schema#",yago:"http://yago-knowledge.org/resource/",dc:"http://purl.org/dc/elements/1.1/",dbp:"http://dbpedia.org/property/",owl:"http://www.w3.org/2002/07/owl#",skos:"http://www.w3.org/2004/02/skos/core#",gr:"http://purl.org/goodrelations/v1#",geo:"http://www.opengis.net/ont/geosparql#",spacerel:"http://data.ordnancesurvey.co.uk/ontology/spatialrelations/",xsd:"http://www.w3.org/2001/XMLSchema#",org:"http://www.w3.org/ns/org#",dcat:"http://www.w3.org/ns/dcat#",ex:"http://example.org/",dct:"http://purl.org/dc/terms/",dcterms:"http://purl.org/dc/terms/",qb:"http://purl.org/linked-data/cube#",prov:"http://www.w3.org/ns/prov#",sioc:"http://rdfs.org/sioc/ns#",xtypes:"http://purl.org/xtypes/",dbpedia:"http://dbpedia.org/resource/",void:"http://rdfs.org/ns/void#",ont:"http://purl.org/net/ns/ontology-annot#",onto:"http://www.ontotext.com/",sio:"http://semanticscience.org/resource/",obo:"http://purl.obolibrary.org/obo/",dcterm:"http://purl.org/dc/terms/",schema:"http://schema.org/",bf:"http://id.loc.gov/ontologies/bibframe/",search:"http://sindice.com/vocab/search#",sd:"http://www.w3.org/ns/sparql-service-description#",urn:"http://fliqz.com/",frbr:"http://purl.org/vocab/frbr/core#",stat:"http://www.w3.org/ns/posix/stat#",vcard:"http://www.w3.org/2006/vcard/ns#",tag:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",commerce:"http://purl.org/commerce#",dbr:"http://dbpedia.org/resource/",bibo:"http://purl.org/ontology/bibo/",ttp:"http://eample.com/test#",pto:"http://www.productontology.org/id/",rss:"http://purl.org/rss/1.0/",oo:"http://purl.org/openorg/",gldp:"http://www.w3.org/ns/people#",vann:"http://purl.org/vocab/vann/",geonames:"http://www.geonames.org/ontology#",content:"http://purl.org/rss/1.0/modules/content/",fb:"http://rdf.freebase.com/ns/",event:"http://purl.org/NET/c4dm/event.owl#",gen:"http://purl.org/gen/0.1#",wd:"http://www.wikidata.org/entity/",dcmit:"http://purl.org/dc/dcmitype/",cc:"http://creativecommons.org/ns#",dbpprop:"http://dbpedia.org/property/",http:"http://www.w3.org/2011/http#",doap:"http://usefulinc.com/ns/doap#",rr:"http://www.w3.org/ns/r2rml#",swrc:"http://swrc.ontoware.org/ontology#",as:"https://www.w3.org/ns/activitystreams#",nie:"http://www.semanticdesktop.org/ontologies/2007/01/19/nie#",leaks:"https://cuzin.com/",sc:"https://schema.org/",md:"http://www.w3.org/ns/md#",drugbank:"http://www4.wiwiss.fu-berlin.de/drugbank/resource/drugbank/",fn:"http://www.w3.org/2005/xpath-functions#",cv:"http://rdfs.org/resume-rdf/",wot:"http://xmlns.com/wot/0.1/",prog:"http://purl.org/prog/",aiiso:"http://purl.org/vocab/aiiso/schema#",ma:"http://www.w3.org/ns/ma-ont#",uniprot:"http://purl.uniprot.org/uniprot/",tl:"http://purl.org/NET/c4dm/timeline.owl#",daia:"http://purl.org/ontology/daia/",swc:"http://data.semanticweb.org/ns/swc/ontology#",akt:"http://www.aktors.org/ontology/portal#",xhtml:"http://www.w3.org/1999/xhtml#",ical:"http://www.w3.org/2002/12/cal/ical#",crm:"http://www.cidoc-crm.org/cidoc-crm/",rel:"http://purl.org/vocab/relationship/",bio:"http://purl.org/vocab/bio/0.1/",earl:"http://www.w3.org/ns/earl#",unit:"http://qudt.org/vocab/unit/",dv:"http://rdf.data-vocabulary.org/#",mo:"http://purl.org/ontology/mo/",ov:"http://open.vocab.org/terms/",marcrel:"http://id.loc.gov/vocabulary/relators/",rdfg:"http://www.w3.org/2004/03/trix/rdfg-1/",xhv:"http://www.w3.org/1999/xhtml/vocab#",cs:"http://purl.org/vocab/changeset/schema#",afn:"http://jena.apache.org/ARQ/function#",ad:"http://schemas.talis.com/2005/address/schema#",co:"http://purl.org/ontology/co/core#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",dc11:"http://purl.org/dc/elements/1.1/",og:"http://opengraphprotocol.org/schema/",xs:"http://www.w3.org/2001/XMLSchema#",air:"http://dig.csail.mit.edu/TAMI/2007/amord/air#",mu:"http://mu.semte.ch/vocabularies/core/",bill:"http://www.rdfabout.com/rdf/schema/usbill/",test2:"http://this.invalid/test2#",xfn:"http://gmpg.org/xfn/11#",book:"http://purl.org/NET/book/vocab#",log:"http://www.w3.org/2000/10/swap/log#",musim:"http://purl.org/ontology/similarity/",factbook:"http://wifo5-04.informatik.uni-mannheim.de/factbook/ns#",media:"http://search.yahoo.com/searchmonkey/media/",dcq:"http://purl.org/dc/qualifiers/1.0/",ome:"http://purl.org/ontomedia/core/expression#",xf:"http://www.w3.org/2002/xforms/",cld:"http://purl.org/cld/terms/",qudt:"http://qudt.org/schema/qudt/",d2rq:"http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#",prop:"http://dbpedia.org/property/",cal:"http://www.w3.org/2002/12/cal/ical#",ir:"http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#",biblio:"http://purl.org/net/biblio#",reco:"http://purl.org/reco#",rev:"http://purl.org/stuff/rev#",sism:"http://purl.oclc.org/NET/sism/0.1/",osag:"http://www.ordnancesurvey.co.uk/ontology/AdministrativeGeography/v2.0/AdministrativeGeography.rdf#",days:"http://ontologi.es/days#",dbowl:"http://ontology.cybershare.utep.edu/dbowl/relational-to-ontology-mapping-primitive.owl#",botany:"http://purl.org/NET/biol/botany#",af:"http://purl.org/ontology/af/",rif:"http://www.w3.org/2007/rif#",ctag:"http://commontag.org/ns#",dir:"http://schemas.talis.com/2005/dir/schema#",ok:"http://okkam.org/terms#",tzont:"http://www.w3.org/2006/timezone#",cmp:"http://www.ontologydesignpatterns.org/cp/owl/componency.owl#",sr:"http://www.openrdf.org/config/repository/sail#",math:"http://www.w3.org/2000/10/swap/math#",pc:"http://purl.org/procurement/public-contracts#",admin:"http://webns.net/mvcb/",memo:"http://ontologies.smile.deri.ie/2009/02/27/memo#",giving:"http://ontologi.es/giving#",sdmx:"http://purl.org/linked-data/sdmx#",myspace:"http://purl.org/ontology/myspace#",lomvoc:"http://ltsc.ieee.org/rdf/lomv1p0/vocabulary#",cfp:"http://sw.deri.org/2005/08/conf/cfp.owl#",dcn:"http://www.w3.org/2007/uwa/context/deliverycontext.owl#",xmp:"http://ns.adobe.com/xap/1.0/",lyou:"http://purl.org/linkingyou/",swanq:"http://purl.org/swan/1.2/qualifiers/",time:"http://www.w3.org/2006/time#",jdbc:"http://d2rq.org/terms/jdbc/",owlim:"http://www.ontotext.com/trree/owlim#",omn:"http://open-multinet.info/ontology/omn#",swande:"http://purl.org/swan/1.2/discourse-elements/",dcam:"http://purl.org/dc/dcam/",gn:"http://www.geonames.org/ontology#",nif:"http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#",skosxl:"http://www.w3.org/2008/05/skos-xl#",con:"http://www.w3.org/2000/10/swap/pim/contact#",cyc:"http://sw.opencyc.org/concept/",adms:"http://www.w3.org/ns/adms#",oa:"http://www.w3.org/ns/oa#",cdm:"http://publications.europa.eu/ontology/cdm#",gvp:"http://vocab.getty.edu/ontology#",openlinks:"http://www.openlinksw.com/schemas/virtrdf#",ontology:"http://dbpedia.org/ontology/",sh:"http://www.w3.org/ns/shacl#",sdmxdim:"http://purl.org/linked-data/sdmx/2009/dimension#",db:"http://dbpedia.org/",type:"http://teste.com/teste/",om:"http://opendata.caceres.es/def/ontomunicipio#",isbd:"http://iflastandards.info/ns/isbd/elements/",eat:"http://www.eat.rl.ac.uk/#",lemon:"http://lemon-model.net/lemon#",photoshop:"http://ns.adobe.com/photoshop/1.0/",aat:"http://vocab.getty.edu/aat/",wfs:"http://schemas.opengis.net/wfs/",room:"http://vocab.deri.ie/rooms#",wdt:"http://www.wikidata.org/prop/direct/",tgn:"http://vocab.getty.edu/tgn/",exif:"http://www.w3.org/2003/12/exif/ns#",fabio:"http://purl.org/spar/fabio/",ulan:"http://vocab.getty.edu/ulan/",ac:"http://umbel.org/umbel/ac/",test:"https://test4.example.com/",ore:"http://www.openarchives.org/ore/terms/",xsi:"http://www.w3.org/2001/XMLSchema-instance#",prism:"http://prismstandard.org/namespaces/basic/2.0/",cert:"http://www.w3.org/ns/auth/cert#",sdmxa:"http://purl.org/linked-data/sdmx/2009/attribute#",core:"http://vivoweb.org/ontology/core#",itsrdf:"http://www.w3.org/2005/11/its/rdf#",nsogi:"http://prefix.cc/nsogi:",cnt:"http://www.w3.org/2011/content#",fise:"http://fise.iks-project.eu/ontology/",sf:"http://www.opengis.net/ont/sf#",dul:"http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#",lv:"http://purl.org/lobid/lv#",voaf:"http://purl.org/vocommons/voaf#",swrl:"http://www.w3.org/2003/11/swrl#",edm:"http://www.europeana.eu/schemas/edm/",swrcfe:"http://www.morelab.deusto.es/ontologies/swrcfe#",eg:"http://www.example.org/",gndo:"http://d-nb.info/standards/elementset/gnd#",gtfs:"http://vocab.gtfs.org/terms#",dbc:"http://dbpedia.org/resource/Category:",ro:"http://purl.org/wf4ever/ro#",nfo:"http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#",ssn:"http://www.w3.org/ns/ssn/",xml:"http://www.w3.org/XML/1998/namespace/",swrlb:"http://www.w3.org/2003/11/swrlb#",music:"http://musicontology.com/",movie:"http://data.linkedmdb.org/resource/movie/",bif:"http://www.openlinksw.com/schemas/bif#",wikidata:"http://www.wikidata.org/entity/",leak:"http://maco.com/",go:"http://purl.obolibrary.org/obo/GO_",wp:"http://vocabularies.wikipathways.org/",dbprop:"http://dbpedia.org/property/",pat:"http://purl.org/hpi/patchr#",ceo:"https://linkeddata.cultureelerfgoed.nl/def/ceo#",cco:"http://www.ontologyrepository.com/CommonCoreOntologies/",ping:"https://namso-gen.com/",dbkwik:"http://dbkwik.webdatacommons.org/",penn:"http://purl.org/olia/penn.owl#",loc:"http://id.loc.gov/",am:"http://vocab.deri.ie/am#",sp:"http://spinrdf.org/sp#",st:"http://ns.inria.fr/sparql-template/",lexinfo:"http://www.lexinfo.net/ontology/3.0/lexinfo#",dblp:"http://dblp.uni-trier.de/rdf/schema-2015-01-26#",ldp:"http://www.w3.org/ns/ldp#",mods:"http://www.loc.gov/mods/v3#",nmo:"http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#",sec:"https://w3id.org/security#",bd:"http://www.bigdata.com/rdf#",dce:"http://purl.org/dc/elements/1.1/",chebi:"http://purl.obolibrary.org/obo/CHEBI_",nao:"http://www.semanticdesktop.org/ontologies/2007/08/15/nao#",product:"http://purl.org/commerce/product#",sdo:"https://schema.org/",example:"http://www.example.org/rdf#",imm:"http://schemas.microsoft.com/imm/",siocserv:"http://rdfs.org/sioc/services#",geoes:"http://geo.linkeddata.es/ontology/",sparql:"http://www.w3.org/ns/sparql#",up:"http://purl.uniprot.org/core/",sioct:"http://rdfs.org/sioc/types#",gnd:"http://d-nb.info/gnd/",cerif:"http://spi-fm.uca.es/neologism/cerif#",rec:"http://purl.org/ontology/rec/core#",ptr:"http://www.w3.org/2009/pointers#",list:"http://www.w3.org/2000/10/swap/list#",gd:"http://rdf.data-vocabulary.org/#",coref:"http://www.rkbexplorer.com/ontologies/coref#",mf:"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",scovo:"http://purl.org/NET/scovo#",whois:"http://www.kanzaki.com/ns/whois#",api:"http://purl.org/linked-data/api/vocab#",java:"http://www.w3.org/2007/uwa/context/java.owl#",spin:"http://spinrdf.org/spin#",acc:"http://purl.org/NET/acc#",olia:"http://purl.org/olia/olia.owl#",sirext:"http://t.me/sirextt/247:",wiki:"http://en.wikipedia.org/wiki/",doc:"http://www.w3.org/2000/10/swap/pim/doc#",space:"http://www.w3.org/ns/pim/space#",cube:"https://cube.link/",euvoc:"http://publications.europa.eu/ontology/euvoc#",ms:"http://purl.org/obo/owl/MS#",opm:"https://w3id.org/opm#",meta:"https://krr.triply.cc/krr/sameas-meta/def/",pmlj:"http://inference-web.org/2.0/pml-justification.owl#",gold:"http://purl.org/linguistics/gold/",geof:"http://www.opengis.net/def/function/geosparql/",xlink:"https://es.scribd.com/doc/79794476/05-Ejercicios-Resueltos-Caja-Negra-y-Recapitulacion/",dbnary:"http://kaiko.getalp.org/dbnary#",ti:"http://www.ontologydesignpatterns.org/cp/owl/timeinterval.owl#",cro:"http://rhizomik.net/ontologies/copyrightonto.owl#",lgd:"http://linkedgeodata.org/triplify/",rdfsharp:"https://rdfsharp.codeplex.com/",iot:"http://iotschema.org/",pext:"http://www.ontotext.com/proton/protonext#",bing:"http://bing.com/schema/media/",vivo:"http://vivoweb.org/ontology/core#",sim:"http://www.w3id.org/simulation/ontology/",nco:"http://www.semanticdesktop.org/ontologies/2007/03/22/nco#",hg:"http://rdf.histograph.io/",bp:"http://www.biopax.org/release/biopax-level3.owl#",rsa:"http://www.w3.org/ns/auth/rsa#",po:"http://purl.org/ontology/po/",akts:"http://www.aktors.org/ontology/support#",lu:"http://www.ontologydesignpatterns.org/ont/framenet/abox/lu/",pim:"http://www.w3.org/ns/pim/space#",georss:"http://www.georss.org/georss/",kb:"http://deductions.sf.net/ontology/knowledge_base.owl#",nt:"http://ns.inria.fr/nicetag/2010/09/09/voc#",acl:"http://www.w3.org/ns/auth/acl#",geosparql:"http://www.opengis.net/ont/geosparql#",cgov:"http://reference.data.gov.uk/def/central-government/",resource:"http://dbpedia.org/resource/",cito:"http://purl.org/spar/cito/",video:"http://purl.org/ontology/video#",wgs:"http://www.w3.org/2003/01/geo/wgs84_pos#",xl:"http://langegger.at/xlwrap/vocab#",name:"http://example.org/name#",seas:"https://w3id.org/seas/",gist:"https://ontologies.semanticarts.com/o/gistCore#",sosa:"http://www.w3.org/ns/sosa/",wikipedia:"https://en.wikipedia.org/wiki/",pr:"http://purl.org/ontology/prv/core#",dbpediaowl:"http://dbpedia.org/owl/",cidoc:"http://www.cidoc-crm.org/cidoc-crm/",postcode:"http://data.ordnancesurvey.co.uk/id/postcodeunit/",ontolex:"http://www.w3.org/ns/lemon/ontolex#",ean:"http://openean.kaufkauf.net/id/",web:"http://www.w3.org/2007/uwa/context/web.owl#",role:"https://w3id.org/role/",pav:"http://purl.org/pav/",stanford:"http://purl.org/olia/stanford.owl#",eu:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",bag:"https://bag2.basisregistraties.overheid.nl/bag/def/",acm:"http://www.rkbexplorer.com/ontologies/acm#",httph:"http://www.w3.org/2007/ont/httph#",exterms:"http://www.example.org/terms/",dco:"http://info.deepcarbon.net/schema#",dcm:"http://purl.org/dc/dcmitype/",prv:"http://purl.org/net/provenance/ns#",pgterms:"http://www.gutenberg.org/2009/pgterms/",ps:"https://w3id.org/payswarm#",wn:"http://xmlns.com/wordnet/1.6/",iso:"http://purl.org/iso25964/skos-thes#",purl:"http://purl.org/dc/terms/",overheid:"http://standaarden.overheid.nl/owms/",dcatapit:"http://dati.gov.it/onto/dcatapit#",ero:"http://purl.obolibrary.org/obo/",inno:"http://purl.org/innovation/ns#",saref:"https://saref.etsi.org/core/",wo:"http://purl.org/ontology/wo/",formats:"http://www.w3.org/ns/formats/",greg:"http://www.w3.org/ns/time/gregorian/",lime:"http://www.w3.org/ns/lemon/lime#",service:"http://purl.org/ontology/service#",ass:"http://uptheasset.org/ontology#",admingeo:"http://data.ordnancesurvey.co.uk/ontology/admingeo/",ocd:"http://dati.camera.it/ocd/",sider:"http://www4.wiwiss.fu-berlin.de/sider/resource/sider/",atom:"http://www.w3.org/2005/Atom/",wdrs:"http://www.w3.org/2007/05/powder-s#",bmo:"http://collection.britishmuseum.org/id/ontology/",rdfdf:"http://www.openlinksw.com/virtrdf-data-formats#",wn20schema:"http://www.w3.org/2006/03/wn/wn20/schema/",smf:"http://topbraid.org/sparqlmotionfunctions#",premis:"http://www.loc.gov/premis/rdf/v3/",es:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",ndl:"http://schemas.ogf.org/nml/2013/05/base#",zoology:"http://purl.org/NET/biol/zoology#",abc:"http://www.metadata.net/harmony/ABCSchemaV5Commented.rdf#",iao:"http://purl.obolibrary.org/obo/IAO_",daml:"http://www.daml.org/2001/03/daml+oil#",mm:"http://linkedmultimedia.org/sparql-mm/ns/2.0.0/function#",cpa:"http://www.ontologydesignpatterns.org/schemas/cpannotationschema.owl#",edam:"http://edamontology.org/",xkos:"http://rdf-vocabulary.ddialliance.org/xkos#",res:"http://dbpedia.org/resource/",won:"https://w3id.org/won/core#",gsp:"http://www.opengis.net/ont/geosparql#",lode:"http://linkedevents.org/ontology/",hydra:"http://www.w3.org/ns/hydra/core#",irw:"http://www.ontologydesignpatterns.org/ont/web/irw.owl#",myspo:"http://purl.org/ontology/myspace#",swid:"http://semanticweb.org/id/",so:"http://schema.org/",cheminf:"http://www.semanticweb.org/ontologies/cheminf.owl#",hp:"http://pictogram.tokyo/vocabulary#",blt:"http://www.bl.uk/schemas/bibliographic/blterms#",spl:"http://spinrdf.org/spl#",agg:"http://purl.org/twc/health/vocab/aggregate/",dt:"http://w3id.org/dt#",scot:"http://rdfs.org/scot/ns#",food:"http://purl.org/foodontology#",resist:"http://www.rkbexplorer.com/ontologies/resist#",bfo:"http://purl.obolibrary.org/obo/",label:"http://purl.org/net/vocab/2004/03/label#",omt:"http://purl.org/ontomedia/ext/common/trait#",site:"http://ns.ontowiki.net/SysOnt/Site/",omp:"http://purl.org/ontomedia/ext/common/profession#",sdl:"http://purl.org/vocab/riro/sdl#",faldo:"http://biohackathon.org/resource/faldo#",tmo:"http://www.semanticdesktop.org/ontologies/2008/05/20/tmo#",pmt:"http://tipsy.googlecode.com/svn/trunk/vocab/pmt#",orges:"http://datos.gob.es/def/sector-publico/organizacion#",fed:"http://www.openrdf.org/config/sail/federation#",ignf:"http://data.ign.fr/def/ignf#",bibframe:"http://id.loc.gov/ontologies/bibframe/",sml:"https://w3id.org/sml/def#",rov:"http://www.w3.org/ns/regorg#",ref:"http://purl.org/vocab/relationship/",isothes:"http://purl.org/iso25964/skos-thes#",cpm:"http://catalogus-professorum.org/cpm/2/",oad:"http://lod.xdams.org/reload/oad/",eco:"http://www.ebusiness-unibw.org/ontologies/eclass/5.1.4/#",rdau:"http://rdaregistry.info/Elements/u/",ses:"http://lod.taxonconcept.org/ses/",user:"http://schemas.talis.com/2005/user/schema#",cordis:"http://cordis.europa.eu/projects/",ya:"http://blogs.yandex.ru/schema/foaf/",wordnet:"http://wordnet-rdf.princeton.edu/ontology#",airport:"http://www.daml.org/2001/10/html/airport-ont#",act:"http://www.w3.org/2007/rif-builtin-action#",ecs:"http://rdf.ecs.soton.ac.uk/ontology/ecs#",link:"http://www.w3.org/2007/ont/link#",phil:"http://philosurfical.open.ac.uk/ontology/philosurfical.owl#",prj:"http://purl.org/stuff/project/",ub:"http://www.lehigh.edu/~zhp2/2004/0401/univ-bench.owl#",rnews:"http://iptc.org/std/rNews/2011-10-07#",library:"http://purl.org/library/",audio:"http://purl.org/media/audio#",taxon:"http://purl.uniprot.org/taxonomy/",awol:"http://bblfish.net/work/atom-owl/2006-06-06/#",city:"http://datos.localidata.com/def/City#",ludo:"http://ns.inria.fr/ludo/v1#",opensearch:"http://a9.com/-/spec/opensearch/1.1/",fresnel:"http://www.w3.org/2004/09/fresnel#",swp:"http://www.w3.org/2004/03/trix/swp-2/",biocore:"http://bio2rdf.org/core#",rs:"http://rightsstatements.org/vocab/",npg:"http://ns.nature.com/terms/",fe:"http://www.ontologydesignpatterns.org/ont/framenet/abox/fe/",sit:"http://www.ontologydesignpatterns.org/cp/owl/situation.owl#",sesame:"http://www.openrdf.org/schema/sesame#",sport:"http://purl.org/ontology/sport/",meteo:"http://purl.org/ns/meteo#",granatum:"http://chem.deri.ie/granatum/",wv:"http://vocab.org/waiver/terms/",linkedmdb:"http://data.linkedmdb.org/",frame:"http://www.ontologydesignpatterns.org/ont/framenet/abox/frame/",net:"http://www.w3.org/2007/uwa/context/network.owl#",taxo:"http://purl.org/rss/1.0/modules/taxonomy/",asn:"http://purl.org/ASN/schema/core/",os:"http://www.w3.org/2000/10/swap/os#",fbgeo:"http://rdf.freebase.com/ns/location/geocode/",bl:"https://w3id.org/biolink/vocab/",conv:"http://purl.org/twc/vocab/conversion/",organism:"http://eulersharp.sourceforge.net/2003/03swap/organism#",vra:"http://purl.org/vra/",bio2rdf:"http://bio2rdf.org/",xhe:"http://buzzword.org.uk/rdf/xhtml-elements#",arg:"http://spinrdf.org/arg#",cmo:"http://purl.org/twc/ontologies/cmo.owl#",lom:"http://ltsc.ieee.org/rdf/lomv1p0/lom#",uco:"http://purl.org/uco/ns#",efo:"http://www.ebi.ac.uk/efo/",mime:"https://www.iana.org/assignments/media-types/",umbelrc:"http://umbel.org/umbel/rc/",acco:"http://purl.org/acco/ns#",rail:"http://ontologi.es/rail/vocab#",vocab:"http://rdf.ontology2.com/vocab#",worldbank:"http://worldbank.270a.info/dataset/",tdb:"http://jena.hpl.hp.com/2008/tdb#",disco:"http://rdf-vocabulary.ddialliance.org/discovery#",bne:"http://datos.bne.es/resource/",conversion:"http://purl.org/twc/vocab/conversion/",dctype:"http://purl.org/dc/dcmitype/",rep:"http://www.openrdf.org/config/repository#",doac:"http://ramonantonio.net/doac/0.1/#",pbo:"http://purl.org/ontology/pbo/core#",money:"http://purl.org/net/rdf-money/",cdt:"https://w3id.org/cdt/",txn:"http://lod.taxonconcept.org/ontology/txn.owl#",compass:"http://purl.org/net/compass#",lgdo:"http://linkedgeodata.org/ontology/",spc:"http://purl.org/ontomedia/core/space#",ao:"http://purl.org/ontology/ao/core#",umbel:"http://umbel.org/umbel#",dwc:"http://rs.tdwg.org/dwc/terms/",wgs84:"http://www.w3.org/2003/01/geo/wgs84_pos#",protege:"http://protege.stanford.edu/system#",oc:"http://opencoinage.org/rdf/",omb:"http://purl.org/ontomedia/ext/common/being#",crypto:"http://www.w3.org/2000/10/swap/crypto#",lfm:"http://purl.org/ontology/last-fm/",code:"http://telegraphis.net/ontology/measurement/code#",custom:"http://www.openrdf.org/config/sail/custom#",lx:"http://purl.org/NET/lx#",ct:"http://data.linkedct.org/resource/linkedct/",frir:"http://purl.org/twc/ontology/frir.owl#",nrl:"http://www.semanticdesktop.org/ontologies/2007/08/15/nrl#",powder:"http://www.w3.org/2007/05/powder#",ic:"http://imi.go.jp/ns/core/rdf#",rdrel:"http://rdvocab.info/RDARelationshipsWEMI/",affy:"http://www.affymetrix.com/community/publications/affymetrix/tmsplice#",lang:"http://ontologi.es/lang/core#",sco:"http://purl.org/ontology/sco#",omm:"http://purl.org/ontomedia/core/media#",obj:"http://www.openrdf.org/rdf/2009/object#",atomix:"http://buzzword.org.uk/rdf/atomix#",bibtex:"http://purl.org/net/nknouf/ns/bibtex#",ire:"http://www.ontologydesignpatterns.org/cpont/ire.owl#",fec:"http://www.rdfabout.com/rdf/schema/usfec/",pay:"http://reference.data.gov.uk/def/payment#",muto:"http://purl.org/muto/core#",pom:"http://maven.apache.org/POM/4.0.0#",bbc:"http://www.bbc.co.uk/ontologies/news/",ddc:"http://purl.org/NET/decimalised#",pro:"http://purl.org/hpi/patchr#",coo:"http://purl.org/coo/ns#",arch:"http://purl.org/archival/vocab/arch#",soc:"http://purl.org/net/hdlipcores/ontology/soc#",isq:"http://purl.org/ontology/is/quality/",person:"http://www.w3.org/ns/person#",mp:"http://jicamaro.info/mp#",gml:"http://www.opengis.net/ont/gml#",yoda:"http://purl.org/NET/yoda#",biol:"http://purl.org/NET/biol/ns#",rei:"http://www.w3.org/2004/06/rei#",vsr:"http://purl.org/twc/vocab/vsr#",mit:"http://purl.org/ontology/mo/mit#",apivc:"http://purl.org/linked-data/api/vocab#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",r2rml:"http://www.w3.org/ns/r2rml#",aos:"http://rdf.muninn-project.org/ontologies/appearances#",rdac:"http://rdaregistry.info/Elements/c/",locn:"http://www.w3.org/ns/locn#",ppo:"http://vocab.deri.ie/ppo#",swh:"http://plugin.org.uk/swh-plugins/",deo:"http://purl.org/spar/deo/",mysql:"http://web-semantics.org/ns/mysql/",xds:"http://www.w3.org/2001/XMLSchema#",interval:"http://reference.data.gov.uk/def/intervals/",eli:"http://data.europa.eu/eli/ontology#",pmlr:"http://inference-web.org/2.0/pml-relation.owl#",gso:"http://www.w3.org/2006/gen/ont#",ngeo:"http://geovocab.org/geometry#",gpt:"http://purl.org/vocab/riro/gpt#",freebase:"http://rdf.freebase.com/ns/",zem:"http://s.zemanta.com/ns#",rv:"https://data.elsevier.com/research/schema/rv/",hard:"http://www.w3.org/2007/uwa/context/hardware.owl#",rlog:"http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#",bib:"http://zeitkunst.org/bibtex/0.1/bibtex.owl#",usgov:"http://www.rdfabout.com/rdf/schema/usgovt/",oac:"https://w3id.org/oac#",cpv:"http://purl.org/weso/cpv/",is:"http://purl.org/ontology/is/core#",ui:"http://www.w3.org/ns/ui#",courseware:"http://courseware.rkbexplorer.com/ontologies/courseware#",meetup:"http://www.lotico.com/meetup/",xro:"http://purl.org/xro/ns#",vso:"http://purl.org/vso/ns#",nexif:"http://www.semanticdesktop.org/ontologies/2007/05/10/nexif#",bridge:"http://purl.org/vocommons/bridge#",climb:"http://climb.dataincubator.org/vocabs/climb/",states:"http://www.w3.org/2005/07/aaa#",pos:"http://www.w3.org/2003/01/geo/wgs84_pos#",aifb:"http://www.aifb.kit.edu/id/",payment:"http://reference.data.gov.uk/def/payment#",cycann:"http://sw.cyc.com/CycAnnotations_v1#",doclist:"http://www.junkwork.net/xml/DocumentList#",game:"http://data.totl.net/game/",pdo:"http://ontologies.smile.deri.ie/pdo#",gob:"http://purl.org/ontology/last-fm/",viaf:"http://viaf.org/viaf/",sem:"http://semanticweb.cs.vu.nl/2009/11/sem/",address:"http://schemas.talis.com/2005/address/schema#",cdc:"https://w3id.org/cdc#",article:"http://ogp.me/ns/article#",nuts:"http://dd.eionet.europa.eu/vocabulary/common/nuts/",wnschema:"http://www.cogsci.princeton.edu/~wn/schema/",kwijibo:"http://kwijibo.talis.com/",bsb:"http://opacplus.bsb-muenchen.de/title/",odrl:"http://www.w3.org/ns/odrl/2/",cex:"http://purl.org/weso/ontology/computex#",sdm:"https://w3id.org/okn/o/sdm#",dso:"http://purl.org/ontology/dso#",teach:"http://linkedscience.org/teach/ns#",provone:"http://purl.org/provone#",oboinowl:"http://www.geneontology.org/formats/oboInOwl#",psys:"http://proton.semanticweb.org/protonsys#",xen:"http://buzzword.org.uk/rdf/xen#",omc:"http://purl.org/ontomedia/ext/common/bestiary#",dcmitype:"http://purl.org/dc/dcmitype/",dbpp:"http://dbpedia.org/property/",uri:"http://purl.org/NET/uri#",prot:"http://www.proteinontology.info/po.owl#",xforms:"http://www.w3.org/2002/xforms/",agro:"http://purl.obolibrary.org/obo/agro.owl#",vote:"http://www.rdfabout.com/rdf/schema/vote/",swanco:"http://purl.org/swan/1.2/swan-commons/",wi:"http://purl.org/ontology/wi/core#",soft:"http://www.w3.org/2007/uwa/context/software.owl#",muo:"http://purl.oclc.org/NET/muo/muo#",politico:"http://www.rdfabout.com/rdf/schema/politico/",ebucore:"http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#",chord:"http://purl.org/ontology/chord/",conserv:"http://conserv.deri.ie/ontology#",com:"http://purl.org/commerce#",oboe:"http://ecoinformatics.org/oboe/oboe.1.0/oboe-core.owl#",vaem:"http://www.linkedmodel.org/schema/vaem#",oauth:"http://demiblog.org/vocab/oauth#",rda:"http://www.rdaregistry.info/",fea:"http://vocab.data.gov/def/fea#",coin:"http://purl.org/court/def/2009/coin#",ttl:"http://www.w3.org/2008/turtle#",biopax:"http://www.biopax.org/release/biopax-level3.owl#",lp:"http://launchpad.net/rdf/launchpad#",voag:"http://voag.linkedmodel.org/schema/voag#",string:"http://www.w3.org/2000/10/swap/string#",rdapo:"http://rdaregistry.info/Elements/p/object/",bsbm:"http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/",recipe:"http://linkedrecipes.org/schema/",eclap:"http://www.eclap.eu/schema/eclap/",rooms:"http://vocab.deri.ie/rooms#",lfn:"http://www.dotnetrdf.org/leviathan#",vitro:"http://vitro.mannlib.cornell.edu/ns/vitro/public#",dcr:"http://www.isocat.org/ns/dcr.rdf#",swanqs:"http://purl.org/swan/1.2/qualifiers/",card:"http://www.ashutosh.com/test/",lifecycle:"http://purl.org/vocab/lifecycle/schema#",meb:"http://rdf.myexperiment.org/ontologies/base/",sv:"http://schemas.talis.com/2005/service/schema#",fo:"http://www.w3.org/1999/XSL/Format#",ext:"http://mu.semte.ch/vocabularies/ext/",dailymed:"http://www4.wiwiss.fu-berlin.de/dailymed/resource/dailymed/",mygrid:"http://www.mygrid.org.uk/ontology#",oslc:"http://open-services.net/ns/core#",moat:"http://moat-project.org/ns#",html:"http://www.w3.org/1999/xhtml/",wdr:"http://www.w3.org/2007/05/powder#",wgspos:"http://www.w3.org/2003/01/geo/wgs84_pos#",scv:"http://purl.org/NET/scovo#",countries:"http://eulersharp.sourceforge.net/2003/03swap/countries#",isi:"http://purl.org/ontology/is/inst/",osn:"http://spatial.ucd.ie/lod/osn/",puc:"http://purl.org/NET/puc#",opo:"http://online-presence.net/opo/ns#",posh:"http://poshrdf.org/ns/posh/",b2bo:"http://purl.org/b2bo#",dnr:"http://www.dotnetrdf.org/configuration#",h5:"http://buzzword.org.uk/rdf/h5#",csvw:"http://www.w3.org/ns/csvw#",pubmed:"http://bio2rdf.org/pubmed_vocabulary:",sail:"http://www.openrdf.org/config/sail#",lvont:"http://lexvo.org/ontology#",push:"http://www.w3.org/2007/uwa/context/push.owl#",lotico:"http://www.lotico.com/resource/",spatial:"http://geovocab.org/spatial#",cogs:"http://vocab.deri.ie/cogs#",lastfm:"http://purl.org/ontology/last-fm/",fno:"https://w3id.org/function/ontology#",fls:"http://lukasblaho.sk/football_league_schema#",rdaa:"http://rdaregistry.info/Elements/a/",br:"http://vocab.deri.ie/br#",wbp:"http://worldbank.270a.info/property/",evset:"http://dsnotify.org/vocab/eventset/0.1/",care:"http://eulersharp.sourceforge.net/2003/03swap/care#",fd:"http://foodable.co/ns/",wlp:"http://weblab-project.org/core/model/property/processing/",dady:"http://purl.org/NET/dady#",enc:"http://www.w3.org/2001/04/xmlenc#",hospital:"http://www.agfa.com/w3c/2009/hospital#",ldap:"http://purl.org/net/ldap/",play:"http://uriplay.org/spec/ontology/#",geospecies:"http://rdf.geospecies.org/ont/geospecies#",exo:"https://w3id.org/example#",toby:"http://tobyinkster.co.uk/#",wai:"http://purl.org/wai#",ncbitaxon:"http://purl.obolibrary.org/obo/NCBITaxon_",marl:"http://www.gsi.dit.upm.es/ontologies/marl/ns#",lex:"http://purl.org/lex#",resex:"http://resex.rkbexplorer.com/ontologies/resex#",uni:"http://purl.org/weso/uni/uni.html#",hlisting:"http://sindice.com/hlisting/0.1/",parl:"https://id.parliament.uk/schema/",bte:"http://purl.org/twc/vocab/between-the-edges/",sede:"http://eventography.org/sede/0.1/",tarot:"http://data.totl.net/tarot/card/",swandr:"http://purl.org/swan/1.2/discourse-relationships/",ops:"https://w3id.org/ops#",irrl:"http://www.ontologydesignpatterns.org/cp/owl/informationobjectsandrepresentationlanguages.owl#",grddl:"http://www.w3.org/2003/g/data-view#",ec:"http://eulergui.sourceforge.net/contacts.owl.n3#",lingvoj:"http://www.lingvoj.org/ontology#",data:"http://data.odw.tw/",foo:"http://filmontology.org/ontology/1.0/",lark1:"http://users.utcluj.ro/~raluca/ontology/Ontology1279614123500.owl#",ist:"http://purl.org/ontology/is/types/",p3p:"http://www.w3.org/2002/01/p3prdfv1#",okkam:"http://models.okkam.org/ENS-core-vocabulary#",cmd:"https://w3id.org/cmd#",hcterms:"http://purl.org/uF/hCard/terms/",archdesc:"http://archdesc.info/archEvent#",shv:"http://ns.aksw.org/spatialHierarchy/",tr:"http://www.thomsonreuters.com/",calli:"http://callimachusproject.org/rdf/2009/framework#",icaltzd:"http://www.w3.org/2002/12/cal/icaltzd#",remus:"http://www.semanticweb.org/ontologies/2010/6/Ontology1279614123500.owl#",cos:"http://www.inria.fr/acacia/corese#",pobo:"http://purl.obolibrary.org/obo/",xmls:"http://www.w3.org/2001/XMLSchema#",like:"http://ontologi.es/like#",nex:"http://www.nexml.org/2009/",sioca:"http://rdfs.org/sioc/actions#",anca:"http://users.utcluj.ro/~raluca/rdf_ontologies_ralu/ralu_modified_ontology_pizzas2_0#",places:"http://purl.org/ontology/places#",profiling:"http://ontologi.es/profiling#",pol:"http://escience.rpi.edu/ontology/semanteco/2/0/pollution.owl#",psh:"http://ns.inria.fr/probabilistic-shacl/",wsc:"http://www.openk.org/wscaim.owl#",algo:"http://securitytoolbox.appspot.com/securityAlgorithms#",td:"https://www.w3.org/2019/wot/td#",ann:"http://www.w3.org/2000/10/annotation-ns#",gs1:"https://ref.gs1.org/voc/",oat:"http://openlinksw.com/schemas/oat/",identity:"http://purl.org/twc/ontologies/identity.owl#",rdfa:"http://www.w3.org/ns/rdfa#",cb:"http://cbasewrap.ontologycentral.com/vocab#",swivt:"http://semantic-mediawiki.org/swivt/1.0#",wl:"http://www.wsmo.org/ns/wsmo-lite#",geom:"http://data.ign.fr/def/geometrie#",osr:"http://dati.senato.it/osr/",opwn:"http://www.ontologyportal.org/WordNet.owl#",ddl:"http://purl.org/vocab/riro/ddl#",ecc:"https://ns.eccenca.com/",infosys:"http://www.infosys.com/",httpvoc:"http://www.w3.org/2006/http#",sawsdl:"http://www.w3.org/ns/sawsdl#",phss:"http://ns.poundhill.com/phss/1.0/",scsv:"http://purl.org/NET/schema-org-csv#",esd:"http://def.esd.org.uk/",psych:"http://purl.org/vocab/psychometric-profile/",wisski:"http://wiss-ki.eu/",esdir:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/direccion-postal#",gridworks:"http://purl.org/net/opmv/types/gridworks#",prissma:"http://ns.inria.fr/prissma/v1#",datafaqs:"http://purl.org/twc/vocab/datafaqs#",tio:"http://purl.org/tio/ns#",drug:"http://www.agfa.com/w3c/2009/drugTherapy#",dnb:"http://d-nb.info/gnd/",imreg:"http://www.w3.org/2004/02/image-regions#",copyright:"http://rhizomik.net/ontologies/copyrightonto.owl#",ecos:"http://purl.org/ecos#",dbpedia2:"http://dbpedia.org/property/",fab:"http://purl.org/fab/ns#",san:"http://www.irit.fr/recherches/MELODI/ontologies/SAN#",prf:"http://www.openmobilealliance.org/tech/profiles/UAPROF/ccppschema-20021212#",grel:"http://users.ugent.be/~bjdmeest/function/grel.ttl#",tp:"https://triplydb.com/Triply/tp/def/",geographis:"http://telegraphis.net/ontology/geography/geography#",ple:"http://pleiades.stoa.org/places/",visit:"http://purl.org/net/vocab/2004/07/visit#",nsa:"http://multimedialab.elis.ugent.be/organon/ontologies/ninsuna#",wfm:"http://purl.org/net/wf-motifs#",ogp:"http://ogp.me/ns#",ezcontext:"http://ontologies.ezweb.morfeo-project.org/ezcontext/ns#",provenir:"http://knoesis.wright.edu/provenir/provenir.owl#",common:"http://www.w3.org/2007/uwa/context/common.owl#",dita:"http://purl.org/dita/ns#",pmlp:"http://inference-web.org/2.0/pml-provenance.owl#",pccz:"http://purl.org/procurement/public-contracts-czech#",elog:"http://eulersharp.sourceforge.net/2003/03swap/log-rules#",dbt:"http://dbpedia.org/resource/Template:",xt:"http://purl.org/twc/vocab/cross-topix#",status:"http://www.w3.org/2003/06/sw-vocab-status/ns#",admssw:"http://purl.org/adms/sw/",tags:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",units:"http://eulersharp.sourceforge.net/2003/03swap/units#",mesh:"http://id.nlm.nih.gov/mesh/",pml:"http://provenanceweb.org/ns/pml#",hgnc:"http://bio2rdf.org/hgnc:",session:"http://redfoot.net/2005/session#",quantity:"http://qudt.org/schema/quantity#",span:"http://www.ifomis.org/bfo/1.1/span#",pam:"http://prismstandard.org/namespaces/pam/2.0/",rulz:"http://purl.org/NET/rulz#",timeline:"http://purl.org/NET/c4dm/timeline.owl#",vf:"https://w3id.org/valueflows/ont/vf#",sl:"http://www.semanlink.net/2001/00/semanlink-schema#",lr:"http://linkedrecipes.org/schema/",eprints:"http://eprints.org/ontology/",fowl:"http://www.w3.org/TR/2003/PR-owl-guide-20031209/food#",agent:"http://eulersharp.sourceforge.net/2003/03swap/agent#",visko:"http://trust.utep.edu/visko/ontology/visko-operator-v3.owl#",smiley:"http://www.smileyontology.com/ns#",ecb:"http://ecb.270a.info/class/1.0/",wbc:"http://worldbank.270a.info/classification/",sindice:"http://vocab.sindice.net/",osoc:"http://web-semantics.org/ns/opensocial#",cl:"http://advene.org/ns/cinelab/",odp:"http://ontologydesignpatterns.org/",ling:"http://purl.org/voc/ling/",pimo:"http://www.semanticdesktop.org/ontologies/2007/11/01/pimo#",sysont:"http://ns.ontowiki.net/SysOnt/",cao:"http://purl.org/makolab/caont/",np:"http://www.nanopub.org/nschema#",dsp:"http://purl.org/metainfo/terms/dsp#",hxl:"http://hxl.humanitarianresponse.info/ns/#",skip:"http://skipforward.net/skipforward/resource/",json:"https://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf#",nxp:"http://purl.org/nxp/schema/v1/",xsl:"http://www.w3.org/1999/XSL/Transform#",human:"http://eulersharp.sourceforge.net/2003/03swap/human#",eztag:"http://ontologies.ezweb.morfeo-project.org/eztag/ns#",doco:"http://purl.org/spar/doco/",soap:"http://www.w3.org/2003/05/soap-envelope/",omv:"http://omv.ontoware.org/2005/05/ontology#",un:"http://www.w3.org/2007/ont/unit#",iswc:"http://annotation.semanticweb.org/2004/iswc#",c4n:"http://vocab.deri.ie/c4n#",wordmap:"http://purl.org/net/ns/wordmap#",reve:"http://data.eurecom.fr/ontology/reve#",dis:"http://stanbol.apache.org/ontology/disambiguation/disambiguation#",ecpo:"http://purl.org/ontology/ecpo#",geop:"http://aims.fao.org/aos/geopolitical.owl#",sm:"http://topbraid.org/sparqlmotion#",pns:"http://data.press.net/ontology/stuff/",ipad:"http://www.padinthecity.com/",geofla:"http://data.ign.fr/ontologies/geofla#",ibis:"http://purl.org/ibis#",zbwext:"http://zbw.eu/namespaces/zbw-extensions/",swanci:"http://purl.org/swan/1.2/citations/",prvtypes:"http://purl.org/net/provenance/types#",dossier:"https://data.omgeving.vlaanderen.be/ns/dossier#",carfo:"http://purl.org/carfo#",gazetteer:"http://data.ordnancesurvey.co.uk/ontology/50kGazetteer/",orca:"http://geni-orca.renci.org/owl/topology.owl#",rdo:"http://purl.org/rdo/ns#",luc:"http://www.ontotext.com/owlim/lucene#",osgb:"http://data.ordnancesurvey.co.uk/id/",gv:"http://rdf.data-vocabulary.org/#",func:"http://www.w3.org/2007/rif-builtin-function#",out:"http://ontologies.hypios.com/out#",sql:"http://ns.inria.fr/ast/sql#",ncal:"http://www.semanticdesktop.org/ontologies/2007/04/02/ncal#",olo:"http://purl.org/ontology/olo/core#",mei:"http://www.music-encoding.org/ns/mei/",nsl:"http://purl.org/ontology/storyline/",spif:"http://spinrdf.org/spif#",lt:"http://diplomski.nelakolundzija.org/LTontology.rdf#",myprefix:"http://myprefix.org/",nytimes:"http://data.nytimes.com/elements/",sw:"http://linkedwidgets.org/statisticalwidget/ontology/",sor:"http://purl.org/net/soron/",dpd:"http://www.kanzaki.com/ns/dpd#",aigp:"http://swat.cse.lehigh.edu/resources/onto/aigp.owl#",set:"http://www.w3.org/2000/10/swap/set#",atomowl:"http://bblfish.net/work/atom-owl/2006-06-06/#",trackback:"http://madskills.com/public/xml/rss/module/trackback/",arpfo:"http://vocab.ouls.ox.ac.uk/projectfunding#",gelo:"http://krauthammerlab.med.yale.edu/ontologies/gelo#",enhancer:"http://stanbol.apache.org/ontology/enhancer/enhancer#",swanpav:"http://purl.org/swan/1.2/pav/",dgfoaf:"http://west.uni-koblenz.de/ontologies/2010/07/dgfoaf.owl#",fl:"http://eulersharp.sourceforge.net/2003/03swap/fl-rules#",aapi:"http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#",muni:"http://vocab.linkeddata.es/urbanismo-infraestructuras/territorio#",gc:"http://www.oegov.org/core/owl/gc#",eye:"http://jena.hpl.hp.com/Eyeball#",fcm:"http://eulersharp.sourceforge.net/2006/02swap/fcm#",dtype:"http://www.linkedmodel.org/schema/dtype#",life:"http://life.deri.ie/schema/",opus:"http://lsdis.cs.uga.edu/projects/semdis/opus#",ls:"http://linkedspending.aksw.org/instance/",ne:"http://umbel.org/umbel/ne/",decl:"http://www.linkedmodel.org/1.0/schema/decl#",cidoccrm:"http://purl.org/NET/cidoc-crm/core#",rlno:"http://rdflivenews.aksw.org/ontology/",pne:"http://data.press.net/ontology/event/",wikibase:"http://wikiba.se/ontology#",evopat:"http://ns.aksw.org/Evolution/",prefix:"http://prefix.cc/",oboro:"http://obofoundry.org/ro/ro.owl#",prolog:"http://eulersharp.sourceforge.net/2003/03swap/prolog#",pmlt:"http://inference-web.org/2.0/pml-trust.owl#",agrelon:"http://d-nb.info/standards/elementset/agrelon#",xhtmlvocab:"http://www.w3.org/1999/xhtml/vocab/",dqv:"http://www.w3.org/ns/dqv#",govtrackus:"http://www.rdfabout.com/rdf/usgov/geo/us/",agents:"http://eulersharp.sourceforge.net/2003/03swap/agent#",steel:"https://w3id.org/steel/ProcessOntology/",wairole:"http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#",bioskos:"http://eulersharp.sourceforge.net/2003/03swap/bioSKOSSchemes#",rdam:"http://rdaregistry.info/Elements/m/",rdagr1:"http://rdvocab.info/Elements/",sdgp:"http://stats.data-gov.ie/property/",comm:"http://vocab.resc.info/communication#",semtweet:"http://semantictweet.com/",rkd:"http://data.rkd.nl/def#",ifc:"http://ifcowl.openbimstandards.org/IFC2X3_Final#",plo:"http://purl.org/net/po#",xbrli:"http://www.xbrl.org/2003/instance#",dummy:"http://hello.com/",wf:"http://www.w3.org/2005/01/wf/flow#",r2r:"http://www4.wiwiss.fu-berlin.de/bizer/r2r/",commons:"http://commons.psi.enakting.org/def/",nid3:"http://www.semanticdesktop.org/ontologies/2007/05/10/nid3#",opl:"http://openlinksw.com/schema/attribution#",linkedct:"http://data.linkedct.org/vocab/",rad:"http://www.w3.org/ns/rad#",abs:"http://abs.270a.info/dataset/",organiz:"http://eulersharp.sourceforge.net/2003/03swap/organization#",owltime:"http://www.w3.org/TR/owl-time#",w3p:"http://prov4j.org/w3p/",sad:"http://vocab.deri.ie/sad#",webtlab:"http://webtlab.it.uc3m.es/",ens:"http://models.okkam.org/ENS-core-vocabulary.owl#",wao:"http://webtlab.it.uc3m.es/2010/10/WebAppsOntology#",rso:"http://www.researchspace.org/ontology/",plink:"http://buzzword.org.uk/rdf/personal-link-types#",pf:"http://jena.hpl.hp.com/ARQ/property#",vcardx:"http://buzzword.org.uk/rdf/vcardx#",derecho:"http://purl.org/derecho#",aneo:"http://akonadi-project.org/ontologies/aneo#",qa:"http://www.mit.jyu.fi/ai/TRUST_Ontologies/QA.owl#",httpm:"http://www.w3.org/2011/http-methods#",transit:"http://vocab.org/transit/terms/",ianarel:"https://www.w3.org/ns/iana/link-relations/relation#",req:"http://purl.org/req/",moby:"http://www.mygrid.org.uk/mygrid-moby-service#",rml:"http://w3id.org/rml/",tvc:"http://www.essepuntato.it/2012/04/tvc/",open:"http://open.vocab.org/terms/",tripfs:"http://purl.org/tripfs/2010/02#",xesam:"http://freedesktop.org/standards/xesam/1.0/core#",dgtwc:"http://data-gov.tw.rpi.edu/2009/data-gov-twc.rdf#",gxa:"http://www.ebi.ac.uk/gxa/",rdaw:"http://rdaregistry.info/Elements/w/",hemogram:"http://www.agfa.com/w3c/2009/hemogram#",va:"http://code-research.eu/ontology/visual-analytics#",nyt:"http://data.nytimes.com/",agetec:"http://www.agetec.org/",fc:"http://www.freeclass.eu/freeclass_v1#",pna:"http://data.press.net/ontology/asset/",qdoslf:"http://foaf.qdos.com/lastfm/schema/",aersv:"http://aers.data2semantics.org/vocab/",oax:"http://www.w3.org/ns/openannotation/extensions/",ospost:"http://data.ordnancesurvey.co.uk/ontology/postcode/",theatre:"http://purl.org/theatre#",lindt:"http://purl.org/NET/lindt#",frbre:"http://purl.org/vocab/frbr/extended#",htir:"http://www.w3.org/2011/http#",frbrcore:"http://purl.org/vocab/frbr/core#",no:"http://km.aifb.kit.edu/projects/numbers/number#",dl:"http://ontology.ip.rm.cnr.it/ontologies/DOLCE-Lite#",wapp:"http://ns.rww.io/wapp#",owls:"http://www.daml.org/services/owl-s/1.2/Service.owl#",oj:"http://ontojob.at/",dbpo:"http://dbpedia.org/ontology/",tcga:"http://purl.org/tcga/core#",swpo:"http://sw-portal.deri.org/ontologies/swportal#",italy:"http://data.kasabi.com/dataset/italy/schema/",scowt:"http://purl.org/weso/ontologies/scowt#",solid:"http://www.w3.org/ns/solid/terms#",intervals:"http://reference.data.gov.uk/def/intervals/",estrn:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/transporte#",xfnv:"http://vocab.sindice.com/xfn#",mmo:"http://purl.org/momayo/mmo/",oecd:"http://oecd.270a.info/dataset/",kw:"http://kwantu.net/kw/",rpubl:"http://rinfo.lagrummet.se/ns/2008/11/rinfo/publ#",aims:"http://aims.fao.org/aos/common/",protons:"http://proton.semanticweb.org/2005/04/protons#",metalex:"http://www.metalex.eu/schema/1.0#",sro:"http://salt.semanticauthoring.org/ontologies/sro#",dctypes:"http://purl.org/dc/dcmitype/",wfdesc:"http://purl.org/wf4ever/wfdesc#",swo:"http://www.ebi.ac.uk/swo/",eseduc:"http://www.purl.org/ontologia/eseduc#",shex:"http://www.w3.org/ns/shex#",emotion:"http://ns.inria.fr/emoca#",atlas:"http://rdf.ebi.ac.uk/resource/atlas/",crtv:"http://open-services.net/ns/crtv#",tripfs2:"http://purl.org/tripfs/2010/06#",geodata:"http://sws.geonames.org/",languages:"http://eulersharp.sourceforge.net/2003/03swap/languages#",iron:"http://purl.org/ontology/iron#",quak:"http://dev.w3.org/cvsweb/2000/quacken/vocab#",health:"http://purl.org/twc/health/vocab/",flow:"http://www.w3.org/2005/01/wf/flow#",ogorg:"http://opengraph.org/schema/",oboso:"http://purl.org/obo/owl/SO#",oper:"http://sweet.jpl.nasa.gov/2.0/mathOperation.owl#",npgd:"http://ns.nature.com/datasets/",crmdig:"http://www.ics.forth.gr/isl/CRMdig/",fct:"http://openlinksw.com/services/facets/1.0/",transmed:"http://www.w3.org/2001/sw/hcls/ns/transmed/",ldr:"http://purl.oclc.org/NET/ldr/ns#",ncit:"http://purl.obolibrary.org/obo/NCIT_",bdd:"https://api.bloomberg.com/eap/catalogs/bbg/fields/",opmv:"http://purl.org/net/opmv/ns#",qu:"http://purl.oclc.org/NET/ssnx/qu/qu#",xch:"http://oanda2rdf.appspot.com/xch/",jita:"http://aims.fao.org/aos/jita/",lgv:"http://linkedgeodata.org/ontology/",c4o:"http://purl.org/spar/c4o/",opmw:"http://www.opmw.org/ontology/",gbv:"http://purl.org/ontology/gbv/",swanag:"http://purl.org/swan/1.2/agents/",wm:"http://ns.inria.fr/webmarks#",daq:"http://purl.org/eis/vocab/daq#",rich:"http://rdf.data-vocabulary.org/",hartigprov:"http://purl.org/net/provenance/ns#",cf:"http://mmisw.org/ont/cf/parameter/",ru:"http://purl.org/imbi/ru-meta.owl#",govwild:"http://govwild.org/0.6/GWOntology.rdf/",bm:"http://bio2rdf.org/",rating:"http://www.tvblob.com/ratings/#",re:"http://www.w3.org/2000/10/swap/reason#",openskos:"http://openskos.org/xmlns#",kdo:"http://kdo.render-project.eu/kdo#",gfo:"http://www.onto-med.de/ontologies/gfo.owl#",clineva:"http://www.agfa.com/w3c/2009/clinicalEvaluation#",fingal:"http://vocab.deri.ie/fingal#",environ:"http://eulersharp.sourceforge.net/2003/03swap/environment#",date:"http://contextus.net/ontology/ontomedia/misc/date#",skiresort:"http://www.openlinksw.com/ski_resorts/schema#",humanbody:"http://eulersharp.sourceforge.net/2003/03swap/humanBody#",events:"http://eulersharp.sourceforge.net/2003/03swap/event#",bco:"http://purl.obolibrary.org/obo/bco.owl#",ufmedia:"http://purl.org/microformat/hmedia/",dssn:"http://purl.org/net/dssn/",igeo:"http://rdf.insee.fr/def/geo#",coeus:"http://bioinformatics.ua.pt/coeus/",goef:"http://purl.org/twc/vocab/goef#",ccard:"http://purl.org/commerce/creditcard#",adr:"http://kg.artsdata.ca/resource/",sgv:"http://www.w3.org/TR/SVG/",telix:"http://purl.org/telix#",cdtype:"http://purl.org/cld/cdtype/",mohammad:"http://manesht.ir/",aair:"http://xmlns.notu.be/aair#",nndsr:"http://semanticdiet.com/schema/usda/nndsr/",kontakt:"http://richard.cyganiak.de/",occult:"http://data.totl.net/occult/",osmsemnet:"http://spatial.ucd.ie/2012/08/osmsemnet/",ipo:"http://purl.org/ipo/core#",wro:"http://purl.org/net/wf4ever/ro#",emp:"http://purl.org/ctic/empleo/oferta#",ev:"http://www.w3.org/2001/xml-events/",loticoowl:"http://www.lotico.com/ontology/",rankrage:"https://rankrage.de/",marshall:"http://sites.google.com/site/xgmaitc/",d2r:"http://sites.wiwiss.fu-berlin.de/suhl/bizer/d2r-server/config.rdf#",sig:"http://purl.org/signature#",cold:"http://purl.org/configurationontology#",artstor:"http://simile.mit.edu/2003/10/ontologies/artstor#",decision:"https://decision-ontology.googlecode.com/svn/trunk/decision.owl#",property:"http://fr.dbpedia.org/property/",clinic:"http://example.com/clinic#",dayta:"http://dayta.me/resource#",ost:"http://w3id.org/ost/ns#",coun:"http://www.daml.org/2001/09/countries/iso-3166-ont#",tmpl:"http://purl.org/restdesc/http-template#",bookmark:"http://www.w3.org/2002/01/bookmark#",hcard:"http://purl.org/uF/hCard/terms/",daiaserv:"http://purl.org/ontology/daia/Service/",frapo:"http://purl.org/cerif/frapo/",pco:"http://purl.org/procurement/public-contracts#",tao:"http://pubannotation.org/ontology/tao.owl#",npgg:"http://ns.nature.com/graphs/",pso:"http://purl.org/spar/pso/",wscaim:"http://www.openk.org/wscaim.owl#",grs:"http://www.georss.org/georss/",prism21:"http://prismstandard.org/namespaces/basic/2.1/",ccom:"http://purl.org/ontology/cco/mappings#",frad:"http://iflastandards.info/ns/fr/frad/",dannet:"http://www.wordnet.dk/owl/instance/2009/03/instances/",bk:"http://www.provbook.org/ns/#",tei:"http://www.tei-c.org/ns/1.0/",wno:"http://wordnet-rdf.princeton.edu/ontology#",osukdt:"http://www.ordnancesurvey.co.uk/ontology/Datatypes.owl#",paia:"http://purl.org/ontology/paia#",arecipe:"http://purl.org/amicroformat/arecipe/",dive:"http://scubadive.networld.to/dive.rdf#",harrisons:"http://harrisons.cc/",s2s:"http://escience.rpi.edu/ontology/sesf/s2s/4/0/",bcncon:"http://datos.bcn.cl/ontologies/bcn-congress#",lso:"http://linkedspending.aksw.org/ontology/",mod:"http://www.isibang.ac.in/ns/mod#",fma:"http://sig.uw.edu/fma#",p20:"http://zbw.eu/beta/p20/vocab/",odo:"http://ocean-data.org/schema/",stac:"http://securitytoolbox.appspot.com/stac#",kupkb:"http://www.e-lico.eu/data/kupkb/",penis:"http://penis.to/#",shacl:"http://www.w3.org/ns/shacl#",protegedc:"http://protege.stanford.edu/plugins/owl/dc/protege-dc.owl#",curr:"https://w3id.org/cc#",l4a:"http://labels4all.info/ns/",skos08:"http://www.w3.org/2008/05/skos#",lod2:"http://lod2.eu/schema/",mads:"http://www.loc.gov/mads/rdf/v1#",verb:"https://w3id.org/verb/",genab:"http://eulersharp.sourceforge.net/2003/03swap/genomeAbnormality#",csm:"http://purl.org/csm/1.0#",pizza:"http://www.co-ode.org/ontologies/pizza/pizza.owl#",wsl:"http://www.wsmo.org/ns/wsmo-lite#",diseasome:"http://www4.wiwiss.fu-berlin.de/diseasome/resource/diseasome/",mte:"http://nl.ijs.si/ME/owl/",kbp:"http://tackbp.org/2013/ontology#",wfprov:"http://purl.org/wf4ever/wfprov#",ends:"http://labs.mondeca.com/vocab/endpointStatus#",hasco:"http://hadatac.org/ont/hasco/",art:"http://w3id.org/art/terms/1.0/",str:"http://nlp2rdf.lod2.eu/schema/string/",sci:"http://data.scientology.org/ns/",gesis:"http://lod.gesis.org/lodpilot/ALLBUS/vocab.rdf#",tac:"http://ns.bergnet.org/tac/0.1/triple-access-control#",b2rpubchem:"http://bio2rdf.org/ns/ns/ns/pubchem#",scor:"http://purl.org/eis/vocab/scor#",oslo:"http://purl.org/oslo/ns/localgov#",rdacarrier:"http://rdvocab.info/termList/RDACarrierType/",atomrdf:"http://atomowl.org/ontologies/atomrdf#",doas:"http://deductions.github.io/doas.owl.ttl#",vgo:"http://purl.org/net/VideoGameOntology#",of:"http://owlrep.eu01.aws.af.cm/fridge#",sbench:"http://swat.cse.lehigh.edu/onto/univ-bench.owl#",opllic:"http://www.openlinksw.com/ontology/licenses#",lio:"http://purl.org/net/lio#",lc:"http://semweb.mmlab.be/ns/linkedconnections#",scms:"http://ns.aksw.org/scms/annotations/",ds:"http://purl.org/ctic/dcat#",dpc:"http://hospee.org/ontologies/dpc/",cpsv:"http://purl.org/vocab/cpsv#",smg:"http://ns.cerise-project.nl/energy/def/cim-smartgrid#",pod:"https://project-open-data.cio.gov/v1.1/schema/#",poder:"http://poderopedia.com/vocab/",genea:"http://www.owl-ontologies.com/generations.owl#",omnlife:"http://open-multinet.info/ontology/omn-lifecycle#",camelot:"http://vocab.ox.ac.uk/camelot#",biordf:"http://purl.org/net/biordfmicroarray/ns#",nocal:"http://vocab.deri.ie/nocal#",sam:"http://def.seegrid.csiro.au/isotc211/iso19156/2011/sampling#",dpl:"http://dbpedialite.org/things/",bv:"http://purl.org/vocommons/bv#",opencyc:"http://sw.opencyc.org/concept/",jpo:"http://rdf.jpostdb.org/ontology/jpost.owl#",faq:"http://www.openlinksw.com/ontology/faq#",shoah:"http://dati.cdec.it/lod/shoah/",latitude:"https://www.w3.org/2006/vcard/ns#",itsmo:"http://ontology.it/itsmo/v1#",insdc:"http://ddbj.nig.ac.jp/ontologies/sequence#",dn:"http://purl.org/datanode/ns/",cart:"http://purl.org/net/cartCoord#",prvr:"http://purl.org/ontology/prv/rules#",guo:"http://purl.org/hpi/guo#",prvt:"http://purl.org/net/provenance/types#",ptop:"http://www.ontotext.com/proton/protontop#",campsite:"http://www.openlinksw.com/campsites/schema#",mmd:"http://musicbrainz.org/ns/mmd-1.0#",ssso:"http://purl.org/ontology/ssso#",clinproc:"http://www.agfa.com/w3c/2009/clinicalProcedure#",sso:"http://nlp2rdf.lod2.eu/schema/sso/",healthcare:"http://www.agfa.com/w3c/2009/healthCare#",mpeg7:"http://rhizomik.net/ontologies/2005/03/Mpeg7-2001.owl#",shw:"http://paul.staroch.name/thesis/SmartHomeWeather.owl#",osp:"http://data.lirmm.fr/ontologies/osp#",tisc:"http://observedchange.com/tisc/ns#",stream:"http://dbpedia.org/ontology/Stream/",thors:"http://resource.geosciml.org/ontology/timescale/thors#",dash:"http://datashapes.org/dash#",sioctypes:"http://rdfs.org/sioc/types#",ottr:"http://ns.ottr.xyz/templates#",hifm:"http://purl.org/net/hifm/data#",aerols:"http://xmlns.com/aerols/0.1/",ql:"http://www.w3.org/2004/ql#",chembl:"http://rdf.ebi.ac.uk/terms/chembl#",lh:"http://vocab.inf.ed.ac.uk/library/holdings#",security:"http://securitytoolbox.appspot.com/securityMain#",te:"http://www.w3.org/2006/time-entry#",gov:"http://gov.genealogy.net/ontology.owl#",iol:"http://www.ontologydesignpatterns.org/ont/dul/IOLite.owl#",refe:"http://orion.tw.rpi.edu/~xgmatwc/refe/",category:"http://dbpedia.org/resource/Category:",dbyago:"http://dbpedia.org/class/yago/",sao:"http://salt.semanticauthoring.org/ontologies/sao#",centrifuge:"http://purl.org/twc/vocab/centrifuge#",dpv:"http://www.w3.org/ns/dpv#",vsto:"http://escience.rpi.edu/ontology/vsto/2/0/vsto.owl#",alchemy:"http://rdf.alchemyapi.com/rdf/v1/s/aapi-schema#",xlime:"http://xlime-project.org/vocab/",rdamt:"http://rdaregistry.info/termList/RDAMediaType/",pronom:"http://reference.data.gov.uk/technical-registry/",trait:"http://contextus.net/ontology/ontomedia/ext/common/trait#",ngeoi:"http://vocab.lenka.no/geo-deling#",qrl:"http://www.aifb.kit.edu/project/ld-retriever/qrl#",twaapi:"http://purl.org/twc/vocab/aapi-schema#",oml:"http://def.seegrid.csiro.au/ontology/om/om-lite#",ebu:"http://semantic.eurobau.com/eurobau-utility.owl#",okg:"http://openknowledgegraph.org/ontology/",ecrm:"http://erlangen-crm.org/current/",onssprel:"http://www.ordnancesurvey.co.uk/ontology/SpatialRelations/v0.2/SpatialRelations.owl#",xrd:"http://docs.oasis-open.org/ns/xri/xrd-1.0#",tw:"http://tw.rpi.edu/schema/",yo:"http://yovisto.com/",cpant:"http://purl.org/NET/cpan-uri/terms#",mtecore:"http://purl.org/olia/mte/multext-east.owl#",fao:"http://fao.270a.info/dataset/",odcs:"http://opendata.cz/infrastructure/odcleanstore/",lctr:"http://data.linkedct.org/vocab/resource/",cosmo:"http://purl.org/ontology/cosmo#",oarj:"http://opendepot.org/reference/linked/1.0/",rec54:"http://www.w3.org/2001/02pd/rec54.rdf#",saxon:"http://saxon.sf.net/",malignneo:"http://www.agfa.com/w3c/2009/malignantNeoplasm#",bgdbp:"http://bg.dbpedia.org/property/",w3con:"http://www.w3.org/2000/10/swap/pim/contact#",lsc:"http://linkedscience.org/lsc/ns#",idemo:"http://rdf.insee.fr/def/demo#",germplasm:"http://purl.org/germplasm/terms#",cts2:"http://schema.omg.org/spec/CTS2/1.0/",obsm:"http://rdf.geospecies.org/methods/observationMethod#",who:"http://www.who.int/vocab/ontology#",wlo:"http://purl.org/ontology/wo/",cis:"http://purl.org/NET/cloudisus#",vartrans:"http://www.w3.org/ns/lemon/vartrans#",bcnnorms:"http://datos.bcn.cl/ontologies/bcn-norms#",zoomaterms:"http://rdf.ebi.ac.uk/vocabulary/zooma/",msr:"http://www.telegraphis.net/ontology/measurement/measurement#",osgeom:"http://data.ordnancesurvey.co.uk/ontology/geometry/",rdafr:"http://rdaregistry.info/termList/frequency/",tm:"http://def.seegrid.csiro.au/isotc211/iso19108/2002/temporal#",vin:"http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#",antenne:"https://data.zendantennes.omgeving.vlaanderen.be/ns/zendantenne#",strdf:"http://strdf.di.uoa.gr/ontology#",gf:"http://def.seegrid.csiro.au/isotc211/iso19109/2005/feature#",raul:"http://vocab.deri.ie/raul#",oae:"http://www.ics.forth.gr/isl/oae/core#",brick:"https://brickschema.org/schema/Brick#",pnt:"http://data.press.net/ontology/tag/",li:"http://def.seegrid.csiro.au/isotc211/iso19115/2003/lineage#",pkmn:"http://pokedex.dataincubator.org/pkm/",goog:"http://schema.googleapis.com/",rmo:"http://eatld.et.tu-dresden.de/rmo#",bihap:"http://bihap.kb.gov.tr/ontology/",ekaw:"http://data.semanticweb.org/conference/ekaw/2012/complete/",pv:"https://piveau.eu/ns/voc#",conf:"http://richard.cyganiak.de/2007/pubby/config.rdf#",qud:"http://qudt.org/1.1/schema/qudt#",mico:"http://www.mico-project.eu/ns/platform/1.0/schema#",hints2005:"http://purl.org/twc/cabig/model/HINTS2005-1.owl#",rdafnm:"http://rdaregistry.info/termList/FormNoteMus/",lsmap:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-data.owl#",op:"http://environment.data.gov.au/def/op#",scoro:"http://purl.org/spar/scoro/",ccrel:"http://creativecommons.org/ns#",part:"http://purl.org/vocab/participation/schema#",emtr:"http://purl.org/NET/ssnext/electricmeters#",odrs:"http://schema.theodi.org/odrs#",dr:"http://purl.org/swan/2.0/discourse-relationships/",oplcert:"http://www.openlinksw.com/schemas/cert#",crv:"http://purl.org/twc/vocab/datacarver#",rdasoi:"http://rdaregistry.info/termList/statIdentification/",ep:"http://eprints.org/ontology/",rdarel2:"http://metadataregistry.org/uri/schema/RDARelationshipsGR2/",esco:"http://data.europa.eu/esco/model#",geovocab:"http://geovocab.org/",l4lod:"http://ns.inria.fr/l4lod/v2/",dbcat:"http://dbpedia.org/resource/Category:",crml:"http://semweb.mmlab.be/ns/rml/condition#",mmf:"http://linkedmultimedia.org/sparql-mm/ns/1.0.0/function#",stories:"http://purl.org/ontology/stories/",d2d:"http://rdfns.org/d2d/",bgt:"https://bgt.basisregistraties.overheid.nl/bgt/def/",dawgt:"http://www.w3.org/2001/sw/DataAccess/tests/test-dawg#",c4dm:"http://purl.org/NET/c4dm/event.owl#",rdae:"http://rdaregistry.info/Elements/e/",activity:"https://www.w3.org/TR/activitystreams-vocabulary/",semio:"http://www.lingvoj.org/semio#",dcs:"http://ontologi.es/doap-changeset#",lcy:"http://purl.org/vocab/lifecycle/schema#",s4ac:"http://ns.inria.fr/s4ac/v2#",bn:"http://babelnet.org/rdf/",wb:"http://data.worldbank.org/",webbox:"http://webbox.ecs.soton.ac.uk/ns#",namespaces:"https://vg.no/",vsso:"http://automotive.eurecom.fr/vsso#",rssynd:"http://web.resource.org/rss/1.0/modules/syndication/",seokoeln:"http://rankrage.de/",sdmxd:"http://purl.org/linked-data/sdmx/2009/dimension#",kbv:"https://id.kb.se/vocab/",seq:"http://www.ontologydesignpatterns.org/cp/owl/sequence.owl#",wikterms:"http://wiktionary.dbpedia.org/terms/",kees:"http://linkeddata.center/kees/v1#",ll:"http://lodlaundromat.org/resource/",cwrc:"http://sparql.cwrc.ca/ontology/cwrc#",lsqv:"http://lsq.aksw.org/vocab#",mv:"http://schema.mobivoc.org/",xapi:"https://w3id.org/xapi/ontology#",bgn:"http://bibliograph.net/schemas/",holding:"http://purl.org/ontology/holding#",cbo:"http://comicmeta.org/cbo/",oan:"http://data.lirmm.fr/ontologies/oan/",quantities:"http://eulersharp.sourceforge.net/2003/03swap/quantitiesExtension#",puelia:"http://kwijibo.talis.com/vocabs/puelia#",mb:"http://dbtune.org/musicbrainz/resource/instrument/",rdacontent:"http://rdvocab.info/termList/RDAContentType/",allot:"https://w3id.org/akn/ontology/allot#",gastro:"http://www.ebsemantics.net/gastro#",lodac:"http://lod.ac/ns/lodac#",pnc:"http://data.press.net/ontology/classification/",tg:"https://triplydb.com/Triply/tg/def/",prof:"http://www.w3.org/ns/dx/prof/",deps:"http://ontologi.es/doap-deps#",im:"http://imgpedia.dcc.uchile.cl/resource/",pingback:"http://purl.org/net/pingback/",nidm:"http://nidm.nidash.org/",saws:"http://purl.org/saws/ontology#",gl:"http://schema.geolink.org/",my:"http://www.mobile.com/model/",omapi:"http://purl.org/omapi/0.2/#",finlaw:"http://purl.org/finlex/schema/laki/",mged:"http://mged.sourceforge.net/ontologies/MGEDOntology.owl#",eui:"http://institutions.publicdata.eu/#",vsws:"http://verticalsearchworks.com/ontology/synset#",sg:"http://name.scigraph.com/ontologies/core/",mt:"http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#",scip:"http://lod.taxonconcept.org/ontology/sci_people.owl#",rdacct:"http://rdaregistry.info/termList/CollTitle/",spt:"http://spitfire-project.eu/ontology/ns/",ogc:"http://www.opengis.net/def/",disease:"http://www.agfa.com/w3c/2009/humanDisorder#",ccp:"http://cookingbigdata.com/linkeddata/ccpricing#",auto:"http://auto.schema.org/",rdamedia:"http://rdvocab.info/termList/RDAMediaType/",pattern:"http://www.essepuntato.it/2008/12/pattern#",pni:"http://data.press.net/ontology/identifier/",gm:"http://def.seegrid.csiro.au/isotc211/iso19107/2003/geometry#",lsweb:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-data.owl#",xcql:"http://docs.oasis-open.org/ns/search-ws/xcql#",ljkl:"http://teste.com/",rdatc:"http://rdaregistry.info/termList/trackConfig/",dqm:"http://purl.org/dqm-vocabulary/v1/dqm#",onyx:"http://www.gsi.dit.upm.es/ontologies/onyx/ns#",c9d:"http://purl.org/twc/vocab/conversion/",delta:"http://www.w3.org/2004/delta#",laposte:"http://data.lirmm.fr/ontologies/laposte#",dbpr:"http://dbpedia.org/resource/",fos:"http://futurios.org/fos/spec/",dbrc:"http://dbpedia.org/resource/Category:",rdagd:"http://rdaregistry.info/termList/gender/",quty:"http://www.telegraphis.net/ontology/measurement/quantity#",mrel:"http://id.loc.gov/vocabulary/relators/",doi:"https://doi.org/",cbase:"http://ontologycentral.com/2010/05/cb/vocab#",wkd:"http://schema.wolterskluwer.de/",foam:"https://www.koerperfettwaage-test.de/",tblcard:"http://www.w3.org/People/Berners-Lee/card#",dcndl:"http://ndl.go.jp/dcndl/terms/",bgcat:"http://bg.dbpedia.org/resource/?????????:",fog:"https://w3id.org/fog#",rvdata:"http://data.rvdata.us/",affymetrix:"http://bio2rdf.org/affymetrix_vocabulary:",ox:"http://vocab.ox.ac.uk/projectfunding#",friends:"http://www.openarchives.org/OAI/2.0/friends/",cvbase:"http://purl.org/captsolo/resume-rdf/0.2/base#",app:"http://jmvanel.free.fr/ontology/software_applications.n3#",telmap:"http://purl.org/telmap/",tsioc:"http://rdfs.org/sioc/types#",bot:"https://w3id.org/bot#",lmo:"http://linkedmultimedia.org/sparql-mm/ns/2.0.0/ontology#",moac:"http://observedchange.com/moac/ns#",oss:"http://opendata.caceres.es/def/ontosemanasanta#",fam:"http://vocab.fusepool.info/fam#",ostop:"http://www.ordnancesurvey.co.uk/ontology/Topography/v0.1/Topography.owl#",lldr:"http://purl.oclc.org/NET/lldr/ns#",snarm:"http://rdf.myexperiment.org/ontologies/snarm/",osspr:"http://data.ordnancesurvey.co.uk/ontology/spatialrelations/",accom:"http://purl.org/acco/ns#",ftcontent:"http://www.ft.com/ontology/content/",stats:"http://purl.org/rdfstats/stats#",bcnbio:"http://datos.bcn.cl/ontologies/bcn-biographies#",orth:"http://purl.org/net/orth#",fincaselaw:"http://purl.org/finlex/schema/oikeus/",isocat:"http://www.isocat.org/datcat/",pair:"http://virtual-assembly.org/ontologies/pair#",origins:"http://origins.link/",evident:"http://purl.org/net/evident#",spfood:"http://kmi.open.ac.uk/projects/smartproducts/ontologies/food.owl#",daisy:"http://www.daisy.org/z3998/2012/vocab/",mml:"http://www.w3.org/1998/Math/MathML/",employee:"http://www.employee.com/data#",od:"http://purl.org/twc/vocab/opendap#",biro:"http://purl.org/spar/biro/",dvia:"http://data.eurecom.fr/ontology/dvia#",eumida:"http://data.kasabi.com/dataset/eumida/terms/",gcis:"http://data.globalchange.gov/gcis.owl#",mvco:"http://purl.oclc.org/NET/mvco.owl#",rdami:"http://rdaregistry.info/termList/modeIssue/",driver:"http://deductions.github.io/drivers.owl.ttl#",dbptmpl:"http://dbpedia.org/resource/Template:",wn31:"http://wordnet-rdf.princeton.edu/wn31/",add:"https://mre.zcu.cz/ontology/stroke.owl#",dao:"http://purl.org/dao#",esaloj:"http://vocab.linkeddata.es/datosabiertos/def/turismo/alojamiento#",viso:"http://purl.org/viso/",nerd:"http://nerd.eurecom.fr/ontology#",salad:"https://w3id.org/cwl/salad#",drm:"http://vocab.data.gov/def/drm#",swperson:"http://data.semanticweb.org/person/",particip:"http://purl.org/vocab/participation/schema#",mtlo:"http://www.ics.forth.gr/isl/MarineTLO/v4/marinetlo.owl#",mil:"http://rdf.muninn-project.org/ontologies/military#",turismo:"http://idi.fundacionctic.org/cruzar/turismo#",gpml:"http://vocabularies.wikipathways.org/gpml#",company:"http://intellimind.io/ns/company#",onc:"http://www.ics.forth.gr/isl/oncm/core#",rdagw:"http://rdaregistry.info/termList/grooveWidth/",merge:"http://jazz.net/ns/lqe/merge/",sct:"http://snomed.info/id/",graffle:"http://purl.org/twc/vocab/vsr/graffle#",radion:"http://www.w3.org/ns/radion#",pkm:"http://www.ontotext.com/proton/protonkm#",call:"http://webofcode.org/wfn/call:",lsd:"http://linkedwidgets.org/statisticaldata/ontology/",cdao:"http://purl.obolibrary.org/obo/",fcs:"http://clarin.eu/fcs/resource#",pvcs:"http://purl.org/twc/vocab/pvcs#",pmd:"https://w3id.org/pmd/co/",ws:"http://www.w3.org/ns/pim/space#",language:"http://id.loc.gov/vocabulary/iso639-1/",aers:"http://aers.data2semantics.org/resource/",gawd:"http://gawd.atlantides.org/terms/",lden:"http://www.linklion.org/lden/",dogont:"http://elite.polito.it/ontologies/dogont.owl#",viskov:"http://trust.utep.edu/visko/ontology/visko-view-v3.owl#",agls:"http://www.agls.gov.au/agls/terms/",ou:"https://opendata.unex.es/def/ontouniversidad#",agr:"http://promsns.org/def/agr#",odpart:"http://www.ontologydesignpatterns.org/cp/owl/participation.owl#",oh:"http://semweb.mmlab.be/ns/oh#",hto:"http://project-haystack.org/hto#",pato:"http://purl.obolibrary.org/obo/",webservice:"http://www.openlinksw.com/ontology/webservices#",rdabm:"http://rdaregistry.info/termList/RDABaseMaterial/",llo:"http://lodlaundromat.org/ontology/",lpeu:"http://purl.org/linkedpolitics/vocabulary/eu/plenary/",rdarel:"http://rdvocab.info/RDARelationshipsWEMI/",voidp:"http://www.enakting.org/provenance/voidp/",w3po:"http://purl.org/provenance/w3p/w3po#",geojson:"https://purl.org/geojson/vocab#",infor:"http://www.ontologydesignpatterns.org/cp/owl/informationrealization.owl#",ctorg:"http://purl.org/ctic/infraestructuras/organizacion#",icane:"http://www.icane.es/opendata/vocab#",qb4o:"http://purl.org/olap#",ramon:"http://rdfdata.eionet.europa.eu/ramon/ontology/",odapp:"http://vocab.deri.ie/odapp#",esequip:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/equipamiento#",ids:"https://w3id.org/idsa/core/",ontopic:"http://www.ontologydesignpatterns.org/ont/dul/ontopic.owl#",uc:"http://ucuenca.edu.ec/ontology#",eurostat:"http://dd.eionet.europa.eu/vocabulary/eurostat/",pic:"http://www.ipaw.info/ns/picaso#",lw:"http://linkedwidgets.org/ontologies/",npgx:"http://ns.nature.com/extensions/",samfl:"http://def.seegrid.csiro.au/ontology/om/sam-lite#",s4envi:"https://w3id.org/def/saref4envi#",ldt:"https://www.w3.org/ns/ldt#",dot:"https://w3id.org/dot#",sylld:"http://www.semanticweb.org/syllabus/data/",being:"http://purl.org/ontomedia/ext/common/being#",dcoid:"http://dx.deepcarbon.net/",phdd:"http://rdf-vocabulary.ddialliance.org/phdd#",swpm:"http://spi-fm.uca.es/spdef/models/deployment/swpm/1.0#",lexicon:"http://www.example.org/lexicon#",bioc:"http://deductions.github.io/biological-collections.owl.ttl#",olad:"http://openlad.org/vocab#",step:"http://purl.org/net/step#",s3db:"http://www.s3db.org/core#",imo:"http://imgpedia.dcc.uchile.cl/ontology#",lexcz:"http://purl.org/lex/cz#",wfn:"http://webofcode.org/wfn/",emoca:"http://ns.inria.fr/emoca#",dcx:"http://dublincore.org/dcx/",lmm1:"http://www.ontologydesignpatterns.org/ont/lmm/LMM_L1.owl#",rdact:"http://rdaregistry.info/termList/RDACarrierType/",lda:"http://purl.org/linked-data/api/vocab#",qvoc:"http://mlode.nlp2rdf.org/quranvocab#",pmc:"http://identifiers.org/pmc/",bwb:"http://doc.metalex.eu/bwb/ontology/",d0:"http://ontologydesignpatterns.org/ont/wikipedia/d0.owl#",roevo:"http://purl.org/wf4ever/roevo#",cmdm:"http://infra.clarin.eu/cmd/",hico:"http://purl.org/emmedi/hico/",year:"http://www.w3.org/year/",geos:"http://www.telegraphis.net/ontology/geography/geography#",fire:"http://tldp.org/HOWTO/XML-RPC-HOWTO/xmlrpc-howto-java.html#",situ:"http://www.ontologydesignpatterns.org/cp/owl/situation.owl#",zr:"http://explain.z3950.org/dtd/2.0/",bgdbr:"http://bg.dbpedia.org/resource/",waarde:"https://lod.milieuinfo.be/ns/waarde#",dcite:"http://purl.org/spar/datacite/",rdl:"http://data.posccaesar.org/rdl/",ceterms:"http://purl.org/ctdl/terms/",ppn:"http://parliament.uk/ontologies/person-name/",dbtont:"http://dbtropes.org/ont/",gt:"https://vocab.eccenca.com/geniustex/",ns1:"http://www.w3.org/1999/xhtml/vocab#",lmm2:"http://www.ontologydesignpatterns.org/ont/lmm/LMM_L2.owl#",agrd:"http://agrinepaldata.com/",dio:"https://w3id.org/dio#",tddo:"http://databugger.aksw.org/ns/core#",wikim:"http://spi-fm.uca.es/spdef/models/genericTools/wikim/1.0#",amalgame:"http://purl.org/vocabularies/amalgame#",gnvc:"http://purl.org/gc/",olac:"http://www.language-archives.org/OLAC/1.0/",bbcprov:"http://www.bbc.co.uk/ontologies/provenance/",puml:"http://plantuml.com/ontology#",si:"https://si-digital-framework.org/SI#",vvo:"http://purl.org/vvo/ns#",msm:"http://iserve.kmi.open.ac.uk/ns/msm#",scufl2:"http://ns.taverna.org.uk/2010/scufl2#",static:"http://vocab-ld.org/vocab/static-ld#",roar:"https://w3id.org/roar#",galaksiya:"http://ontoloji.galaksiya.com/vocab/",omnfed:"http://open-multinet.info/ontology/omn-federation#",jolux:"http://data.legilux.public.lu/resource/ontology/jolux#",gaf:"http://groundedannotationframework.org/",vext:"http://ldf.fi/void-ext#",eunis:"http://eunis.eea.europa.eu/rdf/species-schema.rdf#",wf4ever:"http://purl.org/wf4ever/wf4ever#",elec:"http://purl.org/ctic/sector-publico/elecciones#",gadm:"http://gadm.geovocab.org/ontology#",pois:"http://purl.oclc.org/POIS/vcblr#",kai:"http://kai.uni-kiel.de/",rdafs:"http://rdaregistry.info/termList/fontSize/",viskoo:"http://trust.utep.edu/visko/ontology/visko-operator-v3.owl#",ecglview:"http://schema.geolink.org/view/",ldl:"https://w3id.org/ldpdl/ns#",airs:"https://raw.githubusercontent.com/airs-linked-data/lov/latest/src/airs_vocabulary.ttl#",dq:"http://def.seegrid.csiro.au/isotc211/iso19115/2003/dataquality#",vag:"http://www.essepuntato.it/2013/10/vagueness/",vir:"http://w3id.org/vir#",fred:"http://www.ontologydesignpatterns.org/ont/fred/domain.owl#",lmdb:"http://data.linkedmdb.org/",vmm:"http://spi-fm.uca.es/spdef/models/genericTools/vmm/1.0#",vsw:"http://verticalsearchworks.com/ontology/",jp1:"http://rdf.muninn-project.org/ontologies/jp1/",pcdt:"http://purl.org/procurement/public-contracts-datatypes#",graves:"http://rdf.muninn-project.org/ontologies/graves#",pid:"http://permid.org/ontology/organization/",osadm:"http://data.ordnancesurvey.co.uk/ontology/admingeo/",bnf:"http://www.w3.org/2000/10/swap/grammar/bnf#",locwd:"http://purl.org/locwd/schema#",aws:"http://purl.oclc.org/NET/ssnx/meteo/aws#",biotop:"http://purl.org/biotop/biotop.owl#",rut:"http://rdfunit.aksw.org/ns/core#",coll:"http://purl.org/co/",owl2xml:"http://www.w3.org/2006/12/owl2-xml#",prviv:"http://purl.org/net/provenance/integrity#",omdoc:"http://omdoc.org/ontology/",odbc:"http://www.openlinksw.com/ontology/odbc#",regorg:"http://www.w3.org/ns/regorg#",trig:"http://www.w3.org/2004/03/trix/rdfg-1/",moo:"http://www.movieontology.org/2009/11/09/movieontology.owl#",fuseki:"http://jena.apache.org/fuseki#",rdagrp:"http://rdaregistry.info/termList/groovePitch/",opengov:"http://www.w3.org/opengov#",vapour:"http://vapour.sourceforge.net/vocab.rdf#",npdv:"http://sws.ifi.uio.no/vocab/npd#",poste:"http://data.lirmm.fr/ontologies/poste#",gci:"http://ontology.eil.utoronto.ca/GCI/Foundation/GCI-Foundation.owl#",location:"http://sw.deri.org/2006/07/location/loc#",oplprod:"http://www.openlinksw.com/ontology/products#",uis:"http://uis.270a.info/dataset/",llm:"http://lodlaundromat.org/metrics/ontology/",genre:"http://sparql.cwrc.ca/ontologies/genre#",frb:"http://frb.270a.info/dataset/",rvz:"http://rdfvizler.dyreriket.xyz/vocabulary/core#",rdatr:"http://rdaregistry.info/termList/typeRec/",crime:"http://purl.org/vocab/reloc/",mammal:"http://lod.taxonconcept.org/ontology/p01/Mammalia/index.owl#",fnabox:"http://www.ontologydesignpatterns.org/ont/framenet/abox/",rlnr:"http://rdflivenews.aksw.org/resource/",led:"http://led.kmi.open.ac.uk/term/",rdai:"http://rdaregistry.info/Elements/i/",aktivesa:"http://sa.aktivespace.org/ontologies/aktivesa#",lcdr:"http://ns.lucid-project.org/revision/",teamwork:"http://topbraid.org/teamwork#",ontosec:"http://www.semanticweb.org/ontologies/2008/11/OntologySecurity.owl#",wn20:"http://www.w3.org/2006/03/wn/wn20/",incident:"http://vocab.resc.info/incident#",fcp:"http://www.newmedialab.at/fcp/",bpo:"https://w3id.org/bpo#",proms:"http://promsns.org/def/proms#",geosp:"http://rdf.geospecies.org/ont/geospecies#",rdacc:"http://rdaregistry.info/termList/RDAColourContent/",topo:"http://data.ign.fr/def/topo#",acrt:"http://privatealpha.com/ontology/certification/1#",dsn:"http://purl.org/dsnotify/vocab/eventset/",beth:"http://www.google.com/",pdf:"http://ns.adobe.com/pdf/1.3/",cpack:"http://cliopatria.swi-prolog.org/schema/cpack#",opmo:"http://openprovenance.org/model/opmo#",vrank:"http://purl.org/voc/vrank#",mmoon:"http://mmoon.org/mmoon/",lido:"http://www.lido-schema.org/",eccauth:"https://vocab.eccenca.com/auth/",obeu:"http://data.openbudgets.eu/ontology/",geocontext:"http://www.geocontext.org/publ/2013/vocab#",pwo:"http://purl.org/spar/pwo/",jpost:"http://rdf.jpostdb.org/ontology/jpost.owl#",saif:"http://wwwiti.cs.uni-magdeburg.de/~srahman/",oecc:"http://www.oegov.org/core/owl/cc#",pkgsrc:"http://pkgsrc.co/schema#",cd:"http://citydata.wu.ac.at/ns#",ssno:"http://www.w3.org/ns/ssn/",frbrer:"http://iflastandards.info/ns/fr/frbr/frbrer/",reg:"http://purl.org/linked-data/registry#",mocanal:"http://www.semanticweb.org/asow/ontologies/2013/9/untitled-ontology-36#",bner:"http://datos.bne.es/resource/",ali:"http://www.niso.org/schemas/ali/1.0/",output:"http://volt-name.space/vocab/output#",owlse:"http://www.daml.org/services/owl-s/1.2/generic/Expression.owl#",cwlprov:"https://w3id.org/cwl/prov#",rdf123:"http://rdf123.umbc.edu/ns/",limo:"http://www.purl.org/limo-ontology/limo#",omg:"https://w3id.org/omg#",studiop:"http://purl.org/resource/pilatesstudio/",ldvm:"http://linked.opendata.cz/ontology/ldvm/",text:"http://jena.apache.org/text#",sto:"https://w3id.org/i40/sto#",sx:"http://shex.io/ns/shex#",locah:"http://data.archiveshub.ac.uk/def/",ln:"https://w3id.org/ln#",condition:"http://www.kinjal.com/condition:",reegle:"http://reegle.info/schema#",passim:"http://data.lirmm.fr/ontologies/passim#",hlygt:"http://www.holygoat.co.uk/owl/redwood/0.1/tags/",rdafmn:"http://rdaregistry.info/termList/MusNotation/",afr:"http://purl.allotrope.org/ontologies/result#",odv:"http://reference.data.gov.uk/def/organogram/",ecgl:"http://schema.geolink.org/",rofch:"http://rdaregistry.info/termList/rofch/",logies:"https://data.vlaanderen.be/ns/logies#",bcngeo:"http://datos.bcn.cl/ontologies/bcn-geographics#",limoo:"http://purl.org/LiMo/0.1/",glview:"http://schema.geolink.org/dev/view/",pfeepsa:"https://w3id.org/pfeepsa#",kegg:"http://bio2rdf.org/ns/kegg#",edgar:"http://edgarwrap.ontologycentral.com/vocab/edgar#",rdarm:"http://registry.info/termList/recMedium/",r3d:"http://www.re3data.org/schema/3-0#",tis:"http://www.ontologydesignpatterns.org/cp/owl/timeindexedsituation.owl#",roterms:"http://purl.org/wf4ever/roterms#",tb:"https://w3id.org/timebank#",orcid:"http://orcid.org/",imf:"http://imf.270a.info/dataset/",rdarole:"http://rdvocab.info/roles/",tui:"http://data.ifs.tuwien.ac.at/study/resource/",webac:"http://fedora.info/definitions/v4/webac#",oils:"http://lemon-model.net/oils#",defns:"http://www.openarchives.org/OAI/2.0/",sru:"http://www.loc.gov/zing/srw/",plg:"http://parliament.uk/ontologies/legislation/",sirene:"https://sireneld.io/vocab/sirene#",frsad:"http://iflastandards.info/ns/fr/frsad/",eem:"http://purl.org/eem#",rdaftn:"http://rdaregistry.info/termList/TacNotation/",laabs:"http://dbpedia.org/resource/",iana:"http://www.iana.org/assignments/relation/",voc:"http://voc.odw.tw/",cocoon:"https://w3id.org/cocoon/v1.0#",babelnet:"http://babelnet.org/2.0/",caplibacl:"http://schemas.capita-libraries.co.uk/2015/acl/schema#",lexvo:"http://lexvo.org/ontology#",muldicat:"http://iflastandards.info/ns/muldicat#",datacite:"http://purl.org/spar/datacite/",nxs:"http://www.neclimateus.org/",rdaterm:"http://rdaregistry.info/termList/RDATerms/",form:"http://deductions-software.com/ontologies/forms.owl.ttl#",csv:"http://vocab.sindice.net/csv/",basic:"http://def.seegrid.csiro.au/isotc211/iso19103/2005/basic#",ubiq:"http://server.ubiqore.com/ubiq/core#",figigii:"http://www.omg.org/spec/FIGI/GlobalInstrumentIdentifiers/",afm:"http://purl.allotrope.org/ontologies/material/",crowd:"http://purl.org/crowd/",eccrev:"https://vocab.eccenca.com/revision/",lyon:"http://dbpedia.org/resource/Lyon/",spdx:"http://spdx.org/rdf/terms#",jjd:"http://www.joshuajeeson.com/",rdaco:"http://rdaregistry.info/termList/RDAContentType/",citof:"http://www.essepuntato.it/2013/03/cito-functions#",gq:"http://genomequest.com/",shui:"https://vocab.eccenca.com/shui/",ordf:"http://purl.org/NET/ordf/",dicom:"http://purl.org/healthcarevocab/v1#",task:"http://deductions.github.io/task-management.owl.ttl#",agrovoc:"http://aims.fao.org/aos/agrovoc/",pproc:"http://contsem.unizar.es/def/sector-publico/pproc#",eepsa:"https://w3id.org/eepsa#",fntbox:"http://www.ontologydesignpatterns.org/ont/framenet/tbox/",gts:"http://resource.geosciml.org/ontology/timescale/gts#",customer:"http://www.valuelabs.com/",mdi:"http://w3id.org/multidimensional-interface/ontology#",gdc:"https://portal.gdc.cancer.gov/cases/",iati:"http://purl.org/collections/iati/",lingvo:"http://www.lingvoj.org/ontology#",meeting:"http://www.w3.org/2002/07/meeting#",lawd:"http://lawd.info/ontology/",oxi:"http://omerxi.com/ontologies/core.owl.ttl#",bbccms:"http://www.bbc.co.uk/ontologies/cms/",conference:"https://w3id.org/scholarlydata/ontology/conference-ontology.owl#",water:"http://escience.rpi.edu/ontology/semanteco/2/0/water.owl#",yd:"https://yodata.io/",csp:"http://vocab.deri.ie/csp#",lofv:"http://purl.org/legal_form/vocab#",rls:"https://w3id.org/lovcube/ns/relovstats#",oplecrm:"http://www.openlinksw.com/ontology/ecrm#",hva:"http://www.ebusiness-unibw.org/ontologies/hva/ontology#",ruian:"https://data.cssz.cz/ontology/ruian/",lswpm:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-lifemapper-parameters.owl#",open311:"http://ontology.eil.utoronto.ca/open311#",bevon:"http://rdfs.co/bevon/",fhir:"http://hl7.org/fhir/",oplcb:"http://www.openlinksw.com/schemas/crunchbase#",cbim:"http://www.coinsweb.nl/cbim-2.0.rdf#",clirio:"http://clirio.kaerle.com/clirio.owl#",bb:"http://www.snik.eu/ontology/bb/",owsom:"https://onlinesocialmeasures.wordpress.com/",rdalay:"http://rdaregistry.info/termList/layout/",cim:"http://iec.ch/TC57/2013/CIM-schema-cim16#",eurlex:"http://eur-lex.publicdata.eu/ontology/",asgv:"http://aims.fao.org/aos/agrovoc/",contsem:"http://contsem.unizar.es/def/sector-publico/contratacion#",lswmo:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-modelling.owl#",umls:"http://bioportal.bioontology.org/ontologies/umls/",pep:"https://w3id.org/pep/",sdmxcode:"http://purl.org/linked-data/sdmx/2009/code#",infection:"http://www.agfa.com/w3c/2009/infectiousDisorder#",nlon:"http://lod.nl.go.kr/ontology/",tree:"https://w3id.org/tree#",tsn:"http://purl.org/net/tsn#",voidext:"http://rdfs.org/ns/void-ext#",vdpp:"http://data.lirmm.fr/ontologies/vdpp#",roadmap:"http://mappings.roadmap.org/",volt:"http://volt-name.space/ontology/",qms:"http://data.europa.eu/esco/qms#",bdc:"http://dbpedia.org/resource/Category:",bsym:"http://bsym.bloomberg.com/sym/",county:"http://myexample.org/county#",oprovo:"http://openprovenance.org/ontology#",essglobal:"http://purl.org/essglobal/vocab/v1.0/",videogame:"http://purl.org/net/vgo#",sfd:"http://semantic-forms.cc:9112/ldp/",rdarr:"http://rdaregistry.info/termList/RDAReductionRatio/",mls:"http://www.w3.org/ns/mls#",hr:"http://iserve.kmi.open.ac.uk/ns/hrests#",drk:"http://drakon.su/",swpatho:"http://swpatho.ag-nbi.de/context/meta.owl#",ha:"http://sensormeasurement.appspot.com/ont/home/homeActivity#",fun:"http://w3id.org/sparql-generate/fn/",ago:"http://awesemantic-geo.link/ontology/",organ:"http://www.univalle.edu.co/ontologies/Organ#",scco:"http://rdf.ebi.ac.uk/terms/surechembl#",dsv:"https://w3id.org/dsv#",fr:"https://w3id.org/fr/def/core#",mexv:"http://mex.aksw.org/mex-algo#",trao:"http://linkeddata.finki.ukim.mk/lod/ontology/tao#",rofer:"http://rdaregistry.info/termList/rofer/",keys:"http://purl.org/NET/c4dm/keys.owl#",owms:"http://standaarden.overheid.nl/owms/terms/",adf:"http://purl.allotrope.org/ontologies/datapackage#",uom:"http://www.opengis.net/def/uom/OGC/1.0/",cmdi:"http://www.clarin.eu/cmd/",pp:"http://peoplesplaces.de/ontology#",ja:"http://jena.hpl.hp.com/2005/11/Assembler#",wdtn:"http://www.wikidata.org/prop/direct-normalized/",sakthi:"http://infotech.nitk.ac.in/research-scholars/sakthi-murugan-r/",rdafrbr:"http://rdvocab.info/uri/schema/FRBRentitiesRDA/",numbers:"http://km.aifb.kit.edu/projects/numbers/",rdag2:"http://rdvocab.info/ElementsGr2/",chear:"http://hadatac.org/ont/chear#",lmx:"http://www.w3.org/XML/1998/namespace/",bds:"http://www.bigdata.com/rdf/search#",mmt:"http://linkedmultimedia.org/sparql-mm/functions/temporal#",composer:"http://dbpedia.org/ontology/composer/",ogbd:"http://www.ogbd.fr/2012/ontologie#",soch:"http://kulturarvsdata.se/ksamsok#",dpn:"http://purl.org/dpn#",cwl:"https://w3id.org/cwl/cwl#",lgdm:"http://linkedgeodata.org/meta/",apf:"http://jena.apache.org/ARQ/property#",diag:"http://www.loc.gov/zing/srw/diagnostic/",opa:"https://w3id.org/laas-iot/adream#",td5:"http://td5.org/#",csdbp:"http://cs.dbpedia.org/",cjr:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/callejero#",lslife:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-lifemapper.owl#",ruto:"http://rdfunit.aksw.org/ns/core#",rofrr:"http://rdaregistry.info/termList/rofrr/",radar:"http://www.radar-projekt.org/display/",demlab:"http://www.demcare.eu/ontologies/demlab.owl#",bblfish:"http://bblfish.net/people/henry/card#",doacc:"http://purl.org/net/bel-epa/doacc#",munc:"http://ns.inria.fr/munc#",kml:"http://www.opengis.net/kml/2.2#",cwork:"http://www.bbc.co.uk/ontologies/creativework/",crsw:"http://courseware.rkbexplorer.com/ontologies/courseware#",itm:"http://spi-fm.uca.es/spdef/models/genericTools/itm/1.0#",one:"https://bioportal.bioontology.org/ontologies/ONE/",az:"https://w3id.org/people/az/",door:"http://kannel.open.ac.uk/ontology#",ndnp:"http://chroniclingamerica.loc.gov/terms#",jerm:"http://jermontology.org/ontology/JERMOntology#",vstoi:"http://hadatac.org/ont/vstoi#",seeds:"http://deductions.github.io/seeds.owl.ttl#",ctrl:"https://w3id.org/ibp/CTRLont#",dk:"http://www.data-knowledge.org/dk/schema/rdf/latest/",rdasco:"http://rdaregistry.info/termList/soundCont/",wimpo:"http://rdfex.org/withImports?uri=",navm:"https://w3id.org/navigation_menu#",rofem:"http://rdaregistry.info/termList/rofem/",whisky:"http://vocab.org/whisky/terms/",rofid:"http://rdaregistry.info/termList/rofid/",dcosample:"http://info.deepcarbon.net/sample/schema#",aprov:"http://purl.org/a-proc#",amt:"http://academic-meta-tool.xyz/vocab#",audit:"http://fedora.info/definitions/v4/audit#",bob:"http://good.dad/meaning/bob#",faostat:"http://reference.eionet.europa.eu/faostat/schema/",olca:"http://www.lingvoj.org/olca#",bld:"http://biglinkeddata.com/",mds:"http://doc.metalex.eu/id/",opllog:"http://www.openlinksw.com/ontology/logging#",markus:"http://www.markus.com/",sdshare:"http://www.sdshare.org/2012/extension/",mexalgo:"http://mex.aksw.org/mex-algo#",hasneto:"http://hadatac.org/ont/hasneto#",rpath:"https://w3id.org/lodsight/rdf-path#",scho:"http://www.scholarlydata.org/ontology/conference-ontology.owl#",bis:"http://bis.270a.info/dataset/",oliasystem:"http://purl.org/olia/system.owl#",mandaat:"http://data.vlaanderen.be/ns/mandaat#",assoc:"https://w3id.org/associations/vocab#",maso:"http://securitytoolbox.appspot.com/MASO#",datex:"http://vocab.datex.org/terms#",ecore:"http://www.eclipse.org/emf/2002/Ecore#",lg:"https://purl.org/lg/",bdo:"http://purl.bdrc.io/ontology/core/",efrbroo:"http://erlangen-crm.org/efrbroo/",svcs:"http://rdfs.org/sioc/services#",osd:"http://a9.com/-/spec/opensearch/1.1/",hello:"https://www.youtube.com/user/SuperTellAFriend/featured/",lheo:"http://www.conjecto.com/ontology/2015/lheo#",oplli:"http://www.openlinksw.com/schemas/linkedin#",frappe:"http://streamreasoning.org/ontologies/frappe#",fnom:"https://w3id.org/function/vocabulary/mapping#",oplmkt:"http://www.openlinksw.com/ontology/market#",conll:"http://ufal.mff.cuni.cz/conll2009-st/task-description.html#",bbccore:"http://www.bbc.co.uk/ontologies/coreconcepts/",timex:"http://data.wu.ac.at/ns/timex#",erce:"http://xxefe.de/",tix:"http://toptix.com/2010/esro/",memento:"http://mementoweb.org/ns#",rofrt:"http://rdaregistry.info/termList/rofrt/",emergelm:"http://purl.org/emergel/modules#",gbol:"http://gbol.life/0.1#",physics:"http://www.astro.umd.edu/~eshaya/astro-onto/owl/physics.owl#",bdr:"http://purl.bdrc.io/resource/",rdapmt:"http://rdaregistry.info/termList/prodTactile/",sdt:"http://statisticaldata.linkedwidgets.org/terms/",lovc:"https://w3id.org/lovcube/ns/lovcube#",voidex:"http://www.swi-prolog.org/rdf/library/",planet:"http://dbpedia.org/",eol:"http://purl.org/biodiversity/eol/",vogd:"http://ogd.ifs.tuwien.ac.at/vienna/geo/",spcm:"http://spi-fm.uca.es/spdef/models/deployment/spcm/1.0#",gnm:"http://www.geonames.org/ontology/mappings/",escom:"http://vocab.linkeddata.es/datosabiertos/def/comercio/tejidoComercial#",oplres:"http://www.openlinksw.com/ontology/restrictions#",w3cgeo:"http://www.w3.org/2003/01/geo/wgs84_pos#",ofrd:"http://purl.org/opdm/refrigerator#",llont:"http://www.linklion.org/ontology#",ver:"https://w3id.org/version/ontology#",biml:"http://schemas.varigence.com/biml.xsd#",its:"http://www.w3.org/2005/11/its/rdf#",sgg:"http://www.springernature.com/scigraph/graphs/",yaco:"https://www.irit.fr/recherches/MELODI/ontologies/cinema#",qkdv:"http://qudt.org/vocab/dimensionvector/",rdaemm:"http://rdaregistry.info/termList/emulsionMicro/",rdabf:"http://rdaregistry.info/termList/bookFormat/",mwapi:"https://www.mediawiki.org/ontology#API/",dbms:"http://www.openlinksw.com/ontology/dbms-app-ontology#",edr:"https://w3id.org/laas-iot/edr#",summa:"http://purl.org/voc/summa/",eccpubsub:"https://vocab.eccenca.com/pubsub/",traffic:"http://www.sensormeasurement.appspot.com/ont/transport/traffic#",rdacarx:"http://rdaregistry.info/termList/RDACarrierEU/",eame:"http://www.semanticweb.org/ontologia_EA#",lemonuby:"http://lemon-model.net/lexica/uby/",swrc2:"https://www.cs.vu.nl/~mcaklein/onto/swrc_ext/2005/05#",oplwebsrv:"http://www.openlinksw.com/ontology/webservices#",rdaz:"http://rdaregistry.info/Elements/z/",foaffff:"http://gogl.com/",fdbp:"http://fr.dbpedia.org/property/",rdabs:"http://rdaregistry.info/termList/broadcastStand/",geod:"http://vocab.lenka.no/geo-deling#",gont:"https://gont.ch/",ecoll:"http://purl.org/ceu/eco/1.0#",travel:"http://www.co-ode.org/roberts/travel.owl#",otl:"https://w3id.org/opentrafficlights#",oplweb:"http://www.openlinksw.com/schemas/oplweb#",sgfn:"http://w3id.org/sparql-generate/fn/",lmu:"https://w3id.org/laas-iot/lmu#",vidont:"http://vidont.org/",pmo:"http://premon.fbk.eu/ontology/core#",rofin:"http://rdaregistry.info/termList/rofin/",literature:"http://purl.org/net/cnyt-literature#",oplstocks:"http://www.openlinksw.com/ontology/stocks#",ensembl:"http://rdf.ebi.ac.uk/resource/ensembl/",ims:"http://www.imsglobal.org/xsd/imsmd_v1p2/",ntag:"http://ns.inria.fr/nicetag/2010/09/09/voc#",semiot:"http://w3id.org/semiot/ontologies/semiot#",duv:"http://www.w3.org/ns/duv#",iter:"http://w3id.org/sparql-generate/iter/",frgeo:"http://rdf.insee.fr/geo/",persee:"http://data.persee.fr/ontology/persee_ontology/",eccdi:"https://vocab.eccenca.com/di/",nno:"https://w3id.org/nno/ontology#",s4syst:"https://saref.etsi.org/saref4syst/",besluit:"http://data.vlaanderen.be/ns/besluit#",minim:"http://purl.org/minim/minim#",url:"http://schema.org/",system:"http://www.univalle.edu.co/ontologies/System#",oplacl:"http://www.openlinksw.com/ontology/acl#",mem:"http://mementoweb.org/ns#",spvqa:"https://bmake.th-brandenburg.de/spv#",dbug:"http://ontologi.es/doap-bugs#",aml:"https://w3id.org/i40/aml#",espresup:"http://vocab.linkeddata.es/datosabiertos/def/hacienda/presupuestos#",oplbenefit:"http://www.openlinksw.com/ontology/benefits#",ca:"http://complyadvantage.com/",rdapm:"http://rdaregistry.info/termList/RDAproductionMethod/",sorg:"http://schema.org/",km4c:"http://www.disit.org/km4city/schema#",cpov:"http://data.europa.eu/m8g/",ipsv:"http://id.esd.org.uk/list/",cubeont:"http://ontology.cube.global/",lfov:"https://w3id.org/legal_form#",rdaar:"http://rdaregistry.info/termList/AspectRatio/",uta:"http://uptheasset.org/ontology#",dsw:"http://purl.org/dsw/",vehma:"http://deductions.github.io/vehicule-management.owl.ttl#",uby:"http://purl.org/olia/ubyCat.owl#",meshv:"http://id.nlm.nih.gov/mesh/vocab#",newsevents:"http://www.aifb.uni-karlsruhe.de/WBS/uhe/ontologies#",cue:"http://www.clarin.eu/cmdi/cues/display/1.0#",dcap:"http://purl.org/ws-mmi-dc/terms/",pcdm:"http://pcdm.org/models#",odf:"http://docs.oasis-open.org/ns/office/1.2/meta/odf#",r4ta:"http://ns.inria.fr/ratio4ta/v1#",nih:"http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#",religion:"http://rdf.muninn-project.org/ontologies/religion#",oup:"http://purl.org/ontology-use-patterns#",nkos:"http://w3id.org/nkos#",rgml:"http://purl.org/puninj/2001/05/rgml-schema#",gns:"http://sws.geonames.org/",h2o:"http://def.seegrid.csiro.au/isotc211/iso19150/-2/2012/basic#",vacseen1:"http://www.semanticweb.org/parthasb/ontologies/2014/6/vacseen1/",rdfp:"https://w3id.org/rdfp/",sfn:"http://semweb.datasciencelab.be/ns/sfn#",onisep:"http://rdf.onisep.fr/resource/",uneskos:"http://purl.org/voc/uneskos#",rdag1:"http://rdvocab.info/Elements/",fluidops:"http://www.fluidops.com/",dwciri:"http://rs.tdwg.org/dwc/iri/",ido:"http://purl.obolibrary.org/obo/ido.owl#",irsteaont:"http://ontology.irstea.fr/weather/ontology#",phy:"https://w3id.org/skgo/phy#",pcit:"http://public-contracts.nexacenter.org/id/propertiesRole/",nature:"http://deductions.github.io/nature_observation.owl.ttl#",esapar:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/aparcamiento#",mexcore:"http://mex.aksw.org/mex-core#",cpi:"http://www.ebusiness-unibw.org/ontologies/cpi/ns#",bsh:"https://brickschema.org/schema/1.1.0/BrickShape#",tx:"http://swtmp.gitlab.io/vocabulary/templates.owl#",rofit:"http://rdaregistry.info/termList/rofit/",id:"http://identifiers.org/",cff:"http://purl.oclc.org/NET/ssnx/cf/cf-feature#",provinsi:"http://provinsi.com/",pmhb:"http://pmhb.org/",ioto:"http://www.irit.fr/recherches/MELODI/ontologies/IoT-O#",beo:"https://w3id.org/beo#",rdafnv:"http://rdaregistry.info/termList/noteForm/",vcard2006:"http://www.w3.org/2006/vcard/ns#",tgm:"http://id.loc.gov/vocabulary/graphicMaterials/",escjr:"http://vocab.linkeddata.es/datosabiertos/def/urbanismo-infraestructuras/callejero#",beer:"http://beer.com/",swcomp:"https://github.com/ali1k/ld-reactor/blob/master/vocabulary/index.ttl#",physo:"http://merlin.phys.uni.lodz.pl/onto/physo/physo.owl#",esservicio:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/servicio#",wsdl:"http://www.w3.org/ns/wsdl-rdf#",dicera:"http://semweb.mmlab.be/ns/dicera#",glycan:"http://purl.jp/bio/12/glyco/glycan#",vplan:"http://www.ifs.tuwien.ac.at/~miksa/ontologies/VPlan.owl#",s4ee:"https://w3id.org/saref4ee#",spv:"http://completeness.inf.unibz.it/sp-vocab#",geovoid:"http://purl.org/geovocamp/ontology/geovoid/",ilap:"http://data.posccaesar.org/ilap/",iiif:"http://iiif.io/api/image/2#",tarql:"http://tarql.github.io/tarql#",aksw:"http://aksw.org/",esadm:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/territorio#",itcat:"http://th-brandenburg.de/ns/itcat#",brk:"http://brk.basisregistraties.overheid.nl/def/brk#",lmf:"http://www.lexinfo.net/lmf#",rdacdt:"http://rdaregistry.info/termList/RDACartoDT/",modsci:"https://w3id.org/skgo/modsci#",literal:"http://www.essepuntato.it/2010/06/literalreification/",veo:"http://linkeddata.finki.ukim.mk/lod/ontology/veo#",mmm:"http://www.mico-project.eu/ns/mmm/2.0/schema#",naval:"http://rdf.muninn-project.org/ontologies/naval#",dbfo:"http://dbpedia.org/facts/ontology#",rdare:"http://rdaregistry.info/termList/RDARegionalEncoding/",odapps:"http://semweb.mmlab.be/ns/odapps#",cog:"http://purl.org/ontology/cco/core#",sdmxm:"http://purl.org/linked-data/sdmx/2009/measure#",ontoneo:"http://purl.obolibrary.org/obo/ontoneo/",devuan:"https://devuan.net.br/",bkb:"https://budayakb.cs.ui.ac.id/ns#",rm:"http://jazz.net/ns/rm#",vocnet:"http://schema.vocnet.org/",gg:"http://www.gemeentegeschiedenis.nl/gg-schema#",alice:"http://example.org/",vam:"http://www.metmuseum.org/",vocals:"http://w3id.org/rsp/vocals#",hdo:"http://www.samos.gr/ontologies/helpdeskOnto.owl#",dead:"http://utpl.edu.ec/sbc/data/",rdacpc:"http://rdaregistry.info/termList/configPlayback/",xslopm:"http://purl.org/net/opmv/types/xslt#",rofsm:"http://rdaregistry.info/termList/rofsm/",qbe:"http://citydata.wu.ac.at/qb-equations#",dby:"http://dbpedia.org/class/yago/",nobel:"http://data.nobelprize.org/terms/",da:"https://www.wowman.org/index.php?id=1&type=get#",atlasterms:"http://rdf.ebi.ac.uk/terms/atlas/",fp3:"http://vocab.fusepool.info/fp3#",number:"http://km.aifb.kit.edu/projects/numbers/number#",ncicp:"http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#",ogdl4m:"https://github.com/martynui/OGDL4M/",ifcowl:"http://www.buildingsmart-tech.org/ifcOWL/IFC4_ADD2#",apb:"http://www.analysispartners.org/businessmodel/",oop:"http://w3id.org/oop#",ldq:"http://www.linkeddata.es/ontology/ldq#",semsur:"http://purl.org/SemSur/",wde:"http://www.wikidata.org/entity/",ppr:"http://purl.org/datanode/ppr/ns/",roc:"https://w3id.org/ro/curate#",mobivoc:"http://schema.mobivoc.org/",mydb:"http://mydb.org/",crmeh:"http://purl.org/crmeh#",ldn:"https://www.w3.org/TR/ldn/#",mus:"http://data.doremus.org/ontology#",ul:"http://underlay.mit.edu/ns/",legal:"http://www.w3.org/ns/legal#",input:"http://volt-name.space/vocab/input#",halyard:"http://merck.github.io/Halyard/ns#",imjv:"https://data.imjv.omgeving.vlaanderen.be/ns/imjv#",or:"http://openresearch.org/vocab/",tosh:"http://topbraid.org/tosh#",lgdt:"http://linkedgeodata.org/triplify/",yso:"http://www.yso.fi/onto/yso/",ttla:"https://w3id.org/ttla/",rdaspc:"http://rdaregistry.info/termList/specPlayback/",geor:"http://www.opengis.net/def/rule/geosparql/",edg:"http://edg.topbraid.solutions/model/",mbgd:"http://mbgd.genome.ad.jp/owl/mbgd.owl#",rofrm:"http://rdaregistry.info/termList/rofrm/",swa:"http://topbraid.org/swa#",rofim:"http://rdaregistry.info/termList/rofim/",rdag3:"http://rdvocab.info/ElementsGr3/",sciprov:"http://sweetontology.net/reprSciProvenance/",sgiter:"http://w3id.org/sparql-generate/iter/",gvoith:"http://assemblee-virtuelle.github.io/grands-voisins-v2/thesaurus.ttl#",ethc:"http://ethoinformatics.org/ethocore/",decprov:"http://promsns.org/def/decprov#",dataid:"http://dataid.dbpedia.org/ns/core#",huto:"http://ns.inria.fr/huto/",ucum:"http://purl.oclc.org/NET/muo/ucum/",aozora:"http://purl.org/net/aozora/",lgt:"http://linkedgadget.com/wiki/Property:",gobierno:"http://www.gobierno.es/gobierno/",nosql:"http://purl.org/db/nosql#",l2sp:"http://www.linked2safety-project.eu/properties/",tissue:"http://www.univalle.edu.co/ontologies/Tissue#",tadirah:"http://tadirah.dariah.eu/vocab/",rdaft:"http://rdaregistry.info/termList/fileType/",dcodt:"http://info.deepcarbon.net/datatype/schema#",iotlite:"http://purl.oclc.org/NET/UNIS/fiware/iot-lite#",srx:"http://www.w3.org/2005/sparql-results#",it:"http://www.influencetracker.com/ontology#",sdterms:"http://statisticaldata.linkedwidgets.org/terms/",ontop:"https://w3id.org/ontop/",isbdu:"http://iflastandards.info/ns/isbd/unc/elements/",ocds:"http://purl.org/onto-ocds/ocds#",dnbt:"http://d-nb.info/standards/elementset/dnb#",scholl:"http://menemeneml.com/school#",um:"http://intelleo.eu/ontologies/user-model/ns/",cska:"http://pfclitex.com/",alethio:"http://aleth.io/",neotecbib:"http://neotec.rc.unesp.br/resource/NeotectonicsBibliography/",imind:"http://schema.intellimind.ns/symbology#",geo7:"https://www.geo7.ch/",rdax:"http://rdaregistry.info/Elements/x/",nas:"https://data.nasa.gov/ontologies/atmonto/NAS#",loted:"http://loted.eu/ontology#",idot:"http://identifiers.org/idot/",juso:"http://rdfs.co/juso/",rdapf:"http://rdaregistry.info/termList/presFormat/",sdmxc:"http://purl.org/linked-data/sdmx/2009/concept#",occ:"http://w3id.org/occ#",esair:"http://vocab.linkeddata.es/datosabiertos/def/medio-ambiente/calidad-aire#",ods:"http://lod.xdams.org/ontologies/ods/",ondc:"http://www.semanticweb.org/ontologies/2012/1/Ontology1329913965202.owl#",rvl:"http://purl.org/rvl/",elod:"http://linkedeconomy.org/ontology#",pmonb:"http://premon.fbk.eu/ontology/nb#",ldqm:"http://linkeddata.es/resource/ldqm/",crminf:"http://www.cidoc-crm.org/cidoc-crm/CRMinf/",koly:"http://www.ensias.ma/",pbody:"http://reference.data.gov.uk/def/public-body/",geoloc:"http://deductions.github.io/geoloc.owl.ttl#",dto:"http://www.datatourisme.fr/ontology/core/1.0#",iso37120:"http://ontology.eil.utoronto.ca/ISO37120.owl#",piero:"http://reactionontology.org/piero/",alg:"http://drakon.su/ADF#",edgarcik:"http://edgarwrap.ontologycentral.com/cik/",docker:"http://www.w3.org/ns/bde/docker/",sorepsf:"http://sweetontology.net/reprSciFunction/",neotec:"http://neotec.rc.unesp.br/resource/Neotectonics/",smxm:"http://smxm.ga/",edac:"http://ontology.cybershare.utep.edu/ELSEWeb/elseweb-edac.owl#",xbrll:"https://w3id.org/vocab/xbrll#",b3kat:"http://lod.b3kat.de/title/",rofhf:"http://rdaregistry.info/termList/rofhf/",undata:"http://citydata.wu.ac.at/Linked-UNData/data/",lsq:"http://lsq.aksw.org/vocab#",datacron:"http://www.datacron-project.eu/datAcron#",ns2:"http://ogp.me/ns#video:",rfd:"http://com.intrinsec//ontology#",eproc:"http://10.0.3.120/download/eproc_FORN_v02.owl#",uri4uri:"http://uri4uri.net/vocab#",amsl:"http://vocab.ub.uni-leipzig.de/amsl/",loci:"http://linked.data.gov.au/def/loci#",wail:"http://www.eyrie.org/~zednenem/2002/wail/",tsnchange:"http://purl.org/net/tsnchange#",sohukd:"http://sweetontology.net/humanKnowledgeDomain/",wab:"http://wab.uib.no/cost-a32_philospace/wittgenstein.owl#",globalcube:"http://kalmar32.fzi.de/triples/global-cube.ttl#",efd:"http://data.foodanddrinkeurope.eu/ontology#",pand:"http://bag.basisregistraties.overheid.nl/bag/id/pand/",pop:"http://wiki.dbpedia.org/",seo:"http://sda.tech/SEOontology/SEO/",maeco:"http://edg.topbraid.solutions/maeco/",geofabric:"http://linked.data.gov.au/def/geofabric#",remetca:"http://www.purl.org/net/remetca#",connard:"https://mail.google.com/mail/u/1/#",ii:"http://sparql.cwrc.ca/ontologies/ii#",rico:"https://www.ica.org/standards/RiC/ontology#",kmgeo:"http://km.aifb.kit.edu/services/geo/ontology#",dcodata:"http://info.deepcarbon.net/data/schema#",imas:"https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#",metadata:"http://purl.oreilly.com/ns/meta/",pmofn:"http://premon.fbk.eu/ontology/fn#",ncbigene:"http://identifiers.org/ncbigene/",m3lite:"http://purl.org/iot/vocab/m3-lite#",soproptg:"http://sweetontology.net/propTemperatureGradient/",eustd:"http://eurostat.linked-statistics.org/data#",dm2e:"http://onto.dm2e.eu/schemas/dm2e/",sophatmow:"http://sweetontology.net/phenAtmoWind/",pmovn:"http://premon.fbk.eu/ontology/vn#",d3s:"http://vocbench.solidaridad.cloud/taxonomies#",iab:"https://www.iab.com/guidelines/taxonomy/",scra:"http://purl.org/net/schemarama#",tikag:"https://www.tikag.com/",gdprov:"https://w3id.org/GDPRov#",soma:"http://sweetontology.net/matr/",sopropsdis:"http://sweetontology.net/propSpaceDistance/",s4bldg:"https://w3id.org/def/saref4bldg#",olac11:"http://www.language-archives.org/OLAC/1.1/",brt:"http://brt.basisregistraties.overheid.nl/def/top10nl#",soprocsc:"http://sweetontology.net/procStateChange/",m3:"http://sensormeasurement.appspot.com/m3#",llr:"http://lodlaundromat.org/resource/",isidore:"http://www.rechercheisidore.fr/class/",vsearch:"http://vocab.sti2.at/vsearch#",sophatmowm:"https://sweetontology.net/phenAtmoWindMesoscale/",esproc:"http://vocab.linkeddata.es/datosabiertos/def/sector-publico/procedimientos#",sorepmo:"http://sweetontology.net/reprMathOperation/",rdfdata:"http://rdf.data-vocabulary.org/rdf.xml#",marcrole:"http://id.loc.gov/vocabulary/relators/",s3n:"http://w3id.org/s3n/",biolink:"https://w3id.org/biolink/vocab/",rofsf:"http://rdaregistry.info/termList/rofsf/",sorepsrs:"http://sweetontology.net/reprSpaceReferenceSystem/",soproptf:"http://sweetontology.net/propTimeFrequency/",valueflows:"https://w3id.org/valueflows/",sopropp:"http://sweetontology.net/propPressure/",manto:"http://com.vortic3.MANTO/",hosp:"http://health.data.gov/def/hospital/",gdpr:"https://vocab.eccenca.com/gdpr/",bci:"https://w3id.org/BCI-ontology#",unspsc:"http://ontoview.org/schema/unspsc/1#",rdavf:"http://rdaregistry.info/termList/videoFormat/",fnml:"http://semweb.mmlab.be/ns/fnml#",ispra:"http://dati.isprambiente.it/ontology/core#",gdprtext:"https://w3id.org/GDPRtEXT#",clapit:"http://dati.gov.it/onto/clapit/",pm:"http://premon.fbk.eu/resource/",estatwrap:"http://ontologycentral.com/2009/01/eurostat/ns#",rdaill:"http://rdaregistry.info/termList/IllusContent/",bioentity:"http://bioentity.io/vocab/",dgfr:"http://colin.maudry.com/ontologies/dgfr#",master1:"http://idl.u-grenoble3.fr/",asawoo:"http://liris.cnrs.fr/asawoo/",llalg:"http://www.linklion.org/algorithm/",rimmf:"http://rimmf.com/vocab/",bibrm:"http://vocab.ub.uni-leipzig.de/bibrm/",vss:"http://automotive.eurecom.fr/vsso#",rami:"http://iais.fraunhofer.de/vocabs/rami#",irstea:"http://ontology.irstea.fr/",sopropsl:"http://sweetontology.net/propSpaceLocation/",qk:"http://qudt.org/vocab/quantitykind/",ctxdesc:"http://www.demcare.eu/ontologies/contextdescriptor.owl#",smartapi:"http://smart-api.io/ontology/1.0/smartapi#",osys:"http://purl.org/olia/system.owl#",emergel:"http://purl.org/emergel/core#",cbb:"https://data.cbb.omgeving.vlaanderen.be/ns/cbb#",chemsci:"https://w3id.org/skgo/chemsci#",wn30:"http://purl.org/vocabularies/princeton/wn30/",psv:"http://www.wikidata.org/prop/statement/value/",pq:"http://www.wikidata.org/prop/qualifier/",rdagen:"http://rdaregistry.info/termList/RDAGeneration/",sostc:"http://sweetontology.net/stateChemical/",dsfv:"http://sws.ifi.uio.no/vocab/dsf/henriwi/dsf#",refexo:"http://purl.jp/bio/01/refexo#",tavprov:"http://ns.taverna.org.uk/2012/tavernaprov/",ksam:"http://kulturarvsdata.se/ksamsok#",changeset:"http://purl.org/vocab/changeset/schema#",linkrel:"https://www.w3.org/ns/iana/link-relations/relation#",eqp:"https://data.nasa.gov/ontologies/atmonto/equipment#",rsctx:"http://softeng.polito.it/rsctx#",fel:"http://w3id.org/vcb/fel#",dpla:"http://dp.la/info/developers/map/",sohuecons:"http://sweetontology.net/humanEnvirConservation/",sopropcat:"http://sweetontology.net/propCategorical/",oplangel:"http://www.openlinksw.com/schemas/angel#",maet:"http://edg.topbraid.solutions/taxonomy/macroeconomics/",gnaf:"http://linked.data.gov.au/def/gnaf#",goaf:"http://goaf.fr/goaf#",pplan:"http://purl.org/net/p-plan#",pham:"https://w3id.org/skgo/pham#",oplp:"http://www.openlinksw.com/ontology/purchases#",stencila:"http://schema.stenci.la/",noise:"http://vocab.linkeddata.es/datosabiertos/def/medio-ambiente/contaminacion-acustica#",isoadr:"http://reference.data.gov.au/def/ont/iso19160-1-address#",prohow:"https://w3id.org/prohow#",omnlc:"http://open-multinet.info/ontology/omn-lifecycle#",ermrk:"http://www.essepuntato.it/2008/12/earmark#",sopropsh:"http://sweetontology.net/propSpaceHeight/",rdaad:"http://rdaregistry.info/Elements/a/datatype/",wild:"http://purl.org/wild/vocab#",sorepmso:"http://sweetontology.net/reprMathSolution/",terms:"http://purl.org/dc/terms/",soproc:"http://sweetontology.net/proc/",gcon:"https://w3id.org/GConsent#",bitl:"http://lib.bit.edu.cn/ontology/1.0/",mdont:"http://ont.matchdeck.com/",ordo:"http://www.orpha.net/ORDO/",capes:"http://vocab.capes.gov.br/def/vcav#",losp:"http://sparql.sstu.ru:3030/speciality/",somaoc:"http://sweetontology.net/matrOrganicCompound/",skosthes:"http://purl.org/iso25964/skos-thes#",dm:"http://datamusee.givingsense.eu/onto/",dmp:"http://www.sysresearch.org/rda-common-dmp#",aseonto:"http://requirement.ase.ru/requirements_ontology#",snac:"http://socialarchive.iath.virginia.edu/",sorepsu:"http://sweetontology.net/reprSciUnits/",cwlgit:"https://w3id.org/cwl/view/git/",soprocp:"http://sweetontology.net/procPhysical/",sostv:"http://sweetontology.net/stateVisibility/",country:"http://eulersharp.sourceforge.net/2003/03swap/countries#",provoc:"http://ns.inria.fr/provoc/",extech:"https://w3id.org/executionTechnique/ontology/",sorepmfo:"http://sweetontology.net/reprMathFunctionOrthogonal/",sopropsp:"http://sweetontology.net/propSpeed/",sophatmofo:"http://sweetontology.net/phenAtmoFog/",pmopb:"http://premon.fbk.eu/ontology/pb#",lesa:"http://hadatac.org/ont/lesa#",sorepsc:"http://sweetontology.net/reprSciComponent/",eproc2:"http://10.0.3.120/download/eproc_FORN_v04.owl#",jsonschema:"https://www.w3.org/2019/wot/json-schema#",sosttf:"http://sweetontology.net/stateTimeFrequency/",sorepscd:"http://sweetontology.net/reprSpaceCoordinate/",sorepdf:"http://sweetontology.net/reprDataFormat/",sorepdsa:"http://sweetontology.net/reprDataServiceAnalysis/",sophec:"http://sweetontology.net/phenEcology/",soreaofl:"http://sweetontology.net/realmOceanFloor/",daap:"http://daap.dsi.universite-paris-saclay.fr/wiki/",sopropsdir:"http://sweetontology.net/propSpaceDirection/",powla:"http://purl.org/powla/powla.owl#",sohut:"http://sweetontology.net/humanTransportation/",sorepmst:"http://sweetontology.net/reprMathStatistics/",lcsh:"http://id.loc.gov/authorities/subjects/",rofet:"http://rdaregistry.info/termList/rofet/",wdv:"http://www.wikidata.org/value/",sophoc:"http://sweetontology.net/phenOceanCoastal/",theme:"http://voc.odw.tw/theme/",sopropef:"http://sweetontology.net/propEnergyFlux/",dqc:"http://semwebquality.org/ontologies/dq-constraints#",earth:"http://linked.earth/ontology#",dentsci:"https://w3id.org/skgo/dentsci#",sorelm:"http://sweetontology.net/relaMath/",atts:"https://data.nasa.gov/ontologies/atmonto/general#",cwmo:"http://purl.org/cwmo/#",epplan:"https://w3id.org/ep-plan#",sophatmopc:"http://sweetontology.net/phenAtmoPrecipitation/",esagen:"http://vocab.ciudadesabiertas.es/def/sector-publico/agenda-municipal#",obws:"http://delicias.dia.fi.upm.es/ontologies/ObjectWithStates.owl#",r4r:"http://guava.iis.sinica.edu.tw/r4r/",dcatnl:"http://standaarden.overheid.nl/dcatnl/terms/",sopropti:"http://sweetontology.net/propTime/",hctl:"https://www.w3.org/2019/wot/hypermedia#",constant:"http://qudt.org/vocab/constant/",sorepsme:"http://sweetontology.net/reprSciMethodology/",soprops:"http://sweetontology.net/propSpace/",bs:"https://w3id.org/bs#",soreaa:"http://sweetontology.net/realmAtmo/",esgs:"https://w3id.org/edwin/ontology/",sorept:"http://sweetontology.net/reprTime/",sophso:"http://sweetontology.net/phenSolid/",wikimedia:"http://upload.wikimedia.org/wikipedia/commons/f/f6/",sophsy:"http://sweetontology.net/phenSystem/",sopropcha:"http://sweetontology.net/propCharge/",orgesv2:"http://datos.gob.es/sites/default/files/OntologiaDIR3/orges.owl#",sweet:"http://sweetontology.net/",iospress:"http://ld.iospress.nl/rdf/ontology/",sorepmf:"http://sweetontology.net/reprMathFunction/",sopropmf:"http://sweetontology.net/propMassFlux/",gmo:"http://purl.jp/bio/10/gmo/",sorepdp:"http://sweetontology.net/reprDataProduct/",sorepdsv:"http://sweetontology.net/reprDataServiceValidation/",medred:"http://w3id.org/medred/medred#",sopropsm:"http://sweetontology.net/propSpaceMultidimensional/",sostb:"http://sweetontology.net/stateBiological/",sorepdsr:"http://sweetontology.net/reprDataServiceReduction/",sorelpr:"http://sweetontology.net/relaProvenance/",sorepsl:"http://sweetontology.net/reprSciLaw/",sopropdifu:"http://sweetontology.net/propDiffusivity/",nrv:"http://ns.inria.fr/nrv#",eppl:"https://w3id.org/ep-plan#",shema:"http://schema.org/",sopropcap:"http://sweetontology.net/propCapacity/",isaterms:"http://purl.org/isaterms/",inchikey:"https://identifiers.org/inchikey:",stx:"http://purl.org/cyber/stix#",fssp:"http://linkeddata.fssprus.ru/resource/",voidwh:"http://www.ics.forth.gr/isl/VoIDWarehouse/VoID_Extension_Schema.owl#",sostri:"http://sweetontology.net/stateRoleImpact/",jup:"http://w3id.org/charta77/jup/",sopropq:"http://sweetontology.net/propQuantity/",sopropcou:"http://sweetontology.net/propCount/",sopropb:"http://sweetontology.net/propBinary/",sorepsp:"http://sweetontology.net/reprSciProvenance/",sostrr:"http://sweetontology.net/stateRoleRepresentative/",dprov:"http://promsns.org/def/do#",sorealc:"http://sweetontology.net/realmLandCoastal/",vehman:"http://deductions.github.io/vehicule-management.owl.ttl#",gvoi:"http://assemblee-virtuelle.github.io/grands-voisins-v2/gv.owl.ttl#",soreahb:"http://sweetontology.net/realmHydroBody/",lblodlg:"http://data.lblod.info/vocabularies/leidinggevenden/",estatgph:"http://estatwrap.ontologycentral.com/id/nama_aux_gph#",somanr:"http://sweetontology.net/matrNaturalResource/",odw:"http://odw.tw/",sorepts:"http://sweetontology.net/reprTimeSeason/",iaph:"http://www.juntadeandalucia.es/datosabiertos/portal/iaph/dataset/dataset/6c199ca2-8d2e-4c12-833c-f28",ldc:"https://tac.nist.gov/tracks/SM-KBP/2018/ontologies/SeedlingOntology#",sophatmoc:"http://sweetontology.net/phenAtmoCloud/",pineapple:"http://hexananas.com/pineapple#",ingredient:"http://www.owl-ontologies.com/test.owl/ingredient/",estrf:"http://vocab.linkeddata.es/datosabiertos/def/transporte/trafico#",skoslex:"https://bp4mc2.org/def/skos-lex#",sophfd:"http://sweetontology.net/phenFluidDynamics/",mexperf:"http://mex.aksw.org/mex-perf#",sopropdr:"http://sweetontology.net/propDimensionlessRatio/",wotsec:"https://www.w3.org/2019/wot/security#",sorelcl:"http://sweetontology.net/relaClimate/",w3id:"https://w3id.org/",somamin:"http://sweetontology.net/matrMineral/",sostth:"http://sweetontology.net/stateThermodynamic/",soreps:"http://sweetontology.net/reprSpace/",sorep:"http://sweetontology.net/repr/",sorelh:"http://sweetontology.net/relaHuman/",sopropm:"http://sweetontology.net/propMass/",ideotalex:"http://www.ideotalex.eu/datos/recurso/",sopropcon:"http://sweetontology.net/propConductivity/",sorepmg:"http://sweetontology.net/reprMathGraph/",soprope:"http://sweetontology.net/propEnergy/",sopropo:"http://sweetontology.net/propOrdinal/",soreao:"http://sweetontology.net/realmOcean/",sosto:"http://sweetontology.net/stateOrdinal/",soreaas:"http://sweetontology.net/realmAstroStar/",soreacz:"http://sweetontology.net/realmClimateZone/",esdbpr:"http://es.dbpedia.org/resource/",vort:"http://rockets.topbraid.solutions/vort/",sfl:"http://data.finlex.fi/schema/sfl/",sophatmofr:"http://sweetontology.net/phenAtmoFront/",yandex:"http://yandex.ru/",sopropche:"http://sweetontology.net/propChemical/",sosttg:"http://sweetontology.net/stateTimeGeologic/",dave:"http://theme-e.adaptcentre.ie/dave#",foio:"https://w3id.org/seas/FeatureOfInterestOntology/",sophpc:"http://sweetontology.net/phenPlanetClimate/",sopropi:"http://sweetontology.net/propIndex/",sohutr:"http://sweetontology.net/humanTechReadiness/",sopropfr:"http://sweetontology.net/propFraction/",sopropr:"http://sweetontology.net/propRotation/",sorealo:"http://sweetontology.net/realmLandOrographic/",sophatmops:"http://sweetontology.net/phenAtmoPressure/",cci:"http://cookingbigdata.com/linkeddata/ccinstances#",lprov:"http://id.learning-provider.data.ac.uk/terms#",proton:"http://www.ontotext.com/proton/",sorepm:"http://sweetontology.net/reprMath/",sophatmos:"http://sweetontology.net/phenAtmoSky/",sophst:"http://sweetontology.net/phenStar/",sorepsd:"http://sweetontology.net/reprSpaceDirection/",sophatmol:"http://sweetontology.net/phenAtmoLightning/",frbroo:"http://iflastandards.info/ns/fr/frbr/frbroo/",loupe:"http://ont-loupe.linkeddata.es/def/core/",somains:"http://sweetontology.net/matrInstrument/",trek:"https://w3id.org/trek/",somac:"http://sweetontology.net/matrCompound/",sohuj:"http://sweetontology.net/humanJurisdiction/",sohues:"http://sweetontology.net/humanEnvirStandards/",cfrl:"http://linkeddata.finki.ukim.mk/lod/ontology/cfrl#",ddb:"http://www.deutsche-digitale-bibliothek.de/edm/",somaae:"http://sweetontology.net/matrAerosol/",sophcr:"http://sweetontology.net/phenCryo/",sophwn:"http://sweetontology.net/phenWaveNoise/",d2s:"https://w3id.org/d2s/",sorelsc:"http://sweetontology.net/relaSci/",sostrg:"http://sweetontology.net/stateRoleGeographic/",sopropdife:"http://sweetontology.net/propDifference/",sopropfu:"http://sweetontology.net/propFunction/",sorear:"http://sweetontology.net/realmRegion/",somapl:"http://sweetontology.net/matrPlant/",esagm:"http://vocab.ciudadesabiertas.es/def/sector-publico/agenda-municipal#",ecowlim:"http://ecowlim.tfri.gov.tw/lode/resource/",sorelph:"http://sweetontology.net/relaPhysical/",sophatmo:"http://sweetontology.net/phenAtmo/",eccf:"http://data.europa.eu/54i/",somaf:"http://sweetontology.net/matrFacility/",sostso:"http://sweetontology.net/stateSolid/",taxref:"http://taxref.mnhn.fr/lod/taxon/",osmm:"https://www.openstreetmap.org/meta/",sostrt:"http://sweetontology.net/stateRoleTrust/",sohur:"http://sweetontology.net/humanResearch/",soreas:"http://sweetontology.net/realmSoil/",sorepsg3:"http://sweetontology.net/reprSpaceGeometry3D/",sost:"http://sweetontology.net/state/",gx:"https://w3id.org/gaia-x/development#",sophm:"http://sweetontology.net/phenMixing/",sorealp:"http://sweetontology.net/realmLandProtected/",soprocw:"http://sweetontology.net/procWave/",sorepdm:"http://sweetontology.net/reprDataModel/",somab:"http://sweetontology.net/matrBiomass/",sophcm:"http://sweetontology.net/phenCycleMaterial/",hdgi:"https://w3id.org/hdgi#",sohu:"http://sweetontology.net/human/",sostrc:"http://sweetontology.net/stateRoleChemical/",pcdmuse:"http://pcdm.org/use#",sosttc:"http://sweetontology.net/stateTimeCycle/",sorepdsg:"http://sweetontology.net/reprDataServiceGeospatial/",sorelt:"http://sweetontology.net/relaTime/",bldont:"http://ont.biglinkeddata.com/",soreaer:"http://sweetontology.net/realmEarthReference/",soreaaw:"http://sweetontology.net/realmAtmoWeather/",biogrid:"http://thebiogrid.org/",somaem:"http://sweetontology.net/matrElementalMolecule/",mbkeys:"https://pastebin.com/ThBfphb8#",donto:"http://reference.data.gov.au/def/ont/dataset#",sophel:"http://sweetontology.net/phenElecMag/",phto:"http://rhizomik.net/ontologies/PlantHealthThreats.owl.ttl#",somaen:"http://sweetontology.net/matrEnergy/",ggbn:"http://data.ggbn.org/schemas/ggbn/terms/",asgs:"http://linked.data.gov.au/def/asgs#",somarock:"http://sweetontology.net/matrRock/",soreaabl:"http://sweetontology.net/realmAtmoBoundaryLayer/",sophr:"http://sweetontology.net/phenReaction/",misp:"http://purl.org/cyber/misp#",sorel:"http://sweetontology.net/rela/",pnv:"https://w3id.org/pnv#",somarocki:"http://sweetontology.net/matrRockIgneous/",somaind:"http://sweetontology.net/matrIndustrial/",sophft:"http://sweetontology.net/phenFluidTransport/",sostdp:"http://sweetontology.net/stateDataProcessing/",sopropst:"http://sweetontology.net/propSpaceThickness/",probont:"http://www.probonto.org/ontology#",sophcy:"http://sweetontology.net/phenCycle/",sostsy:"http://sweetontology.net/stateSystem/",sostsp:"http://sweetontology.net/stateSpace/",soreac:"http://sweetontology.net/realmCryo/",dbm:"http://purl.org/net/dbm/ontology#",soreaah:"http://sweetontology.net/realmAstroHelio/",sophatmot:"http://sweetontology.net/phenAtmoTransport/",osmt:"https://wiki.openstreetmap.org/wiki/Key:",soreal:"http://sweetontology.net/realmLandform/",mmms:"http://ldf.fi/schema/mmm/",somais:"http://sweetontology.net/matrIsotope/",soph:"http://sweetontology.net/phen/",soall:"http://sweetontology.net/sweetAll/",sohuc:"http://sweetontology.net/humanCommerce/",soreptd:"http://sweetontology.net/reprTimeDay/",lv2:"http://lv2plug.in/ns/lv2core/",sopropt:"http://sweetontology.net/propTemperature/",soreaofe:"http://sweetontology.net/realmOceanFeature/",sorelch:"http://sweetontology.net/relaChemical/",trak:"https://purl.org/trak/metamodel/vocab#",omop:"http://api.ohdsi.org/WebAPI/vocabulary/concept/",she:"http://shacleditor.org/",sophsyc:"http://sweetontology.net/phenSystemComplexity/",sorepsmo:"http://sweetontology.net/reprSciModel/",soprocc:"http://sweetontology.net/procChemical/",mccv:"http://purl.jp/bio/10/mccv#",sorepds:"http://sweetontology.net/reprDataService/",cto:"https://w3id.org/cto#",somas:"http://sweetontology.net/matrSediment/",sorelsp:"http://sweetontology.net/relaSpace/",compub:"https://sireneld.io/vocab/compub#",sophb:"http://sweetontology.net/phenBiol/",sophei:"http://sweetontology.net/phenEnvirImpact/",idsc:"https://w3id.org/idsa/code/",twitter:"http://stocktwits.com/",snomedct:"http://purl.bioontology.org/ontology/SNOMEDCT/",sophod:"http://sweetontology.net/phenOceanDynamics/",sostrb:"http://sweetontology.net/stateRoleBiological/",soprop:"http://sweetontology.net/prop/",somaw:"http://sweetontology.net/matrWater/",sostsb:"http://sweetontology.net/stateSpectralBand/",sophhy:"http://sweetontology.net/phenHydro/",somaeq:"http://sweetontology.net/matrEquipment/",say:"https://say.data.gift/ns/",sohueccont:"http://sweetontology.net/humanEnvirControl/",s4city:"https://saref.etsi.org/saref4city/",wds:"http://www.wikidata.org/entity/statement/",somaio:"http://sweetontology.net/matrIon/",soreabb:"http://sweetontology.net/realmBiolBiome/",sohuea:"http://sweetontology.net/humanEnvirAssessment/",sostro:"http://sweetontology.net/stateRole/",rank:"http://www.ontotext.com/owlim/RDFRank#",ccomid:"http://www.ontologyrepository.com/CommonCoreOntologies/Mid/",oco:"https://w3id.org/oc/ontology/",sophgt:"http://sweetontology.net/phenGeolTectonic/",sophen:"http://sweetontology.net/phenEnergy/",sorealt:"http://sweetontology.net/realmLandTectonic/",s4agri:"https://saref.etsi.org/saref4agri/",omim:"http://purl.bioontology.org/ontology/OMIM/",esbici:"http://vocab.ciudadesabiertas.es/def/transporte/bicicleta-publica#",sostef:"http://sweetontology.net/stateEnergyFlux/",schoi:"https://w3id.org/scholarlydata/ontology/indicators-ontology.owl#",oplsoft:"http://www.openlinksw.com/ontology/software#",edupro:"http://ns.inria.fr/semed/eduprogression#",ldes:"https://w3id.org/ldes#",ocsw:"http://data.diekb.org/def/ocsw#",sophw:"http://sweetontology.net/phenWave/",osmrel:"https://www.openstreetmap.org/relation/",sophgs:"http://sweetontology.net/phenGeolSeismicity/",brot:"https://w3id.org/brot#",cbs:"http://betalinkeddata.cbs.nl/def/cbs#",sostp:"http://sweetontology.net/statePhysical/",taxrefprop:"http://taxref.mnhn.fr/lod/property/",dfc:"http://datafoodconsortium.org/ontologies/DFC_FullModel.owl#",sostf:"http://sweetontology.net/stateFluid/",atd:"https://data.nasa.gov/ontologies/atmonto/data#",sorealf:"http://sweetontology.net/realmLandFluvial/",sorealg:"http://sweetontology.net/realmLandGlacial/",gleio:"http://lei.info/gleio/",asio:"http://purl.org/hercules/asio/core#",gas:"http://www.bigdata.com/rdf/gas#",ciao:"http://ciao.it/",sostti:"http://sweetontology.net/stateTime/",somael:"http://sweetontology.net/matrElement/",place:"http://purl.org/ontology/places/",birthdate:"http://schema.org/birthDate/",sophgg:"http://sweetontology.net/phenGeolGeomorphology/",soman:"http://sweetontology.net/matrAnimal/",eupont:"http://elite.polito.it/ontologies/eupont.owl#",sostre:"http://sweetontology.net/stateRealm/",sophfi:"http://sweetontology.net/phenFluidInstability/",atm:"https://data.nasa.gov/ontologies/atmonto/ATM#",soreala:"http://sweetontology.net/realmLandAeolian/",dd:"http://example.org/dummydata/",matvoc:"http://stream-ontology.com/matvoc/",wasa:"http://vocab.sti2.at/wasa/",persoon:"http://data.vlaanderen.be/ns/persoon#",sohud:"http://sweetontology.net/humanDecision/",sostsc:"http://sweetontology.net/stateSpaceConfiguration/",sostss:"http://sweetontology.net/stateSpaceScale/",sophhe:"http://sweetontology.net/phenHelio/",io:"https://iaco.me/",istex:"https://data.istex.fr/ontology/istex#",somamic:"http://sweetontology.net/matrMicrobiota/",malaka:"http://george.gr/",soreaab:"http://sweetontology.net/realmAstroBody/",ci:"https://privatealpha.com/ontology/content-inventory/1#",fibo:"https://spec.edmcouncil.org/fibo/ontology/master/latest/",mobiliteit:"https://data.vlaanderen.be/ns/mobiliteit#",docam:"https://www.docam.ca/glossaurus/",somapa:"http://sweetontology.net/matrParticle/",sopho:"http://sweetontology.net/phenOcean/",iaco:"https://iaco.me/",osmnode:"https://www.openstreetmap.org/node/",ogura:"https://sparql.crssnky.xyz/Ogura_Hyakunin_Isshu_LinkedRDF/URIs/Ogura_Hyakunin_Isshu_schema.ttl#",sostsl:"http://sweetontology.net/stateSpectralLine/",ccr:"http://cookingbigdata.com/linkeddata/ccregions#",waa:"http://purl.oclc.org/NET/WebApiAuthentication#",sophgv:"http://sweetontology.net/phenGeolVolcano/",ccsla:"http://cookingbigdata.com/linkeddata/ccsla#",rl:"http://rl.com/resources/",sophg:"http://sweetontology.net/phenGeol/",sostst:"http://sweetontology.net/stateStorm/",toaru:"https://metadata.moe/toaru-sparql/elements/",s4ener:"https://saref.etsi.org/saref4ener/",dbonto:"http://dbepedia.org/ontology/",sohua:"http://sweetontology.net/humanAgriculture/",oplfeat:"http://www.openlinksw.com/ontology/features#",eppo:"https://gd.eppo.int/taxon/",dfcb:"http://datafoodconsortium.org/ontologies/DFC_BusinessOntology.owl#",knows:"http://semantic.komc/usu/2020/knows#",sophgf:"http://sweetontology.net/phenGeolFault/",sorealv:"http://sweetontology.net/realmLandVolcanic/",osmway:"https://www.openstreetmap.org/way/",kko:"http://kbpedia.org/kko/rc/",fx:"http://sparql.xyz/facade-x/ns/",arp:"http://www.arpenteur.org/ontology/Arpenteur.owl#",fernanda:"http://fernanda.nl/",uimo:"http://vocab.sti2.at/uimo/",lexicog:"http://www.w3.org/ns/lemon/lexicog#",jur:"http://sweet.jpl.nasa.gov/2.3/humanJurisdiction.owl#",bperson:"http://data.vlaanderen.be/ns/persoon#",rdasource:"http://rdaregistry.info/termList/RDARecordingSources/",vlueprint:"https://vlueprint.org/schema/",cts:"http://rdf.cdisc.org/ct/schema#",mr:"http://marineregions.org/ns/ontology#",wotc:"http://purl.org/wot-catalogue#",karstlink:"https://ontology.uis-speleo.org/ontology/#",movieo:"http://movie.com/ontology/",ei2a:"http://opendata.aragon.es/def/ei2a#",prismdb:"https://prismdb.takanakahiko.me/prism-schema.ttl#",ebg:"http://data.businessgraph.io/ontology#",sorea:"http://sweetontology.net/realm/",rdapol:"http://rdaregistry.info/termList/RDAPolarity/",bao:"http://www.bioassayontology.org/bao#",epcis:"https://ns.gs1.org/epcis/",saref4envi:"https://saref.etsi.org/saref4envi/",mgv:"http://mangaview.fr/mgv#",ld:"http://linkeddata.ru/",ams:"http://data.amadeus.com/",ble:"http://vocab.rapidthings.eu/ns/ble.ttl#",gco:"http://purl.jp/bio/12/glyco/conjugate#",srv:"http://www.daml.org/services/owl-s/1.2/Service.owl#",textgrid:"https://textgridrep.org/",gom:"https://w3id.org/gom#",i18n:"https://www.w3.org/ns/i18n#",xyz:"http://sparql.xyz/facade-x/data/",freq:"http://purl.org/cld/freq/",ibeacon:"http://vocab.rapidthings.eu/ns/apple/ibeacon.ttl#",contry:"http://dbpedia.org/resource/Lyon#",hpont:"https://w3id.org/hpont#",mpg123:"https://devuan.net.br/wiki/mpg123/",marcgt:"https://id.loc.gov/vocabulary/marcgt/",bop:"https://w3id.org/bop#",tso:"https://w3id.org/tso#",bcom:"https://w3id.org/bcom#",mag:"https://makg.org/property/",rdat:"http://rdaregistry.info/Elements/t/",srr:"https://w3id.org/srr#",quran:"http://khalidaloufi.sa/quran#",motogp:"http://www.motogp.com/",cso:"http://cso.kmi.open.ac.uk/schema/cso/",estraf:"http://vocab.ciudadesabiertas.es/def/transporte/trafico#",accid:"http://pid.accurids.com/",rofchrda:"http://rdaregistry.info/termList/rofchrda/",oeso:"http://www.opensilex.org/vocabularies/oeso#",maroc:"http://fr.dbpedia.org/page/Maroc/",univ:"http://univ.io/",hops:"https://rdf.ag/o/hops#",vr:"https://www.w3.org/2018/credentials/v1/",mltd:"https://mltd.pikopikopla.net/mltd-schema#",w3geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",la:"https://linked.art/ns/terms/",cbv:"https://ns.gs1.org/cbv/",rdaut:"http://rdaregistry.info/termList/RDAUnitOfTime/",pgxo:"http://ns.inria.fr/pgxo/",seasd:"https://w3id.org/seas/",hola:"https://moodle.insa-lyon.fr/course/view.php?id=",contax:"https://w3id.org/con-tax#",vph:"http://purl.org/ozo/vph.owl#",bleadapter:"http://vocab.rapidthings.eu/ns/ble/adapter.ttl#",bdg:"http://data.bigdatagrapes.eu/resource/ontology/",smithy:"https://awslabs.github.io/smithy/rdf-1.0#",samian:"http://lod.archaeology.link/data/samian/",dom:"https://html.spec.whatwg.org/#",esconv:"http://vocab.ciudadesabiertas.es/def/sector-publico/convenio#",rdaep:"http://rdaregistry.info/termList/RDAExtensionPlan/",aspect:"http://purl.org/aspect/",mdcs:"https://mdcs.monumentenkennis.nl/damageatlas/ontology#",mesh2021:"http://id.nlm.nih.gov/mesh/2021/",ssnx:"http://purl.oclc.org/NET/ssnx/ssn#",check:"http://pornhub.com/",kpd:"http://purl.org/kpd/",rdano:"http://rdaregistry.info/Elements/n/object/",stax:"https://w3id.org/stax/ontology#",geodcat:"http://data.europa.eu/930/",rpg:"http://rpg.data.is4.site/",nsg:"https://neuroshapes.org/",rdaio:"http://rdaregistry.info/Elements/i/object/",sty:"http://purl.bioontology.org/ontology/STY/",slm:"http://urn.fi/URN:NBN:fi:au:slm:",faas:"http://semantic-faas.com/ontology#",rdamd:"http://rdaregistry.info/Elements/m/datatype/",rdaxd:"http://rdaregistry.info/Elements/x/datatype/",mnx:"https://rdf.metanetx.org/schema/",rdaao:"http://rdaregistry.info/Elements/a/object/",melding:"http://lblod.data.gift/vocabularies/automatische-melding/",esautob:"http://vocab.ciudadesabiertas.es/def/transporte/autobus#",rdato:"http://rdaregistry.info/Elements/t/object/",roffgrda:"http://rdaregistry.info/termList/roffgrda/",lado:"http://archaeology.link/ontology#",rdaid:"http://rdaregistry.info/Elements/i/datatype/",rdatb:"http://rdaregistry.info/termList/RDATypeOfBinding/",spec:"http://www.w3.org/ns/spec#",citedcat:"https://w3id.org/citedcat-ap/",idpo:"https://w3id.org/idpo#",signify:"http://purl.org/signify/ns#",datagc:"https://data.grottocenter.org/ldp/",folio:"http://IBCNServices.github.io/Folio-Ontology/Folio.owl#",comp:"http://semweb.mmlab.be/ns/rml-compression#",oidc:"http://www.w3.org/ns/solid/oidc#",rdatask:"http://rdaregistry.info/termList/RDATasks/",ch:"https://ld.admin.ch/",sou:"http://qudt.org/vocab/sou/",cinema:"http://www.semanticweb.org/julien/morgann/cinema#",itops:"https://vocab.eccenca.com/itops/",cerealstoo:"http://rdf.ag/o/cerealstoo#",mrk:"http://www.mydomain.org/Mrk-ns#",ofn:"http://www.ontotext.com/sparql/functions/",rdan:"http://rdaregistry.info/Elements/n/",rofitrda:"http://rdaregistry.info/termList/rofitrda/",rdamo:"http://rdaregistry.info/Elements/m/object/",oeo:"https://openenergyplatform.org/ontology/oeo/",rdaed:"http://rdaregistry.info/Elements/e/datatype/",arena:"https://solid.ti.rw.fau.de/public/ns/arena#",hqdmontol:"http://www.semanticweb.org/magma-core/ontologies/hqdm#",esempleo:"http://vocab.ciudadesabiertas.es/def/sector-publico/empleo#",react:"https://w3id.org/react#",magmauser:"http://www.semanticweb.org/magma-core/user#",rdatd:"http://rdaregistry.info/Elements/t/datatype/",rdapd:"http://rdaregistry.info/Elements/p/datatype/",oghamonto:"http://ontology.ogham.link/",tci:"https://w3id.org/lbs/tci#",nanopub:"http://www.nanopub.org/nschema#",mrt:"http://marineregions.org/ns/placetypes#",memorix:"http://memorix.io/ontology#",matrycs:"http://matrycs.com/",luigiusai:"https://www.luigiusai.it/wp#",rofsfrda:"http://rdaregistry.info/termList/rofsfrda/",rdawo:"http://rdaregistry.info/Elements/w/object/",rdamat:"http://rdaregistry.info/termList/RDAMaterial/",cpc:"https://data.epo.org/linked-data/def/cpc/",rdaim:"http://rdaregistry.info/termList/RDAInteractivityMode/",xmlns:"http://www.w3.org/2021/XMLSchema#",m8g:"http://data.europa.eu/m8g/",rdaxo:"http://rdaregistry.info/Elements/x/object/",feed:"https://www.feedipedia.org/",encargado:"http://semRAT.edu/",ogham:"http://lod.ogham.link/data/",rdasca:"http://rdaregistry.info/termList/scale/",eep:"https://w3id.org/eep#",nbo:"http://data.bioontology.org/ontologies/NBO/",m4i:"http://w3id.org/nfdi4ing/metadata4ing#",paf:"https://paf.link/",rdand:"http://rdaregistry.info/Elements/n/datatype/",edu:"https://schema.edu.ee/",bcfowl:"http://lbd.arch.rwth-aachen.de/bcfOWL#",poke:"https://pokemonkg.org/ontology#",rdap:"http://rdaregistry.info/Elements/p/",interop:"http://www.w3.org/ns/solid/interop#",cpg:"http://modellingdh.github.io/ont/odp/pgc/",eurio:"http://data.europa.eu/s66#",s223:"http://data.ashrae.org/standard223#",aff:"https://w3id.org/affectedBy#",caso:"http://www.w3id.org/def/caso#",ewg:"http://ethoinformatics.org/",biocrm:"http://ldf.fi/schema/bioc/",uberon:"http://purl.obolibrary.org/obo/UBERON_",cgo:"https://www.tno.nl/agrifood/ontology/common-greenhouse-ontology#",nsd:"https://w3id.org/nsd#",djo:"http://purl.org/datajourneys/",rc:"https://w3id.org/rc#",srmo:"https://w3id.org/srmo#",rdapath:"http://rdaregistry.info/termList/RDARecordingMethods/",lds:"https://solid.ti.rw.fau.de/public/ns/linked-data-structures#",srt:"http://w3id.org/srt#",tro:"https://w3id.org/TRO/",dsd:"https://w3id.org/dsd#",sds:"https://w3id.org/sds#",esc:"https://solid.ti.rw.fau.de/public/ns/event-sourcing-containers#",rdawd:"http://rdaregistry.info/Elements/w/datatype/",meat:"http://example.com/",olias:"http://purl.org/olia/system.owl#",bau:"https://terminology.fraunhofer.de/voc/bau#",eb:"https://w3id.org/eb#",gax:"http://w3id.org/gaia-x/core#",godaddy:"https://sso.godaddy.com/",bdsubj:"https://purl.org/fidbaudigital/subjects#",asf:"https://www.stm-assoc.org/asf/",quid:"https://w3id.org/quid/",ghga:"http://w3id.org/ghga/",srtun:"https://www.inf.bi.rub.de/srtun#",kdsf:"https://kerndatensatz-forschung.de/version1/technisches_datenmodell/owl/kdsf.owl#",chameo:"https://w3id.org/emmo/domain/characterisation-methodology/chameo#",ldpsc:"https://solid.ti.rw.fau.de/public/ns/stream-containers#",lbds:"https://w3id.org/lbdserver#",ea:"http://eaontology.protect.linkeddata.es/def/",rsx:"http://rdf4j.org/shacl-extensions#",walmart:"https://www.amazon.de/",tern:"https://w3id.org/tern/ontologies/tern/",wfont:"https://w3id.org/wfont#",ofo:"https://w3id.org/ofo#",lbdserver:"https://w3id.org/lbdserver#",archivo:"https://archivo.dbpedia.org/onto#",rto:"https://w3id.org/rail/topo#",conllu:"https://universaldependencies.org/format.html#",ontobras:"http://www.semanticweb.org/fefar/ontologies/ontobras#",magmardl:"http://www.semanticweb.org/magma-core/rdl#",generiek:"https://data.vlaanderen.be/ns/generiek#",osdu:"https://w3id.org/OSDU#",stix:"http://purl.org/cyber/stix#",stirdata:"https://w3id.org/stirdata/vocabulary/",wdno:"http://www.wikidata.org/prop/novalue/",ppeer:"http://parliament.uk/ontologies/peerage/",experts:"http://emmo.info/emmo/application/maeo/experts#",hqdm:"http://www.semanticweb.org/hqdm#",bag2:"http://bag.basisregistraties.overheid.nl/def/bag#",opltw:"http://www.openlinksw.com/schemas/twitter#",dmo:"https://w3id.org/dmo#",linkml:"https://w3id.org/linkml/",fso:"https://w3id.org/fso#",crmsci:"http://www.cidoc-crm.org/extensions/crmsci/",nprl:"http://data.nobelprize.org/resource/laureate/",fpr:"http://www.filmstandards.org/schemas/filmportal_relations#",setl:"http://purl.org/twc/vocab/setl/",rmlt:"http://semweb.mmlab.be/ns/rml-target#",diso:"https://purls.helmholtz-metadaten.de/diso#",express:"https://w3id.org/express#",nomo:"https://nomenclature.info/nom/ontology/",marc:"http://www.loc.gov/MARC21/slim/",rsp:"http://www.researchspace.org/resource/",paam:"https://lod.mediathek-tanz-theater.de/schema/paam/",covido:"https://w3id.org/CovidO#",itcrdf:"http://www.w3.org/2005/11/its/rdf#",rdaeo:"http://rdaregistry.info/Elements/e/object/",lsqr:"http://lsq.aksw.org/",rro:"http://semanticweb.org/patricia/ontologies/rro#",jsonld:"http://www.w3.org/ns/json-ld#",roh:"http://w3id.org/roh#",hni:"https://collectiedata.hetnieuweinstituut.nl/",weki:"https://en.wikipedia.org/wiki/",raum:"https://terminology.fraunhofer.de/voc/raum#",rnce:"https://data.cultureelerfgoed.nl/id/rnce#",ultragaz:"https://ultragaz24horas.com/",pgo:"http://ii.uwb.edu.pl/pgo#",kgi:"http://ns.inria.fr/kg/index#",value:"http://gfgfd.vs/",chemrof:"https://w3id.org/chemrof/",rism:"http://rism.online/",lrcommon:"http://landregistry.data.gov.uk/def/common/",linkedart:"https://linked.art/ns/terms/",tempo:"http://purl.org/tempo/",besluitvor:"https://data.vlaanderen.be/ns/besluitvorming#",iddo:"https://w3id.org/iddo#",respond:"https://w3id.org/respond#",chess:"http://purl.org/NET/rdfchess/ontology/",vl:"https://version.link/",consolid:"https://w3id.org/consolid#",cido:"http://purl.obolibrary.org/obo/cido.owl/",gufo:"http://purl.org/nemo/gufo#",dsi:"https://data.dsi.omgeving.vlaanderen.be/ns/dsi#",nom:"https://nomenclature.info/nom/",osmo:"https://purl.org/vimmp/osmo#",film:"http://semantics.id/ns/example/film/",icon:"https://w3id.org/icon/ontology/",vntourism:"http://www.semanticweb.org/minhn/ontologies/2021/0/vntourism#",bp3:"http://www.biopax.org/release/biopax-level3.owl#",rtedurp:"http://purl.org/eduo/rtedurp/",grscicoll:"https://www.gbif.org/grscicoll/collection/",gql:"http://www.openlinksw.com/schemas/graphql#",peco:"https://w3id.org/peco#",rcgs:"https://collection.rcgs.jp/terms/",ttrpg:"https://w3id.org/TTRpg#",mondo:"http://purl.obolibrary.org/obo/MONDO_",robotarm:"https://solid.ti.rw.fau.de/public/ns/robotArm#",relation:"http://www.iana.org/assignments/relation/",cvb:"http://rdfs.org/resume-rdf/base.rdfs#",veelana:"http://onlyfans.com/veelana/",spatialf:"http://jena.apache.org/function/spatial#",pubchem:"https://pubchem.ncbi.nlm.nih.gov/",aec3po:"https://w3id.org/lbd/aec3po/",perscido:"https://perscido.univ-grenoble-alpes.fr/",apods:"http://activitypods.org/ns/core#",dbd:"http://dbpedia.org/datatype/",nen2660:"https://w3id.org/nen2660/def#",raad:"https://raadzaam.nl/schema/",kokot:"http://www.koko.t/",fdp:"https://w3id.org/fdp/fdp-o#",dqvno:"https://data.norge.no/vocabulary/dqvno#",vhbieo:"https://w3id.org/vhbieo#",yanice:"http://yanice-boady.webflow.io/",version:"https://version.link/",era:"http://data.europa.eu/949/",iottta:"https://w3id.org/iot-tta#",nalt:"https://lod.nal.usda.gov/nalt/",bmp:"http://w3id.org/bmp#",dcb:"http://dbpedia.org/resource/Category:",lis:"http://rds.posccaesar.org/ontology/lis14/rdl/",skosm:"http://www.w3.org/2004/02/skos/mapping#",ufo:"http://ufo.com/#",coy:"https://schema.coypu.org/global#",lol:"https://sbalot.github.io/lol/",docbook:"http://docbook.org/ns/docbook/",epo:"http://data.europa.eu/a4g/ontology#",bto:"http://w3id.org/emmo-bto/bto#",plant:"http://example.org/plant/",fdof:"https://w3id.org/fdof/ontology#",bcgo:"http://purl.obolibrary.org/obo/ZP_",emmo:"https://w3id.org/emmo#",dcatno:"https://data.norge.no/vocabulary/dcatno#",thub:"http://vocabularis.crai.ub.edu/thub/",hmas:"https://purl.org/hmas/",mi:"http://www.marineinfo.org/ns/ontology#",dcatap:"http://data.europa.eu/r5r/",ecfo:"https://w3id.org/ecfo#",fs:"https://www.compliancequest.com/training-management-software-system-solutions/",nutscode:"http://data.europa.eu/nuts/code/",dbpg:"http://dbpedia.org/page/",vcs:"https://data.vlaanderen.be/ns/chemische_stof#",dick:"http://pornhub.com/",ontouml:"https://w3id.org/ontouml#",wrroc:"https://w3id.org/ro/terms/workflow-run#",asb:"https://w3id.org/asbingowl/core#",to:"http://purl.obolibrary.org/obo/TO_",ags:"https://id.agschemas.org/",ammo:"http://ldf.fi/schema/ammo/",hyr:"https://w3id.org/simulation/data/",threat:"https://cve.mitre.org/",coreo:"http://purl.org/coreo#",goavoc:"http://bio2rdf.org/goa_vocabulary:",atcc:"https://www.atcc.org/products/",acp:"http://www.w3.org/ns/solid/acp#",cur:"http://qudt.org/2.1/vocab/currency/",ntp:"https://schema.finto.fi/ntp#",risk:"https://www.w3id.org/risk#",pico:"https://personsincontext.org/model#",iop:"https://w3id.org/iadopt/ont/",matmine:"http://materialsmine.org/ns/",coos:"http://id.unece.org/def/coos#",baf:"https://w3id.org/baf#",lcnaf:"http://id.loc.gov/authorities/names/",imbor:"https://data.crow.nl/imbor/def/",egdo:"http://example.org/",databus:"https://dataid.dbpedia.org/databus#",mibc:"http://marineinfo.org/ns/library/bibcodes#",bacnet:"http://data.ashrae.org/bacnet/2020#",tsso:"https://scch.org/technical_standards#",sense:"https://w3id.org/sense#",p2po:"https://purl.org/p2p-o#",ksamsok:"http://kulturarvsdata.se/ksamsok#",ind:"https://w3id.org/inesdata#",ceox:"https://linkeddata.cultureelerfgoed.nl/def/ceox#",hu:"https://mail.google.com/",uio:"https://www.mitre.org/mparmelee/ontologies/2023/6/UserIntentOntology/",mindat:"https://www.mindat.org/",keyon:"http://keyelements.ltd/ontologies/keyon/#",rb:"https://w3id.org/riverbench/schema/metadata#",quest:"https://rb.gy/ntg7l/",coda:"http://art.uniroma2.it/coda/contracts/",ogcf:"http://www.opengis.net/def/function/geosparql/",fisa:"https://ifitkau.github.io/fisa/",mibt:"https://marineinfo.org/ns/library/bibtypes#",ocmv:"https://w3id.org/ontouml-models/vocabulary#",pit:"http://data.elsevier.com/vocabulary/ElsevierPubItemTypes/",bsdd:"http://bsdd.buildingsmart.org/def#",exekg:"https://raw.githubusercontent.com/nsai-uio/ExeKGOntology/main/ds_exeKGOntology.ttl#",into:"https://app.korfin.de/ontology/into/",bioschemas:"https://bioschemas.org/",koko:"https://seznam.cz/",cpsvno:"http://data.norge.no/vocabulary/cpsvno#",rbdoc:"https://w3id.org/riverbench/schema/documentation#",sssom:"https://w3id.org/sssom/",coswot:"https://w3id.org/coswot/",notify:"http://www.w3.org/ns/solid/notifications#",doce:"http://purl.org/nemo/doce#",cercabib:"https://cercabib.ub.edu/",hy:"https://api.hyprdia.com/",mifesto:"https://w3id.org/mifesto#",semapv:"https://w3id.org/semapv/vocab/",lpwcc:"https://linkedpaperswithcode.com/class/",ncbi:"https://www.ncbi.nlm.nih.gov/",pbac:"https://w3id.org/pbac#",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties/",mpio:"http://purl.obolibrary.org/obo/ZP_",plasma:"https://w3id.org/plasma#",w3:"http://www.w3.org/",doam:"http://emmo.info/doam#",dde:"https://www.ddeworld.org/",quit:"http://quit.aksw.org/vocab/",ontologia:"http://ub.edu/dades/ontologia/Cinema#Cinemes#",ontohgis:"https://onto.kul.pl/ontohgis/",ioc:"http://w3id.org/ioc#",pdumdv:"http://purl.obolibrary.org/obo/PdumDv_",battery:"https://w3id.org/emmo/domain/battery/battery#",skosno:"http://data.norge.no/skosno#",hsapdv:"http://purl.obolibrary.org/obo/HsapDv_",top:"http://w3id.org/topologicpy#",mfo:"http://purl.obolibrary.org/obo/ZP_",nmr:"https://www.ebi.ac.uk/ols4/ontologies/nmrcv/terms?short_form=NMR:",sri:"https://w3id.org/sri#",oplben:"http://www.openlinksw.com/ontology/benefits#",pcp:"https://pcp-on-web.de/ontology/0.2/index-en.html#",isoprops:"https://w3id.org/isoprops#",ohd:"http://purl.obolibrary.org/obo/ZP_",sure:"http://ns.inria.fr/sure#",interpro:"https://www.ebi.ac.uk/interpro/entry/InterPro/",batmanont:"http://emmo.info/emmo/application/bmo#",loggerhead:"http://purl.obolibrary.org/obo/LOGGERHEAD_",mir:"http://marineinfo.org/ns/person/roles#",chpaf:"https://ch.paf.link/",ies:"http://ies.data.gov.uk/ontology/ies4#",oav:"http://lod.openaire.eu/vocab/",ies4:"http://ies.data.gov.uk/ontology/ies4#",lpwc:"https://linkedpaperswithcode.com/property/",ornaseq:"http://purl.obolibrary.org/obo/ORNASEQ_",gramene:"http://www.gramene.org/db/ontology/search?id=GRO:",htn:"http://purl.obolibrary.org/obo/ZP_",hom:"http://purl.obolibrary.org/obo/HOM_",eurovoc:"http://eurovoc.europa.eu/",upheno:"http://purl.obolibrary.org/obo/UPHENO_",maeo:"http://w3id.org/emmo-maeo/maeo#",sbo:"https://paul.ti.rw.fau.de/~jo00defe/ble/sbo#",clyh:"http://purl.obolibrary.org/obo/ZP_",fro:"https://foundry.ai.mil/ontology/nas/fro/",ddpheno:"http://purl.obolibrary.org/obo/DDPHENO_",apollosv:"http://purl.obolibrary.org/obo/APOLLO_SV_",proco:"http://purl.obolibrary.org/obo/PROCO_",przecieki:"http://onlyfans.com/emiliaszymanska/",cred:"https://www.w3.org/2018/credentials#",sep:"http://purl.obolibrary.org/obo/ZP_",openwemi:"https://ns.dublincore.org/openwemi/",sopharm:"http://purl.obolibrary.org/obo/SOPHARM_",fovt:"http://purl.obolibrary.org/obo/FOVT_",tdm:"http://www.w3.org/ns/tdmrep#",cergy:"https://dbpedia.org/page/Cergy/",kbmarc:"https://id.kb.se/marc/",imdb:"http://m.imdb.com/",olis:"http://olis.dev/",iig:"https://w3id.org/iicongraph/data/",msl:"https://w3id.org/msl#",nyon:"https://w3id.org/def/nyon#",wbls:"http://purl.obolibrary.org/obo/WBls_",soa:"https://semopenalex.org/ontology/",vt:"http://purl.obolibrary.org/obo/VT_",cob:"http://purl.obolibrary.org/obo/COB_",jps:"https://jpsearch.go.jp/term/property#",htv:"http://www.w3.org/2011/http#",gallont:"http://purl.obolibrary.org/obo/GALLONT_",iptc4xmpc:"http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/",mro:"http://purl.obolibrary.org/obo/MRO_",capdata:"https://ontologie.capdataculture.fr/v1/owl/#",lpto:"http://w3id.org/lpto#",mao:"https://domestic-beethoven.eu/ontology/1.0/music-annotation-ontology.ttl#",mee:"http://www.w3.org/ns/pim/meeting#",taxrank:"http://purl.obolibrary.org/obo/TAXRANK_",credit:"https://credit.niso.org/",oplmarket:"http://www.openlinksw.com/ontology/market#",iceo:"http://purl.obolibrary.org/obo/ICEO_",loinc:"https://loinc.org/",osh:"https://w3id.org/oseg/ont/osh#",shsh:"http://www.w3.org/ns/shacl-shacl#",doid:"http://purl.obolibrary.org/obo/DOID_",occupation:"http://nikunj.org/ontology/occupatioin#",deonta:"https://deonta.linkedmodel.org/deonta/",dgaterms:"https://w3id.org/dgaterms#",dcid:"https://datacommons.org/browser/",gecko:"http://purl.obolibrary.org/obo/ZP_",planp:"http://purl.obolibrary.org/obo/PLANP_",echem:"https://w3id.org/emmo/domain/electrochemistry#",aao:"http://purl.obolibrary.org/obo/AAO_",emap:"http://purl.obolibrary.org/obo/EMAP_",vhog:"http://purl.obolibrary.org/obo/VHOG_",hao:"http://purl.obolibrary.org/obo/HAO_",mop:"http://purl.obolibrary.org/obo/MOP_",geolink:"http://schema.geolink.org/1.0/base/main#",chems:"https://w3id.org/emmo/domain/chemical-substance#",obi:"http://purl.obolibrary.org/obo/OBI_",lrm:"https://iflastandards.info/ns/lrm/lrmoo/",okh:"https://w3id.org/oseg/ont/okh#",propreo:"http://purl.obolibrary.org/obo/PROPREO_",fbdv:"http://purl.obolibrary.org/obo/FBdv_",fbcv:"http://purl.obolibrary.org/obo/FBcv_",clao:"http://purl.obolibrary.org/obo/CLAO_",mco:"http://purl.obolibrary.org/obo/MCO_",spd:"http://purl.obolibrary.org/obo/SPD_",fbbt:"http://purl.obolibrary.org/obo/FBbt_",apmwg:"http://apmwg.ovh/",liph:"https://gallosiciliani.unict.it/ns/lpont#",cmf:"http://purl.obolibrary.org/obo/CMF_",sibo:"http://purl.obolibrary.org/obo/ZP_",omo:"http://purl.obolibrary.org/obo/OMO_",firebim:"http://w3id.org/firebim#",maid:"https://mutual-aid.app/ns/core#",foaa:"https://kibanshoe.com/",hpo:"http://w3id.org/emmo-hpo/hpo#",oio:"http://www.geneontology.org/formats/oboInOwl#",mbl:"https://w3id.org/mbl#",qualityze:"https://www.qualityze.com/document-management/",crmgeo:"http://www.ics.forth.gr/isl/CRMgeo/",spo:"https://w3id.org/steel/ProcessOntology/",schemas:"https://schema.org/",idomal:"http://purl.obolibrary.org/obo/IDOMAL_",tops:"http://www.topbraid.org/tops#",sepio:"http://purl.obolibrary.org/obo/SEPIO_",ons:"http://purl.obolibrary.org/obo/ONS_",meas:"https://graph.interoptx.org/meas/",tsdcreq:"https://w3id.org/oseg/ont/tsdc/req#",uo:"http://purl.obolibrary.org/obo/UO_",foodon:"http://purl.obolibrary.org/obo/FOODON_",ecocore:"http://purl.obolibrary.org/obo/ECOCORE_",cvdo:"http://purl.obolibrary.org/obo/CVDO_",ogsf:"http://purl.obolibrary.org/obo/OGSF_",pao:"http://purl.obolibrary.org/obo/PAO_",aimaix:"https://w3id.org/aimaix#",dpo:"http://purl.obolibrary.org/obo/FBcv_",ontoavida:"http://purl.obolibrary.org/obo/ONTOAVIDA_",fiaf:"https://ontology.fiafcore.org/",ecp:"http://www.ebu.ch/metadata/ontologies/ebucoreplus#",imr:"http://www.inoh.org/ontology-viewer/cgi-bin/InohOVAttr.php?type=IMR&id=",ovae:"http://purl.obolibrary.org/obo/OVAE_",tto:"http://purl.obolibrary.org/obo/TTO_",clo:"http://purl.obolibrary.org/obo/ZP_",uiot:"http://www.w3id.org/urban-iot/core#",rxno:"http://purl.obolibrary.org/obo/ZP_",mfoem:"http://purl.obolibrary.org/obo/MFOEM_",cwo:"http://kcoyle.net/cwo/",gtm:"https://www.goudatijdmachine.nl/def#",miprog:"https://marineinfo.org/ns/progress#",dictionary:"https://standards.buildingsmart.org/DataDictionary/",duo:"http://purl.obolibrary.org/obo/DUO_",edtf:"http://id.loc.gov/datatypes/EDTFScheme/",bcnres:"http://datos.bcn.cl/ontologies/bcn-resources#",multionto:"http://purl.org/net/multionto/",mat:"http://purl.obolibrary.org/obo/MAT_",stroke:"https://mre.zcu.cz/ontology/stroke.owl#",pgdso:"http://purl.obolibrary.org/obo/PGDSO_",cacax:"http://cacax.fun/",guez:"http://guez.fr/",crcr:"https://credit.niso.org/contributor-roles/",obom:"https://w3id.org/open-bom/ont/open-bom#",xco:"http://purl.obolibrary.org/obo/XCO_",hht:"https://w3id.org/HHT#",bootstrep:"http://purl.obolibrary.org/obo/BOOTSTREP_",libeas:"https://w3id.org/libeas#",bspo:"http://purl.obolibrary.org/obo/BSPO_",ncro:"http://purl.obolibrary.org/obo/NCRO_",vair:"https://w3id.org/vair#",pwkso:"http://ns.inria.fr/pwkso/",geogeo:"http://purl.obolibrary.org/obo/GEO_",ohpi:"http://purl.obolibrary.org/obo/OHPI_",symp:"http://purl.obolibrary.org/obo/SYMP_",mpath:"http://purl.obolibrary.org/obo/MPATH_",xao:"http://purl.obolibrary.org/obo/XAO_",tsdc:"https://w3id.org/oseg/ont/tsdc/core#",emobon:"http://www.embrc.eu/emobon/EmoBonOntology#",tgma:"http://purl.obolibrary.org/obo/TGMA_",after:"http://rds.posccaesar.org/ontology/plm/ds/",mfomd:"http://purl.obolibrary.org/obo/MFOMD_",qcy:"https://qaecy.com/dev/ont#",oba:"http://purl.obolibrary.org/obo/OBA_",mmusdv:"http://purl.obolibrary.org/obo/MmusDv_",eupath:"http://purl.obolibrary.org/obo/EUPATH_",amv:"https://w3id.org/amv/",joe:"http://example.org/joe/",duodrl:"https://w3id.org/duodrl#",labo:"http://purl.obolibrary.org/obo/LABO_",nihss:"https://mre.zcu.cz/ontology/nihss.owl#",otrl:"https://w3id.org/oseg/ont/otrl#",cams:"https://graph.interoptx.org/cams/schema/",ypc:"http://www.semanticweb.org/sunsr/ontologies/2024/ypc#",pa:"http://vtw.elsevier.com/data/ns/properties/PromotionalAccess-1/",ehdaa:"http://purl.obolibrary.org/obo/EHDAA_",gsso:"http://purl.obolibrary.org/obo/GSSO_",zea:"http://purl.obolibrary.org/obo/ZEA_",apo:"http://purl.obolibrary.org/obo/APO_",moont:"https://w3id.org/moont/",termdat:"https://register.ld.admin.ch/termdat/",edo:"http://semanticweb.org/edo#",chmo:"http://purl.obolibrary.org/obo/CHMO_",lipro:"http://purl.obolibrary.org/obo/LIPRO_",opmi:"http://purl.obolibrary.org/obo/OPMI_",ckg:"http://example.org/ckg#",luffy:"http://google.com/",hancestro:"http://purl.obolibrary.org/obo/HANCESTRO_",txpo:"http://purl.obolibrary.org/obo/ZP_",cteno:"http://purl.obolibrary.org/obo/CTENO_",dprod:"https://ekgf.github.io/dprod/",pdro:"http://purl.obolibrary.org/obo/PDRO_",ogms:"http://purl.obolibrary.org/obo/OGMS_",ico:"http://purl.obolibrary.org/obo/ICO_",chiro:"http://purl.obolibrary.org/obo/CHIRO_",amphx:"http://purl.obolibrary.org/obo/AMPHX_",ceph:"http://purl.obolibrary.org/obo/CEPH_",flopo:"http://purl.obolibrary.org/obo/FLOPO_",pcl:"http://purl.obolibrary.org/obo/PCL_",dideo:"http://purl.obolibrary.org/obo/DIDEO_",biomodels:"http://purl.obolibrary.org/obo/KISAO_",adw:"https://animaldiversity.org/accounts/",spa:"https://paul.ti.rw.fau.de/~jo00defe/voc/spa#",disdriv:"http://purl.obolibrary.org/obo/DISDRIV_",vario:"http://purl.obolibrary.org/obo/VariO_",ogg:"http://purl.obolibrary.org/obo/OGG_",pw:"http://purl.obolibrary.org/obo/PW_",vbo:"http://purl.obolibrary.org/obo/VBO_",dop:"https://w3id.org/dob/voc/prop#",flu:"http://purl.obolibrary.org/obo/FLU_",cr:"http://mlcommons.org/croissant/",oplmark:"http://www.openlinksw.com/ontology/market#",pes:"https://semanticweb.inesctec.pt/ontologies/pes/",did:"https://w3id.org/dob/id/",norse:"https://w3id.org/aksw/norse#",oplgit:"http://www.openlinksw.com/schemas/github#",bila:"http://4dx.embl.de/4DXpress/reg/all/cview/gene.do?geneID=",oarcs:"http://purl.obolibrary.org/obo/OARCS_",lepao:"http://purl.obolibrary.org/obo/LEPAO_",psdo:"http://purl.obolibrary.org/obo/PSDO_",aio:"https://paul.ti.rw.fau.de/~jo00defe/SemWoT/aio#",oostt:"http://purl.obolibrary.org/obo/OOSTT_",rdfl:"https://w3id.org/rdf-lens/ontology#",whyis:"http://vocab.rpi.edu/whyis/",fix:"http://purl.obolibrary.org/obo/FIX_",ehdaa2:"http://purl.obolibrary.org/obo/EHDAA2_",nomen:"http://purl.obolibrary.org/obo/NOMEN_",fbbi:"http://purl.obolibrary.org/obo/FBbi_",crdt:"https://vocab.noeldemartin.com/crdt/",omrse:"http://purl.obolibrary.org/obo/OMRSE_",omit:"http://purl.obolibrary.org/obo/OMIT_",tahe:"http://purl.obolibrary.org/obo/TAHE_",slso:"http://purl.obolibrary.org/obo/SLSO_",psn:"https://purl.org/psn/vocab#",nyanneko:"https://nyanneko.com/",occo:"http://purl.obolibrary.org/obo/OCCO_",ypo:"http://purl.obolibrary.org/obo/YPO_",tahh:"http://purl.obolibrary.org/obo/TAHH_",loin:"http://w3id.org/loin#",cmso:"http://purls.helmholtz-metadaten.de/cmso/",aix:"https://w3id.org/aix#",makeup:"http://example.org/makeup#",ado:"http://purl.obolibrary.org/obo/ADO_",oplog:"http://www.openlinksw.com/schemas/opengraph#",mcro:"https://www.ebi.ac.uk/ols4/ontologies/mcro/classes?obo_id=MCRO:",envo:"http://purl.obolibrary.org/obo/ENVO_",tads:"http://purl.obolibrary.org/obo/TADS_",lrmer:"http://iflastandards.info/ns/lrm/lrmer/",cdno:"http://purl.obolibrary.org/obo/CDNO_",dob:"https://w3id.org/dob/voc#",airo:"https://w3id.org/airo#",musi:"http://i-na-reg.musikinstrumentenbau.eu/ns/musi/",ceosp:"https://linkeddata.cultureelerfgoed.nl/def/ceosp/",rmle:"https://w3id.org/imec/rml/ns/extensions#",zfa:"http://purl.obolibrary.org/obo/ZFA_",ohmi:"http://purl.obolibrary.org/obo/OHMI_",wbbt:"http://purl.obolibrary.org/obo/WBbt_",vsao:"http://purl.obolibrary.org/obo/VSAO_",eo:"http://purl.obolibrary.org/obo/EO_",geno:"http://purl.obolibrary.org/obo/GENO_",ogi:"http://purl.obolibrary.org/obo/OGI_",ror:"https://ror.org/",zeco:"http://purl.obolibrary.org/obo/ZECO_",dinto:"http://purl.obolibrary.org/obo/ZP_",ehda:"http://purl.obolibrary.org/obo/EHDA_",upa:"http://www.grenoble.prabi.fr/obiwarehouse/unipathway/upa?upid=",plana:"http://purl.obolibrary.org/obo/PLANA_",olatdv:"http://purl.obolibrary.org/obo/OlatDv_",t4fs:"http://purl.obolibrary.org/obo/T4FS_",npc:"https://purl.org/npc#",afpo:"http://purl.obolibrary.org/obo/AfPO_",vto:"http://purl.obolibrary.org/obo/VTO_",fbsp:"http://purl.obolibrary.org/obo/FBSP_",scdo:"http://purl.obolibrary.org/obo/SCDO_",reloc:"https://w3id.org/reloc#",epio:"http://purl.obolibrary.org/obo/EPIO_",dblpdocu:"https://dblp.org/rdf/docu/#",graphql:"https://graphql.org/",fobi:"http://purl.obolibrary.org/obo/FOBI_",vo:"http://purl.obolibrary.org/obo/VO_",omiabis:"http://purl.obolibrary.org/obo/OMIABIS_",miron:"https://stgermain.ebsi.umontreal.ca/miron/",colao:"http://purl.obolibrary.org/obo/COLAO_",oplic:"http://www.openlinksw.com/ontology/licenses#",cfg:"http://server.topbraidlive.org/web/2009/config#",cio:"http://purl.obolibrary.org/obo/CIO_",hso:"http://purl.obolibrary.org/obo/HSO_",psm:"https://paul.ti.rw.fau.de/~jo00defe/ont/psm#",genepio:"http://purl.obolibrary.org/obo/GENEPIO_",vwlid:"https://vwgroup.leanix.net/Volkswagen/external/leanixId/",ato:"http://purl.obolibrary.org/obo/ATO_",obcs:"http://purl.obolibrary.org/obo/OBCS_",mfmo:"http://purl.obolibrary.org/obo/MFMO_",womo:"https://w3id.org/womo#",fypo:"http://purl.obolibrary.org/obo/FYPO_",zp:"http://purl.obolibrary.org/obo/ZP_",ssv:"https://w3id.org/ssv/",miapa:"http://purl.obolibrary.org/obo/MIAPA_",dtkt:"https://data.wikitrek.org/prop/direct/",gno:"http://purl.obolibrary.org/obo/GNO_",geosrs:"https://w3id.org/geosrs#",jabel54303:"https://softwarehorsepower.com/product/brand24/",oip:"http://www.exemple.org/ontologia/",volipi:"http://data.sparna.fr/ontologies/volipi#",zfs:"http://purl.obolibrary.org/obo/ZFS_",gaz:"http://purl.obolibrary.org/obo/GAZ_",maxo:"http://purl.obolibrary.org/obo/MAXO_",freespins:"https://bohoaff.com/a34fd6fba/",mpbv:"http://meta-pfarrerbuch.evangelische-archive.de/vocabulary#",resid:"https://proteininformationresource.org/cgi-bin/resid?id=",rex:"http://purl.obolibrary.org/obo/REX_",kvasir:"https://kvasir.discover.ilabt.imec.be/vocab#",xpo:"http://purl.obolibrary.org/obo/XPO_",trans:"http://purl.obolibrary.org/obo/TRANS_",iev:"http://www.inoh.org/ontology-viewer/cgi-bin/InohOVAttr.php?type=IEV&id=",oplgp:"http://www.openlinksw.com/schemas/googleplus#",micro:"http://purl.obolibrary.org/obo/MICRO_",dron:"http://purl.obolibrary.org/obo/DRON_",aism:"http://purl.obolibrary.org/obo/AISM_",hhtchange:"https://w3id.org/HHT/Change#",aschema:"https://schema.ld.admin.ch/",aero:"http://purl.obolibrary.org/obo/AERO_",tsdcr:"http://w3id.org/oseg/ont/tsdc/requirements#",ftr:"https://w3id.org/ftr#",fair4ml:"https://w3id.org/fair4ml#",jav:"https://www.niso.org/schemas/jav/1.0/",poro:"http://purl.obolibrary.org/obo/PORO_",emapa:"http://purl.obolibrary.org/obo/EMAPA_",ino:"http://purl.obolibrary.org/obo/INO_",cdi:"http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",oix:"http://www.exemple.org/ontologia/",codemeta:"https://codemeta.github.io/terms/",zo:"https://linkeddata.cultureelerfgoed.nl/def/zo/",ddanat:"http://purl.obolibrary.org/obo/DDANAT_",ecao:"http://purl.obolibrary.org/obo/ECAO_",stato:"http://purl.obolibrary.org/obo/STATO_",miro:"http://purl.obolibrary.org/obo/MIRO_",myv:"http://www.example.com/myvData/",checks:"https://data.digichecks.eu/def/",xlmod:"http://purl.obolibrary.org/obo/XLMOD_",fideo:"http://purl.obolibrary.org/obo/FIDEO_",phipo:"http://purl.obolibrary.org/obo/PHIPO_",creon:"http://purl.org/creon/",obib:"http://purl.obolibrary.org/obo/OBIB_",rnao:"http://purl.obolibrary.org/obo/RNAO_",caro:"http://purl.obolibrary.org/obo/CARO_",gsn:"https://w3id.org/OntoGSN/ontology#",aicat:"http://w3id.org/aicat#",ngbo:"http://purl.obolibrary.org/obo/NGBO_",dtk:"https://data.wikitrek.org/entity/",sn:"https://purl.org/supply-network/onto#",ce:"https://purl.org/cityexplorer#",ceon:"http://w3id.org/CEON/",aiup:"http://w3id.org/aiup#",onlyfans:"https://cutt.ly/3ry8LMcK/",frac:"http://www.w3.org/ns/lemon/frac#",ecto:"http://purl.obolibrary.org/obo/ECTO_",mirnao:"http://purl.obolibrary.org/obo/MIRNAO_",nace2:"http://data.europa.eu/ux2/nace2/",bng:"https://w3id.org/dob/voc/epsg-27700#",podio:"http://w3id.org/podio#",northwind:"http://demo.openlinksw.com/schemas/Northwind/",vwlpr:"https://vwgroup.leanix.net/Volkswagen/factsheet/Process/",aro:"http://purl.obolibrary.org/obo/ARO_",azo:"https://linkeddata.cultureelerfgoed.nl/def/azo/",fugas:"https://onlyfans.com/sammuwuu/",encom:"https://semanticweb.inesctec.pt/ontologies/encom/",aeo:"http://purl.obolibrary.org/obo/AEO_",passport:"https://nepalpassport.gov.np/",nsprov:"http://www.w3.org/ns/prov#",fti:"http://franz.com/ns/allegrograph/2.2/textindex/",tgc:"http://www.hds.utc.fr/tg#",vrti:"https://www.w3id.org/virtual-treasury/ontology#",pur:"http://prismstandard.org/namespaces/prismusagerights/2.1/",regcomp:"https://regulacomp.unige.ch/ns/regcomp#",bam:"http://vtw.elsevier.com/data/voc/ns/bam-vtw-1/",vwlap:"https://vwgroup.leanix.net/Volkswagen/factsheet/Application/",spot:"https://w3id.org/spot#",unesco:"http://vocabularies.unesco.org/thesaurus/",ishi:"https://w3id.org/ishikawa-diagram-ontology#",drammar:"http://www.purl.org/drammar#",bambara:"http://example.org/bambara#",tgfm:"http://purl.org/terminology-guide-for-move/testvocab/",arco:"https://w3id.org/arco/ontology/arco/",jats:"http://jats.nlm.nih.gov/",och:"http://w3id.org/def/och/",scdt:"http://w3id.org/awslabs/neptune/SPARQL-CDTs/",lindas:"https://ld.admin.ch/",npo:"https://w3id.org/NPO/ontology/",oqs:"http://purl.org/nsoluti/oqs#",fwo:"https://w3id.org/foodwaste/ontology#",itandrec:"http://www.semanticweb.org/pedri/ontologies/2025/3/IntelligentTourismAndRecommendations#",picom:"https://personsincontext.org/model#",ncl:"https://w3id.org/NCL/ontology/",libro:"https://www.librorum.fr/ontology/",turism:"http://turism.com/",debias:"http://data.europa.eu/c4p/data/",ppm:"https://mestergruppen.no/ontologies/projectproductionmanagement/",know:"https://know.dev/",dsio:"https://ptb.de/si#",icd:"http://purl.bioontology.org/ontology/ICD9CM/",ris:"http://research-info-systems.com/schema/ris/",vwgw:"https://group-wiki.wob.vw.vwg/wikis/pages/viewpage.action?pageId=",sis:"https://ptb.de/sis/",dbpde:"http://de.dbpedia.org/property/",sip:"https://purl.semanticip.org/linked-data/",elsst:"https://elsst.cessda.eu/id/",datmm:"http://id.nlm.nih.gov/datmm/",rbo:"http://purl.obolibrary.org/obo/RBO_",iirds:"http://iirds.tekom.de/iirds#",eliasempre:"https://eliasempresas.com/",riskman:"https://w3id.org/riskman/ontology#",reno:"https://w3id.org/reno#",sulo:"https://w3id.org/sulo/",rdb:"http://www.dbs.cs.uni-duesseldorf.de/RDF/relational#",vm:"http://visual-meaning.com/rdf/",vwdms:"https://vwdmsweb.wob.vw.vwg/groupdms/?docbase=vwdms&locateId=",muno:"https://purl.org/muno/onto/",whu:"http://bdi.whu.edu.cn/",bu:"http://borhan-onto.ir/ontology/upper#",golem:"https://w3id.org/golem/ontology#",genex:"http://purl.org/genex#",semts:"https://w3id.org/semts/ontology#",dqa:"https://w3id.org/DQA#",coso:"http://w3id.org/coso/v1/contaminoso#",ubbont:"http://data.ub.uib.no/ontology/",pmw:"http://ponymusic.wiki/ns#",gro:"http://www.bootstrep.eu/ontology/GRO#",akco:"https://purl.archive.org/akco#",tribont:"https://w3id.org/tribont/core#",piveau:"https://piveau.eu/ns/voc#",coar:"http://purl.org/coar/resource_type/",evorao:"http://w3id.org/evorao/",exmo:"http://purl.obolibrary.org/obo/EXMO_",csro:"https://w3id.org/csro/ontology#",elm:"http://data.europa.eu/snb/model/elm/",rdfc:"https://w3id.org/rdf-connect#",csr:"http://purl.org/org/iode/po/voc/cruise-summary-reports#",dtool:"https://devtoolkit.space/ontology#",dcatde:"http://dcat-ap.de/def/dcatde/",a11y:"http://idpf.org/epub/vocab/package/a11y/#",sz:"https://github.com/senzing-garage/sz-semantics/wiki/ns#",bmont:"http://purl.obolibrary.org/obo/BMONT_",bodi:"http://w3id.org/bodi#",afy:"https://w3id.org/afy#",sdn:"https://ontology.seadatanet.org/#",pghdprovo:"https://w3id.org/pghdprovo#",homoit:"https://homosaurus.org/v4/",lib:"http://purl.org/library/",bno:"https://data.banenor.no/ontology/",modsrdf:"http://www.loc.gov/mods/rdf/v1#",mdcat:"https://w3id.org/mobilitydcat-ap#",tbs:"http://topbraid.org/tbs#",tfn:"https://w3id.org/time-fn#",bnd:"https://data.banenor.no/data/",tensor:"https://w3id.org/rdf-tensor/vocab#",rtm:"http://ontology.railml.org/railtopomodel#",railml3:"http://ontology.railml.org/railml3#",ard:"https://www.stratcom.mil/ontologies/electromagnetic-spectrum/adversary-radar-detection-ontology/",dccs:"https://ptb.de/dccs/",omekas:"http://omeka.org/s/vocabs/o#",lubm:"http://swat.cse.lehigh.edu/onto/univ-bench.owl#",rdm:"https://terms.codata.org/rdmt/",geodcatap:"http://data.europa.eu/930/",dpp:"https://ns.verisav.fr/dpp#",aaao:"https://ontology.swissartresearch.net/aaao/",let:"http://uispin.org/let#",submit:"https://ns.verisav.fr/dpp#",dpvpd:"https://w3id.org/dpv/pd#",vlaanderen:"https://data.vlaanderen.be/ns/",iut:"https://cours.iut-orsay.fr/",osmkey:"https://www.openstreetmap.org/wiki/Key:",idtype:"https://data.elsevier.com/e/identifier/",whg:"https://w3id.org/whg/id/",mdo:"http://w3id.org/mdo/",med:"http://data.esante.gouv.fr/ansm/medicament/",plato:"https://w3id.org/plato#",tf:"https://takumifujimoto.com/schema/",mdr:"https://w3id.org/mdr#",mlca:"https://w3id.org/mlca/",coord:"http://qudt.org/vocab/coordinate/",animl:"http://www.w3id.org/animl/ontology/",dbn:"https://www.darrinbaines.org/ns/identity#",gid:"https://inspirewrap.ontologycentral.com/adv/gid/7.1#",i40fd:"http://w3id.org/iaam/i40fd#",riepr:"https://data.riepr.omgeving.vlaanderen.be/ns/riepr#",lth:"https://vocab.lifetidy.com/",puv:"http://data.elsevier.com/publishing/schema/puv/",lack:"https://purl.net/climatesense/lack/ns#",gwn:"https://globalwordnet.github.io/schemas/wn#",mqto:"https://w3id.org/mqto#",statdcatap:"http://data.europa.eu/s1n/",norma:"https://w3id.org/def/norma-o#",aic:"https://w3id.org/aic#",bcore:"https://w3id.org/bcore/",spectra:"https://w3id.org/spectra#",tal:"http://xml.zope.org/namespaces/tal/",lbco:"https://w3id.org/batcat#",multi:"https://semanticweb.tools/ont/multi#",vwag:"https://devstack.vwgroup.com/",ontodic:"http://tecnolettra.uji.es/ontodic#",tfo:"http://opendata.inrae.fr/PO2/Ontology/TransformON/",vwcds:"https://devstack.vwgroup.com/confluence/rest/api/content/",odic:"http://tecnolettra.uji.es/ontodic#",bedo:"https://w3id.org/bedo/",faptica:"https://faptica.com/",aeovis:"https://prismdiscovery.ai/ontology/aeo#",haishutsu:"https://wik.jp/haishutsu/",kasen:"https://wik.jp/kasen/",bedro:"https://w3id.org/bedro/",copi:"https://www.inf.ufrgs.br/ontologies/copi/",fract:"https://w3id.org/refract#",laosez:"https://laos.world/ns/khetsetthakit/",eau:"https://w3id.org/eautonome/",idsa:"https://w3id.org/idsa/core/",sstim:"https://w3id.org/sstim#",uogto:"https://w3id.org/uogto/core#",dengen:"https://wik.jp/dengen/",fairo:"https://w3id.org/fair-o#",wjl:"https://wik.jp/law/ns#",kobutsu:"https://wik.jp/kobutsu/",bousai:"https://wik.jp/bousai/",hon:"https://honoria.co.uk/id/honours#",denchi:"https://wik.jp/denchi/",uogtox:"https://w3id.org/uogto/extensions#",gakkou:"https://wik.jp/gakkou/",smart:"https://w3id.org/standards/smart/ontologies/core/",laokhoueng:"https://laos.world/ns/khoueng/",mnf:"https://w3id.org/imo/manufacturing#",sdc:"https://w3id.org/statbarnsdc#",mim:"http://modellen.mim-standaard.nl/def/mim#",laomuang:"https://laos.world/ns/muang/",tokutei:"https://wik.jp/tokutei/",gijutsu:"https://wik.jp/gijutsu/",laopasa:"https://laos.world/ns/pasa/",campop:"https://w3id.org/campop/",hojin:"https://wik.jp/hojin/",shokugyo:"https://wik.jp/shokugyo/",houki:"https://wik.jp/houki/",laoboun:"https://laos.world/ns/boun/",laosonphao:"https://laos.world/ns/sonphao/",kunishitei:"https://wik.jp/kunishitei/",bsdo:"https://w3id.org/bsdo#",todofuken:"https://wik.jp/todofuken/",jgs:"https://wik.jp/jgs/",hinmoku:"https://wik.jp/hinmoku/",laomoladok:"https://laos.world/ns/moladok/",cbam:"https://wik.jp/cbam/",koyomi:"https://wik.jp/koyomi/",hinshi:"https://wik.jp/hinshi/",kikaku:"https://wik.jp/kikaku/",sangyo:"https://wik.jp/sangyo/",sb:"https://purl.org/supplybench#",rcl:"https://realcharacterlanguage.world/",kagaku:"https://wik.jp/kagaku/",tani:"https://wik.jp/tani/",gsoc:"https://w3id.org/gso/1.0/common/",gsel:"https://w3id.org/gso/1.0/element/",gsmin:"https://w3id.org/gso/1.0/mineral/",smartsh:"https://w3id.org/standards/smart/schema/data/",gscn:"https://w3id.org/gso/1.0/geologiccontact/",pd:"https://w3id.org/dpv/pd#",rewt:"https://w3id.org/rewt/",gsev:"https://w3id.org/gso/1.0/geologicevent/",gsrm:"https://w3id.org/gso/1.0/rockmaterial/",gsfa:"https://w3id.org/gso/1.0/geologicfault/",hanami:"https://hanami.app/ontology#",xwkont:"https://w3id.org/xwkont/core#"};var WD={"string-2":"prefixed",atom:"var"},DD={postprocessHints:function(i,t){return DC(t,e=>e.text.split(":")[0])},onInitialize:function(i){i.on("change",()=>{if(!(!i.config.autocompleters||i.config.autocompleters.indexOf(this.name)==-1)){var t=i.getDoc().getCursor(),e=i.getTokenAt(t);if(e.type&&WD[e.type]=="prefixed"){var o=e.string.indexOf(":");if(o!==-1){var n=i.getPreviousNonWsToken(t.line,e).string.toUpperCase(),c=i.getTokenAt({line:t.line,ch:e.start});if(n!=="PREFIX"&&(c.type=="ws"||c.type==null||c.type==="punc"&&(c.string==="|"||c.string==="/"||c.string=="^^"||c.string=="{"||c.string==="("))){var g=e.string.substring(0,o+1),w=i.getPrefixesFromQuery();w[g.slice(0,-1)]==null&&(e.autocompletionString=g,i.autocompleters[this.name]?.getCompletions(e).then(y=>{y.length&&(i.addPrefixes(y[0]),i.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(i){var t=i.getDoc().getCursor(),e=i.getTokenAt(t);if(i.getDoc().getLine(t.line).length>t.ch||(e.type!="ws"&&(e=i.getCompleteToken()),e.string.indexOf("a")!==0&&e.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var o=i.getPreviousNonWsToken(t.line,e);return!(!o||o.string.toUpperCase()!="PREFIX")},get:function(i){let t=i.config.prefixCcApi,e=o=>{let n=[];for(let c in o)n.push(`${c}: <${o[c]}>`);return n.sort()};return t?fetch(t).then(o=>{if(!o.ok)throw new Error("Failed to fetch prefixes");return o.json()}).then(o=>e(o)):Promise.resolve(e(vB))},preProcessToken:function(i,t){var e=i.getPreviousNonWsToken(i.getDoc().getCursor().line,t);return e&&e.string&&e.string.slice(-1)==":"&&(t={start:e.start,end:t.end,string:e.string+" "+t.string,state:t.state,type:t.type}),t},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},yB=DD;var PD={onInitialize:function(i){},get:function(i,t){return ig(i,"property",t)},isValidCompletionPosition:function(i){let t=i.getCompleteToken();return t.string.length==0||t.string[0]==="?"||t.string[0]==="$"?!1:t.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(i,t){return eg(i,t)},postProcessSuggestion:function(i,t,e){return tg(i,t,e)},bulk:!1,name:"property"},EB=PD;var QD={onInitialize:function(i){},get:function(i,t){return ig(i,"class",t)},isValidCompletionPosition:function(i){let t=i.getCompleteToken();if(t.string[0]==="?"||t.string[0]==="$")return!1;let e=i.getDoc().getCursor(),o=i.getPreviousNonWsToken(e.line,t);return o.state.lastProperty==="a"||o.state.lastProperty==="rdf:type"||o.state.lastProperty==="rdfs:domain"||o.state.lastProperty==="rdfs:range"},preProcessToken:function(i,t){return eg(i,t)},postProcessSuggestion:function(i,t,e){return tg(i,t,e)},bulk:!1,name:"class"},CB=QD;var XD=100,rg=class extends IB.EventEmitter{constructor(t,e){super(),this.yasqe=t,this.config=e}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(t){if(!(!t||!(t instanceof Array))){this.trie=new qu;for(let o of t)this.trie.insert(o);var e=this.getStorageId();e&&this.yasqe.storage.set(e,t,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(t){if(!this.config.get)return Promise.resolve([]);if(!t)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(o=>o instanceof Array?o:[]);let e=t.autocompletionString||t.string;return this.trie?Promise.resolve(PC(this.trie.autoComplete(e),XD)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(o=>o.indexOf(e)===0)):Promise.resolve(this.config.get(this.yasqe,t)).then(o=>o instanceof Array?o:[])}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 t,e=this.getStorageId();return e&&(t=this.yasqe.storage.get(e)),t&&t.length>0?(this.storeBulkCompletions(t),Promise.resolve()):this.getCompletions().then(o=>this.storeBulkCompletions(o))}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(t,e){this.config.postProcessSuggestion&&(e=this.config.postProcessSuggestion(this.yasqe,t,e));let o,n,c=this.yasqe.getDoc().getCursor();t.from&&(o={...c,...t.from});let g=this.yasqe.getDoc().getCursor().line;return t.to?n={ch:t?.to?.ch||this.yasqe.getCompleteToken().end,line:g}:t.string.length>0?n={ch:this.yasqe.getCompleteToken().end,line:g}:n=t.from,{text:e,displayText:e,from:o,to:n}}getHints(t){return this.config.preProcessToken&&(t=this.config.preProcessToken(this.yasqe,t)),t?this.getCompletions(t).then(e=>e.map(o=>this.getHint(t,o))).then(e=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,e):e):Promise.resolve([])}isValidCompletionPosition(){return this.isValidPosition()}autocomplete(t){return!this.isValidPosition()||t&&(!this.config.autoShow||this.yasqe.isAutocompletionActive())?!1:this.getHintFn()}getHintFn(){return()=>this.getHints(this.yasqe.getCompleteToken()).then(e=>{let o=this.yasqe.getDoc().getCursor(),n=this.yasqe.getCompleteToken();return{list:e,from:{line:o.line,ch:n.start},to:{line:o.line,ch:n.end}}})}};function eg(i,t){let e=i.getPrefixesFromQuery(),o=t.string;if(o.indexOf("<")<0&&(t.tokenPrefix=o.substring(0,o.indexOf(":")+1),e[t.tokenPrefix.slice(0,-1)]!=null&&(t.tokenPrefixUri=e[t.tokenPrefix.slice(0,-1)])),t.autocompletionString=o.trim(),o.indexOf("<")<0&&o.indexOf(":")>-1){for(var n in e)if(t.tokenPrefix===n+":"){t.autocompletionString=e[n],t.autocompletionString+=o.substring(n.length+1);break}}return t.autocompletionString.indexOf("<")==0&&(t.autocompletionString=t.autocompletionString.substring(1)),t.autocompletionString.indexOf(">",t.autocompletionString.length-1)>0&&(t.autocompletionString=t.autocompletionString.substring(0,t.autocompletionString.length-1)),t}function tg(i,t,e){return t.tokenPrefix&&t.autocompletionString&&t.tokenPrefixUri?e=t.tokenPrefix+e.substring(t.tokenPrefixUri.length):e="<"+e+">",e}var ig=(i,t,e)=>{var o=window.location.protocol.indexOf("http")===0?"https://":"http://";let n="autocomplete_"+t;if(!e||!e.string||e.string.trim().length==0)return i.showNotification(n,"Nothing to autocomplete yet!"),Promise.resolve([]);let c=new URLSearchParams;e.autocompletionString&&c.append("q",e.autocompletionString),c.append("page_size","50"),c.append("type",t);let g=`${o}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${c.toString()}`;return fetch(g).then(w=>{if(!w.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return w.json()}).then(w=>w.results?w.results.map(y=>y.uri[0]):[]).catch(w=>{i.showNotification(n,"Failed fetching suggestions")})},AB=[xB,yB,EB,CB];var NB=Lc(Cd());function tI(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
28
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
29
+ SELECT * WHERE {
30
+ ?sub ?pred ?obj .
31
+ } LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:!0,collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","gutterConstructWarning"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(o){o.autocomplete()},"Shift-Ctrl-K":function(o){let n=o,c=n.getDoc().getCursor().line;return c===n.getDoc().lastLine()&&c>1?n.getDoc().replaceRange("",{ch:n.getDoc().getLine(c-1).length,line:c-1},{ch:n.getDoc().getLine(c).length,line:c}):n.getDoc().replaceRange("",{ch:0,line:c},{ch:0,line:c+1})},"Ctrl-/":function(o){o.commentLines()},"Shift-Ctrl-D":function(o){o.duplicateLine()},"Shift-Ctrl-F":function(o){o.format()},"Ctrl-S":function(o){o.saveQuery()},"Cmd-Enter":function(o){o.query().catch(()=>{})},"Ctrl-Enter":function(o){o.query().catch(()=>{})},Esc:function(o){o.getInputField().blur()},F11:function(o){o.toggleFullscreen()}},createShareableLink:function(o){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+NB.stringify(o.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(o){o.queryParamsToConfig(o.getUrlParams())},persistenceId:function(o){let n="",c=o.rootEl;for(c.id&&(n=c.id);c&&c!==document;c=c.parentNode)if(c){c.id&&(n=c.id);break}return"yasqe_"+n+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:null,showFormatButton:!0,showMapButton:!0,checkConstructVariables:!0,snippets:[{label:"SELECT",code:`SELECT * WHERE {
32
+ ?s ?p ?o .
33
+ } LIMIT 10`,group:"Query Types"},{label:"CONSTRUCT",code:`CONSTRUCT {
34
+ ?s ?p ?o .
35
+ } WHERE {
36
+ ?s ?p ?o .
37
+ } LIMIT 10`,group:"Query Types"},{label:"ASK",code:`ASK {
38
+ ?s ?p ?o .
39
+ }`,group:"Query Types"},{label:"FILTER",code:"FILTER (?var > 100)",group:"Patterns"},{label:"OPTIONAL",code:`OPTIONAL {
40
+ ?s ?p ?o .
41
+ }`,group:"Patterns"}],showSnippetsBar:!0},requestConfig:{queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"text/turtle,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1,basicAuth:void 0,bearerAuth:void 0,apiKeyAuth:void 0,oauth2Auth:void 0}}}var YD=i=>{let{state:t}=i,e=t.doc.lineAt(t.selection.main.from),o=aI(i.state,e.from);return o.line?HD(i):o.block?zD(i):!1};function nI(i,t){return({state:e,dispatch:o})=>{if(e.readOnly)return!1;let n=i(t,e);return n?(o(e.update(n)),!0):!1}}var HD=nI(qD,0);var JD=nI(UB,0);var zD=nI((i,t)=>UB(i,t,$D(t)),0);function aI(i,t){let e=i.languageDataAt("commentTokens",t,1);return e.length?e[0]:{}}var ef=50;function jD(i,{open:t,close:e},o,n){let c=i.sliceDoc(o-ef,o),g=i.sliceDoc(n,n+ef),w=/\s*$/.exec(c)[0].length,y=/^\s*/.exec(g)[0].length,A=c.length-w;if(c.slice(A-t.length,A)==t&&g.slice(y,y+e.length)==e)return{open:{pos:o-w,margin:w&&1},close:{pos:n+y,margin:y&&1}};let R,T;n-o<=2*ef?R=T=i.sliceDoc(o,n):(R=i.sliceDoc(o,o+ef),T=i.sliceDoc(n-ef,n));let F=/^\s*/.exec(R)[0].length,k=/\s*$/.exec(T)[0].length,G=T.length-k-e.length;return R.slice(F,F+t.length)==t&&T.slice(G,G+e.length)==e?{open:{pos:o+F+t.length,margin:/\s/.test(R.charAt(F+t.length))?1:0},close:{pos:n-k-e.length,margin:/\s/.test(T.charAt(G-1))?1:0}}:null}function $D(i){let t=[];for(let e of i.selection.ranges){let o=i.doc.lineAt(e.from),n=e.to<=o.to?o:i.doc.lineAt(e.to);n.from>o.from&&n.from==e.to&&(n=e.to==o.to+1?o:i.doc.lineAt(e.to-1));let c=t.length-1;c>=0&&t[c].to>o.from?t[c].to=n.to:t.push({from:o.from+/^\s*/.exec(o.text)[0].length,to:n.to})}return t}function UB(i,t,e=t.selection.ranges){let o=e.map(c=>aI(t,c.from).block);if(!o.every(c=>c))return null;let n=e.map((c,g)=>jD(t,o[g],c.from,c.to));if(i!=2&&!n.every(c=>c))return{changes:t.changes(e.map((c,g)=>n[g]?[]:[{from:c.from,insert:o[g].open+" "},{from:c.to,insert:" "+o[g].close}]))};if(i!=1&&n.some(c=>c)){let c=[];for(let g=0,w;g<n.length;g++)if(w=n[g]){let y=o[g],{open:A,close:R}=w;c.push({from:A.pos-y.open.length,to:A.pos+A.margin},{from:R.pos-R.margin,to:R.pos+y.close.length})}return{changes:c}}return null}function qD(i,t,e=t.selection.ranges){let o=[],n=-1;e:for(let{from:c,to:g}of e){let w=o.length,y=1e9,A;for(let R=c;R<=g;){let T=t.doc.lineAt(R);if(A==null&&(A=aI(t,T.from).line,!A))continue e;if(T.from>n&&(c==g||g>T.from)){n=T.from;let F=/^\s*/.exec(T.text)[0].length,k=F==T.length,G=T.text.slice(F,F+A.length)==A?F:-1;F<T.text.length&&F<y&&(y=F),o.push({line:T,comment:G,token:A,indent:F,empty:k,single:!1})}R=T.to+1}if(y<1e9)for(let R=w;R<o.length;R++)o[R].indent<o[R].line.text.length&&(o[R].indent=y);o.length==w+1&&(o[w].single=!0)}if(i!=2&&o.some(c=>c.comment<0&&(!c.empty||c.single))){let c=[];for(let{line:w,token:y,indent:A,empty:R,single:T}of o)(T||!R)&&c.push({from:w.from+A,insert:y+" "});let g=t.changes(c);return{changes:g,selection:t.selection.map(g,1)}}else if(i!=1&&o.some(c=>c.comment>=0)){let c=[];for(let{line:g,comment:w,token:y}of o)if(w>=0){let A=g.from+w,R=A+y.length;g.text[R-g.from]==" "&&R++,c.push({from:A,to:R})}return{changes:c}}return null}var rI=Pr.define(),KD=Pr.define(),eP=Se.define(),_B=Se.define({combine(i){return po(i,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(o,n)=>t(o,n)||e(o,n)})}}),OB=ri.define({create(){return $l.empty},update(i,t){let e=t.state.facet(_B),o=t.annotation(rI);if(o){let y=hs.fromTransaction(t,o.selection),A=o.side,R=A==0?i.undone:i.done;return y?R=sg(R,R.length,e.minDepth,y):R=MB(R,t.startState.selection),new $l(A==0?o.rest:R,A==0?R:o.rest)}let n=t.annotation(KD);if((n=="full"||n=="before")&&(i=i.isolate()),t.annotation(Bi.addToHistory)===!1)return t.changes.empty?i:i.addMapping(t.changes.desc);let c=hs.fromTransaction(t),g=t.annotation(Bi.time),w=t.annotation(Bi.userEvent);return c?i=i.addChanges(c,g,w,e,t):t.selection&&(i=i.addSelection(t.startState.selection,g,w,e.newGroupDelay)),(n=="full"||n=="after")&&(i=i.isolate()),i},toJSON(i){return{done:i.done.map(t=>t.toJSON()),undone:i.undone.map(t=>t.toJSON())}},fromJSON(i){return new $l(i.done.map(hs.fromJSON),i.undone.map(hs.fromJSON))}});function GB(i={}){return[OB,_B.of(i),we.domEventHandlers({beforeinput(t,e){let o=t.inputType=="historyUndo"?ag:t.inputType=="historyRedo"?tf:null;return o?(t.preventDefault(),o(e)):!1}})]}function ng(i,t){return function({state:e,dispatch:o}){if(!t&&e.readOnly)return!1;let n=e.field(OB,!1);if(!n)return!1;let c=n.pop(i,e,t);return c?(o(c),!0):!1}}var ag=ng(0,!1),tf=ng(1,!1),tP=ng(0,!0),iP=ng(1,!0);var hs=class i{constructor(t,e,o,n,c){this.changes=t,this.effects=e,this.mapped=o,this.startSelection=n,this.selectionsAfter=c}setSelAfter(t){return new i(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,o;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(e=this.mapped)===null||e===void 0?void 0:e.toJSON(),startSelection:(o=this.startSelection)===null||o===void 0?void 0:o.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(t){return new i(t.changes&&yr.fromJSON(t.changes),[],t.mapped&&gn.fromJSON(t.mapped),t.startSelection&&se.fromJSON(t.startSelection),t.selectionsAfter.map(se.fromJSON))}static fromTransaction(t,e){let o=Lo;for(let n of t.startState.facet(eP)){let c=n(t);c.length&&(o=o.concat(c))}return!o.length&&t.changes.empty?null:new i(t.changes.invert(t.startState.doc),o,void 0,e||t.startState.selection,Lo)}static selection(t){return new i(void 0,Lo,void 0,void 0,t)}};function sg(i,t,e,o){let n=t+1>e+20?t-e-1:0,c=i.slice(n,t);return c.push(o),c}function rP(i,t){let e=[],o=!1;return i.iterChangedRanges((n,c)=>e.push(n,c)),t.iterChangedRanges((n,c,g,w)=>{for(let y=0;y<e.length;){let A=e[y++],R=e[y++];w>=A&&g<=R&&(o=!0)}}),o}function oP(i,t){return i.ranges.length==t.ranges.length&&i.ranges.filter((e,o)=>e.empty!=t.ranges[o].empty).length===0}function ZB(i,t){return i.length?t.length?i.concat(t):i:t}var Lo=[],sP=200;function MB(i,t){if(i.length){let e=i[i.length-1],o=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-sP));return o.length&&o[o.length-1].eq(t)?i:(o.push(t),sg(i,i.length-1,1e9,e.setSelAfter(o)))}else return[hs.selection([t])]}function nP(i){let t=i[i.length-1],e=i.slice();return e[i.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}function iI(i,t){if(!i.length)return i;let e=i.length,o=Lo;for(;e;){let n=aP(i[e-1],t,o);if(n.changes&&!n.changes.empty||n.effects.length){let c=i.slice(0,e);return c[e-1]=n,c}else t=n.mapped,e--,o=n.selectionsAfter}return o.length?[hs.selection(o)]:Lo}function aP(i,t,e){let o=ZB(i.selectionsAfter.length?i.selectionsAfter.map(w=>w.map(t)):Lo,e);if(!i.changes)return hs.selection(o);let n=i.changes.map(t),c=t.mapDesc(i.changes,!0),g=i.mapped?i.mapped.composeDesc(c):c;return new hs(n,et.mapEffects(i.effects,t),g,i.startSelection.map(c),o)}var lP=/^(input\.type|delete)($|\.)/,$l=class i{constructor(t,e,o=0,n=void 0){this.done=t,this.undone=e,this.prevTime=o,this.prevUserEvent=n}isolate(){return this.prevTime?new i(this.done,this.undone):this}addChanges(t,e,o,n,c){let g=this.done,w=g[g.length-1];return w&&w.changes&&!w.changes.empty&&t.changes&&(!o||lP.test(o))&&(!w.selectionsAfter.length&&e-this.prevTime<n.newGroupDelay&&n.joinToEvent(c,rP(w.changes,t.changes))||o=="input.type.compose")?g=sg(g,g.length-1,n.minDepth,new hs(t.changes.compose(w.changes),ZB(et.mapEffects(t.effects,w.changes),w.effects),w.mapped,w.startSelection,Lo)):g=sg(g,g.length,n.minDepth,t),new i(g,Lo,e,o)}addSelection(t,e,o,n){let c=this.done.length?this.done[this.done.length-1].selectionsAfter:Lo;return c.length>0&&e-this.prevTime<n&&o==this.prevUserEvent&&o&&/^select($|\.)/.test(o)&&oP(c[c.length-1],t)?this:new i(MB(this.done,t),this.undone,e,o)}addMapping(t){return new i(iI(this.done,t),iI(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,o){let n=t==0?this.done:this.undone;if(n.length==0)return null;let c=n[n.length-1],g=c.selectionsAfter[0]||(c.startSelection?c.startSelection.map(c.changes.invertedDesc,1):e.selection);if(o&&c.selectionsAfter.length)return e.update({selection:c.selectionsAfter[c.selectionsAfter.length-1],annotations:rI.of({side:t,rest:nP(n),selection:g}),userEvent:t==0?"select.undo":"select.redo",scrollIntoView:!0});if(c.changes){let w=n.length==1?Lo:n.slice(0,n.length-1);return c.mapped&&(w=iI(w,c.mapped)),e.update({changes:c.changes,selection:c.startSelection,effects:c.effects,annotations:rI.of({side:t,rest:w,selection:g}),filter:!1,userEvent:t==0?"undo":"redo",scrollIntoView:!0})}else return null}};$l.empty=new $l(Lo,Lo);var WB=[{key:"Mod-z",run:ag,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:tf,preventDefault:!0},{linux:"Ctrl-Shift-z",run:tf,preventDefault:!0},{key:"Mod-u",run:tP,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:iP,preventDefault:!0}];function xh(i,t){return se.create(i.ranges.map(t),i.mainIndex)}function ps(i,t){return i.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function us({state:i,dispatch:t},e){let o=xh(i.selection,e);return o.eq(i.selection,!0)?!1:(t(ps(i,o)),!0)}function lg(i,t){return se.cursor(t?i.to:i.from)}function DB(i,t){return us(i,e=>e.empty?i.moveByChar(e,t):lg(e,t))}function pr(i){return i.textDirectionAt(i.state.selection.main.head)==Et.LTR}var PB=i=>DB(i,!pr(i)),QB=i=>DB(i,pr(i));function XB(i,t){return us(i,e=>e.empty?i.moveByGroup(e,t):lg(e,t))}var cP=i=>XB(i,!pr(i)),hP=i=>XB(i,pr(i));var Zq=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function pP(i,t,e){if(t.type.prop(e))return!0;let o=t.to-t.from;return o&&(o>2||/[^\s,.;:]/.test(i.sliceDoc(t.from,t.to)))||t.firstChild}function cg(i,t,e){let o=Zi(i).resolveInner(t.head),n=e?at.closedBy:at.openedBy;for(let y=t.head;;){let A=e?o.childAfter(y):o.childBefore(y);if(!A)break;pP(i,A,n)?o=A:y=e?A.to:A.from}let c=o.type.prop(n),g,w;return c&&(g=e?ns(i,o.from,1):ns(i,o.to,-1))&&g.matched?w=e?g.end.to:g.end.from:w=e?o.to:o.from,se.cursor(w,e?-1:1)}var uP=i=>us(i,t=>cg(i.state,t,!pr(i))),fP=i=>us(i,t=>cg(i.state,t,pr(i)));function YB(i,t){return us(i,e=>{if(!e.empty)return lg(e,t);let o=i.moveVertically(e,t);return o.head!=e.head?o:i.moveToLineBoundary(e,t)})}var HB=i=>YB(i,!1),JB=i=>YB(i,!0);function zB(i){let t=i.scrollDOM.clientHeight<i.scrollDOM.scrollHeight-2,e=0,o=0,n;if(t){for(let c of i.state.facet(we.scrollMargins)){let g=c(i);g?.top&&(e=Math.max(g?.top,e)),g?.bottom&&(o=Math.max(g?.bottom,o))}n=i.scrollDOM.clientHeight-e-o}else n=(i.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:e,marginBottom:o,selfScroll:t,height:Math.max(i.defaultLineHeight,n-5)}}function jB(i,t){let e=zB(i),{state:o}=i,n=xh(o.selection,g=>g.empty?i.moveVertically(g,t,e.height):lg(g,t));if(n.eq(o.selection))return!1;let c;if(e.selfScroll){let g=i.coordsAtPos(o.selection.main.head),w=i.scrollDOM.getBoundingClientRect(),y=w.top+e.marginTop,A=w.bottom-e.marginBottom;g&&g.top>y&&g.bottom<A&&(c=we.scrollIntoView(n.main.head,{y:"start",yMargin:g.top-y}))}return i.dispatch(ps(o,n),{effects:c}),!0}var RB=i=>jB(i,!1),oI=i=>jB(i,!0);function xa(i,t,e){let o=i.lineBlockAt(t.head),n=i.moveToLineBoundary(t,e);if(n.head==t.head&&n.head!=(e?o.to:o.from)&&(n=i.moveToLineBoundary(t,e,!1)),!e&&n.head==o.from&&o.length){let c=/^\s*/.exec(i.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;c&&t.head!=o.from+c&&(n=se.cursor(o.from+c))}return n}var dP=i=>us(i,t=>xa(i,t,!0)),gP=i=>us(i,t=>xa(i,t,!1)),mP=i=>us(i,t=>xa(i,t,!pr(i))),bP=i=>us(i,t=>xa(i,t,pr(i))),wP=i=>us(i,t=>se.cursor(i.lineBlockAt(t.head).from,1)),xP=i=>us(i,t=>se.cursor(i.lineBlockAt(t.head).to,-1));function vP(i,t,e){let o=!1,n=xh(i.selection,c=>{let g=ns(i,c.head,-1)||ns(i,c.head,1)||c.head>0&&ns(i,c.head-1,1)||c.head<i.doc.length&&ns(i,c.head+1,-1);if(!g||!g.end)return c;o=!0;let w=g.start.from==c.head?g.end.to:g.end.from;return e?se.range(c.anchor,w):se.cursor(w)});return o?(t(ps(i,n)),!0):!1}var yP=({state:i,dispatch:t})=>vP(i,t,!1);function Bo(i,t,e){let o=xh(i.state.selection,n=>{n.undirectional&&n.head>=n.anchor!=t&&(n=se.range(n.head,n.anchor));let c=e(n);return se.range(n.anchor,c.head,c.goalColumn,c.bidiLevel||void 0,c.assoc)});return o.eq(i.state.selection)?!1:(i.dispatch(ps(i.state,o)),!0)}function $B(i,t){return Bo(i,t,e=>i.moveByChar(e,t))}var qB=i=>$B(i,!pr(i)),KB=i=>$B(i,pr(i));function ek(i,t){return Bo(i,t,e=>i.moveByGroup(e,t))}var EP=i=>ek(i,!pr(i)),CP=i=>ek(i,pr(i));var IP=i=>{let t=!pr(i);return Bo(i,t,e=>cg(i.state,e,t))},AP=i=>{let t=pr(i);return Bo(i,t,e=>cg(i.state,e,t))};function tk(i,t){return Bo(i,t,e=>i.moveVertically(e,t))}var ik=i=>tk(i,!1),rk=i=>tk(i,!0);function ok(i,t){return Bo(i,t,e=>i.moveVertically(e,t,zB(i).height))}var TB=i=>ok(i,!1),SB=i=>ok(i,!0),NP=i=>Bo(i,!0,t=>xa(i,t,!0)),RP=i=>Bo(i,!1,t=>xa(i,t,!1)),TP=i=>{let t=!pr(i);return Bo(i,t,e=>xa(i,e,t))},SP=i=>{let t=pr(i);return Bo(i,t,e=>xa(i,e,t))},LP=i=>Bo(i,!1,t=>se.cursor(i.lineBlockAt(t.head).from)),BP=i=>Bo(i,!0,t=>se.cursor(i.lineBlockAt(t.head).to)),LB=({state:i,dispatch:t})=>(t(ps(i,{anchor:0})),!0),BB=({state:i,dispatch:t})=>(t(ps(i,{anchor:i.doc.length})),!0),kB=({state:i,dispatch:t})=>(t(ps(i,{anchor:i.selection.main.anchor,head:0})),!0),VB=({state:i,dispatch:t})=>(t(ps(i,{anchor:i.selection.main.anchor,head:i.doc.length})),!0),lI=({state:i,dispatch:t})=>(t(i.update({selection:{anchor:0,head:i.doc.length},userEvent:"select"})),!0),kP=({state:i,dispatch:t})=>{let e=hg(i).map(({from:o,to:n})=>se.undirectionalRange(o,Math.min(n+1,i.doc.length)));return t(i.update({selection:se.create(e),userEvent:"select"})),!0},VP=({state:i,dispatch:t})=>{let e=xh(i.selection,o=>{let n=Zi(i),c=n.resolveStack(o.from,1);if(o.empty){let g=n.resolveStack(o.from,-1);g.node.from>=c.node.from&&g.node.to<=c.node.to&&(c=g)}for(let g=c;g;g=g.next){let{node:w}=g;if((w.from<o.from&&w.to>=o.to||w.to>o.to&&w.from<=o.from)&&g.next)return se.undirectionalRange(w.from,w.to)}return o});return e.eq(i.selection)?!1:(t(ps(i,e)),!0)};function sk(i,t){let{state:e}=i,o=e.selection,n=e.selection.ranges.slice();for(let c of e.selection.ranges){let g=e.doc.lineAt(c.head);if(t?g.to<i.state.doc.length:g.from>0)for(let w=c;;){let y=i.moveVertically(w,t);if(y.head<g.from||y.head>g.to){n.some(A=>A.head==y.head)||n.push(y);break}else{if(y.head==w.head)break;w=y}}}return n.length==o.ranges.length?!1:(i.dispatch(ps(e,se.create(n,n.length-1))),!0)}var FP=i=>sk(i,!1),UP=i=>sk(i,!0),_P=({state:i,dispatch:t})=>{let e=i.selection,o=null;return e.ranges.length>1?o=se.create([e.main]):e.main.empty||(o=se.create([se.cursor(e.main.head)])),o?(t(ps(i,o)),!0):!1};function rf(i,t){if(i.state.readOnly)return!1;let e="delete.selection",{state:o}=i,n=o.changeByRange(c=>{let{from:g,to:w}=c;if(g==w){let y=t(c);y<g?(e="delete.backward",y=og(i,y,!1)):y>g&&(e="delete.forward",y=og(i,y,!0)),g=Math.min(g,y),w=Math.max(w,y)}else g=og(i,g,!1),w=og(i,w,!0);return g==w?{range:c}:{changes:{from:g,to:w},range:se.cursor(g,g<c.head?-1:1)}});return n.changes.empty?!1:(i.dispatch(o.update(n,{scrollIntoView:!0,userEvent:e,effects:e=="delete.selection"?we.announce.of(o.phrase("Selection deleted")):void 0})),!0)}function og(i,t,e){if(i instanceof we)for(let o of i.state.facet(we.atomicRanges).map(n=>n(i)))o.between(t,t,(n,c)=>{n<t&&c>t&&(t=e?c:n)});return t}var nk=(i,t,e)=>rf(i,o=>{let n=o.from,{state:c}=i,g=c.doc.lineAt(n),w,y;if(e&&!t&&n>g.from&&n<g.from+200&&!/[^ \t]/.test(w=g.text.slice(0,n-g.from))){if(w[w.length-1]==" ")return n-1;let A=Kn(w,c.tabSize),R=A%aa(c)||aa(c);for(let T=0;T<R&&w[w.length-1-T]==" ";T++)n--;y=n}else y=wi(g.text,n-g.from,t,t)+g.from,y==n&&g.number!=(t?c.doc.lines:1)?y+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(g.text.slice(y-g.from,n-g.from))&&(y=wi(g.text,y-g.from,!1,!1)+g.from);return y}),sI=i=>nk(i,!1,!0);var ak=i=>nk(i,!0,!1),lk=(i,t)=>rf(i,e=>{let o=e.head,{state:n}=i,c=n.doc.lineAt(o),g=n.charCategorizer(o);for(let w=null;;){if(o==(t?c.to:c.from)){o==e.head&&c.number!=(t?n.doc.lines:1)&&(o+=t?1:-1);break}let y=wi(c.text,o-c.from,t)+c.from,A=c.text.slice(Math.min(o,y)-c.from,Math.max(o,y)-c.from),R=g(A);if(w!=null&&R!=w)break;(A!=" "||o!=e.head)&&(w=R),o=y}return o}),ck=i=>lk(i,!1),OP=i=>lk(i,!0);var GP=i=>rf(i,t=>{let e=i.lineBlockAt(t.head).to;return t.head<e?e:Math.min(i.state.doc.length,t.head+1)});var ZP=i=>rf(i,t=>{let e=i.moveToLineBoundary(t,!1).head;return t.head>e?e:Math.max(0,t.head-1)}),MP=i=>rf(i,t=>{let e=i.moveToLineBoundary(t,!0).head;return t.head<e?e:Math.min(i.state.doc.length,t.head+1)});var WP=({state:i,dispatch:t})=>{if(i.readOnly)return!1;let e=i.changeByRange(o=>({changes:{from:o.from,to:o.to,insert:gt.of(["",""])},range:se.cursor(o.from)}));return t(i.update(e,{scrollIntoView:!0,userEvent:"input"})),!0},DP=({state:i,dispatch:t})=>{if(i.readOnly)return!1;let e=i.changeByRange(o=>{if(!o.empty||o.from==0||o.from==i.doc.length)return{range:o};let n=o.from,c=i.doc.lineAt(n),g=n==c.from?n-1:wi(c.text,n-c.from,!1)+c.from,w=n==c.to?n+1:wi(c.text,n-c.from,!0)+c.from;return{changes:{from:g,to:w,insert:i.doc.slice(n,w).append(i.doc.slice(g,n))},range:se.cursor(w)}});return e.changes.empty?!1:(t(i.update(e,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function hg(i){let t=[],e=-1;for(let o of i.selection.ranges){let n=i.doc.lineAt(o.from),c=i.doc.lineAt(o.to);if(!o.empty&&o.to==c.from&&(c=i.doc.lineAt(o.to-1)),e>=n.number){let g=t[t.length-1];g.to=c.to,g.ranges.push(o)}else t.push({from:n.from,to:c.to,ranges:[o]});e=c.number+1}return t}function hk(i,t,e){if(i.readOnly)return!1;let o=[],n=[];for(let c of hg(i)){if(e?c.to==i.doc.length:c.from==0)continue;let g=i.doc.lineAt(e?c.to+1:c.from-1),w=g.length+1;if(e){o.push({from:c.to,to:g.to},{from:c.from,insert:g.text+i.lineBreak});for(let y of c.ranges)n.push(se.range(Math.min(i.doc.length,y.anchor+w),Math.min(i.doc.length,y.head+w)))}else{o.push({from:g.from,to:c.from},{from:c.to,insert:i.lineBreak+g.text});for(let y of c.ranges)n.push(se.range(y.anchor-w,y.head-w))}}return o.length?(t(i.update({changes:o,scrollIntoView:!0,selection:se.create(n,i.selection.mainIndex),userEvent:"move.line"})),!0):!1}var PP=({state:i,dispatch:t})=>hk(i,t,!1),QP=({state:i,dispatch:t})=>hk(i,t,!0);function pk(i,t,e){if(i.readOnly)return!1;let o=[];for(let c of hg(i))e?o.push({from:c.from,insert:i.doc.slice(c.from,c.to)+i.lineBreak}):o.push({from:c.to,insert:i.lineBreak+i.doc.slice(c.from,c.to)});let n=i.changes(o);return t(i.update({changes:n,selection:i.selection.map(n,e?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}var XP=({state:i,dispatch:t})=>pk(i,t,!1),YP=({state:i,dispatch:t})=>pk(i,t,!0),cI=i=>{if(i.state.readOnly)return!1;let{state:t}=i,e=t.changes(hg(t).map(({from:n,to:c})=>(n>0?n--:c<t.doc.length&&c++,{from:n,to:c}))),o=xh(t.selection,n=>{let c;if(i.lineWrapping){let g=i.lineBlockAt(n.head),w=i.coordsAtPos(n.head,n.assoc||1);w&&(c=g.bottom+i.documentTop-w.bottom+i.defaultLineHeight/2)}return i.moveVertically(n,!0,c)}).map(e);return i.dispatch({changes:e,selection:o,scrollIntoView:!0,userEvent:"delete.line"}),!0};function HP(i,t){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(t-1,t+1)))return{from:t,to:t};let e=Zi(i).resolveInner(t),o=e.childBefore(t),n=e.childAfter(t),c;return o&&n&&o.to<=t&&n.from>=t&&(c=o.type.prop(at.closedBy))&&c.indexOf(n.name)>-1&&i.doc.lineAt(o.to).from==i.doc.lineAt(n.from).from&&!/\S/.test(i.sliceDoc(o.to,n.from))?{from:o.to,to:n.from}:null}var FB=uk(!1),JP=uk(!0);function uk(i){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let o=t.changeByRange(n=>{let{from:c,to:g}=n,w=t.doc.lineAt(c),y=!i&&c==g&&HP(t,c);i&&(c=g=(g<=w.to?w:t.doc.lineAt(g)).to);let A=new _l(t,{simulateBreak:c,simulateDoubleBreak:!!y}),R=_u(A,c);for(R==null&&(R=Kn(/^\s*/.exec(t.doc.lineAt(c).text)[0],t.tabSize));g<w.to&&/\s/.test(w.text[g-w.from]);)g++;y?{from:c,to:g}=y:c>w.from&&c<w.from+100&&!/\S/.test(w.text.slice(0,c))&&(c=w.from);let T=["",Gl(t,R)];return y&&T.push(Gl(t,A.lineIndent(w.from,-1))),{changes:{from:c,to:g,insert:gt.of(T)},range:se.cursor(c+1+T[1].length)}});return e(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function hI(i,t){let e=-1;return i.changeByRange(o=>{let n=[];for(let g=o.from;g<=o.to;){let w=i.doc.lineAt(g);w.number>e&&(o.empty||o.to>w.from)&&(t(w,n,o),e=w.number),g=w.to+1}let c=i.changes(n);return{changes:n,range:se.range(c.mapPos(o.anchor,1),c.mapPos(o.head,1))}})}var zP=({state:i,dispatch:t})=>{if(i.readOnly)return!1;let e=Object.create(null),o=new _l(i,{overrideIndentation:c=>{let g=e[c];return g??-1}}),n=hI(i,(c,g,w)=>{let y=_u(o,c.from);if(y==null)return;/\S/.test(c.text)||(y=0);let A=/^\s*/.exec(c.text)[0],R=Gl(i,y);(A!=R||w.from<c.from+A.length)&&(e[c.from]=y,g.push({from:c.from,to:c.from+A.length,insert:R}))});return n.changes.empty||t(i.update(n,{userEvent:"indent"})),!0},ql=({state:i,dispatch:t})=>i.readOnly?!1:(t(i.update(hI(i,(e,o)=>{o.push({from:e.from,insert:i.facet(ca)})}),{userEvent:"input.indent"})),!0),Kl=({state:i,dispatch:t})=>i.readOnly?!1:(t(i.update(hI(i,(e,o)=>{let n=/^\s*/.exec(e.text)[0];if(!n)return;let c=Kn(n,i.tabSize),g=0,w=Gl(i,Math.max(0,c-aa(i)));for(;g<n.length&&g<w.length&&n.charCodeAt(g)==w.charCodeAt(g);)g++;o.push({from:e.from+g,to:e.from+n.length,insert:w.slice(g)})}),{userEvent:"delete.dedent"})),!0),jP=i=>(i.setTabFocusMode(),!0);var fk=({state:i,dispatch:t})=>i.selection.ranges.some(e=>!e.empty)?ql({state:i,dispatch:t}):(t(i.update(i.replaceSelection(" "),{scrollIntoView:!0,userEvent:"input"})),!0),$P=[{key:"Ctrl-b",run:PB,shift:qB,preventDefault:!0},{key:"Ctrl-f",run:QB,shift:KB},{key:"Ctrl-p",run:HB,shift:ik},{key:"Ctrl-n",run:JB,shift:rk},{key:"Ctrl-a",run:wP,shift:LP},{key:"Ctrl-e",run:xP,shift:BP},{key:"Ctrl-d",run:ak},{key:"Ctrl-h",run:sI},{key:"Ctrl-k",run:GP},{key:"Ctrl-Alt-h",run:ck},{key:"Ctrl-o",run:WP},{key:"Ctrl-t",run:DP},{key:"Ctrl-v",run:oI}],qP=[{key:"ArrowLeft",run:PB,shift:qB,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:cP,shift:EP,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:mP,shift:TP,preventDefault:!0},{key:"ArrowRight",run:QB,shift:KB,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:hP,shift:CP,preventDefault:!0},{mac:"Cmd-ArrowRight",run:bP,shift:SP,preventDefault:!0},{key:"ArrowUp",run:HB,shift:ik,preventDefault:!0},{mac:"Cmd-ArrowUp",run:LB,shift:kB},{mac:"Ctrl-ArrowUp",run:RB,shift:TB},{key:"ArrowDown",run:JB,shift:rk,preventDefault:!0},{mac:"Cmd-ArrowDown",run:BB,shift:VB},{mac:"Ctrl-ArrowDown",run:oI,shift:SB},{key:"PageUp",run:RB,shift:TB},{key:"PageDown",run:oI,shift:SB},{key:"Home",run:gP,shift:RP,preventDefault:!0},{key:"Mod-Home",run:LB,shift:kB},{key:"End",run:dP,shift:NP,preventDefault:!0},{key:"Mod-End",run:BB,shift:VB},{key:"Enter",run:FB,shift:FB},{key:"Mod-a",run:lI},{key:"Backspace",run:sI,shift:sI,preventDefault:!0},{key:"Delete",run:ak,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:ck,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:OP,preventDefault:!0},{mac:"Mod-Backspace",run:ZP,preventDefault:!0},{mac:"Mod-Delete",run:MP,preventDefault:!0}].concat($P.map(i=>({mac:i.key,run:i.run,shift:i.shift}))),dk=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:uP,shift:IP},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:fP,shift:AP},{key:"Alt-ArrowUp",run:PP},{key:"Shift-Alt-ArrowUp",run:XP},{key:"Alt-ArrowDown",run:QP},{key:"Shift-Alt-ArrowDown",run:YP},{key:"Mod-Alt-ArrowUp",run:FP},{key:"Mod-Alt-ArrowDown",run:UP},{key:"Escape",run:_P},{key:"Mod-Enter",run:JP},{key:"Alt-l",mac:"Ctrl-l",run:kP},{key:"Mod-i",run:VP,preventDefault:!0},{key:"Mod-[",run:Kl},{key:"Mod-]",run:ql},{key:"Mod-Alt-\\",run:zP},{key:"Shift-Mod-k",run:cI},{key:"Shift-Mod-\\",run:yP},{key:"Mod-/",run:YD},{key:"Alt-A",mac:"Ctrl-A",run:JD},{key:"Ctrl-m",mac:"Shift-Alt-m",run:jP}].concat(qP),gk={key:"Tab",run:ql,shift:Kl};var ug=class{constructor(t,e,o,n){this.state=t,this.pos=e,this.explicit=o,this.view=n,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let e=Zi(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),o=Math.max(e.from,this.pos-250),n=e.text.slice(o-e.from,this.pos-e.from),c=n.search(Ck(t,!1));return c<0?null:{from:o+c,to:this.pos,text:n.slice(c)}}get aborted(){return this.abortListeners==null}addEventListener(t,e,o){t=="abort"&&this.abortListeners&&(this.abortListeners.push(e),o&&o.onDocChange&&(this.abortOnDocChange=!0))}};function mk(i){let t=Object.keys(i).join(""),e=/\w/.test(t);return e&&(t=t.replace(/\w/g,"")),`[${e?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function KP(i){let t=Object.create(null),e=Object.create(null);for(let{label:n}of i){t[n[0]]=!0;for(let c=1;c<n.length;c++)e[n[c]]=!0}let o=mk(t)+mk(e)+"*$";return[new RegExp("^"+o),new RegExp(o)]}function eQ(i){let t=i.map(n=>typeof n=="string"?{label:n}:n),[e,o]=t.every(n=>/^\w+$/.test(n.label))?[/\w*$/,/\w+$/]:KP(t);return n=>{let c=n.matchBefore(o);return c||n.explicit?{from:c?c.from:n.pos,options:t,validFor:e}:null}}var fg=class{constructor(t,e,o,n){this.completion=t,this.source=e,this.match=o,this.score=n}};function tc(i){return i.selection.main.from}function Ck(i,t){var e;let{source:o}=i,n=t&&o[0]!="^",c=o[o.length-1]!="$";return!n&&!c?i:new RegExp(`${n?"^":""}(?:${o})${c?"$":""}`,(e=i.flags)!==null&&e!==void 0?e:i.ignoreCase?"i":"")}var Ik=Pr.define();function tQ(i,t,e,o){let{main:n}=i.selection,c=e-n.from,g=o-n.from;return{...i.changeByRange(w=>{if(w!=n&&e!=o&&i.sliceDoc(w.from+c,w.from+g)!=i.sliceDoc(e,o))return{range:w};let y=i.toText(t);return{changes:{from:w.from+c,to:o==n.from?w.to:w.from+g,insert:y},range:se.cursor(w.from+c+y.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}var bk=new WeakMap;function iQ(i){if(!Array.isArray(i))return i;let t=bk.get(i);return t||bk.set(i,t=eQ(i)),t}var dg=et.define(),sf=et.define(),fI=class{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e<t.length;){let o=hr(t,e),n=ho(o);this.chars.push(o);let c=t.slice(e,e+n),g=c.toUpperCase();this.folded.push(hr(g==c?c.toLowerCase():g,0)),e+=n}this.astral=t.length!=this.chars.length}ret(t,e){return this.score=t,this.matched=e,this}match(t){if(this.pattern.length==0)return this.ret(-100,[]);if(t.length<this.pattern.length)return null;let{chars:e,folded:o,any:n,precise:c,byWord:g}=this;if(e.length==1){let H=hr(t,0),re=ho(H),K=re==t.length?0:-100;if(H!=e[0])if(H==o[0])K+=-200;else return null;return this.ret(K,[0,re])}let w=t.indexOf(this.pattern);if(w==0)return this.ret(t.length==this.pattern.length?0:-100,[0,this.pattern.length]);let y=e.length,A=0;if(w<0){for(let H=0,re=Math.min(t.length,200);H<re&&A<y;){let K=hr(t,H);(K==e[A]||K==o[A])&&(n[A++]=H),H+=ho(K)}if(A<y)return null}let R=0,T=0,F=!1,k=0,G=-1,W=-1,P=/[a-z]/.test(t),Q=!0;for(let H=0,re=Math.min(t.length,200),K=0;H<re&&T<y;){let J=hr(t,H);w<0&&(R<y&&J==e[R]&&(c[R++]=H),k<y&&(J==e[k]||J==o[k]?(k==0&&(G=H),W=H+1,k++):k=0));let te,ae=J<255?J>=48&&J<=57||J>=97&&J<=122?2:J>=65&&J<=90?1:0:(te=pu(J))!=te.toLowerCase()?1:te!=te.toUpperCase()?2:0;(!H||ae==1&&P||K==0&&ae!=0)&&(e[T]==J||o[T]==J&&(F=!0)?g[T++]=H:g.length&&(Q=!1)),K=ae,H+=ho(J)}return T==y&&g[0]==0&&Q?this.result(-100+(F?-200:0),g,t):k==y&&G==0?this.ret(-200-t.length+(W==t.length?0:-100),[0,W]):w>-1?this.ret(-700-t.length,[w,w+this.pattern.length]):k==y?this.ret(-900-t.length,[G,W]):T==y?this.result(-100+(F?-200:0)+-700+(Q?0:-1100),g,t):e.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,t)}result(t,e,o){let n=[],c=0;for(let g of e){let w=g+(this.astral?ho(hr(o,g)):1);c&&n[c-1]==g?n[c-1]=w:(n[c++]=g,n[c++]=w)}return this.ret(t-o.length,n)}},dI=class{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length<this.pattern.length)return null;let e=t.slice(0,this.pattern.length),o=e==this.pattern?0:e.toLowerCase()==this.folded?-200:null;return o==null?null:(this.matched=[0,e.length],this.score=o+(t.length==this.pattern.length?0:-100),this)}},Mi=Se.define({combine(i){return po(i,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:rQ,filterStrict:!1,compareCompletions:(t,e)=>(t.sortText||t.label).localeCompare(e.sortText||e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>o=>wk(t(o),e(o)),optionClass:(t,e)=>o=>wk(t(o),e(o)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})}});function wk(i,t){return i?t?i+" "+t:i:t}function rQ(i,t,e,o,n,c){let g=i.textDirection==Et.RTL,w=g,y=!1,A="top",R,T,F=t.left-n.left,k=n.right-t.right,G=o.right-o.left,W=o.bottom-o.top;if(w&&F<Math.min(G,k)?w=!1:!w&&k<Math.min(G,F)&&(w=!0),G<=(w?F:k))R=Math.max(n.top,Math.min(e.top,n.bottom-W))-t.top,T=Math.min(400,w?F:k);else{y=!0,T=Math.min(400,(g?t.right:n.right-t.left)-30);let H=n.bottom-t.bottom;H>=W||H>t.top?R=e.bottom-t.top:(A="bottom",R=t.bottom-e.top)}let P=(t.bottom-t.top)/c.offsetHeight,Q=(t.right-t.left)/c.offsetWidth;return{style:`${A}: ${R/P}px; max-width: ${T/Q}px`,class:"cm-completionInfo-"+(y?g?"left-narrow":"right-narrow":w?"left":"right")}}var xI=et.define();function oQ(i){let t=i.addToOptions.slice();return i.icons&&t.push({render(e){let o=document.createElement("div");return o.classList.add("cm-completionIcon"),e.type&&o.classList.add(...e.type.split(/\s+/g).map(n=>"cm-completionIcon-"+n)),o.setAttribute("aria-hidden","true"),o},position:20}),t.push({render(e,o,n,c){let g=document.createElement("span");g.className="cm-completionLabel";let w=e.displayLabel||e.label,y=0;for(let A=0;A<c.length;){let R=c[A++],T=c[A++];R>y&&g.appendChild(document.createTextNode(w.slice(y,R)));let F=g.appendChild(document.createElement("span"));F.appendChild(document.createTextNode(w.slice(R,T))),F.className="cm-completionMatchedText",y=T}return y<w.length&&g.appendChild(document.createTextNode(w.slice(y))),g},position:50},{render(e){if(!e.detail)return null;let o=document.createElement("span");return o.className="cm-completionDetail",o.textContent=e.detail,o},position:80}),t.sort((e,o)=>e.position-o.position).map(e=>e.render)}function pI(i,t,e){if(i<=e)return{from:0,to:i};if(t<0&&(t=0),t<=i>>1){let n=Math.floor(t/e);return{from:n*e,to:(n+1)*e}}let o=Math.ceil((i-t)/e);return{from:i-o*e,to:i-(o-1)*e}}var gI=class{constructor(t,e,o){this.view=t,this.stateField=e,this.applyCompletion=o,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:y=>this.placeInfo(y),key:this},this.space=null,this.currentClass="";let n=t.state.field(e),{options:c,selected:g}=n.open,w=t.state.facet(Mi);this.optionContent=oQ(w),this.optionClass=w.optionClass,this.tooltipClass=w.tooltipClass,this.range=pI(c.length,g,w.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",y=>{let{options:A}=t.state.field(e).open;for(let R=y.target,T;R&&R!=this.dom;R=R.parentNode)if(R.nodeName=="LI"&&(T=/-(\d+)$/.exec(R.id))&&+T[1]<A.length){this.applyCompletion(t,A[+T[1]]),y.preventDefault();return}if(y.target==this.list){let R=this.list.classList.contains("cm-completionListIncompleteTop")&&y.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&y.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;R!=null&&(t.dispatch({effects:xI.of(R)}),y.preventDefault())}}),this.dom.addEventListener("focusout",y=>{let A=t.state.field(this.stateField,!1);A&&A.tooltip&&t.state.facet(Mi).closeOnBlur&&y.relatedTarget!=t.contentDOM&&t.dispatch({effects:sf.of(null)})}),this.showOptions(c,n.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let o=t.state.field(this.stateField),n=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),o!=n){let{options:c,selected:g,disabled:w}=o.open;(!n.open||n.open.options!=c)&&(this.range=pI(c.length,g,t.state.facet(Mi).maxRenderedOptions),this.showOptions(c,o.id)),this.updateSel(),w!=((e=n.open)===null||e===void 0?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!w)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let o of this.currentClass.split(" "))o&&this.dom.classList.remove(o);for(let o of e.split(" "))o&&this.dom.classList.add(o);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;(e.selected>-1&&e.selected<this.range.from||e.selected>=this.range.to)&&(this.range=pI(e.options.length,e.selected,this.view.state.facet(Mi).maxRenderedOptions),this.showOptions(e.options,t.id));let o=this.updateSelectedOption(e.selected);if(o){this.destroyInfo();let{completion:n}=e.options[e.selected],{info:c}=n;if(!c)return;let g=typeof c=="string"?document.createTextNode(c):c(n);if(!g)return;"then"in g?g.then(w=>{w&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(w,n)}).catch(w=>Ir(this.view.state,w,"completion info")):(this.addInfoPane(g,n),o.setAttribute("aria-describedby",this.info.id))}}addInfoPane(t,e){this.destroyInfo();let o=this.info=document.createElement("div");if(o.className="cm-tooltip cm-completionInfo",o.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),t.nodeType!=null)o.appendChild(t),this.infoDestroy=null;else{let{dom:n,destroy:c}=t;o.appendChild(n),this.infoDestroy=c||null}this.dom.appendChild(o),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let o=this.list.firstChild,n=this.range.from;o;o=o.nextSibling,n++)o.nodeName!="LI"||!o.id?n--:n==t?o.hasAttribute("aria-selected")||(o.setAttribute("aria-selected","true"),e=o):o.hasAttribute("aria-selected")&&(o.removeAttribute("aria-selected"),o.removeAttribute("aria-describedby"));return e&&nQ(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),o=this.info.getBoundingClientRect(),n=t.getBoundingClientRect(),c=this.space;if(!c){let g=this.dom.ownerDocument.documentElement;c={left:0,top:0,right:g.clientWidth,bottom:g.clientHeight}}return n.top>Math.min(c.bottom,e.bottom)-10||n.bottom<Math.max(c.top,e.top)+10?null:this.view.state.facet(Mi).positionInfo(this.view,e,n,o,c,this.dom)}placeInfo(t){this.info&&(t?(t.style&&(this.info.style.cssText=t.style),this.info.className="cm-tooltip cm-completionInfo "+(t.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(t,e,o){let n=document.createElement("ul");n.id=e,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions")),n.addEventListener("mousedown",g=>{g.target==n&&g.preventDefault()});let c=null;for(let g=o.from;g<o.to;g++){let{completion:w,match:y}=t[g],{section:A}=w;if(A){let F=typeof A=="string"?A:A.name;if(F!=c&&(g>o.from||o.from==0))if(c=F,typeof A!="string"&&A.header)n.appendChild(A.header(A));else{let k=n.appendChild(document.createElement("completion-section"));k.textContent=F}}let R=n.appendChild(document.createElement("li"));R.id=e+"-"+g,R.setAttribute("role","option");let T=this.optionClass(w);T&&(R.className=T);for(let F of this.optionContent){let k=F(w,this.view.state,this.view,y);k&&R.appendChild(k)}}return o.from&&n.classList.add("cm-completionListIncompleteTop"),o.to<t.length&&n.classList.add("cm-completionListIncompleteBottom"),n}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}};function sQ(i,t){return e=>new gI(e,i,t)}function nQ(i,t){let e=i.getBoundingClientRect(),o=t.getBoundingClientRect(),n=e.height/i.offsetHeight;o.top<e.top?i.scrollTop-=(e.top-o.top)/n:o.bottom>e.bottom&&(i.scrollTop+=(o.bottom-e.bottom)/n)}function xk(i){return(i.boost||0)*100+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}function aQ(i,t){let e=[],o=null,n=null,c=R=>{e.push(R);let{section:T}=R.completion;if(T){o||(o=[]);let F=typeof T=="string"?T:T.name;o.some(k=>k.name==F)||o.push(typeof T=="string"?{name:F}:T)}},g=t.facet(Mi);for(let R of i)if(R.hasResult()){let T=R.result.getMatch;if(R.result.filter===!1)for(let F of R.result.options)c(new fg(F,R.source,T?T(F):[],1e9-e.length));else{let F=t.sliceDoc(R.from,R.to),k,G=g.filterStrict?new dI(F):new fI(F);for(let W of R.result.options)if(k=G.match(W.label)){let P=W.displayLabel?T?T(W,k.matched):[]:k.matched,Q=k.score+(W.boost||0);if(c(new fg(W,R.source,P,Q)),typeof W.section=="object"&&W.section.rank==="dynamic"){let{name:H}=W.section;n||(n=Object.create(null)),n[H]=Math.max(Q,n[H]||-1e9)}}}}if(o){let R=Object.create(null),T=0,F=(k,G)=>(k.rank==="dynamic"&&G.rank==="dynamic"?n[G.name]-n[k.name]:0)||(typeof k.rank=="number"?k.rank:1e9)-(typeof G.rank=="number"?G.rank:1e9)||(k.name<G.name?-1:1);for(let k of o.sort(F))T-=1e5,R[k.name]=T;for(let k of e){let{section:G}=k.completion;G&&(k.score+=R[typeof G=="string"?G:G.name])}}let w=[],y=null,A=g.compareCompletions;for(let R of e.sort((T,F)=>F.score-T.score||A(T.completion,F.completion))){let T=R.completion;!y||y.label!=T.label||y.detail!=T.detail||y.type!=null&&T.type!=null&&y.type!=T.type||y.apply!=T.apply||y.boost!=T.boost?w.push(R):xk(R.completion)>xk(y)&&(w[w.length-1]=R),y=R.completion}return w}var mI=class i{constructor(t,e,o,n,c,g){this.options=t,this.attrs=e,this.tooltip=o,this.timestamp=n,this.selected=c,this.disabled=g}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new i(this.options,vk(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,o,n,c,g){if(n&&!g&&t.some(A=>A.isPending))return n.setDisabled();let w=aQ(t,e);if(!w.length)return n&&t.some(A=>A.isPending)?n.setDisabled():null;let y=e.facet(Mi).selectOnOpen?0:-1;if(n&&n.selected!=y&&n.selected!=-1){let A=n.options[n.selected].completion;for(let R=0;R<w.length;R++)if(w[R].completion==A){y=R;break}}return new i(w,vk(o,y),{pos:t.reduce((A,R)=>R.hasResult()?Math.min(A,R.from):A,1e8),create:fQ,above:c.aboveCursor},n?n.timestamp:Date.now(),y,!1)}map(t){return new i(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new i(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}},bI=class i{constructor(t,e,o){this.active=t,this.id=e,this.open=o}static start(){return new i(pQ,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:e}=t,o=e.facet(Mi),c=(o.override||e.languageDataAt("autocomplete",tc(e)).map(iQ)).map(y=>(this.active.find(R=>R.source==y)||new Cn(y,this.active.some(R=>R.state!=0)?1:0)).update(t,o));c.length==this.active.length&&c.every((y,A)=>y==this.active[A])&&(c=this.active);let g=this.open,w=t.effects.some(y=>y.is(vI));g&&t.docChanged&&(g=g.map(t.changes)),t.selection||c.some(y=>y.hasResult()&&t.changes.touchesRange(y.from,y.to))||!lQ(c,this.active)||w?g=mI.build(c,e,this.id,g,o,w):g&&g.disabled&&!c.some(y=>y.isPending)&&(g=null),!g&&c.every(y=>!y.isPending)&&c.some(y=>y.hasResult())&&(c=c.map(y=>y.hasResult()?new Cn(y.source,0):y));for(let y of t.effects)y.is(xI)&&(g=g&&g.setSelected(y.value,this.id));return c==this.active&&g==this.open?this:new i(c,this.id,g)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?cQ:hQ}};function lQ(i,t){if(i==t)return!0;for(let e=0,o=0;;){for(;e<i.length&&!i[e].hasResult();)e++;for(;o<t.length&&!t[o].hasResult();)o++;let n=e==i.length,c=o==t.length;if(n||c)return n==c;if(i[e++].result!=t[o++].result)return!1}}var cQ={"aria-autocomplete":"list"},hQ={};function vk(i,t){let e={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":i};return t>-1&&(e["aria-activedescendant"]=i+"-"+t),e}var pQ=[];function Ak(i,t){if(i.isUserEvent("input.complete")){let o=i.annotation(Ik);if(o&&t.activateOnCompletion(o))return 12}let e=i.isUserEvent("input.type");return e&&t.activateOnTyping?5:e?1:i.isUserEvent("delete.backward")?2:i.selection?8:i.docChanged?16:0}var Cn=class i{constructor(t,e,o=!1){this.source=t,this.state=e,this.explicit=o}hasResult(){return!1}get isPending(){return this.state==1}update(t,e){let o=Ak(t,e),n=this;(o&8||o&16&&this.touches(t))&&(n=new i(n.source,0)),o&4&&n.state==0&&(n=new i(this.source,1)),n=n.updateFor(t,o);for(let c of t.effects)if(c.is(dg))n=new i(n.source,1,c.value);else if(c.is(sf))n=new i(n.source,0);else if(c.is(vI))for(let g of c.value)g.source==n.source&&(n=g);return n}updateFor(t,e){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(tc(t.state))}},gg=class i extends Cn{constructor(t,e,o,n,c,g){super(t,3,e),this.limit=o,this.result=n,this.from=c,this.to=g}hasResult(){return!0}updateFor(t,e){var o;if(!(e&3))return this.map(t.changes);let n=this.result;n.map&&!t.changes.empty&&(n=n.map(n,t.changes));let c=t.changes.mapPos(this.from),g=t.changes.mapPos(this.to,1),w=tc(t.state);if(w>g||!n||e&2&&(tc(t.startState)==this.from||w<this.limit))return new Cn(this.source,e&4?1:0);let y=t.changes.mapPos(this.limit);return uQ(n.validFor,t.state,c,g)?new i(this.source,this.explicit,y,n,c,g):n.update&&(n=n.update(n,c,g,new ug(t.state,w,!1)))?new i(this.source,this.explicit,y,n,n.from,(o=n.to)!==null&&o!==void 0?o:tc(t.state)):new Cn(this.source,1,this.explicit)}map(t){if(t.empty)return this;let e=this.result.map?this.result.map(this.result,t):this.result;return e?new i(this.source,this.explicit,t.mapPos(this.limit),e,t.mapPos(this.from),t.mapPos(this.to,1)):new Cn(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}};function uQ(i,t,e,o){if(!i)return!1;let n=t.sliceDoc(e,o);return typeof i=="function"?i(n,e,o,t):Ck(i,!0).test(n)}var vI=et.define({map(i,t){return i.map(e=>e.map(t))}}),kr=ri.define({create(){return bI.start()},update(i,t){return i.update(t)},provide:i=>[ME.from(i,t=>t.tooltip),we.contentAttributes.from(i,t=>t.attrs)]});function yI(i,t){let e=t.completion.apply||t.completion.label,o=i.state.field(kr).active.find(n=>n.source==t.source);return o instanceof gg?(typeof e=="string"?i.dispatch({...tQ(i.state,e,o.from,o.to),annotations:Ik.of(t.completion)}):e(i,t.completion,o.from,o.to),!0):!1}var fQ=sQ(kr,yI);function pg(i,t="option"){return e=>{let o=e.state.field(kr,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp<e.state.facet(Mi).interactionDelay)return!1;let n=1,c;t=="page"&&(c=WE(e,o.open.tooltip))&&(n=Math.max(2,Math.floor(c.dom.offsetHeight/c.dom.querySelector("li").offsetHeight)-1));let{length:g}=o.open.options,w=o.open.selected>-1?o.open.selected+n*(i?1:-1):i?0:g-1;return w<0?w=t=="page"?0:g-1:w>=g&&(w=t=="page"?g-1:0),e.dispatch({effects:xI.of(w)}),!0}}var dQ=i=>{let t=i.state.field(kr,!1);return i.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<i.state.facet(Mi).interactionDelay?!1:yI(i,t.open.options[t.open.selected])},of=i=>i.state.field(kr,!1)?(i.dispatch({effects:dg.of(!0)}),!0):!1,EI=i=>{let t=i.state.field(kr,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(i.dispatch({effects:sf.of(null)}),!0)},wI=class{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}},gQ=50,mQ=1e3,bQ=vi.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of i.state.field(kr).active)t.isPending&&this.startQuery(t)}update(i){let t=i.state.field(kr),e=i.state.facet(Mi);if(!i.selectionSet&&!i.docChanged&&i.startState.field(kr)==t)return;let o=i.transactions.some(c=>{let g=Ak(c,e);return g&8||(c.selection||c.docChanged)&&!(g&3)});for(let c=0;c<this.running.length;c++){let g=this.running[c];if(o||g.context.abortOnDocChange&&i.docChanged||g.updates.length+i.transactions.length>gQ&&Date.now()-g.time>mQ){for(let w of g.context.abortListeners)try{w()}catch(y){Ir(this.view.state,y)}g.context.abortListeners=null,this.running.splice(c--,1)}else g.updates.push(...i.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),i.transactions.some(c=>c.effects.some(g=>g.is(dg)))&&(this.pendingStart=!0);let n=this.pendingStart?50:e.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(c=>c.isPending&&!this.running.some(g=>g.active.source==c.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let c of i.transactions)c.isUserEvent("input.type")?this.composing=2:this.composing==2&&c.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:i}=this.view,t=i.field(kr);for(let e of t.active)e.isPending&&!this.running.some(o=>o.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Mi).updateSyncTime))}startQuery(i){let{state:t}=this.view,e=tc(t),o=new ug(t,e,i.explicit,this.view),n=new wI(i,o);this.running.push(n),Promise.resolve(i.source(o)).then(c=>{n.context.aborted||(n.done=c||null,this.scheduleAccept())},c=>{this.view.dispatch({effects:sf.of(null)}),Ir(this.view.state,c)})}scheduleAccept(){this.running.every(i=>i.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Mi).updateSyncTime))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],e=this.view.state.facet(Mi),o=this.view.state.field(kr);for(let n=0;n<this.running.length;n++){let c=this.running[n];if(c.done===void 0)continue;if(this.running.splice(n--,1),c.done){let w=tc(c.updates.length?c.updates[0].startState:this.view.state),y=Math.min(w,c.done.from+(c.active.explicit?0:1)),A=new gg(c.active.source,c.active.explicit,y,c.done,c.done.from,(i=c.done.to)!==null&&i!==void 0?i:w);for(let R of c.updates)A=A.update(R,e);if(A.hasResult()){t.push(A);continue}}let g=o.active.find(w=>w.source==c.active.source);if(g&&g.isPending)if(c.done==null){let w=new Cn(c.active.source,0);for(let y of c.updates)w=w.update(y,e);w.isPending||t.push(w)}else this.startQuery(g)}(t.length||o.open&&o.open.disabled)&&this.view.dispatch({effects:vI.of(t)})}},{eventHandlers:{blur(i){let t=this.view.state.field(kr,!1);if(t&&t.tooltip&&this.view.state.facet(Mi).closeOnBlur){let e=t.open&&WE(this.view,t.open.tooltip);(!e||!e.dom.contains(i.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:sf.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:dg.of(!1)}),20),this.composing=0}}}),wQ=typeof navigator=="object"&&/Win/.test(navigator.platform),xQ=Er.highest(we.domEventHandlers({keydown(i,t){let e=t.state.field(kr,!1);if(!e||!e.open||e.open.disabled||e.open.selected<0||i.key.length>1||i.ctrlKey&&!(wQ&&i.altKey)||i.metaKey)return!1;let o=e.open.options[e.open.selected],n=e.active.find(g=>g.source==o.source),c=o.completion.commitCharacters||n.result.commitCharacters;return c&&c.indexOf(i.key)>-1&&yI(t,o),!1}})),vQ=we.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xB7\xB7\xB7"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25CB'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25CC'"}},".cm-completionIcon-variable":{"&:after":{content:"'\u{1D465}'"}},".cm-completionIcon-constant":{"&:after":{content:"'\u{1D436}'"}},".cm-completionIcon-type":{"&:after":{content:"'\u{1D461}'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222A'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25A1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\u{1F511}\uFE0E'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25A2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});var nf={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ec=et.define({map(i,t){let e=t.mapPos(i,-1,lr.TrackAfter);return e??void 0}}),CI=new class extends Co{};CI.startSide=1;CI.endSide=-1;var Nk=ri.define({create(){return ht.empty},update(i,t){if(i=i.map(t.changes),t.selection){let e=t.state.doc.lineAt(t.selection.main.head);i=i.update({filter:o=>o>=e.from&&o<=e.to})}for(let e of t.effects)e.is(ec)&&(i=i.update({add:[CI.range(e.value,e.value+1)]}));return i}});function II(){return[EQ,Nk]}var uI="()[]{}<>\xAB\xBB\xBB\xAB\uFF3B\uFF3D\uFF5B\uFF5D";function Rk(i){for(let t=0;t<uI.length;t+=2)if(uI.charCodeAt(t)==i)return uI.charAt(t+1);return pu(i<128?i:i+1)}function Tk(i,t){return i.languageDataAt("closeBrackets",t)[0]||nf}var yQ=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),EQ=we.inputHandler.of((i,t,e,o)=>{if((yQ?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let n=i.state.selection.main;if(o.length>2||o.length==2&&ho(hr(o,0))==1||t!=n.from||e!=n.to)return!1;let c=IQ(i.state,o);return c?(i.dispatch(c),!0):!1}),CQ=({state:i,dispatch:t})=>{if(i.readOnly)return!1;let o=Tk(i,i.selection.main.head).brackets||nf.brackets,n=null,c=i.changeByRange(g=>{if(g.empty){let w=AQ(i.doc,g.head);for(let y of o)if(y==w&&mg(i.doc,g.head)==Rk(hr(y,0)))return{changes:{from:g.head-y.length,to:g.head+y.length},range:se.cursor(g.head-y.length)}}return{range:n=g}});return n||t(i.update(c,{scrollIntoView:!0,userEvent:"delete.backward"})),!n},Sk=[{key:"Backspace",run:CQ}];function IQ(i,t){let e=Tk(i,i.selection.main.head),o=e.brackets||nf.brackets;for(let n of o){let c=Rk(hr(n,0));if(t==n)return c==n?TQ(i,n,o.indexOf(n+n+n)>-1,e):NQ(i,n,c,e.before||nf.before);if(t==c&&Lk(i,i.selection.main.from))return RQ(i,n,c)}return null}function Lk(i,t){let e=!1;return i.field(Nk).between(0,i.doc.length,o=>{o==t&&(e=!0)}),e}function mg(i,t){let e=i.sliceString(t,t+2);return e.slice(0,ho(hr(e,0)))}function AQ(i,t){let e=i.sliceString(t-2,t);return ho(hr(e,0))==e.length?e:e.slice(1)}function NQ(i,t,e,o){let n=null,c=i.changeByRange(g=>{if(!g.empty)return{changes:[{insert:t,from:g.from},{insert:e,from:g.to}],effects:ec.of(g.to+t.length),range:se.range(g.anchor+t.length,g.head+t.length)};let w=mg(i.doc,g.head);return!w||/\s/.test(w)||o.indexOf(w)>-1?{changes:{insert:t+e,from:g.head},effects:ec.of(g.head+t.length),range:se.cursor(g.head+t.length)}:{range:n=g}});return n?null:i.update(c,{scrollIntoView:!0,userEvent:"input.type"})}function RQ(i,t,e){let o=null,n=i.changeByRange(c=>c.empty&&mg(i.doc,c.head)==e?{changes:{from:c.head,to:c.head+e.length,insert:e},range:se.cursor(c.head+e.length)}:o={range:c});return o?null:i.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function TQ(i,t,e,o){let n=o.stringPrefixes||nf.stringPrefixes,c=null,g=i.changeByRange(w=>{if(!w.empty)return{changes:[{insert:t,from:w.from},{insert:t,from:w.to}],effects:ec.of(w.to+t.length),range:se.range(w.anchor+t.length,w.head+t.length)};let y=w.head,A=mg(i.doc,y),R;if(A==t){if(yk(i,y))return{changes:{insert:t+t,from:y},effects:ec.of(y+t.length),range:se.cursor(y+t.length)};if(Lk(i,y)){let F=e&&i.sliceDoc(y,y+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:y,to:y+F.length,insert:F},range:se.cursor(y+F.length)}}}else{if(e&&i.sliceDoc(y-2*t.length,y)==t+t&&(R=Ek(i,y-2*t.length,n))>-1&&yk(i,R))return{changes:{insert:t+t+t+t,from:y},effects:ec.of(y+t.length),range:se.cursor(y+t.length)};if(i.charCategorizer(y)(A)!=At.Word&&Ek(i,y,n)>-1&&!SQ(i,y,t,n))return{changes:{insert:t+t,from:y},effects:ec.of(y+t.length),range:se.cursor(y+t.length)}}return{range:c=w}});return c?null:i.update(g,{scrollIntoView:!0,userEvent:"input.type"})}function yk(i,t){let e=Zi(i).resolveInner(t+1);return e.parent&&e.from==t}function SQ(i,t,e,o){let n=Zi(i).resolveInner(t,-1),c=o.reduce((g,w)=>Math.max(g,w.length),0);for(let g=0;g<5;g++){let w=i.sliceDoc(n.from,Math.min(n.to,n.from+e.length+c)),y=w.indexOf(e);if(!y||y>-1&&o.indexOf(w.slice(0,y))>-1){let R=n.firstChild;for(;R&&R.from==n.from&&R.to-R.from>e.length+y;){if(i.sliceDoc(R.to-e.length,R.to)==e)return!1;R=R.firstChild}return!0}let A=n.to==t&&n.parent;if(!A)break;n=A}return!1}function Ek(i,t,e){let o=i.charCategorizer(t);if(o(i.sliceDoc(t-1,t))!=At.Word)return t;for(let n of e){let c=t-n.length;if(i.sliceDoc(c,t)==n&&o(i.sliceDoc(c-1,c))!=At.Word)return c}return-1}function Bk(i={}){return[xQ,kr,Mi.of(i),bQ,LQ,vQ]}var AI=[{key:"Ctrl-Space",run:of},{mac:"Alt-`",run:of},{mac:"Alt-i",run:of},{key:"Escape",run:EI},{key:"ArrowDown",run:pg(!0)},{key:"ArrowUp",run:pg(!1)},{key:"PageDown",run:pg(!0,"page")},{key:"PageUp",run:pg(!1,"page")},{key:"Enter",run:dQ}],LQ=Er.highest(ss.computeN([Mi],i=>i.facet(Mi).defaultKeymap?[AI]:[]));function bg(i){let t=i.field(kr,!1);return t&&t.active.some(e=>e.isPending)?"pending":t&&t.active.some(e=>e.state!=0)?"active":null}var kk=typeof String.prototype.normalize=="function"?i=>i.normalize("NFKD"):i=>i,ya=class{constructor(t,e,o=0,n=t.length,c,g){this.test=g,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(o,n),this.bufferStart=o,this.normalize=c?w=>c(kk(w)):kk,this.query=this.normalize(e)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return hr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let e=pu(t),o=this.bufferStart+this.bufferPos;this.bufferPos+=ho(t);let n=this.normalize(e);if(n.length)for(let c=0,g=o,w=!0;;c++){let y=n.charCodeAt(c),A=this.match(y,g,w,this.bufferPos+this.bufferStart,c==n.length-1);if(A)return this.value=A,this;if(c==n.length-1)break;w&&c<e.length&&e.charCodeAt(c)==y?g++:w=!1}}}match(t,e,o,n,c){let g=null;for(let w=0;w<this.matches.length;){let y=this.matches[w],A=!1;this.query.charCodeAt(y.index)==t&&(y.index==this.query.length-1?g={from:y.from,to:n,precise:c&&y.precise}:(y.index++,A=!0)),A?w++:this.matches.splice(w,1)}return this.query.charCodeAt(0)==t&&(this.query.length==1?g={from:e,to:n,precise:o&&c}:this.matches.push({from:e,index:1,precise:o})),g&&this.test&&!this.test(g.from,g.to,this.buffer,this.bufferStart)&&(g=null),g}};typeof Symbol<"u"&&(ya.prototype[Symbol.iterator]=function(){return this});var Uk={from:-1,to:-1,match:/.*/.exec(""),precise:!0},BI="gm"+(/x/.unicode==null?"":"u"),vg=class{constructor(t,e,o,n=0,c=t.length){if(this.text=t,this.to=c,this.curLine="",this.done=!1,this.value=Uk,/\\[sWDnr]|\n|\r|\[\^/.test(e))return new Eg(t,e,o,n,c);this.re=new RegExp(e,BI+(o?.ignoreCase?"i":"")),this.test=o?.test,this.iter=t.iter();let g=t.lineAt(n);this.curLineStart=g.from,this.matchPos=Cg(t,n),this.getLine(this.curLineStart)}getLine(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){let o=this.curLineStart+e.index,n=o+e[0].length;if(this.matchPos=Cg(this.text,n+(o==n?1:0)),o==this.curLineStart+this.curLine.length&&this.nextLine(),(o<n||o>this.value.to)&&(!this.test||this.test(o,n,e)))return this.value={from:o,to:n,precise:!0,match:e},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),t=0;else return this.done=!0,this}}},NI=new WeakMap,yg=class i{constructor(t,e){this.from=t,this.text=e}get to(){return this.from+this.text.length}static get(t,e,o){let n=NI.get(t);if(!n||n.from>=o||n.to<=e){let w=new i(e,t.sliceString(e,o));return NI.set(t,w),w}if(n.from==e&&n.to==o)return n;let{text:c,from:g}=n;return g>e&&(c=t.sliceString(e,g)+c,g=e),n.to<o&&(c+=t.sliceString(n.to,o)),NI.set(t,new i(g,c)),new i(e,c.slice(e-g,o-g))}},Eg=class{constructor(t,e,o,n,c){this.text=t,this.to=c,this.done=!1,this.value=Uk,this.matchPos=Cg(t,n),this.re=new RegExp(e,BI+(o?.ignoreCase?"i":"")),this.test=o?.test,this.flat=yg.get(t,n,this.chunkEnd(n+5e3))}chunkEnd(t){return t>=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e){let o=this.flat.from+e.index,n=o+e[0].length;if((this.flat.to>=this.to||e.index+e[0].length<=this.flat.text.length-10)&&(!this.test||this.test(o,n,e)))return this.value={from:o,to:n,precise:!0,match:e},this.matchPos=Cg(this.text,n+(o==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=yg.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<"u"&&(vg.prototype[Symbol.iterator]=Eg.prototype[Symbol.iterator]=function(){return this});function BQ(i){try{return new RegExp(i,BI),!0}catch{return!1}}function Cg(i,t){if(t>=i.length)return t;let e=i.lineAt(t),o;for(;t<e.to&&(o=e.text.charCodeAt(t-e.from))>=56320&&o<57344;)t++;return t}var kQ=i=>{let t=w1(i,"cm-goto-line");if(t){let g=t.dom.querySelector("input[type=text]");return g&&g.select(),!0}let{state:e}=i,o=String(e.doc.lineAt(i.state.selection.main.head).number),{close:n,result:c}=b1(i,{class:"cm-goto-line",label:e.phrase("Go to line"),input:{type:"text",name:"line",value:o},focus:!0,submitLabel:e.phrase("go")});return c.then(g=>{let w=g&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(g.elements.line.value);if(!w){i.dispatch({effects:n});return}let y=e.doc.lineAt(e.selection.main.head),[,A,R,T,F]=w,k=T?+T.slice(1):0,G=R?+R:y.number;if(R&&F){let Q=G/100;A&&(Q=Q*(A=="-"?-1:1)+y.number/e.doc.lines),G=Math.round(e.doc.lines*Q)}else R&&A&&(G=G*(A=="-"?-1:1)+y.number);let W=e.doc.line(Math.max(1,Math.min(e.doc.lines,G))),P=se.cursor(W.from+Math.max(0,Math.min(k,W.length)));i.dispatch({effects:[n,we.scrollIntoView(P.from,{y:"center"})],selection:P})}),!0},VQ={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},_k=Se.define({combine(i){return po(i,VQ,{highlightWordAroundCursor:(t,e)=>t||e,minSelectionLength:Math.min,maxMatches:Math.min})}});function kI(i){let t=[GQ,OQ];return i&&t.push(_k.of(i)),t}var FQ=ze.mark({class:"cm-selectionMatch"}),UQ=ze.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Vk(i,t,e,o){return(e==0||i(t.sliceDoc(e-1,e))!=At.Word)&&(o==t.doc.length||i(t.sliceDoc(o,o+1))!=At.Word)}function _Q(i,t,e,o){return i(t.sliceDoc(e,e+1))==At.Word&&i(t.sliceDoc(o-1,o))==At.Word}var OQ=vi.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.selectionSet||i.docChanged||i.viewportChanged)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let t=i.state.facet(_k),{state:e}=i,o=e.selection;if(o.ranges.length>1)return ze.none;let n=o.main,c,g=null;if(n.empty){if(!t.highlightWordAroundCursor)return ze.none;let y=e.wordAt(n.head);if(!y)return ze.none;g=e.charCategorizer(n.head),c=e.sliceDoc(y.from,y.to)}else{let y=n.to-n.from;if(y<t.minSelectionLength||y>200)return ze.none;if(t.wholeWords){if(c=e.sliceDoc(n.from,n.to),g=e.charCategorizer(n.head),!(Vk(g,e,n.from,n.to)&&_Q(g,e,n.from,n.to)))return ze.none}else if(c=e.sliceDoc(n.from,n.to),!c)return ze.none}let w=[];for(let y of i.visibleRanges){let A=new ya(e.doc,c,y.from,y.to);for(;!A.next().done;){let{from:R,to:T}=A.value;if((!g||Vk(g,e,R,T))&&(n.empty&&R<=n.from&&T>=n.to?w.push(UQ.range(R,T)):(R>=n.to||T<=n.from)&&w.push(FQ.range(R,T)),w.length>t.maxMatches))return ze.none}}return ze.set(w)}},{decorations:i=>i.decorations}),GQ=we.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),ZQ=({state:i,dispatch:t})=>{let{selection:e}=i,o=se.create(e.ranges.map(n=>i.wordAt(n.head)||se.cursor(n.head)),e.mainIndex);return o.eq(e)?!1:(t(i.update({selection:o})),!0)};function MQ(i,t){let{main:e,ranges:o}=i.selection,n=i.wordAt(e.head),c=n&&n.from==e.from&&n.to==e.to;for(let g=!1,w=new ya(i.doc,t,o[o.length-1].to);;)if(w.next(),w.done){if(g)return null;w=new ya(i.doc,t,0,Math.max(0,o[o.length-1].from-1)),g=!0}else{if(g&&o.some(y=>y.from==w.value.from))continue;if(c){let y=i.wordAt(w.value.from);if(!y||y.from!=w.value.from||y.to!=w.value.to)continue}return w.value}}var WQ=({state:i,dispatch:t})=>{let{ranges:e}=i.selection;if(e.some(c=>c.from===c.to))return ZQ({state:i,dispatch:t});let o=i.sliceDoc(e[0].from,e[0].to);if(i.selection.ranges.some(c=>i.sliceDoc(c.from,c.to)!=o))return!1;let n=MQ(i,o);return n?(t(i.update({selection:i.selection.addRange(se.range(n.from,n.to),!1),effects:we.scrollIntoView(n.to)})),!0):!1},Eh=Se.define({combine(i){return po(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new LI(t),scrollToMatch:t=>we.scrollIntoView(t)})}});var Ig=class{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||BQ(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord,this.test=t.test}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(e,o)=>o=="n"?`
42
+ `:o=="r"?"\r":o=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord&&this.test==t.test}create(){return this.regexp?new TI(this):new RI(this)}getCursor(t,e=0,o){let n=t.doc?t:xt.create({doc:t});return o==null&&(o=n.doc.length),this.regexp?yh(this,n,e,o):vh(this,n,e,o)}},Ag=class{constructor(t){this.spec=t}};function DQ(i,t,e){return(o,n,c,g)=>{if(e&&!e(o,n,c,g))return!1;let w=o>=g&&n<=g+c.length?c.slice(o-g,n-g):t.doc.sliceString(o,n);return i(w,t,o,n)}}function vh(i,t,e,o){let n;return i.wholeWord&&(n=PQ(t.doc,t.charCategorizer(t.selection.main.head))),i.test&&(n=DQ(i.test,t,n)),new ya(t.doc,i.unquoted,e,o,i.caseSensitive?void 0:c=>c.toLowerCase(),n)}function PQ(i,t){return(e,o,n,c)=>((c>e||c+n.length<o)&&(c=Math.max(0,e-2),n=i.sliceString(c,Math.min(i.length,o+2))),(t(Ng(n,e-c))!=At.Word||t(Rg(n,e-c))!=At.Word)&&(t(Rg(n,o-c))!=At.Word||t(Ng(n,o-c))!=At.Word))}var RI=class extends Ag{constructor(t){super(t)}nextMatch(t,e,o){let n=vh(this.spec,t,o,t.doc.length).nextOverlapping();if(n.done){let c=Math.min(t.doc.length,e+this.spec.unquoted.length);n=vh(this.spec,t,0,c).nextOverlapping()}return n.done||n.value.from==e&&n.value.to==o?null:n.value}prevMatchInRange(t,e,o){for(let n=o;;){let c=Math.max(e,n-1e4-this.spec.unquoted.length),g=vh(this.spec,t,c,n),w=null;for(;!g.nextOverlapping().done;)w=g.value;if(w)return w;if(c==e)return null;n-=1e4}}prevMatch(t,e,o){let n=this.prevMatchInRange(t,0,e);return n||(n=this.prevMatchInRange(t,Math.max(0,o-this.spec.unquoted.length),t.doc.length)),n&&(n.from!=e||n.to!=o)?n:null}getReplacement(t){return this.spec.unquote(this.spec.replace)}matchAll(t,e){let o=vh(this.spec,t,0,t.doc.length),n=[];for(;!o.next().done;){if(n.length>=e)return null;n.push(o.value)}return n}highlight(t,e,o,n){let c=vh(this.spec,t,Math.max(0,e-this.spec.unquoted.length),Math.min(o+this.spec.unquoted.length,t.doc.length));for(;!c.next().done;)n(c.value.from,c.value.to)}};function QQ(i,t,e){return(o,n,c)=>(!e||e(o,n,c))&&i(c[0],t,o,n)}function yh(i,t,e,o){let n;return i.wholeWord&&(n=XQ(t.charCategorizer(t.selection.main.head))),i.test&&(n=QQ(i.test,t,n)),new vg(t.doc,i.search,{ignoreCase:!i.caseSensitive,test:n},e,o)}function Ng(i,t){return i.slice(wi(i,t,!1),t)}function Rg(i,t){return i.slice(t,wi(i,t))}function XQ(i){return(t,e,o)=>!o[0].length||(i(Ng(o.input,o.index))!=At.Word||i(Rg(o.input,o.index))!=At.Word)&&(i(Rg(o.input,o.index+o[0].length))!=At.Word||i(Ng(o.input,o.index+o[0].length))!=At.Word)}var TI=class extends Ag{nextMatch(t,e,o){let n=yh(this.spec,t,o,t.doc.length).next();return n.done&&(n=yh(this.spec,t,0,e).next()),n.done?null:n.value}prevMatchInRange(t,e,o){for(let n=1;;n++){let c=Math.max(e,o-n*1e4),g=yh(this.spec,t,c,o),w=null;for(;!g.next().done;)w=g.value;if(w&&(c==e||w.from>c+10))return w;if(c==e)return null}}prevMatch(t,e,o){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,o,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(e,o)=>{if(o=="&")return t.match[0];if(o=="$")return"$";for(let n=o.length;n>0;n--){let c=+o.slice(0,n);if(c>0&&c<t.match.length)return t.match[c]+o.slice(n)}return e})}matchAll(t,e){let o=yh(this.spec,t,0,t.doc.length),n=[];for(;!o.next().done;){if(n.length>=e)return null;n.push(o.value)}return n}highlight(t,e,o,n){let c=yh(this.spec,t,Math.max(0,e-250),Math.min(o+250,t.doc.length));for(;!c.next().done;)n(c.value.from,c.value.to)}},lf=et.define(),VI=et.define(),va=ri.define({create(i){return new af(SI(i).create(),null)},update(i,t){for(let e of t.effects)e.is(lf)?i=new af(e.value.create(),i.panel):e.is(VI)&&(i=new af(i.query,e.value?FI:null));return i},provide:i=>Tu.from(i,t=>t.panel)});var af=class{constructor(t,e){this.query=t,this.panel=e}},YQ=ze.mark({class:"cm-searchMatch"}),HQ=ze.mark({class:"cm-searchMatch cm-searchMatch-selected"}),JQ=vi.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(va))}update(i){let t=i.state.field(va);(t!=i.startState.field(va)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:i,panel:t}){if(!t||!i.spec.valid)return ze.none;let{view:e}=this,o=new ts;for(let n=0,c=e.visibleRanges,g=c.length;n<g;n++){let{from:w,to:y}=c[n];for(;n<g-1&&y>c[n+1].from-2*250;)y=c[++n].to;i.highlight(e.state,w,y,(A,R)=>{let T=e.state.selection.ranges.some(F=>F.from==A&&F.to==R);o.add(A,R,T?HQ:YQ)})}return o.finish()}},{decorations:i=>i.decorations});function cf(i){return t=>{let e=t.state.field(va,!1);return e&&e.query.spec.valid?i(t,e):Zk(t)}}var Tg=cf((i,{query:t})=>{let{to:e}=i.state.selection.main,o=t.nextMatch(i.state,e,e);if(!o)return!1;let n=se.single(o.from,o.to),c=i.state.facet(Eh);return i.dispatch({selection:n,effects:[UI(i,o),c.scrollToMatch(n.main,i)],userEvent:"select.search"}),Gk(i),!0}),Sg=cf((i,{query:t})=>{let{state:e}=i,{from:o}=e.selection.main,n=t.prevMatch(e,o,o);if(!n)return!1;let c=se.single(n.from,n.to),g=i.state.facet(Eh);return i.dispatch({selection:c,effects:[UI(i,n),g.scrollToMatch(c.main,i)],userEvent:"select.search"}),Gk(i),!0}),zQ=cf((i,{query:t})=>{let e=t.matchAll(i.state,1e3);return!e||!e.length?!1:(i.dispatch({selection:se.create(e.map(o=>se.range(o.from,o.to))),userEvent:"select.search.matches"}),!0)}),jQ=({state:i,dispatch:t})=>{let e=i.selection;if(e.ranges.length>1||e.main.empty)return!1;let{from:o,to:n}=e.main,c=[],g=0;for(let w=new ya(i.doc,i.sliceDoc(o,n));!w.next().done;){if(c.length>1e3)return!1;w.value.from==o&&(g=c.length),c.push(se.range(w.value.from,w.value.to))}return t(i.update({selection:se.create(c,g),userEvent:"select.search.matches"})),!0},Fk=cf((i,{query:t})=>{let{state:e}=i,{from:o,to:n}=e.selection.main;if(e.readOnly)return!1;let c=t.nextMatch(e,o,o);if(!c)return!1;let g=c,w=[],y,A,R=[];g.precise?g.from==o&&g.to==n&&(A=e.toText(t.getReplacement(g)),w.push({from:g.from,to:g.to,insert:A}),g=t.nextMatch(e,g.from,g.to),R.push(we.announce.of(e.phrase("replaced match on line $",e.doc.lineAt(o).number)+"."))):g=t.nextMatch(e,g.from,g.to);let T=i.state.changes(w);return g&&(y=se.single(g.from,g.to).map(T),R.push(UI(i,g)),R.push(e.facet(Eh).scrollToMatch(y.main,i))),i.dispatch({changes:T,selection:y,effects:R,userEvent:"input.replace"}),!0}),$Q=cf((i,{query:t})=>{if(i.state.readOnly)return!1;let e=[];for(let n of t.matchAll(i.state,1e9)){let{from:c,to:g,precise:w}=n;w&&e.push({from:c,to:g,insert:t.getReplacement(n)})}if(!e.length)return!1;let o=i.state.phrase("replaced $ matches",e.length)+".";return i.dispatch({changes:e,effects:we.announce.of(o),userEvent:"input.replace.all"}),!0});function FI(i){return i.state.facet(Eh).createPanel(i)}function SI(i,t){var e,o,n,c,g;let w=i.selection.main,y=w.empty||w.to>w.from+100?"":i.sliceDoc(w.from,w.to);if(t&&!y)return t;let A=i.facet(Eh);return new Ig({search:((e=t?.literal)!==null&&e!==void 0?e:A.literal)?y:y.replace(/\n/g,"\\n"),caseSensitive:(o=t?.caseSensitive)!==null&&o!==void 0?o:A.caseSensitive,literal:(n=t?.literal)!==null&&n!==void 0?n:A.literal,regexp:(c=t?.regexp)!==null&&c!==void 0?c:A.regexp,wholeWord:(g=t?.wholeWord)!==null&&g!==void 0?g:A.wholeWord})}function Ok(i){let t=ad(i,FI);return t&&t.dom.querySelector("[main-field]")}function Gk(i){let t=Ok(i);t&&t==i.root.activeElement&&t.select()}var Zk=i=>{let t=i.state.field(va,!1);if(t&&t.panel){let e=Ok(i);if(e&&e!=i.root.activeElement){let o=SI(i.state,t.query.spec);o.valid&&i.dispatch({effects:lf.of(o)}),e.focus(),e.select()}}else i.dispatch({effects:[VI.of(!0),t?lf.of(SI(i.state,t.query.spec)):et.appendConfig.of(KQ)]});return!0},Mk=i=>{let t=i.state.field(va,!1);if(!t||!t.panel)return!1;let e=ad(i,FI);return e&&e.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:VI.of(!1)}),!0},Wk=[{key:"Mod-f",run:Zk,scope:"editor search-panel"},{key:"F3",run:Tg,shift:Sg,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Tg,shift:Sg,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Mk,scope:"editor search-panel"},{key:"Mod-Shift-l",run:jQ},{key:"Mod-Alt-g",run:kQ},{key:"Mod-d",run:WQ,preventDefault:!0}],LI=class{constructor(t){this.view=t;let e=this.query=t.state.field(va).query.spec;this.commit=this.commit.bind(this),this.searchField=xi("input",{value:e.search,placeholder:wo(t,"Find"),"aria-label":wo(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=xi("input",{value:e.replace,placeholder:wo(t,"Replace"),"aria-label":wo(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=xi("input",{type:"checkbox",name:"case",form:"",checked:e.caseSensitive,onchange:this.commit}),this.reField=xi("input",{type:"checkbox",name:"re",form:"",checked:e.regexp,onchange:this.commit}),this.wordField=xi("input",{type:"checkbox",name:"word",form:"",checked:e.wholeWord,onchange:this.commit});function o(n,c,g){return xi("button",{class:"cm-button",name:n,onclick:c,type:"button"},g)}this.dom=xi("div",{onkeydown:n=>this.keydown(n),class:"cm-search"},[this.searchField,o("next",()=>Tg(t),[wo(t,"next")]),o("prev",()=>Sg(t),[wo(t,"previous")]),o("select",()=>zQ(t),[wo(t,"all")]),xi("label",null,[this.caseField,wo(t,"match case")]),xi("label",null,[this.reField,wo(t,"regexp")]),xi("label",null,[this.wordField,wo(t,"by word")]),...t.state.readOnly?[]:[xi("br"),this.replaceField,o("replace",()=>Fk(t),[wo(t,"replace")]),o("replaceAll",()=>$Q(t),[wo(t,"replace all")])],xi("button",{name:"close",onclick:()=>Mk(t),"aria-label":wo(t,"close"),type:"button"},["\xD7"])])}commit(){let t=new Ig({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:lf.of(t)}))}keydown(t){o1(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?Sg:Tg)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),Fk(this.view))}update(t){for(let e of t.transactions)for(let o of e.effects)o.is(lf)&&!o.value.eq(this.query)&&this.setQuery(o.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Eh).top}};function wo(i,t){return i.state.phrase(t)}var wg=30,xg=/[\s\.,:;?!]/;function UI(i,{from:t,to:e}){let o=i.state.doc.lineAt(t),n=i.state.doc.lineAt(e).to,c=Math.max(o.from,t-wg),g=Math.min(n,e+wg),w=i.state.sliceDoc(c,g);if(c!=o.from){for(let y=0;y<wg;y++)if(!xg.test(w[y+1])&&xg.test(w[y])){w=w.slice(y);break}}if(g!=n){for(let y=w.length-1;y>w.length-wg;y--)if(!xg.test(w[y-1])&&xg.test(w[y])){w=w.slice(0,y);break}}return we.announce.of(`${i.state.phrase("current match")}. ${w} ${i.state.phrase("on line")} ${o.number}.`)}var qQ=we.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),KQ=[va,Er.low(JQ),qQ];var e3=["gutterErrorBar","gutterConstructWarning"],Dk="gutterErrorBar",Lg=class extends Xr{constructor(e){super();this.element=e}eq(e){return e.element===this.element}toDOM(){let e=this.element.cloneNode(!0);return e.onmouseover=this.element.onmouseover,e.onmouseout=this.element.onmouseout,e}},Pk=et.define(),Qk=et.define();function t3(i){return ri.define({create(){return ht.empty},update(e,o){e=e.map(o.changes);for(let n of o.effects)if(n.is(Qk)&&n.value===i)e=ht.empty;else if(n.is(Pk)&&n.value.gutter===i){let{line:c,element:g}=n.value;if(c<0||c>=o.state.doc.lines)continue;let w=o.state.doc.line(c+1).from;e=e.update({filter:y=>y!==w}),g&&(e=e.update({add:[new Lg(g).range(w)]}))}return e}})}function i3(){let i=document.createElement("span");return i.className="cm-gutter-spacer",i.textContent="\xA0",i}function r3(i,t){let e=new Map,o=t.iter();for(;o.value;)e.set(o.from,o.value),o.next();let n=i.iter();for(;n.value;)e.set(n.from,n.value),n.next();let c=[],g=Array.from(e.keys()).sort((w,y)=>w-y);for(let w of g){let y=e.get(w);y&&c.push(y.range(w))}return ht.of(c,!0)}var hf=new Map;for(let i of e3)hf.set(i,t3(i));var o3=[hf.get("gutterErrorBar"),hf.get("gutterConstructWarning"),ld({class:`cm-gutter-${Dk} CodeMirror-${Dk}`,markers:i=>r3(i.state.field(hf.get("gutterErrorBar")),i.state.field(hf.get("gutterConstructWarning"))),initialSpacer:()=>new Lg(i3())})];function Xk(){return o3}function Yk(i,t,e,o){i.dispatch({effects:Pk.of({gutter:e,line:t,element:o})})}function Hk(i,t){i.dispatch({effects:Qk.of(t)})}var s3=new Set(["shift","ctrl","cmd","alt","mod","meta"]),Jk={esc:"Escape",space:"Space",enter:"Enter",tab:"Tab",backspace:"Backspace",delete:"Delete",del:"Delete",insert:"Insert",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",left:"ArrowLeft",right:"ArrowRight",up:"ArrowUp",down:"ArrowDown"};function n3(i){let t=i.split(/-(?!$)/),e=[],o=t[t.length-1];for(let c=0;c<t.length-1;c++){let g=t[c].toLowerCase();g==="meta"?e.push("Cmd"):s3.has(g)&&e.push(t[c][0].toUpperCase()+g.slice(1))}let n=o.toLowerCase();return Jk[n]?o=Jk[n]:/^f\d{1,2}$/i.test(o)?o=o.toUpperCase():o.length===1&&(o=o.toLowerCase()),[...e,o].join("-")}function _I(i,t,e={}){if(!i)return[];let o=[];for(let n of Object.keys(i)){let c=i[n],g=typeof c=="string"?e[c]:c;g&&o.push({key:n3(n),run:()=>g(t())!==!1,preventDefault:!0})}return Er.highest(ss.of(o))}function OI(i){return i==="indent"?ss.of([{key:"Tab",run:t=>ql(t),shift:Kl}]):i==="default"?ss.of([gk]):ss.of([{key:"Tab",run:fk,shift:Kl}])}function zk(){return ss.of([...Sk,...dk,...Wk,...WB,...P1])}function Vi(i,t){if(t.line<0)return 0;if(t.line>=i.lines)return i.length;let e=i.line(t.line+1);return e.from+Math.max(0,Math.min(t.ch,e.length))}function ic(i,t){let e=Math.max(0,Math.min(t,i.length)),o=i.lineAt(e);return{line:o.number-1,ch:e-o.from}}var Bg=class{constructor(t){this.view=t}get doc(){return this.view.state.doc}getValue(t=`
43
+ `){return t===`
44
+ `?this.doc.toString():this.doc.toJSON().join(t)}setValue(t){this.view.dispatch({changes:{from:0,to:this.doc.length,insert:t}})}getLine(t){return t<0||t>=this.doc.lines?"":this.doc.line(t+1).text}lineCount(){return this.doc.lines}firstLine(){return 0}lastLine(){return this.doc.lines-1}indexFromPos(t){return Vi(this.doc,t)}posFromIndex(t){return ic(this.doc,t)}getCursor(t){let e=this.view.state.selection.main,o;switch(t){case"from":case"start":o=e.from;break;case"to":case"end":o=e.to;break;case"anchor":o=e.anchor;break;case"head":default:o=e.head}return ic(this.doc,o)}setCursor(t,e){let o=typeof t=="number"?{line:t,ch:e??0}:t,n=Vi(this.doc,o);this.view.dispatch({selection:{anchor:n},scrollIntoView:!0})}setSelection(t,e){let o=Vi(this.doc,t),n=e?Vi(this.doc,e):o;this.view.dispatch({selection:{anchor:o,head:n},scrollIntoView:!0})}listSelections(){return this.view.state.selection.ranges.map(t=>({anchor:ic(this.doc,t.anchor),head:ic(this.doc,t.head)}))}somethingSelected(){return this.view.state.selection.ranges.some(t=>!t.empty)}getSelection(t=`
45
+ `){return this.view.state.selection.ranges.filter(e=>!e.empty).map(e=>this.doc.sliceString(e.from,e.to)).join(t)}replaceSelection(t,e="end"){this.view.dispatch(this.view.state.changeByRange(o=>{let n=o.from+t.length,c;return e==="around"?c=se.range(o.from,n):e==="start"?c=se.cursor(o.from):c=se.cursor(n),{changes:{from:o.from,to:o.to,insert:t},range:c}}))}getRange(t,e){return this.doc.sliceString(Vi(this.doc,t),Vi(this.doc,e))}replaceRange(t,e,o){let n=Vi(this.doc,e),c=o?Vi(this.doc,o):n;this.view.dispatch({changes:{from:Math.min(n,c),to:Math.max(n,c),insert:t}})}selectAll(){this.view.dispatch({selection:{anchor:0,head:this.doc.length}})}};function a3(i){return{label:i.displayText||i.text,type:i.className,apply:(t,e,o,n)=>{let c=t.state.doc,g=i.from?Vi(c,i.from):o,w=i.to?Vi(c,i.to):n,y=Math.min(g,w),A=Math.max(g,w);t.dispatch({changes:{from:y,to:A,insert:i.text},selection:{anchor:y+i.text.length},userEvent:"input.complete"})}}}function l3(i,t){if(!i||!i.list||i.list.length===0)return null;let e=Vi(t,i.from),o=Vi(t,i.to);return{from:Math.min(e,o),to:Math.max(e,o),options:i.list.map(a3),filter:!1}}function c3(i){return async t=>{let e=i.getHintFn();if(!e)return null;let o=await e();return!o||t.aborted?null:l3(o,t.state.doc)}}function jk(i){let t=we.updateListener.of(e=>{let o=bg(e.startState),n=bg(e.state);o===null&&n!==null?i.onShown?.(e.view.dom.querySelector(".cm-tooltip-autocomplete")):o!==null&&n===null&&i.onClose?.()});return[Bk({override:[c3(i)],activateOnTyping:!1,closeOnBlur:!0,defaultKeymap:!1,icons:!1,maxRenderedOptions:1e5,interactionDelay:0,tooltipClass:()=>"CodeMirror-hints",optionClass:e=>e.type?e.type:""}),Er.highest(ss.of(AI.filter(e=>e.key!=="Ctrl-Space"))),t]}function $k(i){return bg(i)!==null}function qk(i){return of(i)}function Kk(i){return EI(i)}var h3="cm-s-";function e2(i){let t=["CodeMirror"];if(i)for(let e of i.split(/\s+/))e&&t.push(h3+e);return we.editorAttributes.of({class:t.join(" ")})}var p3=ze.mark({class:"cm-syntax-error-token"}),GI=et.define(),u3=ri.define({create(){return ze.none},update(i,t){i=i.map(t.changes);for(let e of t.effects){if(!e.is(GI))continue;let o=e.value;!o||o.to<=o.from?i=ze.none:i=ze.set([p3.range(o.from,o.to)])}return i},provide:i=>we.decorations.from(i)}),kg=class{constructor(t,e){this.eventHandlers={};this.customOptions={};this.compartments={theme:new cr,readOnly:new cr,lineNumbers:new cr,lineWrapping:new cr,tabSize:new cr,indentUnit:new cr,extraKeys:new cr,tabMode:new cr,matchBrackets:new cr,highlightSelectionMatches:new cr,autoCloseBrackets:new cr};this.editorOptions={...e},this.runner=new Ku({tabSize:e.tabSize,indentUnit:e.indentUnit});let o={getHintFn:()=>this.getHintFn(),onShown:c=>this.emit("autocompletionShown",c),onClose:()=>this.emit("autocompletionClose")},n=xt.create({doc:e.value||"",extensions:[wB(),sR(this.runner),Xk(),u3,this.compartments.lineNumbers.of(e.lineNumbers===!1?[]:[DE(),PE()]),this.compartments.lineWrapping.of(e.lineWrapping===!1?[]:we.lineWrapping),this.compartments.readOnly.of([xt.readOnly.of(!!e.readOnly),we.editable.of(!e.readOnly)]),this.compartments.tabSize.of(xt.tabSize.of(e.tabSize||4)),this.compartments.indentUnit.of(ca.of(t2(e))),this.compartments.theme.of(e2(e.theme)),this.compartments.matchBrackets.of(e.matchBrackets===!1?[]:lC()),this.compartments.highlightSelectionMatches.of(e.highlightSelectionMatches?kI():[]),this.compartments.autoCloseBrackets.of(e.autoCloseBrackets?II():[]),GB(),l1(),p1(),f1(),d1(),u1(),xt.allowMultipleSelections.of(!0),jk(o),this.compartments.extraKeys.of(_I(e.extraKeys,()=>this)),this.compartments.tabMode.of(OI(e.tabMode)),zk(),we.updateListener.of(c=>this.handleUpdate(c)),we.domEventHandlers({blur:()=>{this.emit("blur")},focus:()=>{this.emit("focus")}})]});this.view=new we({state:n,parent:t}),this.view.dom.CodeMirror=this,this.doc=new Bg(this.view),this.customOptions.theme=e.theme,e.mode&&(this.customOptions.mode=e.mode)}handleUpdate(t){if(t.docChanged){let e=Number.MAX_SAFE_INTEGER;t.changes.iterChangedRanges(o=>{let n=t.startState.doc.lineAt(o).number-1;n<e&&(e=n)}),this.runner.invalidate(e===Number.MAX_SAFE_INTEGER?0:e),this.emit("change",{origin:"input"}),this.emit("changes")}(t.selectionSet||t.docChanged)&&this.emit("cursorActivity")}on(t,e){this.eventHandlers[t]||(this.eventHandlers[t]=[]),this.eventHandlers[t].push(e)}off(t,e){let o=this.eventHandlers[t];o&&(this.eventHandlers[t]=o.filter(n=>n!==e))}emit(t,...e){let o=this.eventHandlers[t];if(!(!o||!o.length))for(let n of o.slice())n(this,...e)}getDoc(){return this.doc}getValue(){return this.doc.getValue()}setValue(t){this.doc.setValue(t)}getLine(t){return this.doc.getLine(t)}lineCount(){return this.doc.lineCount()}lastLine(){return this.doc.lastLine()}getCursor(t){return this.doc.getCursor(t)}setCursor(t,e){this.doc.setCursor(t,e)}setSelection(t,e){this.doc.setSelection(t,e)}somethingSelected(){return this.doc.somethingSelected()}getSelection(){return this.doc.getSelection()}replaceSelection(t,e){this.doc.replaceSelection(t,e)}getRange(t,e){return this.doc.getRange(t,e)}replaceRange(t,e,o){this.doc.replaceRange(t,e,o)}indexFromPos(t){return this.doc.indexFromPos(t)}posFromIndex(t){return this.doc.posFromIndex(t)}operation(t){return t()}getTokenAt(t,e=!1){return this.runner.getTokenAt(this.view.state.doc,t,e)}getTokenTypeAt(t){return this.runner.getTokenTypeAt(this.view.state.doc,t)}getOption(t){return t in this.customOptions?this.customOptions[t]:this.editorOptions[t]}setOption(t,e){switch(this.editorOptions[t]=e,t){case"theme":this.setTheme(e);break;case"readOnly":{let o=e&&e!=="nocursor"?!0:!!e;this.view.dispatch({effects:this.compartments.readOnly.reconfigure([xt.readOnly.of(o),we.editable.of(!o)])});break}case"lineNumbers":this.view.dispatch({effects:this.compartments.lineNumbers.reconfigure(e?[DE(),PE()]:[])});break;case"lineWrapping":this.view.dispatch({effects:this.compartments.lineWrapping.reconfigure(e?we.lineWrapping:[])});break;case"tabSize":this.view.dispatch({effects:this.compartments.tabSize.reconfigure(xt.tabSize.of(e||4))});break;case"indentUnit":case"indentWithTabs":this.view.dispatch({effects:this.compartments.indentUnit.reconfigure(ca.of(t2(this.editorOptions)))});break;case"extraKeys":this.view.dispatch({effects:this.compartments.extraKeys.reconfigure(_I(e,()=>this))});break;case"tabMode":this.view.dispatch({effects:this.compartments.tabMode.reconfigure(OI(e))});break;case"matchBrackets":this.view.dispatch({effects:this.compartments.matchBrackets.reconfigure(e?lC():[])});break;case"highlightSelectionMatches":this.view.dispatch({effects:this.compartments.highlightSelectionMatches.reconfigure(e?kI():[])});break;case"autoCloseBrackets":this.view.dispatch({effects:this.compartments.autoCloseBrackets.reconfigure(e?II():[])});break;default:this.customOptions[t]=e}}setTheme(t){this.view.dispatch({effects:this.compartments.theme.reconfigure(e2(t))}),this.customOptions.theme=t}setGutterMarker(t,e,o){Yk(this.view,t,e,o)}clearGutter(t){Hk(this.view,t)}setSyntaxErrorHighlight(t,e){let o=Vi(this.view.state.doc,t),n=Vi(this.view.state.doc,e);this.view.dispatch({effects:GI.of({from:o,to:n})})}clearSyntaxErrorHighlight(){this.view.dispatch({effects:GI.of(null)})}execCommand(t){switch(t){case"selectAll":lI(this.view);break;case"indentMore":ql(this.view);break;case"indentLess":Kl(this.view);break;case"deleteLine":cI(this.view);break;case"undo":ag(this.view);break;case"redo":tf(this.view);break;default:console.warn(`Unknown editor command: ${t}`)}}indentLine(t){let e=this.view.state.doc.line(t+1),o=_u(this.view.state,e.from);if(o===null)return;let n=/^\s*/.exec(e.text)?.[0]||"",c=Gl(this.view.state,o);n!==c&&this.view.dispatch({changes:{from:e.from,to:e.from+n.length,insert:c}})}foldCode(t){let e=typeof t=="number"?{line:t,ch:0}:t;xd(this.view,Vi(this.view.state.doc,e))}toggleFold(t){let e=typeof t=="number"?{line:t,ch:0}:t;nR(this.view,Vi(this.view.state.doc,e))}getWrapperElement(){return this.view.dom}getInputField(){return this.view.contentDOM}getScrollerElement(){return this.view.scrollDOM}focus(){this.view.focus()}hasFocus(){return this.view.hasFocus}refresh(){this.view.requestMeasure()}setSize(t,e){let o=n=>typeof n=="number"?`${n}px`:n;t!=null&&(this.view.dom.style.width=o(t)),e!=null&&(this.view.dom.style.height=o(e)),this.view.requestMeasure()}cursorCoords(t){let e=t&&typeof t=="object"?Vi(this.view.state.doc,t):t===!1?this.view.state.selection.main.anchor:this.view.state.selection.main.head,o=this.view.coordsAtPos(e);if(!o){let n=this.view.dom.getBoundingClientRect();return{left:n.left,top:n.top,bottom:n.top}}return{left:o.left,top:o.top,bottom:o.bottom}}coordsChar(t){let e=this.view.posAtCoords({x:t.left,y:t.top});return ic(this.view.state.doc,e===null?this.view.state.doc.length:e)}addExtension(t){this.view.dispatch({effects:et.appendConfig.of(t)})}destroyEditor(){this.view.destroy()}};function t2(i){return i.indentWithTabs?" ":" ".repeat(i.indentUnit||2)}function f3(i,t){function e(){this.constructor=i}e.prototype=t.prototype,i.prototype=new e}function rc(i,t,e,o){var n=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(n,rc.prototype),n.expected=t,n.found=e,n.location=o,n.name="SyntaxError",n}f3(rc,Error);function ZI(i,t,e){return e=e||" ",i.length>t?i:(t-=i.length,e+=e.repeat(t),i+e.slice(0,t))}rc.prototype.format=function(i){var t="Error: "+this.message;if(this.location){var e=null,o;for(o=0;o<i.length;o++)if(i[o].source===this.location.source){e=i[o].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,c=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(n):n,g=this.location.source+":"+c.line+":"+c.column;if(e){var w=this.location.end,y=ZI("",c.line.toString().length," "),A=e[n.line-1],R=n.line===w.line?w.column:A.length+1,T=R-n.column||1;t+=`
46
+ --> `+g+`
47
+ `+y+` |
48
+ `+c.line+" | "+A+`
49
+ `+y+" | "+ZI("",n.column-1," ")+ZI("",T,"^")}else t+=`
50
+ at `+g}return t};rc.buildMessage=function(i,t){var e={literal:function(A){return'"'+n(A.text)+'"'},class:function(A){var R=A.parts.map(function(T){return Array.isArray(T)?c(T[0])+"-"+c(T[1]):c(T)});return"["+(A.inverted?"^":"")+R.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(A){return A.description}};function o(A){return A.charCodeAt(0).toString(16).toUpperCase()}function n(A){return A.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(R){return"\\x0"+o(R)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(R){return"\\x"+o(R)})}function c(A){return A.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(R){return"\\x0"+o(R)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(R){return"\\x"+o(R)})}function g(A){return e[A.type](A)}function w(A){var R=A.map(g),T,F;if(R.sort(),R.length>0){for(T=1,F=1;T<R.length;T++)R[T-1]!==R[T]&&(R[F]=R[T],F++);R.length=F}switch(R.length){case 1:return R[0];case 2:return R[0]+" or "+R[1];default:return R.slice(0,-1).join(", ")+", or "+R[R.length-1]}}function y(A){return A?'"'+n(A)+'"':"end of input"}return"Expected "+w(i)+" but "+y(t)+" found."};function pf(i,t){t=t!==void 0?t:{};var e={},o=t.grammarSource,n={DOCUMENT:yp},c=yp,g="base",w="prefix",y="select",A="distinct",R="reduced",T="(",F="as",k=")",G="*",W="construct",P="where",Q="{",H="}",re="describe",K="ask",J="from",te="named",ae="group",me="by",Ee="having",Pe="order",Re="asc",Ie="desc",Ye="limit",Oe="offset",de="values",ue=";",dt="load",ce="silent",Be="into",qe="clear",Xe="drop",ve="create",fe="add",Le="to",_e="move",bt="copy",$t="insert",Fi="data",Ki="delete",ur="with",Ve="using",ne="default",It="graph",qt="all",De=".",oi="optional",Fo="service",je="bind",Ui="UNDEF",si="minus",pi="union",Uo="filter",Ge=",",ui="a",Te="|",ot="/",ni="^",fi="?",st="+",Kt="!",ai="[",Wi="]",Di="||",er="&&",Ut="=",_i="!=",zr="<",Fr=">",Ur="<=",Pi=">=",tr="in",_o="not",yt="-",Ca="str",Ia="lang",_t="langmatches",_r="datatype",Aa="bound",Nn="iri",Ms="uri",Rn="bnode",Qi="rand",Ze="abs",Xi="ceil",Or="floor",Ws="round",Ds="concat",Oo="strlen",Ps="ucase",yi="lcase",Qs="encode_for_uri",Tn="contains",Sn="strbefore",Ln="strstarts",Na="strends",Me="strafter",Y="year",pe="month",ke="day",vt="hours",li="minutes",Vt="seconds",Ei="timezone",Yi="tz",ir="now",ds="uuid",Dt="struuid",vo="md5",ct="sha1",Tt="sha256",Bn="sha384",gs="sha512",ms="coalesce",Ra="if",tt="strlang",Ot="strdt",Ta="sameterm",kn="isuri",rr="isiri",Ah="isblank",Vn="isliteral",Go="isnumeric",Pt="regex",Zo="substr",Xs="replace",Mo="exists",Sa="count",Ys="sum",La="min",Ba="max",Fn="avg",ka="sample",Va="group_concat",Un="separator",_n="^^",Fa="true",Nh="false",Qe=":",or="_:",wt="$",On="@",fr="'",jr='"',$r="'''",Hi="''",qr='"""',dr='""',ei="\\",gr="#",Gn="_",Zn="%",Rh="~",nc="&",Hs=/^[^<>"{}|\^`\\\0- ]/,$e=/^[0-9]/,Mn=/^[a-zA-Z]/,it=/^[a-zA-Z0-9]/,Th=/^[eE]/,mr=/^[+\-]/,Wo=/^[^'\\\n\r]/,Wn=/^[^"\\\n\r]/,Ua=/^[^'\\]/,Js=/^[^"\\]/,Sh=/^[tbnrf\\"']/,ac=/^[ \t]/,Lh=/^[\r\n]/,Bh=/^[^\r\n]/,_a=/^[A-Z]/,kh=/^[a-z]/,Gr=/^[\xC0-\xD6]/,Vh=/^[\xD8-\xF6]/,lc=/^[\xF8-\u02FF]/,yo=/^[\u0370-\u037D]/,cc=/^[\u037F-\u1FFF]/,hc=/^[\u200C-\u200D]/,Oa=/^[\u2070-\u218F]/,Fh=/^[\u2C00-\u2FEF]/,pc=/^[\u3001-\uD7FF]/,uc=/^[\uF900-\uFDCF]/,Uh=/^[\uFDF0-\uFFFD]/,zs=/^[\xB7]/,Do=/^[\u0300-\u036F]/,js=/^[\u203F-\u2040]/,fc=/^[A-F]/,dc=/^[a-f]/,Dn=M("BASE",!0),Po=M("PREFIX",!0),_h=M("SELECT",!0),Gt=M("DISTINCT",!0),sr=M("REDUCED",!0),ie=M("(",!1),Eo=M("AS",!0),oe=M(")",!1),St=M("*",!1),$s=M("CONSTRUCT",!0),Qo=M("WHERE",!0),Ri=M("{",!1),Ci=M("}",!1),Oh=M("DESCRIBE",!0),br=M("ASK",!0),bs=M("FROM",!0),qs=M("NAMED",!0),Kr=M("GROUP",!0),Ga=M("BY",!0),ws=M("HAVING",!0),Gh=M("ORDER",!0),Ks=M("ASC",!0),gc=M("DESC",!0),Pn=M("LIMIT",!0),Zh=M("OFFSET",!0),Zr=M("VALUES",!0),Ii=M(";",!1),Mh=M("LOAD",!0),di=M("SILENT",!0),Wh=M("INTO",!0),eo=M("CLEAR",!0),Dh=M("DROP",!0),xs=M("CREATE",!0),Ph=M("ADD",!0),Ji=M("TO",!0),Qn=M("MOVE",!0),mc=M("COPY",!0),en=M("INSERT",!0),vs=M("DATA",!0),Xo=M("DELETE",!0),Xn=M("WITH",!0),ys=M("USING",!0),Es=M("DEFAULT",!0),to=M("GRAPH",!0),bc=M("ALL",!0),ut=M(".",!1),Yn=M("OPTIONAL",!0),Qh=M("SERVICE",!0),wc=M("BIND",!0),Xh=M("UNDEF",!1),xc=M("MINUS",!0),Za=M("UNION",!0),Mr=M("FILTER",!0),We=M(",",!1),Yo=M("a",!1),Wr=M("|",!1),gi=M("/",!1),Hn=M("^",!1),tn=M("?",!1),ti=M("+",!1),rn=M("!",!1),Dr=M("[",!1),Cs=M("]",!1),Jn=M("||",!1),Ma=M("&&",!1),Ti=M("=",!1),zn=M("!=",!1),Is=M("<",!1),io=M(">",!1),Wa=M("<=",!1),As=M(">=",!1),wr=M("IN",!0),Ns=M("NOT",!0),Qt=M("-",!1),Yh=M("STR",!0),vc=M("LANG",!0),yc=M("LANGMATCHES",!0),Ec=M("DATATYPE",!0),Cc=M("BOUND",!0),Ic=M("IRI",!0),Hh=M("URI",!0),Ac=M("BNODE",!0),Nc=M("RAND",!0),Jh=M("ABS",!0),p=M("CEIL",!0),v=M("FLOOR",!0),N=M("ROUND",!0),S=M("CONCAT",!0),U=M("STRLEN",!0),Z=M("UCASE",!0),X=M("LCASE",!0),z=M("ENCODE_FOR_URI",!0),ee=M("CONTAINS",!0),le=M("STRBEFORE",!0),Ne=M("STRSTARTS",!0),He=M("STRENDS",!0),nt=M("STRAFTER",!0),Si=M("YEAR",!0),ci=M("MONTH",!0),nr=M("DAY",!0),Oi=M("HOURS",!0),Rs=M("MINUTES",!0),zh=M("SECONDS",!0),jh=M("TIMEZONE",!0),$h=M("TZ",!0),Rc=M("NOW",!0),qh=M("UUID",!0),Tc=M("STRUUID",!0),Xt=M("MD5",!0),jn=M("SHA1",!0),Kh=M("SHA256",!0),ep=M("SHA384",!0),tp=M("SHA512",!0),Da=M("COALESCE",!0),Sc=M("IF",!0),ip=M("STRLANG",!0),Gg=M("STRDT",!0),Zg=M("sameTerm",!0),Mg=M("isURI",!0),Wg=M("isIRI",!0),Dg=M("isBLANK",!0),Pg=M("isLITERAL",!0),Qg=M("isNUMERIC",!0),Xg=M("REGEX",!0),Yg=M("SUBSTR",!0),Hg=M("REPLACE",!0),rp=M("EXISTS",!0),Jg=M("COUNT",!0),zg=M("SUM",!0),jg=M("MIN",!0),$g=M("MAX",!0),qg=M("AVG",!0),Kg=M("SAMPLE",!0),em=M("GROUP_CONCAT",!0),tm=M("SEPARATOR",!0),im=M("^^",!1),rm=M("true",!0),om=M("false",!0),op=Ue(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),xr=M(":",!1),sm=M("_:",!1),Ke=Ue([["0","9"]],!1,!1),sp=M("$",!1),np=M("@",!1),ap=Ue([["a","z"],["A","Z"]],!1,!1),on=Ue([["a","z"],["A","Z"],["0","9"]],!1,!1),nm=Ue(["e","E"],!1,!1),am=Ue(["+","-"],!1,!1),Ho=M("'",!1),lp=Ue(["'","\\",`
51
+ `,"\r"],!0,!1),sn=M('"',!1),cp=Ue(['"',"\\",`
52
+ `,"\r"],!0,!1),hp=M("'''",!1),pp=M("''",!1),up=Ue(["'","\\"],!0,!1),fp=M('"""',!1),dp=M('""',!1),gp=Ue(['"',"\\"],!0,!1),mp=M("\\",!1),lm=Ue(["t","b","n","r","f","\\",'"',"'"],!1,!1),cm=Ue([" "," "],!1,!1),hm=Ue(["\r",`
53
+ `],!1,!1),pm=Ue(["\r",`
54
+ `],!0,!1),Pa=M("#",!1),um=Ue([["A","Z"]],!1,!1),fm=Ue([["a","z"]],!1,!1),dm=Ue([["\xC0","\xD6"]],!1,!1),gm=Ue([["\xD8","\xF6"]],!1,!1),mm=Ue([["\xF8","\u02FF"]],!1,!1),bm=Ue([["\u0370","\u037D"]],!1,!1),wm=Ue([["\u037F","\u1FFF"]],!1,!1),xm=Ue([["\u200C","\u200D"]],!1,!1),vm=Ue([["\u2070","\u218F"]],!1,!1),ym=Ue([["\u2C00","\u2FEF"]],!1,!1),Em=Ue([["\u3001","\uD7FF"]],!1,!1),Cm=Ue([["\uF900","\uFDCF"]],!1,!1),Im=Ue([["\uFDF0","\uFFFD"]],!1,!1),bp=M("_",!1),Qa=Ue(["\xB7"],!1,!1),Xa=Ue([["\u0300","\u036F"]],!1,!1),Ya=Ue([["\u203F","\u2040"]],!1,!1),wp=M("%",!1),Am=Ue([["A","F"]],!1,!1),Nm=Ue([["a","f"]],!1,!1),Rm=M("~",!1),Tm=M("&",!1),Sm=function(a,s){let u={};a.length?u={headers:a,...s}:u=s;let l=Object.entries(eu).map(([h,m])=>({pos:parseInt(h),text:m}));return l.length&&(u.comments=l),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...u}},Lm=function(a,s,u){let l={type:"Query"};return a&&(l.prologue=a),s.type==="SelectQuery"?l.selectQuery=s:s.type==="ConstructQuery"?l.constructQuery=s:s.type==="DescribeQuery"?l.describeQuery=s:s.type==="AskQuery"&&(l.askQuery=s),u&&(l.values=u),l},Bm=function(a){if(a.length)return{type:"Prologue",decl:a}},km=function(a){return{type:"BaseDecl",iriref:a}},Vm=function(a,s){return{type:"PrefixDecl",pn_prefix:a,iriref:s}},Fm=function(a,s,u,l){return s.length&&(a.from=s),a={type:"SelectQuery",selectClause:a,whereClause:u,...l},a},Um=function(a,s,u,l){let h={type:"SubSelect",selectClause:a,whereClause:s,...u,location:ye()};return l&&(h.values=l),h},_m=function(a,s){let u;s==="*"?u=["*"]:u=s.map(h=>h.length===2?h[1]:{expression:h[3],as:h[7]});let l={var:u};if(a){let h=a.toUpperCase();h==="DISTINCT"?l.distinct=!0:h==="REDUCED"&&(l.reduced=!0)}return l.location=ye(),l},Om=function(a,s,u,l){let h={type:"ConstructQuery"};return s.length&&(h.from=s),h={...h,template:a,where:u,...l,location:ye()},h},Gm=function(a,s,u){let l={type:"ConstructQuery"};return a.length&&(l.from=a),l={...l,where:[s],...u,location:ye()},l},Zm=function(a,s,u,l){let h={type:"DescribeQuery"};return s.length&&(h.from=s),h.describe=a,u&&(h.where=u),h={...h,...l,location:ye()},h},Mm=function(a,s,u){let l={type:"AskQuery"};return a.length&&(l.from=a),l={...l,where:s,...u,location:ye()},l},Wm=function(a){return a},Dm=function(a){return{graph:a,location:ye()}},Pm=function(a){return{namedGraph:a,location:ye()}},Qm=function(a){return a.graphPattern||a},Xm=function(a,s,u,l){let h={};return a&&(h.group=a),s&&(h.having=s),u&&(h.orderBy=u),l&&(h.limitOffset=l),h},Ym=function(a){return a},Hm=function(a){return a},Jm=function(a){return a},zm=function(a,s){return s?{expressionType:"aliasedexpression",bracketted:!0,expression:a,as:s[2],location:ye()}:{bracketted:!0,...a}},jm=function(a){return a},$m=function(a){return a},qm=function(a){return a},Km=function(a){return a},eb=function(a,s){let u={};return a.toUpperCase()==="ASC"?u={asc:!0,...s}:a.toUpperCase()==="DESC"&&(u={desc:!0,...s}),u},tb=function(a){return a},ib=function(a){let s=[a[0]];return a[1]&&s.push(a[1]),s},rb=function(a){return{limit:parseInt(a.literal)}},ob=function(a){return{offset:parseInt(a.literal)}},sb=function(a){return a?a[1]:null},nb=function(a,s){let u={type:"Update"};a&&(u.prologue=a);let l=[];return s&&(l=[s[1]],s[2]&&(l=l.concat(s[2][3].update))),u.update=l,u},ab=function(a,s,u){let l={type:"load",silent:a,sourceGraph:s};return u&&(l.destinyGraph=u[2]),l},lb=function(a,s){return{type:"clear",silent:a,destinyGraph:s}},cb=function(a,s){return{type:"drop",silent:a,destinyGraph:s}},hb=function(a,s){return{type:"create",silent:a,destinyGraph:s}},pb=function(a,s,u){return{type:"add",silent:a,graphs:[s,u]}},ub=function(a,s,u){return{type:"move",silent:a,graphs:[s,u]}},fb=function(a,s,u){return{type:"copy",silent:a,graphs:[s,u]}},db=function(a){return{type:"insertdata",insert:a}},gb=function(a){return{type:"deletedata",delete:a}},mb=function(a){return{type:"deletewhere",delete:a}},bb=function(a,s,u,l){let h={type:"modify"};return a&&(h.with=a[2]),s.length===3?(h.delete=s[0],s[2]&&(h.insert=s[2])):h.insert=s,u.length&&(h.using=u),h.where=l.graphPattern,h},wb=function(a){return a},xb=function(a){return a},vb=function(a){return a.length===3?{named:!0,iri:a[2]}:{iri:a}},yb=function(){return"default"},Eb=function(a){return a},Cb=function(a){return a},Ib=function(a){return a},Ab=function(){return"default"},Nb=function(){return"named"},Rb=function(){return"all"},Tb=function(a){return a},Sb=function(a){return a},Lb=function(a,s){let u=[];return a&&(u=u.concat(a)),s.forEach(l=>{u=u.concat(l[0]),l[2]&&(u=u.concat(l[2]))}),u},Bb=function(a,s){return{graph:a,...s}},kb=function(a,s){let u=[a];return s&&s[3]&&(u=u.concat(s[3].triplePattern)),{triplePattern:u,location:ye()}},Vb=function(a){return a},Fb=function(a,s){let u=[];return a&&u.push(a),s.forEach(l=>{u.push(l[0]),l[4]&&u.push(l[4])}),{graphPattern:u,location:ye()}},Ub=function(a,s){let u=[];return s&&s[3]?u=[a].concat(s[3].triplePattern):u=[a],{type:"TriplesBlock",triplePattern:u,location:ye()}},_b=function(a){return{type:"OptionalGraphPattern",optional:a.graphPattern||a,location:ye()}},Ob=function(a,s){return{type:"GraphGraphPattern",graph:a,...s}},Gb=function(a,s,u){let l={type:"ServiceGraphPattern",service:s,pattern:u.graphPattern||u};return a&&(l.silent=!0),l.location=ye(),l},Zb=function(a,s){return{type:"Bind",bind:a,as:s,location:ye()}},Mb=function(a){return a},Wb=function(a,s){return{oneVar:a,data:s,location:ye()}},Db=function(a,s){return{variables:a,data:s,location:ye()}},Pb=function(a){return a},Qb=function(a){return a},Xb=function(a){return{type:"MinusGraphPattern",minus:a.graphPattern||a,location:ye()}},Yb=function(a,s){return s.length?{union:[a,...s],location:ye()}:a},Hb=function(a){return{type:"Filter",filter:a,location:ye()}},Jb=function(a,s){return{functionRef:a,args:s.list,location:ye()}},zb=function(){return{list:[]}},jb=function(a,s,u){return{distinct:!!a,list:[s,...u]}},$b=function(){return[]},qb=function(a,s){return[a,...s]},Kb=function(a){return a},e0=function(a,s){let u=[a];return s&&s[3]&&(u=u.concat(s[3].triplePattern)),{triplePattern:u,location:ye()}},t0=function(a,s){return{subject:a,properties:s}},i0=function(a,s){return{subject:a,properties:s}},r0=function(a,s,u){let l=[];return l.push({predicate:a,objects:s}),u.forEach(h=>{h[3]&&l.push({predicate:h[3][0],objects:h[3][2]})}),l},o0=function(){return{a:!0,location:ye()}},s0=function(a,s){return[a,...s]},n0=function(a,s){return{subject:a,properties:s}},a0=function(a,s){return{subject:a,properties:s}},l0=function(a,s,u){let l=[];return l.push({predicate:a,objects:s}),u.forEach(h=>{h[3]&&l.push({predicate:h[3][0],objects:h[3][2]})}),l},c0=function(a,s){return[a,...s]},h0=function(a,s){if(s.length){let u=[a];for(let l=0;l<s.length;l++)u.push(s[l][3]);return{alternative:u,location:ye()}}else return a},p0=function(a,s){if(s.length){let u=[a];for(let l=0;l<s.length;l++)u.push(s[l][3]);return{sequence:u,location:ye()}}else return a},u0=function(a,s){return s&&(a.modifier=s),a},f0=function(a){return a.inverse=!0,a},d0=function(){return{a:!0,location:ye()}},g0=function(a){return{bracketted:!0,...a}},m0=function(a){return{collection:a,location:ye()}},b0=function(a){return{blankNodeProperties:a,location:ye()}},w0=function(a){return{collection:a,location:ye()}},x0=function(a){return{blankNodeProperties:a,location:ye()}},v0=function(a){return a},y0=function(a){return a},E0=function(a){return a},C0=function(a){return a},I0=function(a){return{...a,location:ye()}},A0=function(a,s){return s.length?{expressionType:"conditionalor",operands:[a,...s]}:a},N0=function(a,s){return s.length?{expressionType:"conditionaland",operands:[a,...s]}:a},R0=function(a,s){if(s.length){let u=a,l=s[0][1].toUpperCase(),h=s[0][3];return l==="NOT"&&(l+=" "+s[0][3].toUpperCase(),h=s[0][5]),{expressionType:"relationalexpression",operator:l,op1:u,op2:h}}else return a},T0=function(a,s){if(s.length===0)return a;let u=[];return s.forEach(l=>{l.length==4&&u.push({operator:l[1],expression:l[3]})}),{expressionType:"additiveexpression",op1:a,ops:u}},S0=function(a,s){return s.length?{expressionType:"multiplicativeexpression",first:a,rest:s.map(u=>({operator:u[1],expression:u[3]}))}:a},L0=function(a){return{expressionType:"unaryexpression",unaryexpression:"!",expression:a}},B0=function(a){return{expressionType:"unaryexpression",unaryexpression:"+",expression:a}},k0=function(a){return{expressionType:"unaryexpression",unaryexpression:"-",expression:a}},V0=function(a){return{expressionType:"atomic",value:a}},F0=function(a){return{expressionType:"atomic",value:a}},U0=function(a){return{expressionType:"atomic",value:a}},_0=function(a){return{expressionType:"atomic",value:a}},O0=function(a){return{bracketted:!0,...a}},G0=function(a){return{expressionType:"builtincall",builtincall:"str",args:[a]}},Z0=function(a){return{expressionType:"builtincall",builtincall:"lang",args:[a]}},M0=function(a,s){return{expressionType:"builtincall",builtincall:"langMatches",args:[a,s]}},W0=function(a){return{expressionType:"builtincall",builtincall:"datatype",args:[a]}},D0=function(a){return{expressionType:"builtincall",builtincall:"bound",args:[a]}},P0=function(a){return{expressionType:"builtincall",builtincall:"IRI",args:[a]}},Q0=function(a){return{expressionType:"builtincall",builtincall:"URI",args:[a]}},X0=function(a){let s={expressionType:"builtincall",builtincall:"BNODE",args:null};return a.length===5&&(s.args=[a[2]]),s},Y0=function(){return{expressionType:"builtincall",builtincall:"rand"}},H0=function(a){return{expressionType:"builtincall",builtincall:"abs",args:[a]}},J0=function(a){return{expressionType:"builtincall",builtincall:"ceil",args:[a]}},z0=function(a){return{expressionType:"builtincall",builtincall:"floor",args:[a]}},j0=function(a){return{expressionType:"builtincall",builtincall:"round",args:[a]}},$0=function(a){return{expressionType:"builtincall",builtincall:"CONCAT",args:a}},q0=function(a){return{expressionType:"builtincall",builtincall:"STRLEN",args:[a]}},K0=function(a){return{expressionType:"builtincall",builtincall:"UCASE",args:[a]}},ew=function(a){return{expressionType:"builtincall",builtincall:"LCASE",args:[a]}},tw=function(a){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[a]}},iw=function(a,s){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[a,s]}},rw=function(a,s){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[a,s]}},ow=function(a,s){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[a,s]}},sw=function(a,s){return{expressionType:"builtincall",builtincall:"STRENDS",args:[a,s]}},nw=function(a,s){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[a,s]}},aw=function(a){return{expressionType:"builtincall",builtincall:"year",args:[a]}},lw=function(a){return{expressionType:"builtincall",builtincall:"month",args:[a]}},cw=function(a){return{expressionType:"builtincall",builtincall:"day",args:[a]}},hw=function(a){return{expressionType:"builtincall",builtincall:"hours",args:[a]}},pw=function(a){return{expressionType:"builtincall",builtincall:"minutes",args:[a]}},uw=function(a){return{expressionType:"builtincall",builtincall:"seconds",args:[a]}},fw=function(a){return{expressionType:"builtincall",builtincall:"timezone",args:[a]}},dw=function(a){return{expressionType:"builtincall",builtincall:"tz",args:[a]}},gw=function(){return{expressionType:"builtincall",builtincall:"now"}},mw=function(){return{expressionType:"builtincall",builtincall:"UUID"}},bw=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},ww=function(a){return{expressionType:"builtincall",builtincall:"MD5",args:[a]}},xw=function(a){return{expressionType:"builtincall",builtincall:"SHA1",args:[a]}},vw=function(a){return{expressionType:"builtincall",builtincall:"SHA256",args:[a]}},yw=function(a){return{expressionType:"builtincall",builtincall:"SHA384",args:[a]}},Ew=function(a){return{expressionType:"builtincall",builtincall:"SHA512",args:[a]}},Cw=function(a){return{expressionType:"builtincall",builtincall:"COALESCE",args:a}},Iw=function(a,s,u){return{expressionType:"builtincall",builtincall:"IF",args:[a,s,u]}},Aw=function(a,s){return{expressionType:"builtincall",builtincall:"STRLANG",args:[a,s]}},Nw=function(a,s){return{expressionType:"builtincall",builtincall:"STRDT",args:[a,s]}},Rw=function(a,s){return{expressionType:"builtincall",builtincall:"sameTerm",args:[a,s]}},Tw=function(a){return{expressionType:"builtincall",builtincall:"isURI",args:[a]}},Sw=function(a){return{expressionType:"builtincall",builtincall:"isBlank",args:[a]}},Lw=function(a){return{expressionType:"builtincall",builtincall:"isLiteral",args:[a]}},Bw=function(a){return{expressionType:"builtincall",builtincall:"isNumeric",args:[a]}},kw=function(a,s,u){let l={expressionType:"regex",text:a,pattern:s};return u&&(l.flags=u[2]),l},Vw=function(a,s,u){let l=[a,s];return u&&l.push(u[2]),{expressionType:"builtincall",builtincall:"substr",args:l}},Fw=function(a,s,u,l){let h=[a,s,u];return l&&h.push(l[2]),{expressionType:"builtincall",builtincall:"replace",args:h}},Uw=function(a){return{exists:a.graphPattern||a}},_w=function(a){return{notexists:a.graphPattern||a}},Ow=function(a,s){return{expressionType:"aggregate",aggregateType:"count",distinct:!!a,expression:s}},Gw=function(a,s){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!a,expression:s}},Zw=function(a,s){return{expressionType:"aggregate",aggregateType:"min",distinct:!!a,expression:s}},Mw=function(a,s){return{expressionType:"aggregate",aggregateType:"max",distinct:!!a,expression:s}},Ww=function(a,s){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!a,expression:s}},Dw=function(a,s){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!a,expression:s}},Pw=function(a,s,u){let l=null;return u?.length&&(l=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:s,separator:l,distinct:!!a}},Qw=function(a,s){let u={expressionType:"irireforfunction",iriref:a};return s&&(u.args=s.list),u},Xw=function(a,s){return typeof s=="string"?a.lang=s:s&&(a.dataType=s[1]),a.location=ye(),a},Yw=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Hw=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Jw=function(a){return{type:"IRIref",iriref:a,location:ye()}},zw=function(a){return a},jw=function(a){return{type:"PrefixedName",pn_prefix:a.pn_prefix,pn_local:a.pn_local,location:ye()}},$w=function(a){return{type:"PrefixedName",pn_prefix:a,location:ye()}},qw=function(a){return{blankNode:a,location:ye()}},Kw=function(){return{blankNode:"[]",location:ye()}},ex=function(a){return a.join("")},tx=function(a){return a||""},ix=function(a,s){return{pn_prefix:a,pn_local:s}},rx=function(){return Zt()},ox=function(a){return{type:"Var",varType:"VAR1",varname:a}},sx=function(a){return{type:"Var",varType:"VAR2",varname:a}},nx=function(a,s){let u=a.join("");return s.length&&(u+="-"+s[0][1].join("")),u.toLowerCase()},ax=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Zt()}},lx=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Zt()}},cx=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zt()}},hx=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zt()}},px=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zt()}},ux=function(a){return a.literal="+"+a.literal,a},fx=function(a){return a.literal="+"+a.literal,a},dx=function(a){return a.literal="+"+a.literal,a},gx=function(a){return a.literal="-"+a.literal,a},mx=function(a){return a.literal="-"+a.literal,a},bx=function(a){return a.literal="-"+a.literal,a},wx=function(a){return{quote:"'",literal:a.join("")}},xx=function(a){return{quote:'"',literal:a.join("")}},vx=function(a){return{quote:"'''",literal:a.map(s=>s[0]?s[0]+s[1]:s[1]).join("")}},yx=function(a){return{quote:'"""',literal:a.map(s=>s[0]?s[0]+s[1]:s[1]).join("")}},Ex=function(){return Zt()},Cx=function(){return Zt()},Ix=function(){return eu[ye().start.offset]=Zt(),""},Ax=function(){return Zt()},Nx=function(){return Zt()},Rx=function(){return Zt()},r=0,_=0,nn=[{line:1,column:1}],mi=0,Ha=[],I=0,an;if("startRule"in t){if(!(t.startRule in n))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');c=n[t.startRule]}function Zt(){return i.substring(_,r)}function p2(){return _}function u2(){return{source:o,start:_,end:r}}function ye(){return Jo(_,r)}function f2(a,s){throw s=s!==void 0?s:Jo(_,r),vp([Sx(a)],i.substring(_,r),s)}function d2(a,s){throw s=s!==void 0?s:Jo(_,r),Lx(a,s)}function M(a,s){return{type:"literal",text:a,ignoreCase:s}}function Ue(a,s,u){return{type:"class",parts:a,inverted:s,ignoreCase:u}}function g2(){return{type:"any"}}function Tx(){return{type:"end"}}function Sx(a){return{type:"other",description:a}}function xp(a){var s=nn[a],u;if(s)return s;for(u=a-1;!nn[u];)u--;for(s=nn[u],s={line:s.line,column:s.column};u<a;)i.charCodeAt(u)===10?(s.line++,s.column=1):s.column++,u++;return nn[a]=s,s}function Jo(a,s,u){var l=xp(a),h=xp(s),m={source:o,start:{offset:a,line:l.line,column:l.column},end:{offset:s,line:h.line,column:h.column}};return u&&o&&typeof o.offset=="function"&&(m.start=o.offset(m.start),m.end=o.offset(m.end)),m}function C(a){r<mi||(r>mi&&(mi=r,Ha=[]),Ha.push(a))}function Lx(a,s){return new rc(a,null,null,s)}function vp(a,s,u){return new rc(rc.buildMessage(a,s),a,s,u)}function yp(){var a,s,u,l,h,m;for(a=r,s=[],u=jp();u!==e;)s.push(u),u=jp();for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=Bx(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=a,a=Sm(s,l)}else r=a,a=e;return a}function Bx(){var a;return a=kx(),a===e&&(a=kp()),a}function kx(){var a,s,u,l,h;for(a=r,s=Ep(),u=[],l=d();l!==e;)u.push(l),l=d();return l=Vx(),l===e&&(l=Ux(),l===e&&(l=_x(),l===e&&(l=Ox()))),l!==e?(h=Bp(),_=a,a=Lm(s,l,h)):(r=a,a=e),a}function Ep(){var a,s,u;for(a=r,s=[],u=Cp(),u===e&&(u=Ip());u!==e;)s.push(u),u=Cp(),u===e&&(u=Ip());return _=a,s=Bm(s),a=s,a}function Cp(){var a,s,u,l,h;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,4).toLowerCase()===g?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Dn)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=fl(),h!==e?(_=a,a=km(h)):(r=a,a=e)}else r=a,a=e;return a}function Ip(){var a,s,u,l,h,m,b;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,6).toLowerCase()===w?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Po)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=dl(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=fl(),b!==e?(_=a,a=Vm(h,b)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function Vx(){var a,s,u,l,h,m,b,x;if(a=r,s=Ap(),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(l=[],h=bi();h!==e;)l.push(h),h=bi();for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=zo(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=ro(),_=a,a=Fm(s,l,m,x)}else r=a,a=e}else r=a,a=e;return a}function Fx(){var a,s,u,l,h,m,b;if(a=r,s=Ap(),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=zo(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=ro(),b=Bp(),_=a,a=Um(s,l,m,b)}else r=a,a=e}else r=a,a=e;return a}function Ap(){var a,s,u,l,h,m,b,x,E,B,V,O,D,q,he,be,Fe;if(a=r,i.substr(r,6).toLowerCase()===y?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(_h)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,8).toLowerCase()===A?(l=i.substr(r,8),r+=8):(l=e,I===0&&C(Gt)),l===e&&(i.substr(r,7).toLowerCase()===R?(l=i.substr(r,7),r+=7):(l=e,I===0&&C(sr))),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();for(m=[],b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(E=ft(),E!==e?(x=[x,E],b=x):(r=b,b=e),b===e){for(b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===40?(E=T,r++):(E=e,I===0&&C(ie)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();if(i.substr(r,2).toLowerCase()===F?(D=i.substr(r,2),r+=2):(D=e,I===0&&C(Eo)),D!==e){for(q=[],he=d();he!==e;)q.push(he),he=d();if(he=ft(),he!==e){for(be=[],Fe=d();Fe!==e;)be.push(Fe),Fe=d();i.charCodeAt(r)===41?(Fe=k,r++):(Fe=e,I===0&&C(oe)),Fe!==e?(x=[x,E,B,V,O,D,q,he,be,Fe],b=x):(r=b,b=e)}else r=b,b=e}else r=b,b=e}else r=b,b=e}else r=b,b=e}if(b!==e)for(;b!==e;){for(m.push(b),b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(E=ft(),E!==e?(x=[x,E],b=x):(r=b,b=e),b===e){for(b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===40?(E=T,r++):(E=e,I===0&&C(ie)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();if(i.substr(r,2).toLowerCase()===F?(D=i.substr(r,2),r+=2):(D=e,I===0&&C(Eo)),D!==e){for(q=[],he=d();he!==e;)q.push(he),he=d();if(he=ft(),he!==e){for(be=[],Fe=d();Fe!==e;)be.push(Fe),Fe=d();i.charCodeAt(r)===41?(Fe=k,r++):(Fe=e,I===0&&C(oe)),Fe!==e?(x=[x,E,B,V,O,D,q,he,be,Fe],b=x):(r=b,b=e)}else r=b,b=e}else r=b,b=e}else r=b,b=e}else r=b,b=e}}else m=e;m===e&&(i.charCodeAt(r)===42?(m=G,r++):(m=e,I===0&&C(St))),m!==e?(_=a,a=_m(l,m)):(r=a,a=e)}else r=a,a=e;return a}function Ux(){var a,s,u,l,h,m,b,x,E,B,V,O,D,q;if(a=r,i.substr(r,9).toLowerCase()===W?(s=i.substr(r,9),r+=9):(s=e,I===0&&C($s)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=dv(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(m=[],b=bi();b!==e;)m.push(b),b=bi();for(b=[],x=d();x!==e;)b.push(x),x=d();if(x=zo(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=ro(),_=a,a=Om(l,m,x,B)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e)if(a=r,i.substr(r,9).toLowerCase()===W?(s=i.substr(r,9),r+=9):(s=e,I===0&&C($s)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(l=[],h=bi();h!==e;)l.push(h),h=bi();for(h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,5).toLowerCase()===P?(m=i.substr(r,5),r+=5):(m=e,I===0&&C(Qo)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===123?(x=Q,r++):(x=e,I===0&&C(Ri)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();for(B=so(),B===e&&(B=null),V=[],O=d();O!==e;)V.push(O),O=d();if(i.charCodeAt(r)===125?(O=H,r++):(O=e,I===0&&C(Ci)),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();q=ro(),_=a,a=Gm(l,B,q)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function _x(){var a,s,u,l,h,m,b,x,E,B;if(a=r,i.substr(r,8).toLowerCase()===re?(s=i.substr(r,8),r+=8):(s=e,I===0&&C(Oh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=[],h=ao(),h!==e)for(;h!==e;)l.push(h),h=ao();else l=e;if(l===e&&(i.charCodeAt(r)===42?(l=G,r++):(l=e,I===0&&C(St))),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(m=[],b=bi();b!==e;)m.push(b),b=bi();for(b=[],x=d();x!==e;)b.push(x),x=d();for(x=zo(),x===e&&(x=null),E=[],B=d();B!==e;)E.push(B),B=d();B=ro(),_=a,a=Zm(l,m,x,B)}else r=a,a=e}else r=a,a=e;return a}function Ox(){var a,s,u,l,h,m,b,x,E;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,3).toLowerCase()===K?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(br)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=[],m=bi();m!==e;)h.push(m),m=bi();for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=zo(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=ro(),_=a,a=Mm(h,b,E)}else r=a,a=e}else r=a,a=e;return a}function bi(){var a,s,u,l,h,m;if(a=r,i.substr(r,4).toLowerCase()===J?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(bs)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=Gx(),l===e&&(l=Zx()),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=a,a=Wm(l)}else r=a,a=e}else r=a,a=e;return a}function Gx(){var a,s,u;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();return u=mt(),u!==e?(_=a,a=Dm(u)):(r=a,a=e),a}function Zx(){var a,s,u,l;if(a=r,i.substr(r,5).toLowerCase()===te?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(qs)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=mt(),l!==e?(_=a,a=Pm(l)):(r=a,a=e)}else r=a,a=e;return a}function zo(){var a,s,u,l;for(a=r,i.substr(r,5).toLowerCase()===P?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Qo)),s===e&&(s=null),u=[],l=d();l!==e;)u.push(l),l=d();return l=ii(),l!==e?(_=a,a=Qm(l)):(r=a,a=e),a}function ro(){var a,s,u,l,h;return a=r,s=Mx(),s===e&&(s=null),u=Wx(),u===e&&(u=null),l=Dx(),l===e&&(l=null),h=Px(),h===e&&(h=null),_=a,a=Xm(s,u,l,h),a}function Mx(){var a,s,u,l,h,m,b;if(a=r,i.substr(r,5).toLowerCase()===ae?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Kr)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,2).toLowerCase()===me?(l=i.substr(r,2),r+=2):(l=e,I===0&&C(Ga)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=[],b=Np(),b!==e)for(;b!==e;)m.push(b),b=Np();else m=e;m!==e?(_=a,a=Ym(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function Np(){var a,s,u,l,h,m,b,x,E,B,V;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(u=al(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();_=a,a=Hm(u)}else r=a,a=e;if(a===e){for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(u=Dp(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();_=a,a=Jm(u)}else r=a,a=e;if(a===e){for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=$(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=r,i.substr(r,2).toLowerCase()===F?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Eo)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=ft(),B!==e?(x=[x,E,B],b=x):(r=b,b=e)}else r=b,b=e;for(b===e&&(b=null),x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();_=a,a=zm(h,b)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(u=ft(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();_=a,a=jm(u)}else r=a,a=e}}}return a}function Wx(){var a,s,u,l,h;if(a=r,i.substr(r,6).toLowerCase()===Ee?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(ws)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=[],h=Rp(),h!==e)for(;h!==e;)l.push(h),h=Rp();else l=e;l!==e?(_=a,a=$m(l)):(r=a,a=e)}else r=a,a=e;return a}function Rp(){var a,s,u,l;if(a=r,s=ja(),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();_=a,a=qm(s)}else r=a,a=e;return a}function Dx(){var a,s,u,l,h,m,b,x;if(a=r,i.substr(r,5).toLowerCase()===Pe?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Gh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,2).toLowerCase()===me?(l=i.substr(r,2),r+=2):(l=e,I===0&&C(Ga)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=[],b=Tp(),b!==e)for(;b!==e;)m.push(b),b=Tp();else m=e;if(m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();_=a,a=Km(m)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function Tp(){var a,s,u,l,h,m;if(a=r,i.substr(r,3).toLowerCase()===Re?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Ks)),s===e&&(i.substr(r,4).toLowerCase()===Ie?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(gc))),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=nl(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=a,a=eb(s,l)}else r=a,a=e}else r=a,a=e;if(a===e)if(a=r,s=ja(),s===e&&(s=ft()),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();_=a,a=tb(s)}else r=a,a=e;return a}function Px(){var a,s,u,l;return a=r,s=r,u=Sp(),u!==e?(l=Lp(),l===e&&(l=null),u=[u,l],s=u):(r=s,s=e),s===e&&(s=r,u=Lp(),u!==e?(l=Sp(),l===e&&(l=null),u=[u,l],s=u):(r=s,s=e)),s!==e&&(_=a,s=ib(s)),a=s,a}function Sp(){var a,s,u,l,h,m;if(a=r,i.substr(r,5).toLowerCase()===Ye?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Pn)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=Ko(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=a,a=rb(l)}else r=a,a=e}else r=a,a=e;return a}function Lp(){var a,s,u,l,h,m;if(a=r,i.substr(r,6).toLowerCase()===Oe?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(Zh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=Ko(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=a,a=ob(l)}else r=a,a=e}else r=a,a=e;return a}function Bp(){var a,s,u,l;return a=r,s=r,i.substr(r,6).toLowerCase()===de?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Zr)),u!==e?(l=Mp(),l!==e?(u=[u,l],s=u):(r=s,s=e)):(r=s,s=e),s===e&&(s=null),_=a,s=sb(s),a=s,a}function kp(){var a,s,u,l,h,m,b,x,E,B;for(a=r,s=Ep(),u=r,l=[],h=d();h!==e;)l.push(h),h=d();if(h=Qx(),h!==e){for(m=r,b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===59?(x=ue,r++):(x=e,I===0&&C(Ii)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=kp(),b=[b,x,E,B],m=b}else r=m,m=e;m===e&&(m=null),l=[l,h,m],u=l}else r=u,u=e;for(u===e&&(u=null),l=[],h=d();h!==e;)l.push(h),h=d();return _=a,a=nb(s,u),a}function Qx(){var a;return a=Xx(),a===e&&(a=Yx(),a===e&&(a=Hx(),a===e&&(a=zx(),a===e&&(a=jx(),a===e&&(a=$x(),a===e&&(a=Jx(),a===e&&(a=qx(),a===e&&(a=Kx(),a===e&&(a=ev(),a===e&&(a=tv())))))))))),a}function Xx(){var a,s,u,l,h,m,b,x,E,B,V;if(a=r,i.substr(r,4).toLowerCase()===dt?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(Mh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,6).toLowerCase()===ce?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(di)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();if(m=mt(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(x=r,i.substr(r,4).toLowerCase()===Be?(E=i.substr(r,4),r+=4):(E=e,I===0&&C(Wh)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Ja(),V!==e?(E=[E,B,V],x=E):(r=x,x=e)}else r=x,x=e;x===e&&(x=null),_=a,a=ab(l,m,x)}else r=a,a=e}else r=a,a=e;return a}function Yx(){var a,s,u,l,h,m;if(a=r,i.substr(r,5).toLowerCase()===qe?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(eo)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,6).toLowerCase()===ce?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(di)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();m=Up(),m!==e?(_=a,a=lb(l,m)):(r=a,a=e)}else r=a,a=e;return a}function Hx(){var a,s,u,l,h,m;if(a=r,i.substr(r,4).toLowerCase()===Xe?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(Dh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,6).toLowerCase()===ce?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(di)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();m=Up(),m!==e?(_=a,a=cb(l,m)):(r=a,a=e)}else r=a,a=e;return a}function Jx(){var a,s,u,l,h,m;if(a=r,i.substr(r,6).toLowerCase()===ve?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(xs)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,6).toLowerCase()===ce?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(di)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();m=Ja(),m!==e?(_=a,a=hb(l,m)):(r=a,a=e)}else r=a,a=e;return a}function zx(){var a,s,u,l,h,m,b,x,E,B;if(a=r,i.substr(r,3).toLowerCase()===fe?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Ph)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,6).toLowerCase()===ce?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(di)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();if(m=oo(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.substr(r,2).toLowerCase()===Le?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ji)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=oo(),B!==e?(_=a,a=pb(l,m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function jx(){var a,s,u,l,h,m,b,x,E,B;if(a=r,i.substr(r,4).toLowerCase()===_e?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(Qn)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,6).toLowerCase()===ce?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(di)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();if(m=oo(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.substr(r,2).toLowerCase()===Le?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ji)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=oo(),B!==e?(_=a,a=ub(l,m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function $x(){var a,s,u,l,h,m,b,x,E,B;if(a=r,i.substr(r,4).toLowerCase()===bt?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(mc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,6).toLowerCase()===ce?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(di)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();if(m=oo(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.substr(r,2).toLowerCase()===Le?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ji)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=oo(),B!==e?(_=a,a=fb(l,m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function qx(){var a,s,u,l,h,m;if(a=r,i.substr(r,6).toLowerCase()===$t?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(en)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,4).toLowerCase()===Fi?(l=i.substr(r,4),r+=4):(l=e,I===0&&C(vs)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=_p(),m!==e?(_=a,a=db(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function Kx(){var a,s,u,l,h;if(a=r,i.substr(r,6).toLowerCase()===Ki?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(Xo)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();i.substr(r,4).toLowerCase()===Fi?(l=i.substr(r,4),r+=4):(l=e,I===0&&C(vs)),l!==e?(h=_p(),h!==e?(_=a,a=gb(h)):(r=a,a=e)):(r=a,a=e)}else r=a,a=e;return a}function ev(){var a,s,u,l,h,m;if(a=r,i.substr(r,6).toLowerCase()===Ki?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(Xo)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,5).toLowerCase()===P?(l=i.substr(r,5),r+=5):(l=e,I===0&&C(Qo)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=za(),m!==e?(_=a,a=mb(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function tv(){var a,s,u,l,h,m,b,x,E,B,V;if(a=r,s=r,i.substr(r,4).toLowerCase()===ur?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Xn)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=mt(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();u=[u,l,h,m],s=u}else r=s,s=e}else r=s,s=e;if(s===e&&(s=null),u=r,l=iv(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=Vp(),m===e&&(m=null),l=[l,h,m],u=l}else r=u,u=e;if(u===e&&(u=Vp()),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=[],m=Fp();m!==e;)h.push(m),m=Fp();for(m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,5).toLowerCase()===P?(b=i.substr(r,5),r+=5):(b=e,I===0&&C(Qo)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(E=ii(),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();_=a,a=bb(s,u,h,E)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function iv(){var a,s,u;return a=r,i.substr(r,6).toLowerCase()===Ki?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(Xo)),s!==e?(u=za(),u!==e?(_=a,a=wb(u)):(r=a,a=e)):(r=a,a=e),a}function Vp(){var a,s,u;return a=r,i.substr(r,6).toLowerCase()===$t?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(en)),s!==e?(u=za(),u!==e?(_=a,a=xb(u)):(r=a,a=e)):(r=a,a=e),a}function Fp(){var a,s,u,l,h,m,b,x;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,5).toLowerCase()===Ve?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ys)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=mt(),h===e)if(h=r,i.substr(r,5).toLowerCase()===te?(m=i.substr(r,5),r+=5):(m=e,I===0&&C(qs)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=mt(),x!==e?(m=[m,b,x],h=m):(r=h,h=e)}else r=h,h=e;h!==e?(_=a,a=vb(h)):(r=a,a=e)}else r=a,a=e;return a}function oo(){var a,s,u,l;if(a=r,i.substr(r,7).toLowerCase()===ne?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(Es)),s!==e&&(_=a,s=yb()),a=s,a===e){for(a=r,i.substr(r,5).toLowerCase()===It?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(to)),s===e&&(s=null),u=[],l=d();l!==e;)u.push(l),l=d();l=mt(),l!==e?(_=a,a=Eb(l)):(r=a,a=e)}return a}function Ja(){var a,s,u,l;if(a=r,i.substr(r,5).toLowerCase()===It?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(to)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=mt(),l!==e?(_=a,a=Cb(l)):(r=a,a=e)}else r=a,a=e;return a}function Up(){var a,s;return a=r,s=Ja(),s!==e&&(_=a,s=Ib(s)),a=s,a===e&&(a=r,i.substr(r,7).toLowerCase()===ne?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(Es)),s!==e&&(_=a,s=Ab()),a=s,a===e&&(a=r,i.substr(r,5).toLowerCase()===te?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(qs)),s!==e&&(_=a,s=Nb()),a=s,a===e&&(a=r,i.substr(r,3).toLowerCase()===qt?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(bc)),s!==e&&(_=a,s=Rb()),a=s))),a}function za(){var a,s,u,l,h,m,b,x,E;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.charCodeAt(r)===123?(u=Q,r++):(u=e,I===0&&C(Ri)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=Op(),m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===125?(b=H,r++):(b=e,I===0&&C(Ci)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();_=a,a=Tb(h)}else r=a,a=e}else r=a,a=e;return a}function _p(){var a,s,u,l,h,m,b,x,E;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.charCodeAt(r)===123?(u=Q,r++):(u=e,I===0&&C(Ri)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=Op(),m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===125?(b=H,r++):(b=e,I===0&&C(Ci)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();_=a,a=Sb(h)}else r=a,a=e}else r=a,a=e;return a}function Op(){var a,s,u,l,h,m,b;for(a=r,s=so(),s===e&&(s=null),u=[],l=r,h=Gp(),h!==e?(i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m===e&&(m=null),b=so(),b===e&&(b=null),h=[h,m,b],l=h):(r=l,l=e);l!==e;)u.push(l),l=r,h=Gp(),h!==e?(i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m===e&&(m=null),b=so(),b===e&&(b=null),h=[h,m,b],l=h):(r=l,l=e);return _=a,a=Lb(s,u),a}function Gp(){var a,s,u,l,h,m,b,x,E,B,V,O,D;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,5).toLowerCase()===It?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(to)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=ao(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===123?(b=Q,r++):(b=e,I===0&&C(Ri)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();for(E=so(),E===e&&(E=null),B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===125?(V=H,r++):(V=e,I===0&&C(Ci)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();_=a,a=Bb(h,E)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function so(){var a,s,u,l,h,m,b;if(a=r,s=Xp(),s!==e){for(u=r,l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===46?(h=De,r++):(h=e,I===0&&C(ut)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=so(),b===e&&(b=null),l=[l,h,m,b],u=l}else r=u,u=e;u===e&&(u=null),_=a,a=kb(s,u)}else r=a,a=e;return a}function ii(){var a,s,u,l,h,m;if(a=r,i.charCodeAt(r)===123?(s=Q,r++):(s=e,I===0&&C(Ri)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=Fx(),l===e&&(l=rv()),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();i.charCodeAt(r)===125?(m=H,r++):(m=e,I===0&&C(Ci)),m!==e?(_=a,a=Vb(l)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function rv(){var a,s,u,l,h,m,b,x,E,B;for(a=r,s=ln(),s===e&&(s=null),u=[],l=d();l!==e;)u.push(l),l=d();if(l=[],h=r,m=Zp(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();for(i.charCodeAt(r)===46?(x=De,r++):(x=e,I===0&&C(ut)),x===e&&(x=null),E=[],B=d();B!==e;)E.push(B),B=d();B=ln(),B===e&&(B=null),m=[m,b,x,E,B],h=m}else r=h,h=e;for(;h!==e;)if(l.push(h),h=r,m=Zp(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();for(i.charCodeAt(r)===46?(x=De,r++):(x=e,I===0&&C(ut)),x===e&&(x=null),E=[],B=d();B!==e;)E.push(B),B=d();B=ln(),B===e&&(B=null),m=[m,b,x,E,B],h=m}else r=h,h=e;return _=a,a=Fb(s,l),a}function ln(){var a,s,u,l,h,m,b;if(a=r,s=mv(),s!==e){for(u=r,l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===46?(h=De,r++):(h=e,I===0&&C(ut)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=ln(),b===e&&(b=null),l=[l,h,m,b],u=l}else r=u,u=e;u===e&&(u=null),_=a,a=Ub(s,u)}else r=a,a=e;return a}function Zp(){var a;return a=uv(),a===e&&(a=ov(),a===e&&(a=pv(),a===e&&(a=sv(),a===e&&(a=nv(),a===e&&(a=fv(),a===e&&(a=av(),a===e&&(a=lv()))))))),a}function ov(){var a,s,u,l,h;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,8).toLowerCase()===oi?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Yn)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=ii(),h!==e?(_=a,a=_b(h)):(r=a,a=e)}else r=a,a=e;return a}function sv(){var a,s,u,l,h,m,b;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,5).toLowerCase()===It?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(to)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=ao(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=ii(),b!==e?(_=a,a=Ob(h,b)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function nv(){var a,s,u,l,h,m,b,x;if(a=r,i.substr(r,7).toLowerCase()===Fo?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(Qh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,6).toLowerCase()===ce?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(di)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();if(m=ao(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=ii(),x!==e?(_=a,a=Gb(l,m,x)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function av(){var a,s,u,l,h,m,b,x,E,B,V,O,D;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,4).toLowerCase()===je?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(wc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.substr(r,2).toLowerCase()===F?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Eo)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=ft(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=a,a=Zb(b,V)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function lv(){var a,s,u,l,h;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,6).toLowerCase()===de?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Zr)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=Mp(),h!==e?(_=a,a=Mb(h)):(r=a,a=e)}else r=a,a=e;return a}function Mp(){var a;return a=cv(),a===e&&(a=hv()),a}function cv(){var a,s,u,l,h,m,b,x;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(u=ft(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===123?(h=Q,r++):(h=e,I===0&&C(Ri)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(b=[],x=cn();x!==e;)b.push(x),x=cn();i.charCodeAt(r)===125?(x=H,r++):(x=e,I===0&&C(Ci)),x!==e?(_=a,a=Wb(u,b)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function hv(){var a,s,u,l,h,m,b,x,E,B,V;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=[],m=ft();m!==e;)h.push(m),m=ft();if(i.charCodeAt(r)===41?(m=k,r++):(m=e,I===0&&C(oe)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===123?(x=Q,r++):(x=e,I===0&&C(Ri)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();for(B=[],V=Wp();V!==e;)B.push(V),V=Wp();i.charCodeAt(r)===125?(V=H,r++):(V=e,I===0&&C(Ci)),V!==e?(_=a,a=Db(h,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function Wp(){var a,s,u,l,h,m,b;if(a=r,i.charCodeAt(r)===40?(s=T,r++):(s=e,I===0&&C(ie)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(l=[],h=cn();h!==e;)l.push(h),h=cn();if(i.charCodeAt(r)===41?(h=k,r++):(h=e,I===0&&C(oe)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();_=a,a=Pb(l)}else r=a,a=e}else r=a,a=e;return a}function cn(){var a,s,u,l;if(a=r,s=mt(),s===e&&(s=ll(),s===e&&(s=cl(),s===e&&(s=ul(),s===e&&(i.substr(r,5)===Ui?(s=Ui,r+=5):(s=e,I===0&&C(Xh)))))),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();_=a,a=Qb(s)}else r=a,a=e;return a}function pv(){var a,s,u,l;if(a=r,i.substr(r,5).toLowerCase()===si?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(xc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=ii(),l!==e?(_=a,a=Xb(l)):(r=a,a=e)}else r=a,a=e;return a}function uv(){var a,s,u,l,h,m,b,x;if(a=r,s=ii(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,5).toLowerCase()===pi?(m=i.substr(r,5),r+=5):(m=e,I===0&&C(Za)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=ii(),x!==e?l=x:(r=l,l=e)}else r=l,l=e;for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,5).toLowerCase()===pi?(m=i.substr(r,5),r+=5):(m=e,I===0&&C(Za)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=ii(),x!==e?l=x:(r=l,l=e)}else r=l,l=e}_=a,a=Yb(s,u)}else r=a,a=e;return a}function fv(){var a,s,u,l,h;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.substr(r,6).toLowerCase()===Uo?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Mr)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=ja(),h!==e?(_=a,a=Hb(h)):(r=a,a=e)}else r=a,a=e;return a}function ja(){var a;return a=nl(),a===e&&(a=al(),a===e&&(a=Dp())),a}function Dp(){var a,s,u,l;if(a=r,s=mt(),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=Pp(),l!==e?(_=a,a=Jb(s,l)):(r=a,a=e)}else r=a,a=e;return a}function Pp(){var a,s,u,l,h,m,b,x,E,B,V,O;if(a=r,s=ji(),s!==e&&(_=a,s=zb()),a=s,a===e)if(a=r,i.charCodeAt(r)===40?(s=T,r++):(s=e,I===0&&C(ie)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(i.substr(r,8).toLowerCase()===A?(l=i.substr(r,8),r+=8):(l=e,I===0&&C(Gt)),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(x=[],E=r,i.charCodeAt(r)===44?(B=Ge,r++):(B=e,I===0&&C(We)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=$(),O!==e?E=O:(r=E,E=e)}else r=E,E=e;for(;E!==e;)if(x.push(E),E=r,i.charCodeAt(r)===44?(B=Ge,r++):(B=e,I===0&&C(We)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=$(),O!==e?E=O:(r=E,E=e)}else r=E,E=e;i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=a,a=jb(l,m,x)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function no(){var a,s,u,l,h,m,b,x,E,B,V,O;if(a=r,s=ji(),s!==e&&(_=a,s=$b()),a=s,a===e)if(a=r,i.charCodeAt(r)===40?(s=T,r++):(s=e,I===0&&C(ie)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=$(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=[],b=r,i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();b=B}else r=b,b=e}else r=b,b=e;for(;b!==e;)if(m.push(b),b=r,i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();b=B}else r=b,b=e}else r=b,b=e;i.charCodeAt(r)===41?(b=k,r++):(b=e,I===0&&C(oe)),b!==e?(_=a,a=qb(l,m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function dv(){var a,s,u,l,h,m;if(a=r,i.charCodeAt(r)===123?(s=Q,r++):(s=e,I===0&&C(Ri)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();for(l=Qp(),l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();i.charCodeAt(r)===125?(m=H,r++):(m=e,I===0&&C(Ci)),m!==e?(_=a,a=Kb(l)):(r=a,a=e)}else r=a,a=e;return a}function Qp(){var a,s,u,l,h,m,b;if(a=r,s=Xp(),s!==e){for(u=r,l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===46?(h=De,r++):(h=e,I===0&&C(ut)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=Qp(),b===e&&(b=null),l=[l,h,m,b],u=l}else r=u,u=e;u===e&&(u=null),_=a,a=e0(s,u)}else r=a,a=e;return a}function Xp(){var a,s,u,l,h;if(a=r,s=un(),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=$a(),l!==e?(_=a,a=t0(s,l)):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(u=Hp(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=gv(),_=a,a=i0(u,h)}else r=a,a=e}return a}function gv(){var a;return a=$a(),a===e&&(a=null),a}function $a(){var a,s,u,l,h,m,b,x,E,B,V,O,D;if(a=r,s=qa(),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=Ka(),l!==e){for(h=[],m=r,b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===59?(x=ue,r++):(x=e,I===0&&C(Ii)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=r,V=qa(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();D=Ka(),D!==e?(V=[V,O,D],B=V):(r=B,B=e)}else r=B,B=e;B===e&&(B=null),b=[b,x,E,B],m=b}else r=m,m=e;for(;m!==e;){for(h.push(m),m=r,b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===59?(x=ue,r++):(x=e,I===0&&C(Ii)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=r,V=qa(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();D=Ka(),D!==e?(V=[V,O,D],B=V):(r=B,B=e)}else r=B,B=e;B===e&&(B=null),b=[b,x,E,B],m=b}else r=m,m=e}_=a,a=r0(s,l,h)}else r=a,a=e}else r=a,a=e;return a}function qa(){var a,s;return a=ao(),a===e&&(a=r,i.charCodeAt(r)===97?(s=ui,r++):(s=e,I===0&&C(Yo)),s!==e&&(_=a,s=o0()),a=s),a}function Ka(){var a,s,u,l,h,m,b,x;if(a=r,s=jo(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===44?(m=Ge,r++):(m=e,I===0&&C(We)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=jo(),x!==e?l=x:(r=l,l=e)}else r=l,l=e;for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===44?(m=Ge,r++):(m=e,I===0&&C(We)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=jo(),x!==e?l=x:(r=l,l=e)}else r=l,l=e}_=a,a=s0(s,u)}else r=a,a=e;return a}function mv(){var a,s,u,l,h;if(a=r,s=un(),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=el(),l!==e?(_=a,a=n0(s,l)):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(u=Jp(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=bv(),_=a,a=a0(u,h)}else r=a,a=e}return a}function bv(){var a;return a=el(),a===e&&(a=null),a}function el(){var a,s,u,l,h,m,b,x,E,B,V,O,D;if(a=r,s=hn(),s===e&&(s=ft()),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=tl(),l!==e){for(h=[],m=r,b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===59?(x=ue,r++):(x=e,I===0&&C(Ii)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=r,V=hn(),V===e&&(V=ft()),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();D=tl(),D!==e?(V=[V,O,D],B=V):(r=B,B=e)}else r=B,B=e;B===e&&(B=null),b=[b,x,E,B],m=b}else r=m,m=e;for(;m!==e;){for(h.push(m),m=r,b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===59?(x=ue,r++):(x=e,I===0&&C(Ii)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=r,V=hn(),V===e&&(V=ft()),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();D=tl(),D!==e?(V=[V,O,D],B=V):(r=B,B=e)}else r=B,B=e;B===e&&(B=null),b=[b,x,E,B],m=b}else r=m,m=e}_=a,a=l0(s,l,h)}else r=a,a=e}else r=a,a=e;return a}function tl(){var a,s,u,l,h,m,b,x;if(a=r,s=$o(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===44?(m=Ge,r++):(m=e,I===0&&C(We)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=$o(),x!==e?l=x:(r=l,l=e)}else r=l,l=e;for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===44?(m=Ge,r++):(m=e,I===0&&C(We)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=$o(),x!==e?l=x:(r=l,l=e)}else r=l,l=e}_=a,a=c0(s,u)}else r=a,a=e;return a}function hn(){var a,s,u,l,h,m,b,x;if(a=r,s=il(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===124?(m=Te,r++):(m=e,I===0&&C(Wr)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=il(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===124?(m=Te,r++):(m=e,I===0&&C(Wr)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=il(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e}_=a,a=h0(s,u)}else r=a,a=e;return a}function il(){var a,s,u,l,h,m,b,x;if(a=r,s=rl(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===47?(m=ot,r++):(m=e,I===0&&C(gi)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=rl(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===47?(m=ot,r++):(m=e,I===0&&C(gi)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=rl(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e}_=a,a=p0(s,u)}else r=a,a=e;return a}function Yp(){var a,s,u;return a=r,s=xv(),s!==e?(u=wv(),u===e&&(u=null),_=a,a=u0(s,u)):(r=a,a=e),a}function rl(){var a,s,u;return a=Yp(),a===e&&(a=r,i.charCodeAt(r)===94?(s=ni,r++):(s=e,I===0&&C(Hn)),s!==e?(u=Yp(),u!==e?(_=a,a=f0(u)):(r=a,a=e)):(r=a,a=e)),a}function wv(){var a;return i.charCodeAt(r)===63?(a=fi,r++):(a=e,I===0&&C(tn)),a===e&&(i.charCodeAt(r)===42?(a=G,r++):(a=e,I===0&&C(St)),a===e&&(i.charCodeAt(r)===43?(a=st,r++):(a=e,I===0&&C(ti)))),a}function xv(){var a,s,u,l;return a=mt(),a===e&&(a=r,i.charCodeAt(r)===97?(s=ui,r++):(s=e,I===0&&C(Yo)),s!==e&&(_=a,s=d0()),a=s,a===e&&(a=r,i.charCodeAt(r)===33?(s=Kt,r++):(s=e,I===0&&C(rn)),s!==e?(u=vv(),u!==e?(s=[s,u],a=s):(r=a,a=e)):(r=a,a=e),a===e&&(a=r,i.charCodeAt(r)===40?(s=T,r++):(s=e,I===0&&C(ie)),s!==e?(u=hn(),u!==e?(i.charCodeAt(r)===41?(l=k,r++):(l=e,I===0&&C(oe)),l!==e?(_=a,a=g0(u)):(r=a,a=e)):(r=a,a=e)):(r=a,a=e)))),a}function vv(){var a,s,u,l,h,m,b,x;if(a=pn(),a===e)if(a=r,i.charCodeAt(r)===40?(s=T,r++):(s=e,I===0&&C(ie)),s!==e){if(u=r,l=pn(),l!==e){for(h=[],m=r,i.charCodeAt(r)===124?(b=Te,r++):(b=e,I===0&&C(Wr)),b!==e?(x=pn(),x!==e?(b=[b,x],m=b):(r=m,m=e)):(r=m,m=e);m!==e;)h.push(m),m=r,i.charCodeAt(r)===124?(b=Te,r++):(b=e,I===0&&C(Wr)),b!==e?(x=pn(),x!==e?(b=[b,x],m=b):(r=m,m=e)):(r=m,m=e);l=[l,h],u=l}else r=u,u=e;u===e&&(u=null),i.charCodeAt(r)===41?(l=k,r++):(l=e,I===0&&C(oe)),l!==e?(s=[s,u,l],a=s):(r=a,a=e)}else r=a,a=e;return a}function pn(){var a,s,u;return a=mt(),a===e&&(i.charCodeAt(r)===97?(a=ui,r++):(a=e,I===0&&C(Yo)),a===e&&(a=r,i.charCodeAt(r)===94?(s=ni,r++):(s=e,I===0&&C(Hn)),s!==e?(u=mt(),u===e&&(i.charCodeAt(r)===97?(u=ui,r++):(u=e,I===0&&C(Yo))),u!==e?(s=[s,u],a=s):(r=a,a=e)):(r=a,a=e))),a}function Hp(){var a,s;return a=r,s=Cv(),s!==e&&(_=a,s=m0(s)),a=s,a===e&&(a=yv()),a}function yv(){var a,s,u,l,h,m,b,x,E;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.charCodeAt(r)===91?(u=ai,r++):(u=e,I===0&&C(Dr)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=$a(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===93?(b=Wi,r++):(b=e,I===0&&C(Cs)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();_=a,a=b0(h)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function Jp(){var a,s;return a=r,s=Iv(),s!==e&&(_=a,s=w0(s)),a=s,a===e&&(a=Ev()),a}function Ev(){var a,s,u,l,h,m,b,x,E;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.charCodeAt(r)===91?(u=ai,r++):(u=e,I===0&&C(Dr)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=el(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===93?(b=Wi,r++):(b=e,I===0&&C(Cs)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();_=a,a=x0(h)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function Cv(){var a,s,u,l,h,m,b,x,E;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=[],m=jo(),m!==e)for(;m!==e;)h.push(m),m=jo();else h=e;if(h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===41?(b=k,r++):(b=e,I===0&&C(oe)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();_=a,a=v0(h)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function Iv(){var a,s,u,l,h,m,b,x,E;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=[],m=$o(),m!==e)for(;m!==e;)h.push(m),m=$o();else h=e;if(h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===41?(b=k,r++):(b=e,I===0&&C(oe)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();_=a,a=y0(h)}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function jo(){var a,s,u;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();return u=un(),u===e&&(u=Hp()),u!==e?(_=a,a=E0(u)):(r=a,a=e),a}function $o(){var a,s,u;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();return u=un(),u===e&&(u=Jp()),u!==e?(_=a,a=C0(u)):(r=a,a=e),a}function un(){var a;return a=ft(),a===e&&(a=Av()),a}function ao(){var a;return a=ft(),a===e&&(a=mt()),a}function ft(){var a,s,u,l,h;for(a=r,s=[],u=d();u!==e;)s.push(u),u=d();if(u=Gv(),u===e&&(u=Zv()),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();_=a,a=I0(u)}else r=a,a=e;return a}function Av(){var a;return a=mt(),a===e&&(a=ll(),a===e&&(a=cl(),a===e&&(a=ul(),a===e&&(a=Uv(),a===e&&(a=ji()))))),a}function $(){var a,s,u,l,h,m,b,x;if(a=r,s=ol(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===Di?(m=Di,r+=2):(m=e,I===0&&C(Jn)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=ol(),x!==e?l=x:(r=l,l=e)}else r=l,l=e;for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===Di?(m=Di,r+=2):(m=e,I===0&&C(Jn)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=ol(),x!==e?l=x:(r=l,l=e)}else r=l,l=e}_=a,a=A0(s,u)}else r=a,a=e;return a}function ol(){var a,s,u,l,h,m,b,x;if(a=r,s=sl(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===er?(m=er,r+=2):(m=e,I===0&&C(Ma)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=sl(),x!==e?l=x:(r=l,l=e)}else r=l,l=e;for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===er?(m=er,r+=2):(m=e,I===0&&C(Ma)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=sl(),x!==e?l=x:(r=l,l=e)}else r=l,l=e}_=a,a=N0(s,u)}else r=a,a=e;return a}function sl(){var a,s,u,l,h,m,b,x,E,B;if(a=r,s=Lt(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===61?(m=Ut,r++):(m=e,I===0&&C(Ti)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===_i?(m=_i,r+=2):(m=e,I===0&&C(zn)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===60?(m=zr,r++):(m=e,I===0&&C(Is)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===62?(m=Fr,r++):(m=e,I===0&&C(io)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===Ur?(m=Ur,r+=2):(m=e,I===0&&C(Wa)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===Pi?(m=Pi,r+=2):(m=e,I===0&&C(As)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2).toLowerCase()===tr?(m=i.substr(r,2),r+=2):(m=e,I===0&&C(wr)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=no(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,3).toLowerCase()===_o?(m=i.substr(r,3),r+=3):(m=e,I===0&&C(Ns)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.substr(r,2).toLowerCase()===tr?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(wr)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=no(),B!==e?(h=[h,m,b,x,E,B],l=h):(r=l,l=e)}else r=l,l=e}else r=l,l=e}}}}}}}for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===61?(m=Ut,r++):(m=e,I===0&&C(Ti)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===_i?(m=_i,r+=2):(m=e,I===0&&C(zn)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===60?(m=zr,r++):(m=e,I===0&&C(Is)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===62?(m=Fr,r++):(m=e,I===0&&C(io)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===Ur?(m=Ur,r+=2):(m=e,I===0&&C(Wa)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2)===Pi?(m=Pi,r+=2):(m=e,I===0&&C(As)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Lt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,2).toLowerCase()===tr?(m=i.substr(r,2),r+=2):(m=e,I===0&&C(wr)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=no(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.substr(r,3).toLowerCase()===_o?(m=i.substr(r,3),r+=3):(m=e,I===0&&C(Ns)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.substr(r,2).toLowerCase()===tr?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(wr)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=no(),B!==e?(h=[h,m,b,x,E,B],l=h):(r=l,l=e)}else r=l,l=e}else r=l,l=e}}}}}}}}_=a,a=R0(s,u)}else r=a,a=e;return a}function Lt(){var a,s,u,l,h,m,b,x,E,B,V;if(a=r,s=qo(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===43?(m=st,r++):(m=e,I===0&&C(ti)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=qo(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===45?(m=yt,r++):(m=e,I===0&&C(Qt)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=qo(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e)if(l=r,h=hl(),h===e&&(h=pl()),h!==e){for(m=[],b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===42?(E=G,r++):(E=e,I===0&&C(St)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Bt(),V!==e?(x=[x,E,B,V],b=x):(r=b,b=e)}else r=b,b=e;if(b===e){for(b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===47?(E=ot,r++):(E=e,I===0&&C(gi)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Bt(),V!==e?(x=[x,E,B,V],b=x):(r=b,b=e)}else r=b,b=e}for(;b!==e;){for(m.push(b),b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===42?(E=G,r++):(E=e,I===0&&C(St)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Bt(),V!==e?(x=[x,E,B,V],b=x):(r=b,b=e)}else r=b,b=e;if(b===e){for(b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===47?(E=ot,r++):(E=e,I===0&&C(gi)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Bt(),V!==e?(x=[x,E,B,V],b=x):(r=b,b=e)}else r=b,b=e}}h=[h,m],l=h}else r=l,l=e}for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===43?(m=st,r++):(m=e,I===0&&C(ti)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=qo(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===45?(m=yt,r++):(m=e,I===0&&C(Qt)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=qo(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e)if(l=r,h=hl(),h===e&&(h=pl()),h!==e){for(m=[],b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===42?(E=G,r++):(E=e,I===0&&C(St)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Bt(),V!==e?(x=[x,E,B,V],b=x):(r=b,b=e)}else r=b,b=e;if(b===e){for(b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===47?(E=ot,r++):(E=e,I===0&&C(gi)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Bt(),V!==e?(x=[x,E,B,V],b=x):(r=b,b=e)}else r=b,b=e}for(;b!==e;){for(m.push(b),b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===42?(E=G,r++):(E=e,I===0&&C(St)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Bt(),V!==e?(x=[x,E,B,V],b=x):(r=b,b=e)}else r=b,b=e;if(b===e){for(b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===47?(E=ot,r++):(E=e,I===0&&C(gi)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=Bt(),V!==e?(x=[x,E,B,V],b=x):(r=b,b=e)}else r=b,b=e}}h=[h,m],l=h}else r=l,l=e}}_=a,a=T0(s,u)}else r=a,a=e;return a}function qo(){var a,s,u,l,h,m,b,x;if(a=r,s=Bt(),s!==e){for(u=[],l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===42?(m=G,r++):(m=e,I===0&&C(St)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Bt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===47?(m=ot,r++):(m=e,I===0&&C(gi)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Bt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e}for(;l!==e;){for(u.push(l),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===42?(m=G,r++):(m=e,I===0&&C(St)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Bt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e;if(l===e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===47?(m=ot,r++):(m=e,I===0&&C(gi)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Bt(),x!==e?(h=[h,m,b,x],l=h):(r=l,l=e)}else r=l,l=e}}_=a,a=S0(s,u)}else r=a,a=e;return a}function Bt(){var a,s,u,l;if(a=r,i.charCodeAt(r)===33?(s=Kt,r++):(s=e,I===0&&C(rn)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=fn(),l!==e?(_=a,a=L0(l)):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,i.charCodeAt(r)===43?(s=st,r++):(s=e,I===0&&C(ti)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=fn(),l!==e?(_=a,a=B0(l)):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,i.charCodeAt(r)===45?(s=yt,r++):(s=e,I===0&&C(Qt)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=fn(),l!==e?(_=a,a=k0(l)):(r=a,a=e)}else r=a,a=e;a===e&&(a=fn())}}return a}function fn(){var a,s;return a=nl(),a===e&&(a=al(),a===e&&(a=kv(),a===e&&(a=r,s=ll(),s!==e&&(_=a,s=V0(s)),a=s,a===e&&(a=r,s=cl(),s!==e&&(_=a,s=F0(s)),a=s,a===e&&(a=r,s=ul(),s!==e&&(_=a,s=U0(s)),a=s,a===e&&(a=r,s=ft(),s!==e&&(_=a,s=_0(s)),a=s)))))),a}function nl(){var a,s,u,l,h,m;if(a=r,i.charCodeAt(r)===40?(s=T,r++):(s=e,I===0&&C(ie)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=$(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();i.charCodeAt(r)===41?(m=k,r++):(m=e,I===0&&C(oe)),m!==e?(_=a,a=O0(l)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function al(){var a,s,u,l,h,m,b,x,E,B,V,O,D,q,he,be;if(a=Bv(),a===e){if(a=r,i.substr(r,3).toLowerCase()===Ca?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Yh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=G0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,4).toLowerCase()===Ia?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(vc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=Z0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,11).toLowerCase()===_t?(s=i.substr(r,11),r+=11):(s=e,I===0&&C(yc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=M0(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,8).toLowerCase()===_r?(s=i.substr(r,8),r+=8):(s=e,I===0&&C(Ec)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=W0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===Aa?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Cc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=ft(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=D0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===Nn?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Ic)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=P0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===Ms?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Hh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=Q0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===Rn?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Ac)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(l=r,i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(h=[h,m,b,x,E],l=h):(r=l,l=e)}else r=l,l=e}else r=l,l=e;l===e&&(l=ji()),l!==e?(_=a,a=X0(l)):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,i.substr(r,4).toLowerCase()===Qi?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(Nc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=ji(),l!==e?(_=a,a=Y0()):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===Ze?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Jh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=H0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,4).toLowerCase()===Xi?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(p)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=J0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===Or?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(v)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=z0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===Ws?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(N)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=j0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,6).toLowerCase()===Ds?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(S)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=no(),l!==e?(_=a,a=$0(l)):(r=a,a=e)}else r=a,a=e;if(a===e&&(a=Rv(),a===e)){if(a=r,i.substr(r,6).toLowerCase()===Oo?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(U)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=q0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e&&(a=Tv(),a===e)){if(a=r,i.substr(r,5).toLowerCase()===Ps?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Z)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=K0(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===yi?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(X)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=ew(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,14).toLowerCase()===Qs?(s=i.substr(r,14),r+=14):(s=e,I===0&&C(z)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=tw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,8).toLowerCase()===Tn?(s=i.substr(r,8),r+=8):(s=e,I===0&&C(ee)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=iw(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,9).toLowerCase()===Sn?(s=i.substr(r,9),r+=9):(s=e,I===0&&C(le)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=rw(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,9).toLowerCase()===Ln?(s=i.substr(r,9),r+=9):(s=e,I===0&&C(Ne)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=ow(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,7).toLowerCase()===Na?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(He)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=sw(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,8).toLowerCase()===Me?(s=i.substr(r,8),r+=8):(s=e,I===0&&C(nt)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=nw(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,4).toLowerCase()===Y?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(Si)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=aw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===pe?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(ci)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=lw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===ke?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(nr)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=cw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===vt?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Oi)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=hw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,7).toLowerCase()===li?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(Rs)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=pw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,7).toLowerCase()===Vt?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(zh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=uw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,8).toLowerCase()===Ei?(s=i.substr(r,8),r+=8):(s=e,I===0&&C(jh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=fw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,2).toLowerCase()===Yi?(s=i.substr(r,2),r+=2):(s=e,I===0&&C($h)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=dw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===ir?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Rc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=ji(),l!==e?(_=a,a=gw()):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,i.substr(r,4).toLowerCase()===ds?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(qh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=ji(),l!==e?(_=a,a=mw()):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,i.substr(r,7).toLowerCase()===Dt?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(Tc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=ji(),l!==e?(_=a,a=bw()):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===vo?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Xt)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=ww(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,4).toLowerCase()===ct?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(jn)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=xw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,6).toLowerCase()===Tt?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(Kh)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=vw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,6).toLowerCase()===Bn?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(ep)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=yw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,6).toLowerCase()===gs?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(tp)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=Ew(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,8).toLowerCase()===ms?(s=i.substr(r,8),r+=8):(s=e,I===0&&C(Da)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=no(),l!==e?(_=a,a=Cw(l)):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,i.substr(r,2).toLowerCase()===Ra?(s=i.substr(r,2),r+=2):(s=e,I===0&&C(Sc)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();if(i.charCodeAt(r)===44?(O=Ge,r++):(O=e,I===0&&C(We)),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();if(q=$(),q!==e){for(he=[],be=d();be!==e;)he.push(be),be=d();i.charCodeAt(r)===41?(be=k,r++):(be=e,I===0&&C(oe)),be!==e?(_=a,a=Iw(m,B,q)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,7).toLowerCase()===tt?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(ip)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=Aw(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===Ot?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Gg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=Nw(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,8).toLowerCase()===Ta?(s=i.substr(r,8),r+=8):(s=e,I===0&&C(Zg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e?(_=a,a=Rw(m,B)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,5).toLowerCase()===kn?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Mg)),s===e&&(i.substr(r,5).toLowerCase()===rr?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Wg))),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=Tw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,7).toLowerCase()===Ah?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(Dg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=Sw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,9).toLowerCase()===Vn?(s=i.substr(r,9),r+=9):(s=e,I===0&&C(Pg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=Lw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,9).toLowerCase()===Go?(s=i.substr(r,9),r+=9):(s=e,I===0&&C(Qg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=a,a=Bw(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e;a===e&&(a=Nv(),a===e&&(a=Sv(),a===e&&(a=Lv())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return a}function Nv(){var a,s,u,l,h,m,b,x,E,B,V,O,D,q,he;if(a=r,i.substr(r,5).toLowerCase()===Pt?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Xg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();if(O=r,i.charCodeAt(r)===44?(D=Ge,r++):(D=e,I===0&&C(We)),D!==e){for(q=[],he=d();he!==e;)q.push(he),he=d();he=$(),he!==e?(D=[D,q,he],O=D):(r=O,O=e)}else r=O,O=e;for(O===e&&(O=null),D=[],q=d();q!==e;)D.push(q),q=d();i.charCodeAt(r)===41?(q=k,r++):(q=e,I===0&&C(oe)),q!==e?(_=a,a=kw(m,B,O)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function Rv(){var a,s,u,l,h,m,b,x,E,B,V,O,D,q,he;if(a=r,i.substr(r,6).toLowerCase()===Zo?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(Yg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();if(O=r,i.charCodeAt(r)===44?(D=Ge,r++):(D=e,I===0&&C(We)),D!==e){for(q=[],he=d();he!==e;)q.push(he),he=d();he=$(),he!==e?(D=[D,q,he],O=D):(r=O,O=e)}else r=O,O=e;for(O===e&&(O=null),D=[],q=d();q!==e;)D.push(q),q=d();i.charCodeAt(r)===41?(q=k,r++):(q=e,I===0&&C(oe)),q!==e?(_=a,a=Vw(m,B,O)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function Tv(){var a,s,u,l,h,m,b,x,E,B,V,O,D,q,he,be,Fe,rt,Gi;if(a=r,i.substr(r,7).toLowerCase()===Xs?(s=i.substr(r,7),r+=7):(s=e,I===0&&C(Hg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===44?(x=Ge,r++):(x=e,I===0&&C(We)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=$(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();if(i.charCodeAt(r)===44?(O=Ge,r++):(O=e,I===0&&C(We)),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();if(q=$(),q!==e){for(he=[],be=d();be!==e;)he.push(be),be=d();if(be=r,i.charCodeAt(r)===44?(Fe=Ge,r++):(Fe=e,I===0&&C(We)),Fe!==e){for(rt=[],Gi=d();Gi!==e;)rt.push(Gi),Gi=d();Gi=$(),Gi!==e?(Fe=[Fe,rt,Gi],be=Fe):(r=be,be=e)}else r=be,be=e;for(be===e&&(be=null),Fe=[],rt=d();rt!==e;)Fe.push(rt),rt=d();i.charCodeAt(r)===41?(rt=k,r++):(rt=e,I===0&&C(oe)),rt!==e?(_=a,a=Fw(m,B,q,be)):(r=a,a=e)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;return a}function Sv(){var a,s,u,l;if(a=r,i.substr(r,6).toLowerCase()===Mo?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(rp)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=ii(),l!==e?(_=a,a=Uw(l)):(r=a,a=e)}else r=a,a=e;return a}function Lv(){var a,s,u,l,h,m;if(a=r,i.substr(r,3).toLowerCase()===_o?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(Ns)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,6).toLowerCase()===Mo?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(rp)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=ii(),m!==e?(_=a,a=_w(m)):(r=a,a=e)}else r=a,a=e}else r=a,a=e;return a}function Bv(){var a,s,u,l,h,m,b,x,E,B,V,O,D,q,he,be,Fe;if(a=r,i.substr(r,5).toLowerCase()===Sa?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(Jg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(i.substr(r,8).toLowerCase()===A?(m=i.substr(r,8),r+=8):(m=e,I===0&&C(Gt)),m===e&&(m=null),b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===42?(x=G,r++):(x=e,I===0&&C(St)),x===e&&(x=$()),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();_=a,a=Ow(m,x)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===Ys?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(zg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(i.substr(r,8).toLowerCase()===A?(m=i.substr(r,8),r+=8):(m=e,I===0&&C(Gt)),m===e&&(m=null),b=[],x=d();x!==e;)b.push(x),x=d();if(x=$(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();_=a,a=Gw(m,x)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===La?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(jg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(i.substr(r,8).toLowerCase()===A?(m=i.substr(r,8),r+=8):(m=e,I===0&&C(Gt)),m===e&&(m=null),b=[],x=d();x!==e;)b.push(x),x=d();if(x=$(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();_=a,a=Zw(m,x)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===Ba?(s=i.substr(r,3),r+=3):(s=e,I===0&&C($g)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(i.substr(r,8).toLowerCase()===A?(m=i.substr(r,8),r+=8):(m=e,I===0&&C(Gt)),m===e&&(m=null),b=[],x=d();x!==e;)b.push(x),x=d();if(x=$(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();_=a,a=Mw(m,x)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,3).toLowerCase()===Fn?(s=i.substr(r,3),r+=3):(s=e,I===0&&C(qg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(i.substr(r,8).toLowerCase()===A?(m=i.substr(r,8),r+=8):(m=e,I===0&&C(Gt)),m===e&&(m=null),b=[],x=d();x!==e;)b.push(x),x=d();if(x=$(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();_=a,a=Ww(m,x)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e){if(a=r,i.substr(r,6).toLowerCase()===ka?(s=i.substr(r,6),r+=6):(s=e,I===0&&C(Kg)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(i.substr(r,8).toLowerCase()===A?(m=i.substr(r,8),r+=8):(m=e,I===0&&C(Gt)),m===e&&(m=null),b=[],x=d();x!==e;)b.push(x),x=d();if(x=$(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();_=a,a=Dw(m,x)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e;if(a===e)if(a=r,i.substr(r,12).toLowerCase()===Va?(s=i.substr(r,12),r+=12):(s=e,I===0&&C(em)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(i.substr(r,8).toLowerCase()===A?(m=i.substr(r,8),r+=8):(m=e,I===0&&C(Gt)),m===e&&(m=null),b=[],x=d();x!==e;)b.push(x),x=d();if(x=$(),x!==e){for(E=r,B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===59?(V=ue,r++):(V=e,I===0&&C(Ii)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();if(i.substr(r,9).toLowerCase()===Un?(D=i.substr(r,9),r+=9):(D=e,I===0&&C(tm)),D!==e){for(q=[],he=d();he!==e;)q.push(he),he=d();if(i.charCodeAt(r)===61?(he=Ut,r++):(he=e,I===0&&C(Ti)),he!==e){for(be=[],Fe=d();Fe!==e;)be.push(Fe),Fe=d();Fe=zp(),Fe!==e?(B=[B,V,O,D,q,he,be,Fe],E=B):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e;for(E===e&&(E=null),B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===41?(V=k,r++):(V=e,I===0&&C(oe)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();_=a,a=Pw(m,x,E)}else r=a,a=e}else r=a,a=e}else r=a,a=e}else r=a,a=e}}}}}return a}function kv(){var a,s,u,l;if(a=r,s=mt(),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();l=Pp(),l===e&&(l=null),_=a,a=Qw(s,l)}else r=a,a=e;return a}function ll(){var a,s,u,l,h;return a=r,s=zp(),s!==e?(u=Mv(),u===e&&(u=r,i.substr(r,2)===_n?(l=_n,r+=2):(l=e,I===0&&C(im)),l!==e?(h=mt(),h!==e?(l=[l,h],u=l):(r=u,u=e)):(r=u,u=e)),u===e&&(u=null),_=a,a=Xw(s,u)):(r=a,a=e),a}function cl(){var a;return a=Vv(),a===e&&(a=hl(),a===e&&(a=pl())),a}function Vv(){var a;return a=ml(),a===e&&(a=gl(),a===e&&(a=Ko())),a}function hl(){var a;return a=Pv(),a===e&&(a=Dv(),a===e&&(a=Wv())),a}function pl(){var a;return a=Yv(),a===e&&(a=Xv(),a===e&&(a=Qv())),a}function ul(){var a,s;return a=r,i.substr(r,4).toLowerCase()===Fa?(s=i.substr(r,4),r+=4):(s=e,I===0&&C(rm)),s!==e&&(_=a,s=Yw()),a=s,a===e&&(a=r,i.substr(r,5).toLowerCase()===Nh?(s=i.substr(r,5),r+=5):(s=e,I===0&&C(om)),s!==e&&(_=a,s=Hw()),a=s),a}function zp(){var a;return a=zv(),a===e&&(a=jv(),a===e&&(a=Hv(),a===e&&(a=Jv()))),a}function mt(){var a,s;return a=r,s=fl(),s!==e&&(_=a,s=Jw(s)),a=s,a===e&&(a=r,s=Fv(),s!==e&&(_=a,s=zw(s)),a=s),a}function Fv(){var a,s;return a=r,s=_v(),s!==e&&(_=a,s=jw(s)),a=s,a===e&&(a=r,s=dl(),s!==e&&(_=a,s=$w(s)),a=s),a}function Uv(){var a,s;return a=r,s=Ov(),s!==e&&(_=a,s=qw(s)),a=s,a===e&&(a=r,s=qv(),s!==e&&(_=a,s=Kw()),a=s),a}function fl(){var a,s,u,l;if(a=r,i.charCodeAt(r)===60?(s=zr,r++):(s=e,I===0&&C(Is)),s!==e){for(u=[],Hs.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(op));l!==e;)u.push(l),Hs.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(op));i.charCodeAt(r)===62?(l=Fr,r++):(l=e,I===0&&C(io)),l!==e?(_=a,a=ex(u)):(r=a,a=e)}else r=a,a=e;return a}function dl(){var a,s,u;return a=r,s=Kv(),s===e&&(s=null),i.charCodeAt(r)===58?(u=Qe,r++):(u=e,I===0&&C(xr)),u!==e?(_=a,a=tx(s)):(r=a,a=e),a}function _v(){var a,s,u;return a=r,s=dl(),s!==e?(u=ey(),u!==e?(_=a,a=ix(s,u)):(r=a,a=e)):(r=a,a=e),a}function Ov(){var a,s,u,l,h,m,b;if(a=r,i.substr(r,2)===or?(s=or,r+=2):(s=e,I===0&&C(sm)),s!==e)if(u=lo(),u===e&&($e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke))),u!==e){for(l=[],h=Mt(),h===e&&(h=r,i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e?(b=Mt(),b!==e?(m=[m,b],h=m):(r=h,h=e)):(r=h,h=e));h!==e;)l.push(h),h=Mt(),h===e&&(h=r,i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e?(b=Mt(),b!==e?(m=[m,b],h=m):(r=h,h=e)):(r=h,h=e));_=a,a=rx()}else r=a,a=e;else r=a,a=e;return a}function Gv(){var a,s,u;return a=r,i.charCodeAt(r)===63?(s=fi,r++):(s=e,I===0&&C(tn)),s!==e?(u=qp(),u!==e?(_=a,a=ox(u)):(r=a,a=e)):(r=a,a=e),a}function Zv(){var a,s,u;return a=r,i.charCodeAt(r)===36?(s=wt,r++):(s=e,I===0&&C(sp)),s!==e?(u=qp(),u!==e?(_=a,a=sx(u)):(r=a,a=e)):(r=a,a=e),a}function Mv(){var a,s,u,l,h,m,b,x;if(a=r,i.charCodeAt(r)===64?(s=On,r++):(s=e,I===0&&C(np)),s!==e){if(u=[],Mn.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(ap)),l!==e)for(;l!==e;)u.push(l),Mn.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(ap));else u=e;if(u!==e){if(l=[],h=r,i.charCodeAt(r)===45?(m=yt,r++):(m=e,I===0&&C(Qt)),m!==e){if(b=[],it.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(on)),x!==e)for(;x!==e;)b.push(x),it.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(on));else b=e;b!==e?(m=[m,b],h=m):(r=h,h=e)}else r=h,h=e;for(;h!==e;)if(l.push(h),h=r,i.charCodeAt(r)===45?(m=yt,r++):(m=e,I===0&&C(Qt)),m!==e){if(b=[],it.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(on)),x!==e)for(;x!==e;)b.push(x),it.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(on));else b=e;b!==e?(m=[m,b],h=m):(r=h,h=e)}else r=h,h=e;_=a,a=nx(u,l)}else r=a,a=e}else r=a,a=e;return a}function Ko(){var a,s,u;if(a=r,s=[],$e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke)),u!==e)for(;u!==e;)s.push(u),$e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke));else s=e;return s!==e&&(_=a,s=ax()),a=s,a}function gl(){var a,s,u,l,h;for(a=r,s=[],$e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke));u!==e;)s.push(u),$e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke));if(i.charCodeAt(r)===46?(u=De,r++):(u=e,I===0&&C(ut)),u!==e){if(l=[],$e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke)),h!==e)for(;h!==e;)l.push(h),$e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke));else l=e;l!==e?(_=a,a=lx()):(r=a,a=e)}else r=a,a=e;return a}function ml(){var a,s,u,l,h;if(a=r,s=[],$e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke)),u!==e)for(;u!==e;)s.push(u),$e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke));else s=e;if(s!==e)if(i.charCodeAt(r)===46?(u=De,r++):(u=e,I===0&&C(ut)),u!==e){for(l=[],$e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke));h!==e;)l.push(h),$e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke));h=bl(),h!==e?(_=a,a=cx()):(r=a,a=e)}else r=a,a=e;else r=a,a=e;if(a===e){if(a=r,i.charCodeAt(r)===46?(s=De,r++):(s=e,I===0&&C(ut)),s!==e){if(u=[],$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke)),l!==e)for(;l!==e;)u.push(l),$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke));else u=e;u!==e?(l=bl(),l!==e?(_=a,a=hx()):(r=a,a=e)):(r=a,a=e)}else r=a,a=e;if(a===e){if(a=r,s=[],$e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke)),u!==e)for(;u!==e;)s.push(u),$e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke));else s=e;s!==e?(u=bl(),u!==e?(_=a,a=px()):(r=a,a=e)):(r=a,a=e)}}return a}function Wv(){var a,s,u;return a=r,i.charCodeAt(r)===43?(s=st,r++):(s=e,I===0&&C(ti)),s!==e?(u=Ko(),u!==e?(_=a,a=ux(u)):(r=a,a=e)):(r=a,a=e),a}function Dv(){var a,s,u;return a=r,i.charCodeAt(r)===43?(s=st,r++):(s=e,I===0&&C(ti)),s!==e?(u=gl(),u!==e?(_=a,a=fx(u)):(r=a,a=e)):(r=a,a=e),a}function Pv(){var a,s,u;return a=r,i.charCodeAt(r)===43?(s=st,r++):(s=e,I===0&&C(ti)),s!==e?(u=ml(),u!==e?(_=a,a=dx(u)):(r=a,a=e)):(r=a,a=e),a}function Qv(){var a,s,u;return a=r,i.charCodeAt(r)===45?(s=yt,r++):(s=e,I===0&&C(Qt)),s!==e?(u=Ko(),u!==e?(_=a,a=gx(u)):(r=a,a=e)):(r=a,a=e),a}function Xv(){var a,s,u;return a=r,i.charCodeAt(r)===45?(s=yt,r++):(s=e,I===0&&C(Qt)),s!==e?(u=gl(),u!==e?(_=a,a=mx(u)):(r=a,a=e)):(r=a,a=e),a}function Yv(){var a,s,u;return a=r,i.charCodeAt(r)===45?(s=yt,r++):(s=e,I===0&&C(Qt)),s!==e?(u=ml(),u!==e?(_=a,a=bx(u)):(r=a,a=e)):(r=a,a=e),a}function bl(){var a,s,u,l,h;if(a=r,Th.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(nm)),s!==e){if(mr.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(am)),u===e&&(u=null),l=[],$e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke)),h!==e)for(;h!==e;)l.push(h),$e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke));else l=e;l!==e?(s=[s,u,l],a=s):(r=a,a=e)}else r=a,a=e;return a}function Hv(){var a,s,u,l;if(a=r,i.charCodeAt(r)===39?(s=fr,r++):(s=e,I===0&&C(Ho)),s!==e){for(u=[],Wo.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(lp)),l===e&&(l=zi());l!==e;)u.push(l),Wo.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(lp)),l===e&&(l=zi());i.charCodeAt(r)===39?(l=fr,r++):(l=e,I===0&&C(Ho)),l!==e?(_=a,a=wx(u)):(r=a,a=e)}else r=a,a=e;return a}function Jv(){var a,s,u,l;if(a=r,i.charCodeAt(r)===34?(s=jr,r++):(s=e,I===0&&C(sn)),s!==e){for(u=[],Wn.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(cp)),l===e&&(l=zi());l!==e;)u.push(l),Wn.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(cp)),l===e&&(l=zi());i.charCodeAt(r)===34?(l=jr,r++):(l=e,I===0&&C(sn)),l!==e?(_=a,a=xx(u)):(r=a,a=e)}else r=a,a=e;return a}function zv(){var a,s,u,l,h,m;if(a=r,i.substr(r,3)===$r?(s=$r,r+=3):(s=e,I===0&&C(hp)),s!==e){for(u=[],l=r,i.substr(r,2)===Hi?(h=Hi,r+=2):(h=e,I===0&&C(pp)),h===e&&(i.charCodeAt(r)===39?(h=fr,r++):(h=e,I===0&&C(Ho))),h===e&&(h=null),Ua.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(up)),m===e&&(m=zi()),m!==e?(h=[h,m],l=h):(r=l,l=e);l!==e;)u.push(l),l=r,i.substr(r,2)===Hi?(h=Hi,r+=2):(h=e,I===0&&C(pp)),h===e&&(i.charCodeAt(r)===39?(h=fr,r++):(h=e,I===0&&C(Ho))),h===e&&(h=null),Ua.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(up)),m===e&&(m=zi()),m!==e?(h=[h,m],l=h):(r=l,l=e);i.substr(r,3)===$r?(l=$r,r+=3):(l=e,I===0&&C(hp)),l!==e?(_=a,a=vx(u)):(r=a,a=e)}else r=a,a=e;return a}function jv(){var a,s,u,l,h,m;if(a=r,i.substr(r,3)===qr?(s=qr,r+=3):(s=e,I===0&&C(fp)),s!==e){for(u=[],l=r,i.substr(r,2)===dr?(h=dr,r+=2):(h=e,I===0&&C(dp)),h===e&&(i.charCodeAt(r)===34?(h=jr,r++):(h=e,I===0&&C(sn))),h===e&&(h=null),Js.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(gp)),m===e&&(m=zi()),m!==e?(h=[h,m],l=h):(r=l,l=e);l!==e;)u.push(l),l=r,i.substr(r,2)===dr?(h=dr,r+=2):(h=e,I===0&&C(dp)),h===e&&(i.charCodeAt(r)===34?(h=jr,r++):(h=e,I===0&&C(sn))),h===e&&(h=null),Js.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(gp)),m===e&&(m=zi()),m!==e?(h=[h,m],l=h):(r=l,l=e);i.substr(r,3)===qr?(l=qr,r+=3):(l=e,I===0&&C(fp)),l!==e?(_=a,a=yx(u)):(r=a,a=e)}else r=a,a=e;return a}function zi(){var a,s,u;return a=r,i.charCodeAt(r)===92?(s=ei,r++):(s=e,I===0&&C(mp)),s!==e?(Sh.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(lm)),u!==e?(_=a,a=Ex()):(r=a,a=e)):(r=a,a=e),a}function ji(){var a,s,u,l;if(a=r,i.charCodeAt(r)===40?(s=T,r++):(s=e,I===0&&C(ie)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();i.charCodeAt(r)===41?(l=k,r++):(l=e,I===0&&C(oe)),l!==e?(s=[s,u,l],a=s):(r=a,a=e)}else r=a,a=e;return a}function d(){var a;return a=$v(),a===e&&(a=wl(),a===e&&(a=xl())),a}function wl(){var a;return ac.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(cm)),a}function xl(){var a;return Lh.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(hm)),a}function dn(){var a;return Bh.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(pm)),a}function jp(){var a,s,u,l;if(a=r,i.charCodeAt(r)===35?(s=gr,r++):(s=e,I===0&&C(Pa)),s!==e){for(u=[],l=dn();l!==e;)u.push(l),l=dn();l=xl(),l!==e?(_=a,a=Cx()):(r=a,a=e)}else r=a,a=e;return a}function $v(){var a,s,u,l,h,m;for(a=r,s=xl(),s===e&&(s=null),u=[],l=wl();l!==e;)u.push(l),l=wl();if(i.charCodeAt(r)===35?(l=gr,r++):(l=e,I===0&&C(Pa)),l!==e){for(h=[],m=dn();m!==e;)h.push(m),m=dn();_=a,a=Ix()}else r=a,a=e;return a}function qv(){var a,s,u,l;if(a=r,i.charCodeAt(r)===91?(s=ai,r++):(s=e,I===0&&C(Dr)),s!==e){for(u=[],l=d();l!==e;)u.push(l),l=d();i.charCodeAt(r)===93?(l=Wi,r++):(l=e,I===0&&C(Cs)),l!==e?(s=[s,u,l],a=s):(r=a,a=e)}else r=a,a=e;return a}function $p(){var a;return _a.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(um)),a===e&&(kh.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(fm)),a===e&&(Gr.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(dm)),a===e&&(Vh.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(gm)),a===e&&(lc.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(mm)),a===e&&(yo.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(bm)),a===e&&(cc.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(wm)),a===e&&(hc.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(xm)),a===e&&(Oa.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(vm)),a===e&&(Fh.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ym)),a===e&&(pc.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Em)),a===e&&(uc.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Cm)),a===e&&(Uh.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Im)))))))))))))),a}function lo(){var a;return a=$p(),a===e&&(i.charCodeAt(r)===95?(a=Gn,r++):(a=e,I===0&&C(bp))),a}function qp(){var a,s,u,l;if(a=r,s=lo(),s===e&&($e.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Ke))),s!==e){for(u=[],l=lo(),l===e&&($e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke)),l===e&&(zs.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Qa)),l===e&&(Do.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Xa)),l===e&&(js.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ya))))));l!==e;)u.push(l),l=lo(),l===e&&($e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke)),l===e&&(zs.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Qa)),l===e&&(Do.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Xa)),l===e&&(js.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ya))))));_=a,a=Ax()}else r=a,a=e;return a}function Mt(){var a;return a=lo(),a===e&&(i.charCodeAt(r)===45?(a=yt,r++):(a=e,I===0&&C(Qt)),a===e&&($e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Ke)),a===e&&(zs.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Qa)),a===e&&(Do.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Xa)),a===e&&(js.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Ya))))))),a}function Kv(){var a,s,u,l,h,m;if(a=r,s=$p(),s!==e){for(u=[],l=Mt(),l===e&&(l=r,i.charCodeAt(r)===46?(h=De,r++):(h=e,I===0&&C(ut)),h!==e?(m=Mt(),m!==e?(h=[h,m],l=h):(r=l,l=e)):(r=l,l=e));l!==e;)u.push(l),l=Mt(),l===e&&(l=r,i.charCodeAt(r)===46?(h=De,r++):(h=e,I===0&&C(ut)),h!==e?(m=Mt(),m!==e?(h=[h,m],l=h):(r=l,l=e)):(r=l,l=e));_=a,a=Nx()}else r=a,a=e;return a}function ey(){var a,s,u,l,h,m;if(a=r,s=lo(),s===e&&(i.charCodeAt(r)===58?(s=Qe,r++):(s=e,I===0&&C(xr)),s===e&&($e.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Ke)),s===e&&(s=es()))),s!==e){for(u=[],l=Mt(),l===e&&(i.charCodeAt(r)===58?(l=Qe,r++):(l=e,I===0&&C(xr)),l===e&&(l=es())),l===e&&(l=r,i.charCodeAt(r)===46?(h=De,r++):(h=e,I===0&&C(ut)),h!==e?(m=Mt(),m===e&&(i.charCodeAt(r)===58?(m=Qe,r++):(m=e,I===0&&C(xr)),m===e&&(m=es())),m!==e?(h=[h,m],l=h):(r=l,l=e)):(r=l,l=e));l!==e;)u.push(l),l=Mt(),l===e&&(i.charCodeAt(r)===58?(l=Qe,r++):(l=e,I===0&&C(xr)),l===e&&(l=es())),l===e&&(l=r,i.charCodeAt(r)===46?(h=De,r++):(h=e,I===0&&C(ut)),h!==e?(m=Mt(),m===e&&(i.charCodeAt(r)===58?(m=Qe,r++):(m=e,I===0&&C(xr)),m===e&&(m=es())),m!==e?(h=[h,m],l=h):(r=l,l=e)):(r=l,l=e));_=a,a=Rx()}else r=a,a=e;return a}function es(){var a;return a=ty(),a===e&&(a=iy()),a}function ty(){var a,s,u,l;return a=r,i.charCodeAt(r)===37?(s=Zn,r++):(s=e,I===0&&C(wp)),s!==e?(u=Kp(),u!==e?(l=Kp(),l!==e?(s=[s,u,l],a=s):(r=a,a=e)):(r=a,a=e)):(r=a,a=e),a}function Kp(){var a;return $e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Ke)),a===e&&(fc.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Am)),a===e&&(dc.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Nm)))),a}function iy(){var a,s,u;return a=r,i.charCodeAt(r)===92?(s=ei,r++):(s=e,I===0&&C(mp)),s!==e?(i.charCodeAt(r)===95?(u=Gn,r++):(u=e,I===0&&C(bp)),u===e&&(i.charCodeAt(r)===126?(u=Rh,r++):(u=e,I===0&&C(Rm)),u===e&&(i.charCodeAt(r)===46?(u=De,r++):(u=e,I===0&&C(ut)),u===e&&(i.charCodeAt(r)===45?(u=yt,r++):(u=e,I===0&&C(Qt)),u===e&&(i.charCodeAt(r)===33?(u=Kt,r++):(u=e,I===0&&C(rn)),u===e&&(i.charCodeAt(r)===36?(u=wt,r++):(u=e,I===0&&C(sp)),u===e&&(i.charCodeAt(r)===38?(u=nc,r++):(u=e,I===0&&C(Tm)),u===e&&(i.charCodeAt(r)===39?(u=fr,r++):(u=e,I===0&&C(Ho)),u===e&&(i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u===e&&(i.charCodeAt(r)===41?(u=k,r++):(u=e,I===0&&C(oe)),u===e&&(i.charCodeAt(r)===42?(u=G,r++):(u=e,I===0&&C(St)),u===e&&(i.charCodeAt(r)===43?(u=st,r++):(u=e,I===0&&C(ti)),u===e&&(i.charCodeAt(r)===44?(u=Ge,r++):(u=e,I===0&&C(We)),u===e&&(i.charCodeAt(r)===59?(u=ue,r++):(u=e,I===0&&C(Ii)),u===e&&(i.charCodeAt(r)===58?(u=Qe,r++):(u=e,I===0&&C(xr)),u===e&&(i.charCodeAt(r)===61?(u=Ut,r++):(u=e,I===0&&C(Ti)),u===e&&(i.charCodeAt(r)===47?(u=ot,r++):(u=e,I===0&&C(gi)),u===e&&(i.charCodeAt(r)===63?(u=fi,r++):(u=e,I===0&&C(tn)),u===e&&(i.charCodeAt(r)===35?(u=gr,r++):(u=e,I===0&&C(Pa)),u===e&&(i.charCodeAt(r)===64?(u=On,r++):(u=e,I===0&&C(np)),u===e&&(i.charCodeAt(r)===37?(u=Zn,r++):(u=e,I===0&&C(wp)))))))))))))))))))))),u!==e?(s=[s,u],a=s):(r=a,a=e)):(r=a,a=e),a}let eu={};if(an=c(),an!==e&&r===i.length)return an;throw an!==e&&r<i.length&&C(Tx()),vp(Ha,mi<i.length?i.charAt(mi):null,mi<i.length?Jo(mi,mi+1):Jo(mi,mi))}function d3(i,t){function e(){this.constructor=i}e.prototype=t.prototype,i.prototype=new e}function oc(i,t,e,o){var n=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(n,oc.prototype),n.expected=t,n.found=e,n.location=o,n.name="SyntaxError",n}d3(oc,Error);function MI(i,t,e){return e=e||" ",i.length>t?i:(t-=i.length,e+=e.repeat(t),i+e.slice(0,t))}oc.prototype.format=function(i){var t="Error: "+this.message;if(this.location){var e=null,o;for(o=0;o<i.length;o++)if(i[o].source===this.location.source){e=i[o].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,c=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(n):n,g=this.location.source+":"+c.line+":"+c.column;if(e){var w=this.location.end,y=MI("",c.line.toString().length," "),A=e[n.line-1],R=n.line===w.line?w.column:A.length+1,T=R-n.column||1;t+=`
55
+ --> `+g+`
56
+ `+y+` |
57
+ `+c.line+" | "+A+`
58
+ `+y+" | "+MI("",n.column-1," ")+MI("",T,"^")}else t+=`
59
+ at `+g}return t};oc.buildMessage=function(i,t){var e={literal:function(A){return'"'+n(A.text)+'"'},class:function(A){var R=A.parts.map(function(T){return Array.isArray(T)?c(T[0])+"-"+c(T[1]):c(T)});return"["+(A.inverted?"^":"")+R.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(A){return A.description}};function o(A){return A.charCodeAt(0).toString(16).toUpperCase()}function n(A){return A.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(R){return"\\x0"+o(R)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(R){return"\\x"+o(R)})}function c(A){return A.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(R){return"\\x0"+o(R)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(R){return"\\x"+o(R)})}function g(A){return e[A.type](A)}function w(A){var R=A.map(g),T,F;if(R.sort(),R.length>0){for(T=1,F=1;T<R.length;T++)R[T-1]!==R[T]&&(R[F]=R[T],F++);R.length=F}switch(R.length){case 1:return R[0];case 2:return R[0]+" or "+R[1];default:return R.slice(0,-1).join(", ")+", or "+R[R.length-1]}}function y(A){return A?'"'+n(A)+'"':"end of input"}return"Expected "+w(i)+" but "+y(t)+" found."};function WI(i,t){t=t!==void 0?t:{};var e={},o=t.grammarSource,n={DOCUMENT:yp},c=yp,g="base",w="prefix",y="select",A="distinct",R="reduced",T="(",F="as",k=")",G="*",W="construct",P="where",Q="{",H="}",re="describe",K="ask",J="from",te="named",ae="group",me="by",Ee="having",Pe="order",Re="asc",Ie="desc",Ye="limit",Oe="offset",de="values",ue=";",dt="load",ce="silent",Be="into",qe="clear",Xe="drop",ve="create",fe="add",Le="to",_e="move",bt="copy",$t="insert",Fi="data",Ki="delete",ur="with",Ve="using",ne="default",It="graph",qt="all",De=".",oi="optional",Fo="service",je="bind",Ui="UNDEF",si="minus",pi="union",Uo="filter",Ge=",",ui="a",Te="|",ot="/",ni="^",fi="?",st="+",Kt="!",ai="[",Wi="]",Di="||",er="&&",Ut="=",_i="!=",zr="<",Fr=">",Ur="<=",Pi=">=",tr="in",_o="not",yt="-",Ca="str",Ia="lang",_t="langmatches",_r="datatype",Aa="bound",Nn="iri",Ms="uri",Rn="bnode",Qi="rand",Ze="abs",Xi="ceil",Or="floor",Ws="round",Ds="concat",Oo="strlen",Ps="ucase",yi="lcase",Qs="encode_for_uri",Tn="contains",Sn="strbefore",Ln="strstarts",Na="strends",Me="strafter",Y="year",pe="month",ke="day",vt="hours",li="minutes",Vt="seconds",Ei="timezone",Yi="tz",ir="now",ds="uuid",Dt="struuid",vo="md5",ct="sha1",Tt="sha256",Bn="sha384",gs="sha512",ms="coalesce",Ra="if",tt="strlang",Ot="strdt",Ta="sameterm",kn="isuri",rr="isiri",Ah="isblank",Vn="isliteral",Go="isnumeric",Pt="regex",Zo="substr",Xs="replace",Mo="exists",Sa="count",Ys="sum",La="min",Ba="max",Fn="avg",ka="sample",Va="group_concat",Un="separator",_n="^^",Fa="true",Nh="false",Qe=":",or="_:",wt="$",On="@",fr="'",jr='"',$r="'''",Hi="''",qr='"""',dr='""',ei="\\",gr="#",Gn="_",Zn="%",Rh="~",nc="&",Hs=/^[^<>"{}|\^`\\\0- ]/,$e=/^[0-9]/,Mn=/^[a-zA-Z]/,it=/^[a-zA-Z0-9]/,Th=/^[eE]/,mr=/^[+\-]/,Wo=/^[^'\\\n\r]/,Wn=/^[^"\\\n\r]/,Ua=/^[^'\\]/,Js=/^[^"\\]/,Sh=/^[tbnrf\\"']/,ac=/^[ \t]/,Lh=/^[\r\n]/,Bh=/^[^\r\n]/,_a=/^[A-Z]/,kh=/^[a-z]/,Gr=/^[\xC0-\xD6]/,Vh=/^[\xD8-\xF6]/,lc=/^[\xF8-\u02FF]/,yo=/^[\u0370-\u037D]/,cc=/^[\u037F-\u1FFF]/,hc=/^[\u200C-\u200D]/,Oa=/^[\u2070-\u218F]/,Fh=/^[\u2C00-\u2FEF]/,pc=/^[\u3001-\uD7FF]/,uc=/^[\uF900-\uFDCF]/,Uh=/^[\uFDF0-\uFFFD]/,zs=/^[\xB7]/,Do=/^[\u0300-\u036F]/,js=/^[\u203F-\u2040]/,fc=/^[A-F]/,dc=/^[a-f]/,Dn=M("BASE",!0),Po=M("PREFIX",!0),_h=M("SELECT",!0),Gt=M("DISTINCT",!0),sr=M("REDUCED",!0),ie=M("(",!1),Eo=M("AS",!0),oe=M(")",!1),St=M("*",!1),$s=M("CONSTRUCT",!0),Qo=M("WHERE",!0),Ri=M("{",!1),Ci=M("}",!1),Oh=M("DESCRIBE",!0),br=M("ASK",!0),bs=M("FROM",!0),qs=M("NAMED",!0),Kr=M("GROUP",!0),Ga=M("BY",!0),ws=M("HAVING",!0),Gh=M("ORDER",!0),Ks=M("ASC",!0),gc=M("DESC",!0),Pn=M("LIMIT",!0),Zh=M("OFFSET",!0),Zr=M("VALUES",!0),Ii=M(";",!1),Mh=M("LOAD",!0),di=M("SILENT",!0),Wh=M("INTO",!0),eo=M("CLEAR",!0),Dh=M("DROP",!0),xs=M("CREATE",!0),Ph=M("ADD",!0),Ji=M("TO",!0),Qn=M("MOVE",!0),mc=M("COPY",!0),en=M("INSERT",!0),vs=M("DATA",!0),Xo=M("DELETE",!0),Xn=M("WITH",!0),ys=M("USING",!0),Es=M("DEFAULT",!0),to=M("GRAPH",!0),bc=M("ALL",!0),ut=M(".",!1),Yn=M("OPTIONAL",!0),Qh=M("SERVICE",!0),wc=M("BIND",!0),Xh=M("UNDEF",!1),xc=M("MINUS",!0),Za=M("UNION",!0),Mr=M("FILTER",!0),We=M(",",!1),Yo=M("a",!1),Wr=M("|",!1),gi=M("/",!1),Hn=M("^",!1),tn=M("?",!1),ti=M("+",!1),rn=M("!",!1),Dr=M("[",!1),Cs=M("]",!1),Jn=M("||",!1),Ma=M("&&",!1),Ti=M("=",!1),zn=M("!=",!1),Is=M("<",!1),io=M(">",!1),Wa=M("<=",!1),As=M(">=",!1),wr=M("IN",!0),Ns=M("NOT",!0),Qt=M("-",!1),Yh=M("STR",!0),vc=M("LANG",!0),yc=M("LANGMATCHES",!0),Ec=M("DATATYPE",!0),Cc=M("BOUND",!0),Ic=M("IRI",!0),Hh=M("URI",!0),Ac=M("BNODE",!0),Nc=M("RAND",!0),Jh=M("ABS",!0),p=M("CEIL",!0),v=M("FLOOR",!0),N=M("ROUND",!0),S=M("CONCAT",!0),U=M("STRLEN",!0),Z=M("UCASE",!0),X=M("LCASE",!0),z=M("ENCODE_FOR_URI",!0),ee=M("CONTAINS",!0),le=M("STRBEFORE",!0),Ne=M("STRSTARTS",!0),He=M("STRENDS",!0),nt=M("STRAFTER",!0),Si=M("YEAR",!0),ci=M("MONTH",!0),nr=M("DAY",!0),Oi=M("HOURS",!0),Rs=M("MINUTES",!0),zh=M("SECONDS",!0),jh=M("TIMEZONE",!0),$h=M("TZ",!0),Rc=M("NOW",!0),qh=M("UUID",!0),Tc=M("STRUUID",!0),Xt=M("MD5",!0),jn=M("SHA1",!0),Kh=M("SHA256",!0),ep=M("SHA384",!0),tp=M("SHA512",!0),Da=M("COALESCE",!0),Sc=M("IF",!0),ip=M("STRLANG",!0),Gg=M("STRDT",!0),Zg=M("sameTerm",!0),Mg=M("isURI",!0),Wg=M("isIRI",!0),Dg=M("isBLANK",!0),Pg=M("isLITERAL",!0),Qg=M("isNUMERIC",!0),Xg=M("REGEX",!0),Yg=M("SUBSTR",!0),Hg=M("REPLACE",!0),rp=M("EXISTS",!0),Jg=M("COUNT",!0),zg=M("SUM",!0),jg=M("MIN",!0),$g=M("MAX",!0),qg=M("AVG",!0),Kg=M("SAMPLE",!0),em=M("GROUP_CONCAT",!0),tm=M("SEPARATOR",!0),im=M("^^",!1),rm=M("true",!0),om=M("false",!0),op=Ue(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),xr=M(":",!1),sm=M("_:",!1),Ke=Ue([["0","9"]],!1,!1),sp=M("$",!1),np=M("@",!1),ap=Ue([["a","z"],["A","Z"]],!1,!1),on=Ue([["a","z"],["A","Z"],["0","9"]],!1,!1),nm=Ue(["e","E"],!1,!1),am=Ue(["+","-"],!1,!1),Ho=M("'",!1),lp=Ue(["'","\\",`
60
+ `,"\r"],!0,!1),sn=M('"',!1),cp=Ue(['"',"\\",`
61
+ `,"\r"],!0,!1),hp=M("'''",!1),pp=M("''",!1),up=Ue(["'","\\"],!0,!1),fp=M('"""',!1),dp=M('""',!1),gp=Ue(['"',"\\"],!0,!1),mp=M("\\",!1),lm=Ue(["t","b","n","r","f","\\",'"',"'"],!1,!1),cm=Ue([" "," "],!1,!1),hm=Ue(["\r",`
62
+ `],!1,!1),pm=Ue(["\r",`
63
+ `],!0,!1),Pa=M("#",!1),um=Ue([["A","Z"]],!1,!1),fm=Ue([["a","z"]],!1,!1),dm=Ue([["\xC0","\xD6"]],!1,!1),gm=Ue([["\xD8","\xF6"]],!1,!1),mm=Ue([["\xF8","\u02FF"]],!1,!1),bm=Ue([["\u0370","\u037D"]],!1,!1),wm=Ue([["\u037F","\u1FFF"]],!1,!1),xm=Ue([["\u200C","\u200D"]],!1,!1),vm=Ue([["\u2070","\u218F"]],!1,!1),ym=Ue([["\u2C00","\u2FEF"]],!1,!1),Em=Ue([["\u3001","\uD7FF"]],!1,!1),Cm=Ue([["\uF900","\uFDCF"]],!1,!1),Im=Ue([["\uFDF0","\uFFFD"]],!1,!1),bp=M("_",!1),Qa=Ue(["\xB7"],!1,!1),Xa=Ue([["\u0300","\u036F"]],!1,!1),Ya=Ue([["\u203F","\u2040"]],!1,!1),wp=M("%",!1),Am=Ue([["A","F"]],!1,!1),Nm=Ue([["a","f"]],!1,!1),Rm=M("~",!1),Tm=M("&",!1),Sm=function(s,u){let l={};s.length?l={headers:s,...u}:l=u;let h=Object.entries(eu).map(([m,b])=>({pos:parseInt(m),text:b}));return h.length&&(l.comments=h),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...l}},Lm=function(s,u,l){let h={type:"Query"};return s&&(h.prologue=s),u.type==="SelectQuery"?h.selectQuery=u:u.type==="ConstructQuery"?h.constructQuery=u:u.type==="DescribeQuery"?h.describeQuery=u:u.type==="AskQuery"&&(h.askQuery=u),l&&(h.values=l),h},Bm=function(s){if(s.length)return{type:"Prologue",decl:s}},km=function(s){return{type:"BaseDecl",iriref:s}},Vm=function(s,u){return{type:"PrefixDecl",pn_prefix:s,iriref:u}},Fm=function(s,u,l,h){return u.length&&(s.from=u),s={type:"SelectQuery",selectClause:s,whereClause:l,...h},s},Um=function(s,u,l,h){let m={type:"SubSelect",selectClause:s,whereClause:u,...l,location:ye()};return h&&(m.values=h),m},_m=function(s,u){let l;u==="*"?l=["*"]:l=u.map(m=>m.length===2?m[1]:{expression:m[3],as:m[7]});let h={var:l};if(s){let m=s.toUpperCase();m==="DISTINCT"?h.distinct=!0:m==="REDUCED"&&(h.reduced=!0)}return h.location=ye(),h},Om=function(s,u,l,h){let m={type:"ConstructQuery"};return u.length&&(m.from=u),m={...m,template:s,where:l,...h,location:ye()},m},Gm=function(s,u,l){let h={type:"ConstructQuery"};return s.length&&(h.from=s),h={...h,where:[u],...l,location:ye()},h},Zm=function(s,u,l,h){let m={type:"DescribeQuery"};return u.length&&(m.from=u),m.describe=s,l&&(m.where=l),m={...m,...h,location:ye()},m},Mm=function(s,u,l){let h={type:"AskQuery"};return s.length&&(h.from=s),h={...h,where:u,...l,location:ye()},h},Wm=function(s){return s},Dm=function(s){return{graph:s,location:ye()}},Pm=function(s){return{namedGraph:s,location:ye()}},Qm=function(s){return s.graphPattern||s},Xm=function(s,u,l,h){let m={};return s&&(m.group=s),u&&(m.having=u),l&&(m.orderBy=l),h&&(m.limitOffset=h),m},Ym=function(s){return s},Hm=function(s){return s},Jm=function(s){return s},zm=function(s,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:s,as:u[2],location:ye()}:{bracketted:!0,...s}},jm=function(s){return s},$m=function(s){return s},qm=function(s){return s},Km=function(s){return s},eb=function(s,u){let l={};return s.toUpperCase()==="ASC"?l={asc:!0,...u}:s.toUpperCase()==="DESC"&&(l={desc:!0,...u}),l},tb=function(s){return s},ib=function(s){let u=[s[0]];return s[1]&&u.push(s[1]),u},rb=function(s){return{limit:parseInt(s.literal)}},ob=function(s){return{offset:parseInt(s.literal)}},sb=function(s){return s?s[1]:null},nb=function(s,u){let l={type:"Update"};s&&(l.prologue=s);let h=[];return u&&(h=[u[1]],u[2]&&(h=h.concat(u[2][3].update))),l.update=h,l},ab=function(s,u,l){let h={type:"load",silent:s,sourceGraph:u};return l&&(h.destinyGraph=l[2]),h},lb=function(s,u){return{type:"clear",silent:s,destinyGraph:u}},cb=function(s,u){return{type:"drop",silent:s,destinyGraph:u}},hb=function(s,u){return{type:"create",silent:s,destinyGraph:u}},pb=function(s,u,l){return{type:"add",silent:s,graphs:[u,l]}},ub=function(s,u,l){return{type:"move",silent:s,graphs:[u,l]}},fb=function(s,u,l){return{type:"copy",silent:s,graphs:[u,l]}},db=function(s){return{type:"insertdata",insert:s}},gb=function(s){return{type:"deletedata",delete:s}},mb=function(s){return{type:"deletewhere",delete:s}},bb=function(s,u,l,h){let m={type:"modify"};return s&&(m.with=s[2]),u.length===3?(m.delete=u[0],u[2]&&(m.insert=u[2])):m.insert=u,l.length&&(m.using=l),m.where=h.graphPattern,m},wb=function(s){return s},xb=function(s){return s},vb=function(s){return s.length===3?{named:!0,iri:s[2]}:{iri:s}},yb=function(){return"default"},Eb=function(s){return s},Cb=function(s){return s},Ib=function(s){return s},Ab=function(){return"default"},Nb=function(){return"named"},Rb=function(){return"all"},Tb=function(s){return s},Sb=function(s){return s},Lb=function(s,u){let l=[];return s&&(l=l.concat(s)),u.forEach(h=>{l=l.concat(h[0]),h[2]&&(l=l.concat(h[2]))}),l},Bb=function(s,u){return{graph:s,...u}},kb=function(s,u){let l=[s];return u&&u[3]&&(l=l.concat(u[3].triplePattern)),{triplePattern:l,location:ye()}},Vb=function(s){return s},Fb=function(s,u){let l=[];return s&&l.push(s),u.forEach(h=>{l.push(h[0]),h[4]&&l.push(h[4])}),{graphPattern:l,location:ye()}},Ub=function(s,u){let l=[];if(u&&u[3])if(a(s.subject,u[3].triplePattern[0].subject)){l=JSON.parse(JSON.stringify(u[3].triplePattern));let h=s.properties.length-1;if(a(s.properties[h].predicate,u[3].triplePattern[0].properties[0].predicate)){l[0].properties=s.properties;let m=l[0].properties[h].objects.length-1;u[3].triplePattern[0].properties[0].objects.forEach(b=>{a(s.properties[h].objects[m],b)||l[0].properties[h].objects.push(b)}),l[0].properties.push(...u[3].triplePattern[0].properties.slice(1))}else l[0].properties=s.properties.concat(u[3].triplePattern[0].properties)}else l=[s].concat(u[3].triplePattern);else l=[s];return{type:"TriplesBlock",triplePattern:l,location:ye()}},_b=function(s){return{type:"OptionalGraphPattern",optional:s.graphPattern||s,location:ye()}},Ob=function(s,u){return{type:"GraphGraphPattern",graph:s,...u}},Gb=function(s,u,l){let h={type:"ServiceGraphPattern",service:u,pattern:l.graphPattern||l};return s&&(h.silent=!0),h.location=ye(),h},Zb=function(s,u){return{type:"Bind",bind:s,as:u,location:ye()}},Mb=function(s){return s},Wb=function(s,u){return{oneVar:s,data:u,location:ye()}},Db=function(s,u){return{variables:s,data:u,location:ye()}},Pb=function(s){return s},Qb=function(s){return s},Xb=function(s){return{type:"MinusGraphPattern",minus:s.graphPattern||s,location:ye()}},Yb=function(s,u){return u.length?{union:[s,...u],location:ye()}:s},Hb=function(s){return{type:"Filter",filter:s,location:ye()}},Jb=function(s,u){return{functionRef:s,args:u.list,location:ye()}},zb=function(){return{list:[]}},jb=function(s,u,l){return{distinct:!!s,list:[u,...l]}},$b=function(){return[]},qb=function(s,u){return[s,...u]},Kb=function(s){return s},e0=function(s,u){let l=[s];return u&&u[3]&&(l=l.concat(u[3].triplePattern)),{triplePattern:l,location:ye()}},t0=function(s,u){return{subject:s,properties:u}},i0=function(s,u){return{subject:s,properties:u}},r0=function(s,u,l){let h=[];return h.push({predicate:s,objects:u}),l.forEach(m=>{m[3]&&h.push({predicate:m[3][0],objects:m[3][2]})}),h},o0=function(){return{a:!0,location:ye()}},s0=function(s,u){return[s,...u]},n0=function(s,u){return{subject:s,properties:u}},a0=function(s,u){return{subject:s,properties:u}},l0=function(s,u,l){let h=[];return h.push({predicate:s,objects:u}),l.forEach(m=>{if(m[3]){let b=h.length-1,x=h[b].objects.length-1;a(h[b].predicate,m[3][0])?m[3][2].forEach(E=>{a(h[b].objects[x],E)||h[b].objects.push(E)}):h.push({predicate:m[3][0],objects:m[3][2]})}}),h},c0=function(s,u){return[s,...u]},h0=function(s,u){if(u.length){let l=[s];for(let h=0;h<u.length;h++)l.push(u[h][3]);return{alternative:l,location:ye()}}else return s},p0=function(s,u){if(u.length){let l=[s];for(let h=0;h<u.length;h++)l.push(u[h][3]);return{sequence:l,location:ye()}}else return s},u0=function(s,u){return u&&(s.modifier=u),s},f0=function(s){return s.inverse=!0,s},d0=function(){return{a:!0,location:ye()}},g0=function(s){return{bracketted:!0,...s}},m0=function(s){return{collection:s,location:ye()}},b0=function(s){return{blankNodeProperties:s,location:ye()}},w0=function(s){return{collection:s,location:ye()}},x0=function(s){return{blankNodeProperties:s,location:ye()}},v0=function(s){return s},y0=function(s){return s},E0=function(s){return s},C0=function(s){return s},I0=function(s){return{...s,location:ye()}},A0=function(s,u){return u.length?{expressionType:"conditionalor",operands:[s,...u]}:s},N0=function(s,u){return u.length?{expressionType:"conditionaland",operands:[s,...u]}:s},R0=function(s,u){if(u.length){let l=s,h=u[0][1].toUpperCase(),m=u[0][3];return h==="NOT"&&(h+=" "+u[0][3].toUpperCase(),m=u[0][5]),{expressionType:"relationalexpression",operator:h,op1:l,op2:m}}else return s},T0=function(s,u){if(u.length===0)return s;let l=[];return u.forEach(h=>{h.length==4&&l.push({operator:h[1],expression:h[3]})}),{expressionType:"additiveexpression",op1:s,ops:l}},S0=function(s,u){return u.length?{expressionType:"multiplicativeexpression",first:s,rest:u.map(l=>({operator:l[1],expression:l[3]}))}:s},L0=function(s){return{expressionType:"unaryexpression",unaryexpression:"!",expression:s}},B0=function(s){return{expressionType:"unaryexpression",unaryexpression:"+",expression:s}},k0=function(s){return{expressionType:"unaryexpression",unaryexpression:"-",expression:s}},V0=function(s){return{expressionType:"atomic",value:s}},F0=function(s){return{expressionType:"atomic",value:s}},U0=function(s){return{expressionType:"atomic",value:s}},_0=function(s){return{expressionType:"atomic",value:s}},O0=function(s){return{bracketted:!0,...s}},G0=function(s){return{expressionType:"builtincall",builtincall:"str",args:[s]}},Z0=function(s){return{expressionType:"builtincall",builtincall:"lang",args:[s]}},M0=function(s,u){return{expressionType:"builtincall",builtincall:"langMatches",args:[s,u]}},W0=function(s){return{expressionType:"builtincall",builtincall:"datatype",args:[s]}},D0=function(s){return{expressionType:"builtincall",builtincall:"bound",args:[s]}},P0=function(s){return{expressionType:"builtincall",builtincall:"IRI",args:[s]}},Q0=function(s){return{expressionType:"builtincall",builtincall:"URI",args:[s]}},X0=function(s){let u={expressionType:"builtincall",builtincall:"BNODE",args:null};return s.length===5&&(u.args=[s[2]]),u},Y0=function(){return{expressionType:"builtincall",builtincall:"rand"}},H0=function(s){return{expressionType:"builtincall",builtincall:"abs",args:[s]}},J0=function(s){return{expressionType:"builtincall",builtincall:"ceil",args:[s]}},z0=function(s){return{expressionType:"builtincall",builtincall:"floor",args:[s]}},j0=function(s){return{expressionType:"builtincall",builtincall:"round",args:[s]}},$0=function(s){return{expressionType:"builtincall",builtincall:"CONCAT",args:s}},q0=function(s){return{expressionType:"builtincall",builtincall:"STRLEN",args:[s]}},K0=function(s){return{expressionType:"builtincall",builtincall:"UCASE",args:[s]}},ew=function(s){return{expressionType:"builtincall",builtincall:"LCASE",args:[s]}},tw=function(s){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[s]}},iw=function(s,u){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[s,u]}},rw=function(s,u){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[s,u]}},ow=function(s,u){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[s,u]}},sw=function(s,u){return{expressionType:"builtincall",builtincall:"STRENDS",args:[s,u]}},nw=function(s,u){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[s,u]}},aw=function(s){return{expressionType:"builtincall",builtincall:"year",args:[s]}},lw=function(s){return{expressionType:"builtincall",builtincall:"month",args:[s]}},cw=function(s){return{expressionType:"builtincall",builtincall:"day",args:[s]}},hw=function(s){return{expressionType:"builtincall",builtincall:"hours",args:[s]}},pw=function(s){return{expressionType:"builtincall",builtincall:"minutes",args:[s]}},uw=function(s){return{expressionType:"builtincall",builtincall:"seconds",args:[s]}},fw=function(s){return{expressionType:"builtincall",builtincall:"timezone",args:[s]}},dw=function(s){return{expressionType:"builtincall",builtincall:"tz",args:[s]}},gw=function(){return{expressionType:"builtincall",builtincall:"now"}},mw=function(){return{expressionType:"builtincall",builtincall:"UUID"}},bw=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},ww=function(s){return{expressionType:"builtincall",builtincall:"MD5",args:[s]}},xw=function(s){return{expressionType:"builtincall",builtincall:"SHA1",args:[s]}},vw=function(s){return{expressionType:"builtincall",builtincall:"SHA256",args:[s]}},yw=function(s){return{expressionType:"builtincall",builtincall:"SHA384",args:[s]}},Ew=function(s){return{expressionType:"builtincall",builtincall:"SHA512",args:[s]}},Cw=function(s){return{expressionType:"builtincall",builtincall:"COALESCE",args:s}},Iw=function(s,u,l){return{expressionType:"builtincall",builtincall:"IF",args:[s,u,l]}},Aw=function(s,u){return{expressionType:"builtincall",builtincall:"STRLANG",args:[s,u]}},Nw=function(s,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[s,u]}},Rw=function(s,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[s,u]}},Tw=function(s){return{expressionType:"builtincall",builtincall:"isURI",args:[s]}},Sw=function(s){return{expressionType:"builtincall",builtincall:"isBlank",args:[s]}},Lw=function(s){return{expressionType:"builtincall",builtincall:"isLiteral",args:[s]}},Bw=function(s){return{expressionType:"builtincall",builtincall:"isNumeric",args:[s]}},kw=function(s,u,l){let h={expressionType:"regex",text:s,pattern:u};return l&&(h.flags=l[2]),h},Vw=function(s,u,l){let h=[s,u];return l&&h.push(l[2]),{expressionType:"builtincall",builtincall:"substr",args:h}},Fw=function(s,u,l,h){let m=[s,u,l];return h&&m.push(h[2]),{expressionType:"builtincall",builtincall:"replace",args:m}},Uw=function(s){return{exists:s.graphPattern||s}},_w=function(s){return{notexists:s.graphPattern||s}},Ow=function(s,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!s,expression:u}},Gw=function(s,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!s,expression:u}},Zw=function(s,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!s,expression:u}},Mw=function(s,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!s,expression:u}},Ww=function(s,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!s,expression:u}},Dw=function(s,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!s,expression:u}},Pw=function(s,u,l){let h=null;return l?.length&&(h=l[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:h,distinct:!!s}},Qw=function(s,u){let l={expressionType:"irireforfunction",iriref:s};return u&&(l.args=u.list),l},Xw=function(s,u){return typeof u=="string"?s.lang=u:u&&(s.dataType=u[1]),s.location=ye(),s},Yw=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Hw=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Jw=function(s){return{type:"IRIref",iriref:s,location:ye()}},zw=function(s){return s},jw=function(s){return{type:"PrefixedName",pn_prefix:s.pn_prefix,pn_local:s.pn_local,location:ye()}},$w=function(s){return{type:"PrefixedName",pn_prefix:s,location:ye()}},qw=function(s){return{blankNode:s,location:ye()}},Kw=function(){return{blankNode:"[]",location:ye()}},ex=function(s){return s.join("")},tx=function(s){return s||""},ix=function(s,u){return{pn_prefix:s,pn_local:u}},rx=function(){return Zt()},ox=function(s){return{type:"Var",varType:"VAR1",varname:s}},sx=function(s){return{type:"Var",varType:"VAR2",varname:s}},nx=function(s,u){let l=s.join("");return u.length&&(l+="-"+u[0][1].join("")),l.toLowerCase()},ax=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Zt()}},lx=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Zt()}},cx=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zt()}},hx=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zt()}},px=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zt()}},ux=function(s){return s.literal="+"+s.literal,s},fx=function(s){return s.literal="+"+s.literal,s},dx=function(s){return s.literal="+"+s.literal,s},gx=function(s){return s.literal="-"+s.literal,s},mx=function(s){return s.literal="-"+s.literal,s},bx=function(s){return s.literal="-"+s.literal,s},wx=function(s){return{quote:"'",literal:s.join("")}},xx=function(s){return{quote:'"',literal:s.join("")}},vx=function(s){return{quote:"'''",literal:s.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},yx=function(s){return{quote:'"""',literal:s.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},Ex=function(){return Zt()},Cx=function(){return Zt()},Ix=function(){return eu[ye().start.offset]=Zt(),""},Ax=function(){return Zt()},Nx=function(){return Zt()},Rx=function(){return Zt()},r=0,_=0,nn=[{line:1,column:1}],mi=0,Ha=[],I=0,an;if("startRule"in t){if(!(t.startRule in n))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');c=n[t.startRule]}function Zt(){return i.substring(_,r)}function p2(){return _}function u2(){return{source:o,start:_,end:r}}function ye(){return Jo(_,r)}function f2(s,u){throw u=u!==void 0?u:Jo(_,r),vp([Sx(s)],i.substring(_,r),u)}function d2(s,u){throw u=u!==void 0?u:Jo(_,r),Lx(s,u)}function M(s,u){return{type:"literal",text:s,ignoreCase:u}}function Ue(s,u,l){return{type:"class",parts:s,inverted:u,ignoreCase:l}}function g2(){return{type:"any"}}function Tx(){return{type:"end"}}function Sx(s){return{type:"other",description:s}}function xp(s){var u=nn[s],l;if(u)return u;for(l=s-1;!nn[l];)l--;for(u=nn[l],u={line:u.line,column:u.column};l<s;)i.charCodeAt(l)===10?(u.line++,u.column=1):u.column++,l++;return nn[s]=u,u}function Jo(s,u,l){var h=xp(s),m=xp(u),b={source:o,start:{offset:s,line:h.line,column:h.column},end:{offset:u,line:m.line,column:m.column}};return l&&o&&typeof o.offset=="function"&&(b.start=o.offset(b.start),b.end=o.offset(b.end)),b}function C(s){r<mi||(r>mi&&(mi=r,Ha=[]),Ha.push(s))}function Lx(s,u){return new oc(s,null,null,u)}function vp(s,u,l){return new oc(oc.buildMessage(s,u),s,u,l)}function yp(){var s,u,l,h,m,b;for(s=r,u=[],l=jp();l!==e;)u.push(l),l=jp();for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=Bx(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();_=s,s=Sm(u,h)}else r=s,s=e;return s}function Bx(){var s;return s=kx(),s===e&&(s=kp()),s}function kx(){var s,u,l,h,m;for(s=r,u=Ep(),l=[],h=d();h!==e;)l.push(h),h=d();return h=Vx(),h===e&&(h=Ux(),h===e&&(h=_x(),h===e&&(h=Ox()))),h!==e?(m=Bp(),_=s,s=Lm(u,h,m)):(r=s,s=e),s}function Ep(){var s,u,l;for(s=r,u=[],l=Cp(),l===e&&(l=Ip());l!==e;)u.push(l),l=Cp(),l===e&&(l=Ip());return _=s,u=Bm(u),s=u,s}function Cp(){var s,u,l,h,m;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,4).toLowerCase()===g?(l=i.substr(r,4),r+=4):(l=e,I===0&&C(Dn)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=fl(),m!==e?(_=s,s=km(m)):(r=s,s=e)}else r=s,s=e;return s}function Ip(){var s,u,l,h,m,b,x;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,6).toLowerCase()===w?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(Po)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=dl(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=fl(),x!==e?(_=s,s=Vm(m,x)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function Vx(){var s,u,l,h,m,b,x,E;if(s=r,u=Ap(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=[],m=bi();m!==e;)h.push(m),m=bi();for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=zo(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=ro(),_=s,s=Fm(u,h,b,E)}else r=s,s=e}else r=s,s=e;return s}function Fx(){var s,u,l,h,m,b,x;if(s=r,u=Ap(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=zo(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=ro(),x=Bp(),_=s,s=Um(u,h,b,x)}else r=s,s=e}else r=s,s=e;return s}function Ap(){var s,u,l,h,m,b,x,E,B,V,O,D,q,he,be,Fe,rt;if(s=r,i.substr(r,6).toLowerCase()===y?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(_h)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,8).toLowerCase()===A?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(Gt)),h===e&&(i.substr(r,7).toLowerCase()===R?(h=i.substr(r,7),r+=7):(h=e,I===0&&C(sr))),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();for(b=[],x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(B=ft(),B!==e?(E=[E,B],x=E):(r=x,x=e),x===e){for(x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===40?(B=T,r++):(B=e,I===0&&C(ie)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();if(O=$(),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();if(i.substr(r,2).toLowerCase()===F?(q=i.substr(r,2),r+=2):(q=e,I===0&&C(Eo)),q!==e){for(he=[],be=d();be!==e;)he.push(be),be=d();if(be=ft(),be!==e){for(Fe=[],rt=d();rt!==e;)Fe.push(rt),rt=d();i.charCodeAt(r)===41?(rt=k,r++):(rt=e,I===0&&C(oe)),rt!==e?(E=[E,B,V,O,D,q,he,be,Fe,rt],x=E):(r=x,x=e)}else r=x,x=e}else r=x,x=e}else r=x,x=e}else r=x,x=e}if(x!==e)for(;x!==e;){for(b.push(x),x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(B=ft(),B!==e?(E=[E,B],x=E):(r=x,x=e),x===e){for(x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===40?(B=T,r++):(B=e,I===0&&C(ie)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();if(O=$(),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();if(i.substr(r,2).toLowerCase()===F?(q=i.substr(r,2),r+=2):(q=e,I===0&&C(Eo)),q!==e){for(he=[],be=d();be!==e;)he.push(be),be=d();if(be=ft(),be!==e){for(Fe=[],rt=d();rt!==e;)Fe.push(rt),rt=d();i.charCodeAt(r)===41?(rt=k,r++):(rt=e,I===0&&C(oe)),rt!==e?(E=[E,B,V,O,D,q,he,be,Fe,rt],x=E):(r=x,x=e)}else r=x,x=e}else r=x,x=e}else r=x,x=e}else r=x,x=e}}else b=e;b===e&&(i.charCodeAt(r)===42?(b=G,r++):(b=e,I===0&&C(St))),b!==e?(_=s,s=_m(h,b)):(r=s,s=e)}else r=s,s=e;return s}function Ux(){var s,u,l,h,m,b,x,E,B,V,O,D,q,he;if(s=r,i.substr(r,9).toLowerCase()===W?(u=i.substr(r,9),r+=9):(u=e,I===0&&C($s)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=dv(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(b=[],x=bi();x!==e;)b.push(x),x=bi();for(x=[],E=d();E!==e;)x.push(E),E=d();if(E=zo(),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=ro(),_=s,s=Om(h,b,E,V)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e)if(s=r,i.substr(r,9).toLowerCase()===W?(u=i.substr(r,9),r+=9):(u=e,I===0&&C($s)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=[],m=bi();m!==e;)h.push(m),m=bi();for(m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,5).toLowerCase()===P?(b=i.substr(r,5),r+=5):(b=e,I===0&&C(Qo)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===123?(E=Q,r++):(E=e,I===0&&C(Ri)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();for(V=so(),V===e&&(V=null),O=[],D=d();D!==e;)O.push(D),D=d();if(i.charCodeAt(r)===125?(D=H,r++):(D=e,I===0&&C(Ci)),D!==e){for(q=[],he=d();he!==e;)q.push(he),he=d();he=ro(),_=s,s=Gm(h,V,he)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function _x(){var s,u,l,h,m,b,x,E,B,V;if(s=r,i.substr(r,8).toLowerCase()===re?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Oh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=[],m=ao(),m!==e)for(;m!==e;)h.push(m),m=ao();else h=e;if(h===e&&(i.charCodeAt(r)===42?(h=G,r++):(h=e,I===0&&C(St))),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(b=[],x=bi();x!==e;)b.push(x),x=bi();for(x=[],E=d();E!==e;)x.push(E),E=d();for(E=zo(),E===e&&(E=null),B=[],V=d();V!==e;)B.push(V),V=d();V=ro(),_=s,s=Zm(h,b,E,V)}else r=s,s=e}else r=s,s=e;return s}function Ox(){var s,u,l,h,m,b,x,E,B;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,3).toLowerCase()===K?(l=i.substr(r,3),r+=3):(l=e,I===0&&C(br)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(m=[],b=bi();b!==e;)m.push(b),b=bi();for(b=[],x=d();x!==e;)b.push(x),x=d();if(x=zo(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();B=ro(),_=s,s=Mm(m,x,B)}else r=s,s=e}else r=s,s=e;return s}function bi(){var s,u,l,h,m,b;if(s=r,i.substr(r,4).toLowerCase()===J?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(bs)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=Gx(),h===e&&(h=Zx()),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();_=s,s=Wm(h)}else r=s,s=e}else r=s,s=e;return s}function Gx(){var s,u,l;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();return l=mt(),l!==e?(_=s,s=Dm(l)):(r=s,s=e),s}function Zx(){var s,u,l,h;if(s=r,i.substr(r,5).toLowerCase()===te?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(qs)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=mt(),h!==e?(_=s,s=Pm(h)):(r=s,s=e)}else r=s,s=e;return s}function zo(){var s,u,l,h;for(s=r,i.substr(r,5).toLowerCase()===P?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Qo)),u===e&&(u=null),l=[],h=d();h!==e;)l.push(h),h=d();return h=ii(),h!==e?(_=s,s=Qm(h)):(r=s,s=e),s}function ro(){var s,u,l,h,m;return s=r,u=Mx(),u===e&&(u=null),l=Wx(),l===e&&(l=null),h=Dx(),h===e&&(h=null),m=Px(),m===e&&(m=null),_=s,s=Xm(u,l,h,m),s}function Mx(){var s,u,l,h,m,b,x;if(s=r,i.substr(r,5).toLowerCase()===ae?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Kr)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.substr(r,2).toLowerCase()===me?(h=i.substr(r,2),r+=2):(h=e,I===0&&C(Ga)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=[],x=Np(),x!==e)for(;x!==e;)b.push(x),x=Np();else b=e;b!==e?(_=s,s=Ym(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function Np(){var s,u,l,h,m,b,x,E,B,V,O;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(l=al(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=s,s=Hm(l)}else r=s,s=e;if(s===e){for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(l=Dp(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=s,s=Jm(l)}else r=s,s=e;if(s===e){for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(x=r,i.substr(r,2).toLowerCase()===F?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Eo)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=ft(),V!==e?(E=[E,B,V],x=E):(r=x,x=e)}else r=x,x=e;for(x===e&&(x=null),E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();_=s,s=zm(m,x)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(l=ft(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=s,s=jm(l)}else r=s,s=e}}}return s}function Wx(){var s,u,l,h,m;if(s=r,i.substr(r,6).toLowerCase()===Ee?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(ws)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=[],m=Rp(),m!==e)for(;m!==e;)h.push(m),m=Rp();else h=e;h!==e?(_=s,s=$m(h)):(r=s,s=e)}else r=s,s=e;return s}function Rp(){var s,u,l,h;if(s=r,u=ja(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();_=s,s=qm(u)}else r=s,s=e;return s}function Dx(){var s,u,l,h,m,b,x,E;if(s=r,i.substr(r,5).toLowerCase()===Pe?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Gh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.substr(r,2).toLowerCase()===me?(h=i.substr(r,2),r+=2):(h=e,I===0&&C(Ga)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=[],x=Tp(),x!==e)for(;x!==e;)b.push(x),x=Tp();else b=e;if(b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();_=s,s=Km(b)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function Tp(){var s,u,l,h,m,b;if(s=r,i.substr(r,3).toLowerCase()===Re?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ks)),u===e&&(i.substr(r,4).toLowerCase()===Ie?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(gc))),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=nl(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();_=s,s=eb(u,h)}else r=s,s=e}else r=s,s=e;if(s===e)if(s=r,u=ja(),u===e&&(u=ft()),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();_=s,s=tb(u)}else r=s,s=e;return s}function Px(){var s,u,l,h;return s=r,u=r,l=Sp(),l!==e?(h=Lp(),h===e&&(h=null),l=[l,h],u=l):(r=u,u=e),u===e&&(u=r,l=Lp(),l!==e?(h=Sp(),h===e&&(h=null),l=[l,h],u=l):(r=u,u=e)),u!==e&&(_=s,u=ib(u)),s=u,s}function Sp(){var s,u,l,h,m,b;if(s=r,i.substr(r,5).toLowerCase()===Ye?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Pn)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=Ko(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();_=s,s=rb(h)}else r=s,s=e}else r=s,s=e;return s}function Lp(){var s,u,l,h,m,b;if(s=r,i.substr(r,6).toLowerCase()===Oe?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Zh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=Ko(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();_=s,s=ob(h)}else r=s,s=e}else r=s,s=e;return s}function Bp(){var s,u,l,h;return s=r,u=r,i.substr(r,6).toLowerCase()===de?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(Zr)),l!==e?(h=Mp(),h!==e?(l=[l,h],u=l):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),_=s,u=sb(u),s=u,s}function kp(){var s,u,l,h,m,b,x,E,B,V;for(s=r,u=Ep(),l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(m=Qx(),m!==e){for(b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===59?(E=ue,r++):(E=e,I===0&&C(Ii)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=kp(),x=[x,E,B,V],b=x}else r=b,b=e;b===e&&(b=null),h=[h,m,b],l=h}else r=l,l=e;for(l===e&&(l=null),h=[],m=d();m!==e;)h.push(m),m=d();return _=s,s=nb(u,l),s}function Qx(){var s;return s=Xx(),s===e&&(s=Yx(),s===e&&(s=Hx(),s===e&&(s=zx(),s===e&&(s=jx(),s===e&&(s=$x(),s===e&&(s=Jx(),s===e&&(s=qx(),s===e&&(s=Kx(),s===e&&(s=ev(),s===e&&(s=tv())))))))))),s}function Xx(){var s,u,l,h,m,b,x,E,B,V,O;if(s=r,i.substr(r,4).toLowerCase()===dt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Mh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,6).toLowerCase()===ce?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(di)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();if(b=mt(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(E=r,i.substr(r,4).toLowerCase()===Be?(B=i.substr(r,4),r+=4):(B=e,I===0&&C(Wh)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Ja(),O!==e?(B=[B,V,O],E=B):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),_=s,s=ab(h,b,E)}else r=s,s=e}else r=s,s=e;return s}function Yx(){var s,u,l,h,m,b;if(s=r,i.substr(r,5).toLowerCase()===qe?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(eo)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,6).toLowerCase()===ce?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(di)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();b=Up(),b!==e?(_=s,s=lb(h,b)):(r=s,s=e)}else r=s,s=e;return s}function Hx(){var s,u,l,h,m,b;if(s=r,i.substr(r,4).toLowerCase()===Xe?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Dh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,6).toLowerCase()===ce?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(di)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();b=Up(),b!==e?(_=s,s=cb(h,b)):(r=s,s=e)}else r=s,s=e;return s}function Jx(){var s,u,l,h,m,b;if(s=r,i.substr(r,6).toLowerCase()===ve?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(xs)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,6).toLowerCase()===ce?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(di)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();b=Ja(),b!==e?(_=s,s=hb(h,b)):(r=s,s=e)}else r=s,s=e;return s}function zx(){var s,u,l,h,m,b,x,E,B,V;if(s=r,i.substr(r,3).toLowerCase()===fe?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ph)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,6).toLowerCase()===ce?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(di)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();if(b=oo(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.substr(r,2).toLowerCase()===Le?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Ji)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=oo(),V!==e?(_=s,s=pb(h,b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function jx(){var s,u,l,h,m,b,x,E,B,V;if(s=r,i.substr(r,4).toLowerCase()===_e?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Qn)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,6).toLowerCase()===ce?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(di)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();if(b=oo(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.substr(r,2).toLowerCase()===Le?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Ji)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=oo(),V!==e?(_=s,s=ub(h,b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function $x(){var s,u,l,h,m,b,x,E,B,V;if(s=r,i.substr(r,4).toLowerCase()===bt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(mc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,6).toLowerCase()===ce?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(di)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();if(b=oo(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.substr(r,2).toLowerCase()===Le?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Ji)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=oo(),V!==e?(_=s,s=fb(h,b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function qx(){var s,u,l,h,m,b;if(s=r,i.substr(r,6).toLowerCase()===$t?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(en)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.substr(r,4).toLowerCase()===Fi?(h=i.substr(r,4),r+=4):(h=e,I===0&&C(vs)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=_p(),b!==e?(_=s,s=db(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function Kx(){var s,u,l,h,m;if(s=r,i.substr(r,6).toLowerCase()===Ki?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Xo)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();i.substr(r,4).toLowerCase()===Fi?(h=i.substr(r,4),r+=4):(h=e,I===0&&C(vs)),h!==e?(m=_p(),m!==e?(_=s,s=gb(m)):(r=s,s=e)):(r=s,s=e)}else r=s,s=e;return s}function ev(){var s,u,l,h,m,b;if(s=r,i.substr(r,6).toLowerCase()===Ki?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Xo)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.substr(r,5).toLowerCase()===P?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(Qo)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=za(),b!==e?(_=s,s=mb(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function tv(){var s,u,l,h,m,b,x,E,B,V,O;if(s=r,u=r,i.substr(r,4).toLowerCase()===ur?(l=i.substr(r,4),r+=4):(l=e,I===0&&C(Xn)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=mt(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();l=[l,h,m,b],u=l}else r=u,u=e}else r=u,u=e;if(u===e&&(u=null),l=r,h=iv(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=Vp(),b===e&&(b=null),h=[h,m,b],l=h}else r=l,l=e;if(l===e&&(l=Vp()),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(m=[],b=Fp();b!==e;)m.push(b),b=Fp();for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.substr(r,5).toLowerCase()===P?(x=i.substr(r,5),r+=5):(x=e,I===0&&C(Qo)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(B=ii(),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();_=s,s=bb(u,l,m,B)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function iv(){var s,u,l;return s=r,i.substr(r,6).toLowerCase()===Ki?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Xo)),u!==e?(l=za(),l!==e?(_=s,s=wb(l)):(r=s,s=e)):(r=s,s=e),s}function Vp(){var s,u,l;return s=r,i.substr(r,6).toLowerCase()===$t?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(en)),u!==e?(l=za(),l!==e?(_=s,s=xb(l)):(r=s,s=e)):(r=s,s=e),s}function Fp(){var s,u,l,h,m,b,x,E;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,5).toLowerCase()===Ve?(l=i.substr(r,5),r+=5):(l=e,I===0&&C(ys)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=mt(),m===e)if(m=r,i.substr(r,5).toLowerCase()===te?(b=i.substr(r,5),r+=5):(b=e,I===0&&C(qs)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=mt(),E!==e?(b=[b,x,E],m=b):(r=m,m=e)}else r=m,m=e;m!==e?(_=s,s=vb(m)):(r=s,s=e)}else r=s,s=e;return s}function oo(){var s,u,l,h;if(s=r,i.substr(r,7).toLowerCase()===ne?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Es)),u!==e&&(_=s,u=yb()),s=u,s===e){for(s=r,i.substr(r,5).toLowerCase()===It?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(to)),u===e&&(u=null),l=[],h=d();h!==e;)l.push(h),h=d();h=mt(),h!==e?(_=s,s=Eb(h)):(r=s,s=e)}return s}function Ja(){var s,u,l,h;if(s=r,i.substr(r,5).toLowerCase()===It?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(to)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=mt(),h!==e?(_=s,s=Cb(h)):(r=s,s=e)}else r=s,s=e;return s}function Up(){var s,u;return s=r,u=Ja(),u!==e&&(_=s,u=Ib(u)),s=u,s===e&&(s=r,i.substr(r,7).toLowerCase()===ne?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Es)),u!==e&&(_=s,u=Ab()),s=u,s===e&&(s=r,i.substr(r,5).toLowerCase()===te?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(qs)),u!==e&&(_=s,u=Nb()),s=u,s===e&&(s=r,i.substr(r,3).toLowerCase()===qt?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(bc)),u!==e&&(_=s,u=Rb()),s=u))),s}function za(){var s,u,l,h,m,b,x,E,B;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===123?(l=Q,r++):(l=e,I===0&&C(Ri)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(m=Op(),b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===125?(x=H,r++):(x=e,I===0&&C(Ci)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();_=s,s=Tb(m)}else r=s,s=e}else r=s,s=e;return s}function _p(){var s,u,l,h,m,b,x,E,B;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===123?(l=Q,r++):(l=e,I===0&&C(Ri)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(m=Op(),b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===125?(x=H,r++):(x=e,I===0&&C(Ci)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();_=s,s=Sb(m)}else r=s,s=e}else r=s,s=e;return s}function Op(){var s,u,l,h,m,b,x;for(s=r,u=so(),u===e&&(u=null),l=[],h=r,m=Gp(),m!==e?(i.charCodeAt(r)===46?(b=De,r++):(b=e,I===0&&C(ut)),b===e&&(b=null),x=so(),x===e&&(x=null),m=[m,b,x],h=m):(r=h,h=e);h!==e;)l.push(h),h=r,m=Gp(),m!==e?(i.charCodeAt(r)===46?(b=De,r++):(b=e,I===0&&C(ut)),b===e&&(b=null),x=so(),x===e&&(x=null),m=[m,b,x],h=m):(r=h,h=e);return _=s,s=Lb(u,l),s}function Gp(){var s,u,l,h,m,b,x,E,B,V,O,D,q;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,5).toLowerCase()===It?(l=i.substr(r,5),r+=5):(l=e,I===0&&C(to)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=ao(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===123?(x=Q,r++):(x=e,I===0&&C(Ri)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();for(B=so(),B===e&&(B=null),V=[],O=d();O!==e;)V.push(O),O=d();if(i.charCodeAt(r)===125?(O=H,r++):(O=e,I===0&&C(Ci)),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();_=s,s=Bb(m,B)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function so(){var s,u,l,h,m,b,x;if(s=r,u=Xp(),u!==e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=so(),x===e&&(x=null),h=[h,m,b,x],l=h}else r=l,l=e;l===e&&(l=null),_=s,s=kb(u,l)}else r=s,s=e;return s}function ii(){var s,u,l,h,m,b;if(s=r,i.charCodeAt(r)===123?(u=Q,r++):(u=e,I===0&&C(Ri)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=Fx(),h===e&&(h=rv()),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();i.charCodeAt(r)===125?(b=H,r++):(b=e,I===0&&C(Ci)),b!==e?(_=s,s=Vb(h)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function rv(){var s,u,l,h,m,b,x,E,B,V;for(s=r,u=ln(),u===e&&(u=null),l=[],h=d();h!==e;)l.push(h),h=d();if(h=[],m=r,b=Zp(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();for(i.charCodeAt(r)===46?(E=De,r++):(E=e,I===0&&C(ut)),E===e&&(E=null),B=[],V=d();V!==e;)B.push(V),V=d();V=ln(),V===e&&(V=null),b=[b,x,E,B,V],m=b}else r=m,m=e;for(;m!==e;)if(h.push(m),m=r,b=Zp(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();for(i.charCodeAt(r)===46?(E=De,r++):(E=e,I===0&&C(ut)),E===e&&(E=null),B=[],V=d();V!==e;)B.push(V),V=d();V=ln(),V===e&&(V=null),b=[b,x,E,B,V],m=b}else r=m,m=e;return _=s,s=Fb(u,h),s}function ln(){var s,u,l,h,m,b,x;if(s=r,u=mv(),u!==e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=ln(),x===e&&(x=null),h=[h,m,b,x],l=h}else r=l,l=e;l===e&&(l=null),_=s,s=Ub(u,l)}else r=s,s=e;return s}function Zp(){var s;return s=uv(),s===e&&(s=ov(),s===e&&(s=pv(),s===e&&(s=sv(),s===e&&(s=nv(),s===e&&(s=fv(),s===e&&(s=av(),s===e&&(s=lv()))))))),s}function ov(){var s,u,l,h,m;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,8).toLowerCase()===oi?(l=i.substr(r,8),r+=8):(l=e,I===0&&C(Yn)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=ii(),m!==e?(_=s,s=_b(m)):(r=s,s=e)}else r=s,s=e;return s}function sv(){var s,u,l,h,m,b,x;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,5).toLowerCase()===It?(l=i.substr(r,5),r+=5):(l=e,I===0&&C(to)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=ao(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=ii(),x!==e?(_=s,s=Ob(m,x)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function nv(){var s,u,l,h,m,b,x,E;if(s=r,i.substr(r,7).toLowerCase()===Fo?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Qh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,6).toLowerCase()===ce?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(di)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();if(b=ao(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=ii(),E!==e?(_=s,s=Gb(h,b,E)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function av(){var s,u,l,h,m,b,x,E,B,V,O,D,q;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,4).toLowerCase()===je?(l=i.substr(r,4),r+=4):(l=e,I===0&&C(wc)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===40?(m=T,r++):(m=e,I===0&&C(ie)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(x=$(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();if(i.substr(r,2).toLowerCase()===F?(B=i.substr(r,2),r+=2):(B=e,I===0&&C(Eo)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();if(O=ft(),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();i.charCodeAt(r)===41?(q=k,r++):(q=e,I===0&&C(oe)),q!==e?(_=s,s=Zb(x,O)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function lv(){var s,u,l,h,m;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,6).toLowerCase()===de?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(Zr)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=Mp(),m!==e?(_=s,s=Mb(m)):(r=s,s=e)}else r=s,s=e;return s}function Mp(){var s;return s=cv(),s===e&&(s=hv()),s}function cv(){var s,u,l,h,m,b,x,E;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(l=ft(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===123?(m=Q,r++):(m=e,I===0&&C(Ri)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();for(x=[],E=cn();E!==e;)x.push(E),E=cn();i.charCodeAt(r)===125?(E=H,r++):(E=e,I===0&&C(Ci)),E!==e?(_=s,s=Wb(l,x)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function hv(){var s,u,l,h,m,b,x,E,B,V,O;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();for(m=[],b=ft();b!==e;)m.push(b),b=ft();if(i.charCodeAt(r)===41?(b=k,r++):(b=e,I===0&&C(oe)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===123?(E=Q,r++):(E=e,I===0&&C(Ri)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();for(V=[],O=Wp();O!==e;)V.push(O),O=Wp();i.charCodeAt(r)===125?(O=H,r++):(O=e,I===0&&C(Ci)),O!==e?(_=s,s=Db(m,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function Wp(){var s,u,l,h,m,b,x;if(s=r,i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=[],m=cn();m!==e;)h.push(m),m=cn();if(i.charCodeAt(r)===41?(m=k,r++):(m=e,I===0&&C(oe)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();_=s,s=Pb(h)}else r=s,s=e}else r=s,s=e;return s}function cn(){var s,u,l,h;if(s=r,u=mt(),u===e&&(u=ll(),u===e&&(u=cl(),u===e&&(u=ul(),u===e&&(i.substr(r,5)===Ui?(u=Ui,r+=5):(u=e,I===0&&C(Xh)))))),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();_=s,s=Qb(u)}else r=s,s=e;return s}function pv(){var s,u,l,h;if(s=r,i.substr(r,5).toLowerCase()===si?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(xc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=ii(),h!==e?(_=s,s=Xb(h)):(r=s,s=e)}else r=s,s=e;return s}function uv(){var s,u,l,h,m,b,x,E;if(s=r,u=ii(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,5).toLowerCase()===pi?(b=i.substr(r,5),r+=5):(b=e,I===0&&C(Za)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=ii(),E!==e?h=E:(r=h,h=e)}else r=h,h=e;for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,5).toLowerCase()===pi?(b=i.substr(r,5),r+=5):(b=e,I===0&&C(Za)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=ii(),E!==e?h=E:(r=h,h=e)}else r=h,h=e}_=s,s=Yb(u,l)}else r=s,s=e;return s}function fv(){var s,u,l,h,m;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.substr(r,6).toLowerCase()===Uo?(l=i.substr(r,6),r+=6):(l=e,I===0&&C(Mr)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=ja(),m!==e?(_=s,s=Hb(m)):(r=s,s=e)}else r=s,s=e;return s}function ja(){var s;return s=nl(),s===e&&(s=al(),s===e&&(s=Dp())),s}function Dp(){var s,u,l,h;if(s=r,u=mt(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=Pp(),h!==e?(_=s,s=Jb(u,h)):(r=s,s=e)}else r=s,s=e;return s}function Pp(){var s,u,l,h,m,b,x,E,B,V,O,D;if(s=r,u=ji(),u!==e&&(_=s,u=zb()),s=u,s===e)if(s=r,i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(i.substr(r,8).toLowerCase()===A?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(Gt)),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(E=[],B=r,i.charCodeAt(r)===44?(V=Ge,r++):(V=e,I===0&&C(We)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();D=$(),D!==e?B=D:(r=B,B=e)}else r=B,B=e;for(;B!==e;)if(E.push(B),B=r,i.charCodeAt(r)===44?(V=Ge,r++):(V=e,I===0&&C(We)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();D=$(),D!==e?B=D:(r=B,B=e)}else r=B,B=e;i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e?(_=s,s=jb(h,b,E)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function no(){var s,u,l,h,m,b,x,E,B,V,O,D;if(s=r,u=ji(),u!==e&&(_=s,u=$b()),s=u,s===e)if(s=r,i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=$(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=[],x=r,i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();x=V}else r=x,x=e}else r=x,x=e;for(;x!==e;)if(b.push(x),x=r,i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();x=V}else r=x,x=e}else r=x,x=e;i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e?(_=s,s=qb(h,b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function dv(){var s,u,l,h,m,b;if(s=r,i.charCodeAt(r)===123?(u=Q,r++):(u=e,I===0&&C(Ri)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();for(h=Qp(),h===e&&(h=null),m=[],b=d();b!==e;)m.push(b),b=d();i.charCodeAt(r)===125?(b=H,r++):(b=e,I===0&&C(Ci)),b!==e?(_=s,s=Kb(h)):(r=s,s=e)}else r=s,s=e;return s}function Qp(){var s,u,l,h,m,b,x;if(s=r,u=Xp(),u!==e){for(l=r,h=[],m=d();m!==e;)h.push(m),m=d();if(i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();x=Qp(),x===e&&(x=null),h=[h,m,b,x],l=h}else r=l,l=e;l===e&&(l=null),_=s,s=e0(u,l)}else r=s,s=e;return s}function Xp(){var s,u,l,h,m;if(s=r,u=un(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=$a(),h!==e?(_=s,s=t0(u,h)):(r=s,s=e)}else r=s,s=e;if(s===e){for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(l=Hp(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=gv(),_=s,s=i0(l,m)}else r=s,s=e}return s}function gv(){var s;return s=$a(),s===e&&(s=null),s}function $a(){var s,u,l,h,m,b,x,E,B,V,O,D,q;if(s=r,u=qa(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=Ka(),h!==e){for(m=[],b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===59?(E=ue,r++):(E=e,I===0&&C(Ii)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=r,O=qa(),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();q=Ka(),q!==e?(O=[O,D,q],V=O):(r=V,V=e)}else r=V,V=e;V===e&&(V=null),x=[x,E,B,V],b=x}else r=b,b=e;for(;b!==e;){for(m.push(b),b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===59?(E=ue,r++):(E=e,I===0&&C(Ii)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=r,O=qa(),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();q=Ka(),q!==e?(O=[O,D,q],V=O):(r=V,V=e)}else r=V,V=e;V===e&&(V=null),x=[x,E,B,V],b=x}else r=b,b=e}_=s,s=r0(u,h,m)}else r=s,s=e}else r=s,s=e;return s}function qa(){var s,u;return s=ao(),s===e&&(s=r,i.charCodeAt(r)===97?(u=ui,r++):(u=e,I===0&&C(Yo)),u!==e&&(_=s,u=o0()),s=u),s}function Ka(){var s,u,l,h,m,b,x,E;if(s=r,u=jo(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===44?(b=Ge,r++):(b=e,I===0&&C(We)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=jo(),E!==e?h=E:(r=h,h=e)}else r=h,h=e;for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===44?(b=Ge,r++):(b=e,I===0&&C(We)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=jo(),E!==e?h=E:(r=h,h=e)}else r=h,h=e}_=s,s=s0(u,l)}else r=s,s=e;return s}function mv(){var s,u,l,h,m;if(s=r,u=un(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=el(),h!==e?(_=s,s=n0(u,h)):(r=s,s=e)}else r=s,s=e;if(s===e){for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(l=Jp(),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();m=bv(),_=s,s=a0(l,m)}else r=s,s=e}return s}function bv(){var s;return s=el(),s===e&&(s=null),s}function el(){var s,u,l,h,m,b,x,E,B,V,O,D,q;if(s=r,u=hn(),u===e&&(u=ft()),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=tl(),h!==e){for(m=[],b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===59?(E=ue,r++):(E=e,I===0&&C(Ii)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=r,O=hn(),O===e&&(O=ft()),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();q=tl(),q!==e?(O=[O,D,q],V=O):(r=V,V=e)}else r=V,V=e;V===e&&(V=null),x=[x,E,B,V],b=x}else r=b,b=e;for(;b!==e;){for(m.push(b),b=r,x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===59?(E=ue,r++):(E=e,I===0&&C(Ii)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=r,O=hn(),O===e&&(O=ft()),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();q=tl(),q!==e?(O=[O,D,q],V=O):(r=V,V=e)}else r=V,V=e;V===e&&(V=null),x=[x,E,B,V],b=x}else r=b,b=e}_=s,s=l0(u,h,m)}else r=s,s=e}else r=s,s=e;return s}function tl(){var s,u,l,h,m,b,x,E;if(s=r,u=$o(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===44?(b=Ge,r++):(b=e,I===0&&C(We)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=$o(),E!==e?h=E:(r=h,h=e)}else r=h,h=e;for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===44?(b=Ge,r++):(b=e,I===0&&C(We)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=$o(),E!==e?h=E:(r=h,h=e)}else r=h,h=e}_=s,s=c0(u,l)}else r=s,s=e;return s}function hn(){var s,u,l,h,m,b,x,E;if(s=r,u=il(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===124?(b=Te,r++):(b=e,I===0&&C(Wr)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=il(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===124?(b=Te,r++):(b=e,I===0&&C(Wr)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=il(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e}_=s,s=h0(u,l)}else r=s,s=e;return s}function il(){var s,u,l,h,m,b,x,E;if(s=r,u=rl(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===47?(b=ot,r++):(b=e,I===0&&C(gi)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=rl(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===47?(b=ot,r++):(b=e,I===0&&C(gi)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=rl(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e}_=s,s=p0(u,l)}else r=s,s=e;return s}function Yp(){var s,u,l;return s=r,u=xv(),u!==e?(l=wv(),l===e&&(l=null),_=s,s=u0(u,l)):(r=s,s=e),s}function rl(){var s,u,l;return s=Yp(),s===e&&(s=r,i.charCodeAt(r)===94?(u=ni,r++):(u=e,I===0&&C(Hn)),u!==e?(l=Yp(),l!==e?(_=s,s=f0(l)):(r=s,s=e)):(r=s,s=e)),s}function wv(){var s;return i.charCodeAt(r)===63?(s=fi,r++):(s=e,I===0&&C(tn)),s===e&&(i.charCodeAt(r)===42?(s=G,r++):(s=e,I===0&&C(St)),s===e&&(i.charCodeAt(r)===43?(s=st,r++):(s=e,I===0&&C(ti)))),s}function xv(){var s,u,l,h;return s=mt(),s===e&&(s=r,i.charCodeAt(r)===97?(u=ui,r++):(u=e,I===0&&C(Yo)),u!==e&&(_=s,u=d0()),s=u,s===e&&(s=r,i.charCodeAt(r)===33?(u=Kt,r++):(u=e,I===0&&C(rn)),u!==e?(l=vv(),l!==e?(u=[u,l],s=u):(r=s,s=e)):(r=s,s=e),s===e&&(s=r,i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e?(l=hn(),l!==e?(i.charCodeAt(r)===41?(h=k,r++):(h=e,I===0&&C(oe)),h!==e?(_=s,s=g0(l)):(r=s,s=e)):(r=s,s=e)):(r=s,s=e)))),s}function vv(){var s,u,l,h,m,b,x,E;if(s=pn(),s===e)if(s=r,i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){if(l=r,h=pn(),h!==e){for(m=[],b=r,i.charCodeAt(r)===124?(x=Te,r++):(x=e,I===0&&C(Wr)),x!==e?(E=pn(),E!==e?(x=[x,E],b=x):(r=b,b=e)):(r=b,b=e);b!==e;)m.push(b),b=r,i.charCodeAt(r)===124?(x=Te,r++):(x=e,I===0&&C(Wr)),x!==e?(E=pn(),E!==e?(x=[x,E],b=x):(r=b,b=e)):(r=b,b=e);h=[h,m],l=h}else r=l,l=e;l===e&&(l=null),i.charCodeAt(r)===41?(h=k,r++):(h=e,I===0&&C(oe)),h!==e?(u=[u,l,h],s=u):(r=s,s=e)}else r=s,s=e;return s}function pn(){var s,u,l;return s=mt(),s===e&&(i.charCodeAt(r)===97?(s=ui,r++):(s=e,I===0&&C(Yo)),s===e&&(s=r,i.charCodeAt(r)===94?(u=ni,r++):(u=e,I===0&&C(Hn)),u!==e?(l=mt(),l===e&&(i.charCodeAt(r)===97?(l=ui,r++):(l=e,I===0&&C(Yo))),l!==e?(u=[u,l],s=u):(r=s,s=e)):(r=s,s=e))),s}function Hp(){var s,u;return s=r,u=Cv(),u!==e&&(_=s,u=m0(u)),s=u,s===e&&(s=yv()),s}function yv(){var s,u,l,h,m,b,x,E,B;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===91?(l=ai,r++):(l=e,I===0&&C(Dr)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=$a(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===93?(x=Wi,r++):(x=e,I===0&&C(Cs)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();_=s,s=b0(m)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function Jp(){var s,u;return s=r,u=Iv(),u!==e&&(_=s,u=w0(u)),s=u,s===e&&(s=Ev()),s}function Ev(){var s,u,l,h,m,b,x,E,B;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===91?(l=ai,r++):(l=e,I===0&&C(Dr)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=el(),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===93?(x=Wi,r++):(x=e,I===0&&C(Cs)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();_=s,s=x0(m)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function Cv(){var s,u,l,h,m,b,x,E,B;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=[],b=jo(),b!==e)for(;b!==e;)m.push(b),b=jo();else m=e;if(m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();_=s,s=v0(m)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function Iv(){var s,u,l,h,m,b,x,E,B;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();if(m=[],b=$o(),b!==e)for(;b!==e;)m.push(b),b=$o();else m=e;if(m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(i.charCodeAt(r)===41?(x=k,r++):(x=e,I===0&&C(oe)),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();_=s,s=y0(m)}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function jo(){var s,u,l;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();return l=un(),l===e&&(l=Hp()),l!==e?(_=s,s=E0(l)):(r=s,s=e),s}function $o(){var s,u,l;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();return l=un(),l===e&&(l=Jp()),l!==e?(_=s,s=C0(l)):(r=s,s=e),s}function un(){var s;return s=ft(),s===e&&(s=Av()),s}function ao(){var s;return s=ft(),s===e&&(s=mt()),s}function ft(){var s,u,l,h,m;for(s=r,u=[],l=d();l!==e;)u.push(l),l=d();if(l=Gv(),l===e&&(l=Zv()),l!==e){for(h=[],m=d();m!==e;)h.push(m),m=d();_=s,s=I0(l)}else r=s,s=e;return s}function Av(){var s;return s=mt(),s===e&&(s=ll(),s===e&&(s=cl(),s===e&&(s=ul(),s===e&&(s=Uv(),s===e&&(s=ji()))))),s}function $(){var s,u,l,h,m,b,x,E;if(s=r,u=ol(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===Di?(b=Di,r+=2):(b=e,I===0&&C(Jn)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=ol(),E!==e?h=E:(r=h,h=e)}else r=h,h=e;for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===Di?(b=Di,r+=2):(b=e,I===0&&C(Jn)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=ol(),E!==e?h=E:(r=h,h=e)}else r=h,h=e}_=s,s=A0(u,l)}else r=s,s=e;return s}function ol(){var s,u,l,h,m,b,x,E;if(s=r,u=sl(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===er?(b=er,r+=2):(b=e,I===0&&C(Ma)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=sl(),E!==e?h=E:(r=h,h=e)}else r=h,h=e;for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===er?(b=er,r+=2):(b=e,I===0&&C(Ma)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=sl(),E!==e?h=E:(r=h,h=e)}else r=h,h=e}_=s,s=N0(u,l)}else r=s,s=e;return s}function sl(){var s,u,l,h,m,b,x,E,B,V;if(s=r,u=Lt(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===61?(b=Ut,r++):(b=e,I===0&&C(Ti)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===_i?(b=_i,r+=2):(b=e,I===0&&C(zn)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===60?(b=zr,r++):(b=e,I===0&&C(Is)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===62?(b=Fr,r++):(b=e,I===0&&C(io)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===Ur?(b=Ur,r+=2):(b=e,I===0&&C(Wa)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===Pi?(b=Pi,r+=2):(b=e,I===0&&C(As)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2).toLowerCase()===tr?(b=i.substr(r,2),r+=2):(b=e,I===0&&C(wr)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=no(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,3).toLowerCase()===_o?(b=i.substr(r,3),r+=3):(b=e,I===0&&C(Ns)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.substr(r,2).toLowerCase()===tr?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(wr)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=no(),V!==e?(m=[m,b,x,E,B,V],h=m):(r=h,h=e)}else r=h,h=e}else r=h,h=e}}}}}}}for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===61?(b=Ut,r++):(b=e,I===0&&C(Ti)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===_i?(b=_i,r+=2):(b=e,I===0&&C(zn)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===60?(b=zr,r++):(b=e,I===0&&C(Is)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===62?(b=Fr,r++):(b=e,I===0&&C(io)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===Ur?(b=Ur,r+=2):(b=e,I===0&&C(Wa)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2)===Pi?(b=Pi,r+=2):(b=e,I===0&&C(As)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Lt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,2).toLowerCase()===tr?(b=i.substr(r,2),r+=2):(b=e,I===0&&C(wr)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=no(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.substr(r,3).toLowerCase()===_o?(b=i.substr(r,3),r+=3):(b=e,I===0&&C(Ns)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.substr(r,2).toLowerCase()===tr?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(wr)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();V=no(),V!==e?(m=[m,b,x,E,B,V],h=m):(r=h,h=e)}else r=h,h=e}else r=h,h=e}}}}}}}}_=s,s=R0(u,l)}else r=s,s=e;return s}function Lt(){var s,u,l,h,m,b,x,E,B,V,O;if(s=r,u=qo(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===43?(b=st,r++):(b=e,I===0&&C(ti)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=qo(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===45?(b=yt,r++):(b=e,I===0&&C(Qt)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=qo(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e)if(h=r,m=hl(),m===e&&(m=pl()),m!==e){for(b=[],x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===42?(B=G,r++):(B=e,I===0&&C(St)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Bt(),O!==e?(E=[E,B,V,O],x=E):(r=x,x=e)}else r=x,x=e;if(x===e){for(x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===47?(B=ot,r++):(B=e,I===0&&C(gi)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Bt(),O!==e?(E=[E,B,V,O],x=E):(r=x,x=e)}else r=x,x=e}for(;x!==e;){for(b.push(x),x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===42?(B=G,r++):(B=e,I===0&&C(St)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Bt(),O!==e?(E=[E,B,V,O],x=E):(r=x,x=e)}else r=x,x=e;if(x===e){for(x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===47?(B=ot,r++):(B=e,I===0&&C(gi)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Bt(),O!==e?(E=[E,B,V,O],x=E):(r=x,x=e)}else r=x,x=e}}m=[m,b],h=m}else r=h,h=e}for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===43?(b=st,r++):(b=e,I===0&&C(ti)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=qo(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===45?(b=yt,r++):(b=e,I===0&&C(Qt)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=qo(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e)if(h=r,m=hl(),m===e&&(m=pl()),m!==e){for(b=[],x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===42?(B=G,r++):(B=e,I===0&&C(St)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Bt(),O!==e?(E=[E,B,V,O],x=E):(r=x,x=e)}else r=x,x=e;if(x===e){for(x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===47?(B=ot,r++):(B=e,I===0&&C(gi)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Bt(),O!==e?(E=[E,B,V,O],x=E):(r=x,x=e)}else r=x,x=e}for(;x!==e;){for(b.push(x),x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===42?(B=G,r++):(B=e,I===0&&C(St)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Bt(),O!==e?(E=[E,B,V,O],x=E):(r=x,x=e)}else r=x,x=e;if(x===e){for(x=r,E=[],B=d();B!==e;)E.push(B),B=d();if(i.charCodeAt(r)===47?(B=ot,r++):(B=e,I===0&&C(gi)),B!==e){for(V=[],O=d();O!==e;)V.push(O),O=d();O=Bt(),O!==e?(E=[E,B,V,O],x=E):(r=x,x=e)}else r=x,x=e}}m=[m,b],h=m}else r=h,h=e}}_=s,s=T0(u,l)}else r=s,s=e;return s}function qo(){var s,u,l,h,m,b,x,E;if(s=r,u=Bt(),u!==e){for(l=[],h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===42?(b=G,r++):(b=e,I===0&&C(St)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Bt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===47?(b=ot,r++):(b=e,I===0&&C(gi)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Bt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(l.push(h),h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===42?(b=G,r++):(b=e,I===0&&C(St)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Bt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,m=[],b=d();b!==e;)m.push(b),b=d();if(i.charCodeAt(r)===47?(b=ot,r++):(b=e,I===0&&C(gi)),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();E=Bt(),E!==e?(m=[m,b,x,E],h=m):(r=h,h=e)}else r=h,h=e}}_=s,s=S0(u,l)}else r=s,s=e;return s}function Bt(){var s,u,l,h;if(s=r,i.charCodeAt(r)===33?(u=Kt,r++):(u=e,I===0&&C(rn)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=fn(),h!==e?(_=s,s=L0(h)):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,i.charCodeAt(r)===43?(u=st,r++):(u=e,I===0&&C(ti)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=fn(),h!==e?(_=s,s=B0(h)):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,i.charCodeAt(r)===45?(u=yt,r++):(u=e,I===0&&C(Qt)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=fn(),h!==e?(_=s,s=k0(h)):(r=s,s=e)}else r=s,s=e;s===e&&(s=fn())}}return s}function fn(){var s,u;return s=nl(),s===e&&(s=al(),s===e&&(s=kv(),s===e&&(s=r,u=ll(),u!==e&&(_=s,u=V0(u)),s=u,s===e&&(s=r,u=cl(),u!==e&&(_=s,u=F0(u)),s=u,s===e&&(s=r,u=ul(),u!==e&&(_=s,u=U0(u)),s=u,s===e&&(s=r,u=ft(),u!==e&&(_=s,u=_0(u)),s=u)))))),s}function nl(){var s,u,l,h,m,b;if(s=r,i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=$(),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();i.charCodeAt(r)===41?(b=k,r++):(b=e,I===0&&C(oe)),b!==e?(_=s,s=O0(h)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function al(){var s,u,l,h,m,b,x,E,B,V,O,D,q,he,be,Fe;if(s=Bv(),s===e){if(s=r,i.substr(r,3).toLowerCase()===Ca?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Yh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=G0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,4).toLowerCase()===Ia?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(vc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=Z0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,11).toLowerCase()===_t?(u=i.substr(r,11),r+=11):(u=e,I===0&&C(yc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=M0(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,8).toLowerCase()===_r?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Ec)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=W0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===Aa?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Cc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=ft(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=D0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===Nn?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ic)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=P0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===Ms?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Hh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=Q0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===Rn?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ac)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(h=r,i.charCodeAt(r)===40?(m=T,r++):(m=e,I===0&&C(ie)),m!==e){for(b=[],x=d();x!==e;)b.push(x),x=d();if(x=$(),x!==e){for(E=[],B=d();B!==e;)E.push(B),B=d();i.charCodeAt(r)===41?(B=k,r++):(B=e,I===0&&C(oe)),B!==e?(m=[m,b,x,E,B],h=m):(r=h,h=e)}else r=h,h=e}else r=h,h=e;h===e&&(h=ji()),h!==e?(_=s,s=X0(h)):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,i.substr(r,4).toLowerCase()===Qi?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Nc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=ji(),h!==e?(_=s,s=Y0()):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===Ze?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Jh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=H0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,4).toLowerCase()===Xi?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(p)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=J0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===Or?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(v)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=z0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===Ws?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(N)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=j0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,6).toLowerCase()===Ds?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(S)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=no(),h!==e?(_=s,s=$0(h)):(r=s,s=e)}else r=s,s=e;if(s===e&&(s=Rv(),s===e)){if(s=r,i.substr(r,6).toLowerCase()===Oo?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(U)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=q0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e&&(s=Tv(),s===e)){if(s=r,i.substr(r,5).toLowerCase()===Ps?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Z)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=K0(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===yi?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(X)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=ew(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,14).toLowerCase()===Qs?(u=i.substr(r,14),r+=14):(u=e,I===0&&C(z)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=tw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,8).toLowerCase()===Tn?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(ee)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=iw(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,9).toLowerCase()===Sn?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(le)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=rw(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,9).toLowerCase()===Ln?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Ne)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=ow(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,7).toLowerCase()===Na?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(He)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=sw(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,8).toLowerCase()===Me?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(nt)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=nw(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,4).toLowerCase()===Y?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Si)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=aw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===pe?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ci)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=lw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===ke?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(nr)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=cw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===vt?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Oi)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=hw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,7).toLowerCase()===li?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Rs)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=pw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,7).toLowerCase()===Vt?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(zh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=uw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,8).toLowerCase()===Ei?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(jh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=fw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,2).toLowerCase()===Yi?(u=i.substr(r,2),r+=2):(u=e,I===0&&C($h)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=dw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===ir?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Rc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=ji(),h!==e?(_=s,s=gw()):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,i.substr(r,4).toLowerCase()===ds?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(qh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=ji(),h!==e?(_=s,s=mw()):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,i.substr(r,7).toLowerCase()===Dt?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Tc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=ji(),h!==e?(_=s,s=bw()):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===vo?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Xt)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=ww(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,4).toLowerCase()===ct?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(jn)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=xw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,6).toLowerCase()===Tt?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Kh)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=vw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,6).toLowerCase()===Bn?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(ep)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=yw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,6).toLowerCase()===gs?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(tp)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=Ew(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,8).toLowerCase()===ms?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Da)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=no(),h!==e?(_=s,s=Cw(h)):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,i.substr(r,2).toLowerCase()===Ra?(u=i.substr(r,2),r+=2):(u=e,I===0&&C(Sc)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();if(i.charCodeAt(r)===44?(D=Ge,r++):(D=e,I===0&&C(We)),D!==e){for(q=[],he=d();he!==e;)q.push(he),he=d();if(he=$(),he!==e){for(be=[],Fe=d();Fe!==e;)be.push(Fe),Fe=d();i.charCodeAt(r)===41?(Fe=k,r++):(Fe=e,I===0&&C(oe)),Fe!==e?(_=s,s=Iw(b,V,he)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,7).toLowerCase()===tt?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(ip)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=Aw(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===Ot?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Gg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=Nw(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,8).toLowerCase()===Ta?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Zg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();i.charCodeAt(r)===41?(D=k,r++):(D=e,I===0&&C(oe)),D!==e?(_=s,s=Rw(b,V)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,5).toLowerCase()===kn?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Mg)),u===e&&(i.substr(r,5).toLowerCase()===rr?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Wg))),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=Tw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,7).toLowerCase()===Ah?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Dg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=Sw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,9).toLowerCase()===Vn?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Pg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=Lw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,9).toLowerCase()===Go?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Qg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();i.charCodeAt(r)===41?(E=k,r++):(E=e,I===0&&C(oe)),E!==e?(_=s,s=Bw(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e;s===e&&(s=Nv(),s===e&&(s=Sv(),s===e&&(s=Lv())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return s}function Nv(){var s,u,l,h,m,b,x,E,B,V,O,D,q,he,be;if(s=r,i.substr(r,5).toLowerCase()===Pt?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Xg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();if(D=r,i.charCodeAt(r)===44?(q=Ge,r++):(q=e,I===0&&C(We)),q!==e){for(he=[],be=d();be!==e;)he.push(be),be=d();be=$(),be!==e?(q=[q,he,be],D=q):(r=D,D=e)}else r=D,D=e;for(D===e&&(D=null),q=[],he=d();he!==e;)q.push(he),he=d();i.charCodeAt(r)===41?(he=k,r++):(he=e,I===0&&C(oe)),he!==e?(_=s,s=kw(b,V,D)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function Rv(){var s,u,l,h,m,b,x,E,B,V,O,D,q,he,be;if(s=r,i.substr(r,6).toLowerCase()===Zo?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Yg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();if(D=r,i.charCodeAt(r)===44?(q=Ge,r++):(q=e,I===0&&C(We)),q!==e){for(he=[],be=d();be!==e;)he.push(be),be=d();be=$(),be!==e?(q=[q,he,be],D=q):(r=D,D=e)}else r=D,D=e;for(D===e&&(D=null),q=[],he=d();he!==e;)q.push(he),he=d();i.charCodeAt(r)===41?(he=k,r++):(he=e,I===0&&C(oe)),he!==e?(_=s,s=Vw(b,V,D)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function Tv(){var s,u,l,h,m,b,x,E,B,V,O,D,q,he,be,Fe,rt,Gi,vl;if(s=r,i.substr(r,7).toLowerCase()===Xs?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Hg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();if(b=$(),b!==e){for(x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===44?(E=Ge,r++):(E=e,I===0&&C(We)),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(V=$(),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();if(i.charCodeAt(r)===44?(D=Ge,r++):(D=e,I===0&&C(We)),D!==e){for(q=[],he=d();he!==e;)q.push(he),he=d();if(he=$(),he!==e){for(be=[],Fe=d();Fe!==e;)be.push(Fe),Fe=d();if(Fe=r,i.charCodeAt(r)===44?(rt=Ge,r++):(rt=e,I===0&&C(We)),rt!==e){for(Gi=[],vl=d();vl!==e;)Gi.push(vl),vl=d();vl=$(),vl!==e?(rt=[rt,Gi,vl],Fe=rt):(r=Fe,Fe=e)}else r=Fe,Fe=e;for(Fe===e&&(Fe=null),rt=[],Gi=d();Gi!==e;)rt.push(Gi),Gi=d();i.charCodeAt(r)===41?(Gi=k,r++):(Gi=e,I===0&&C(oe)),Gi!==e?(_=s,s=Fw(b,V,he,Fe)):(r=s,s=e)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;return s}function Sv(){var s,u,l,h;if(s=r,i.substr(r,6).toLowerCase()===Mo?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(rp)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=ii(),h!==e?(_=s,s=Uw(h)):(r=s,s=e)}else r=s,s=e;return s}function Lv(){var s,u,l,h,m,b;if(s=r,i.substr(r,3).toLowerCase()===_o?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ns)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.substr(r,6).toLowerCase()===Mo?(h=i.substr(r,6),r+=6):(h=e,I===0&&C(rp)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();b=ii(),b!==e?(_=s,s=_w(b)):(r=s,s=e)}else r=s,s=e}else r=s,s=e;return s}function Bv(){var s,u,l,h,m,b,x,E,B,V,O,D,q,he,be,Fe,rt;if(s=r,i.substr(r,5).toLowerCase()===Sa?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Jg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(i.substr(r,8).toLowerCase()===A?(b=i.substr(r,8),r+=8):(b=e,I===0&&C(Gt)),b===e&&(b=null),x=[],E=d();E!==e;)x.push(E),E=d();if(i.charCodeAt(r)===42?(E=G,r++):(E=e,I===0&&C(St)),E===e&&(E=$()),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===41?(V=k,r++):(V=e,I===0&&C(oe)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();_=s,s=Ow(b,E)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===Ys?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(zg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(i.substr(r,8).toLowerCase()===A?(b=i.substr(r,8),r+=8):(b=e,I===0&&C(Gt)),b===e&&(b=null),x=[],E=d();E!==e;)x.push(E),E=d();if(E=$(),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===41?(V=k,r++):(V=e,I===0&&C(oe)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();_=s,s=Gw(b,E)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===La?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(jg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(i.substr(r,8).toLowerCase()===A?(b=i.substr(r,8),r+=8):(b=e,I===0&&C(Gt)),b===e&&(b=null),x=[],E=d();E!==e;)x.push(E),E=d();if(E=$(),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===41?(V=k,r++):(V=e,I===0&&C(oe)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();_=s,s=Zw(b,E)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===Ba?(u=i.substr(r,3),r+=3):(u=e,I===0&&C($g)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(i.substr(r,8).toLowerCase()===A?(b=i.substr(r,8),r+=8):(b=e,I===0&&C(Gt)),b===e&&(b=null),x=[],E=d();E!==e;)x.push(E),E=d();if(E=$(),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===41?(V=k,r++):(V=e,I===0&&C(oe)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();_=s,s=Mw(b,E)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,3).toLowerCase()===Fn?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(qg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(i.substr(r,8).toLowerCase()===A?(b=i.substr(r,8),r+=8):(b=e,I===0&&C(Gt)),b===e&&(b=null),x=[],E=d();E!==e;)x.push(E),E=d();if(E=$(),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===41?(V=k,r++):(V=e,I===0&&C(oe)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();_=s,s=Ww(b,E)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e){if(s=r,i.substr(r,6).toLowerCase()===ka?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Kg)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(i.substr(r,8).toLowerCase()===A?(b=i.substr(r,8),r+=8):(b=e,I===0&&C(Gt)),b===e&&(b=null),x=[],E=d();E!==e;)x.push(E),E=d();if(E=$(),E!==e){for(B=[],V=d();V!==e;)B.push(V),V=d();if(i.charCodeAt(r)===41?(V=k,r++):(V=e,I===0&&C(oe)),V!==e){for(O=[],D=d();D!==e;)O.push(D),D=d();_=s,s=Dw(b,E)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e;if(s===e)if(s=r,i.substr(r,12).toLowerCase()===Va?(u=i.substr(r,12),r+=12):(u=e,I===0&&C(em)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();if(i.charCodeAt(r)===40?(h=T,r++):(h=e,I===0&&C(ie)),h!==e){for(m=[],b=d();b!==e;)m.push(b),b=d();for(i.substr(r,8).toLowerCase()===A?(b=i.substr(r,8),r+=8):(b=e,I===0&&C(Gt)),b===e&&(b=null),x=[],E=d();E!==e;)x.push(E),E=d();if(E=$(),E!==e){for(B=r,V=[],O=d();O!==e;)V.push(O),O=d();if(i.charCodeAt(r)===59?(O=ue,r++):(O=e,I===0&&C(Ii)),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();if(i.substr(r,9).toLowerCase()===Un?(q=i.substr(r,9),r+=9):(q=e,I===0&&C(tm)),q!==e){for(he=[],be=d();be!==e;)he.push(be),be=d();if(i.charCodeAt(r)===61?(be=Ut,r++):(be=e,I===0&&C(Ti)),be!==e){for(Fe=[],rt=d();rt!==e;)Fe.push(rt),rt=d();rt=zp(),rt!==e?(V=[V,O,D,q,he,be,Fe,rt],B=V):(r=B,B=e)}else r=B,B=e}else r=B,B=e}else r=B,B=e;for(B===e&&(B=null),V=[],O=d();O!==e;)V.push(O),O=d();if(i.charCodeAt(r)===41?(O=k,r++):(O=e,I===0&&C(oe)),O!==e){for(D=[],q=d();q!==e;)D.push(q),q=d();_=s,s=Pw(b,E,B)}else r=s,s=e}else r=s,s=e}else r=s,s=e}else r=s,s=e}}}}}return s}function kv(){var s,u,l,h;if(s=r,u=mt(),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();h=Pp(),h===e&&(h=null),_=s,s=Qw(u,h)}else r=s,s=e;return s}function ll(){var s,u,l,h,m;return s=r,u=zp(),u!==e?(l=Mv(),l===e&&(l=r,i.substr(r,2)===_n?(h=_n,r+=2):(h=e,I===0&&C(im)),h!==e?(m=mt(),m!==e?(h=[h,m],l=h):(r=l,l=e)):(r=l,l=e)),l===e&&(l=null),_=s,s=Xw(u,l)):(r=s,s=e),s}function cl(){var s;return s=Vv(),s===e&&(s=hl(),s===e&&(s=pl())),s}function Vv(){var s;return s=ml(),s===e&&(s=gl(),s===e&&(s=Ko())),s}function hl(){var s;return s=Pv(),s===e&&(s=Dv(),s===e&&(s=Wv())),s}function pl(){var s;return s=Yv(),s===e&&(s=Xv(),s===e&&(s=Qv())),s}function ul(){var s,u;return s=r,i.substr(r,4).toLowerCase()===Fa?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(rm)),u!==e&&(_=s,u=Yw()),s=u,s===e&&(s=r,i.substr(r,5).toLowerCase()===Nh?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(om)),u!==e&&(_=s,u=Hw()),s=u),s}function zp(){var s;return s=zv(),s===e&&(s=jv(),s===e&&(s=Hv(),s===e&&(s=Jv()))),s}function mt(){var s,u;return s=r,u=fl(),u!==e&&(_=s,u=Jw(u)),s=u,s===e&&(s=r,u=Fv(),u!==e&&(_=s,u=zw(u)),s=u),s}function Fv(){var s,u;return s=r,u=_v(),u!==e&&(_=s,u=jw(u)),s=u,s===e&&(s=r,u=dl(),u!==e&&(_=s,u=$w(u)),s=u),s}function Uv(){var s,u;return s=r,u=Ov(),u!==e&&(_=s,u=qw(u)),s=u,s===e&&(s=r,u=qv(),u!==e&&(_=s,u=Kw()),s=u),s}function fl(){var s,u,l,h;if(s=r,i.charCodeAt(r)===60?(u=zr,r++):(u=e,I===0&&C(Is)),u!==e){for(l=[],Hs.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(op));h!==e;)l.push(h),Hs.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(op));i.charCodeAt(r)===62?(h=Fr,r++):(h=e,I===0&&C(io)),h!==e?(_=s,s=ex(l)):(r=s,s=e)}else r=s,s=e;return s}function dl(){var s,u,l;return s=r,u=Kv(),u===e&&(u=null),i.charCodeAt(r)===58?(l=Qe,r++):(l=e,I===0&&C(xr)),l!==e?(_=s,s=tx(u)):(r=s,s=e),s}function _v(){var s,u,l;return s=r,u=dl(),u!==e?(l=ey(),l!==e?(_=s,s=ix(u,l)):(r=s,s=e)):(r=s,s=e),s}function Ov(){var s,u,l,h,m,b,x;if(s=r,i.substr(r,2)===or?(u=or,r+=2):(u=e,I===0&&C(sm)),u!==e)if(l=lo(),l===e&&($e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke))),l!==e){for(h=[],m=Mt(),m===e&&(m=r,i.charCodeAt(r)===46?(b=De,r++):(b=e,I===0&&C(ut)),b!==e?(x=Mt(),x!==e?(b=[b,x],m=b):(r=m,m=e)):(r=m,m=e));m!==e;)h.push(m),m=Mt(),m===e&&(m=r,i.charCodeAt(r)===46?(b=De,r++):(b=e,I===0&&C(ut)),b!==e?(x=Mt(),x!==e?(b=[b,x],m=b):(r=m,m=e)):(r=m,m=e));_=s,s=rx()}else r=s,s=e;else r=s,s=e;return s}function Gv(){var s,u,l;return s=r,i.charCodeAt(r)===63?(u=fi,r++):(u=e,I===0&&C(tn)),u!==e?(l=qp(),l!==e?(_=s,s=ox(l)):(r=s,s=e)):(r=s,s=e),s}function Zv(){var s,u,l;return s=r,i.charCodeAt(r)===36?(u=wt,r++):(u=e,I===0&&C(sp)),u!==e?(l=qp(),l!==e?(_=s,s=sx(l)):(r=s,s=e)):(r=s,s=e),s}function Mv(){var s,u,l,h,m,b,x,E;if(s=r,i.charCodeAt(r)===64?(u=On,r++):(u=e,I===0&&C(np)),u!==e){if(l=[],Mn.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(ap)),h!==e)for(;h!==e;)l.push(h),Mn.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(ap));else l=e;if(l!==e){if(h=[],m=r,i.charCodeAt(r)===45?(b=yt,r++):(b=e,I===0&&C(Qt)),b!==e){if(x=[],it.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(on)),E!==e)for(;E!==e;)x.push(E),it.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(on));else x=e;x!==e?(b=[b,x],m=b):(r=m,m=e)}else r=m,m=e;for(;m!==e;)if(h.push(m),m=r,i.charCodeAt(r)===45?(b=yt,r++):(b=e,I===0&&C(Qt)),b!==e){if(x=[],it.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(on)),E!==e)for(;E!==e;)x.push(E),it.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(on));else x=e;x!==e?(b=[b,x],m=b):(r=m,m=e)}else r=m,m=e;_=s,s=nx(l,h)}else r=s,s=e}else r=s,s=e;return s}function Ko(){var s,u,l;if(s=r,u=[],$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke)),l!==e)for(;l!==e;)u.push(l),$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke));else u=e;return u!==e&&(_=s,u=ax()),s=u,s}function gl(){var s,u,l,h,m;for(s=r,u=[],$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke));l!==e;)u.push(l),$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke));if(i.charCodeAt(r)===46?(l=De,r++):(l=e,I===0&&C(ut)),l!==e){if(h=[],$e.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(Ke)),m!==e)for(;m!==e;)h.push(m),$e.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(Ke));else h=e;h!==e?(_=s,s=lx()):(r=s,s=e)}else r=s,s=e;return s}function ml(){var s,u,l,h,m;if(s=r,u=[],$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke)),l!==e)for(;l!==e;)u.push(l),$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(l=De,r++):(l=e,I===0&&C(ut)),l!==e){for(h=[],$e.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(Ke));m!==e;)h.push(m),$e.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(Ke));m=bl(),m!==e?(_=s,s=cx()):(r=s,s=e)}else r=s,s=e;else r=s,s=e;if(s===e){if(s=r,i.charCodeAt(r)===46?(u=De,r++):(u=e,I===0&&C(ut)),u!==e){if(l=[],$e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke)),h!==e)for(;h!==e;)l.push(h),$e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke));else l=e;l!==e?(h=bl(),h!==e?(_=s,s=hx()):(r=s,s=e)):(r=s,s=e)}else r=s,s=e;if(s===e){if(s=r,u=[],$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke)),l!==e)for(;l!==e;)u.push(l),$e.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(Ke));else u=e;u!==e?(l=bl(),l!==e?(_=s,s=px()):(r=s,s=e)):(r=s,s=e)}}return s}function Wv(){var s,u,l;return s=r,i.charCodeAt(r)===43?(u=st,r++):(u=e,I===0&&C(ti)),u!==e?(l=Ko(),l!==e?(_=s,s=ux(l)):(r=s,s=e)):(r=s,s=e),s}function Dv(){var s,u,l;return s=r,i.charCodeAt(r)===43?(u=st,r++):(u=e,I===0&&C(ti)),u!==e?(l=gl(),l!==e?(_=s,s=fx(l)):(r=s,s=e)):(r=s,s=e),s}function Pv(){var s,u,l;return s=r,i.charCodeAt(r)===43?(u=st,r++):(u=e,I===0&&C(ti)),u!==e?(l=ml(),l!==e?(_=s,s=dx(l)):(r=s,s=e)):(r=s,s=e),s}function Qv(){var s,u,l;return s=r,i.charCodeAt(r)===45?(u=yt,r++):(u=e,I===0&&C(Qt)),u!==e?(l=Ko(),l!==e?(_=s,s=gx(l)):(r=s,s=e)):(r=s,s=e),s}function Xv(){var s,u,l;return s=r,i.charCodeAt(r)===45?(u=yt,r++):(u=e,I===0&&C(Qt)),u!==e?(l=gl(),l!==e?(_=s,s=mx(l)):(r=s,s=e)):(r=s,s=e),s}function Yv(){var s,u,l;return s=r,i.charCodeAt(r)===45?(u=yt,r++):(u=e,I===0&&C(Qt)),u!==e?(l=ml(),l!==e?(_=s,s=bx(l)):(r=s,s=e)):(r=s,s=e),s}function bl(){var s,u,l,h,m;if(s=r,Th.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(nm)),u!==e){if(mr.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(am)),l===e&&(l=null),h=[],$e.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(Ke)),m!==e)for(;m!==e;)h.push(m),$e.test(i.charAt(r))?(m=i.charAt(r),r++):(m=e,I===0&&C(Ke));else h=e;h!==e?(u=[u,l,h],s=u):(r=s,s=e)}else r=s,s=e;return s}function Hv(){var s,u,l,h;if(s=r,i.charCodeAt(r)===39?(u=fr,r++):(u=e,I===0&&C(Ho)),u!==e){for(l=[],Wo.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(lp)),h===e&&(h=zi());h!==e;)l.push(h),Wo.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(lp)),h===e&&(h=zi());i.charCodeAt(r)===39?(h=fr,r++):(h=e,I===0&&C(Ho)),h!==e?(_=s,s=wx(l)):(r=s,s=e)}else r=s,s=e;return s}function Jv(){var s,u,l,h;if(s=r,i.charCodeAt(r)===34?(u=jr,r++):(u=e,I===0&&C(sn)),u!==e){for(l=[],Wn.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(cp)),h===e&&(h=zi());h!==e;)l.push(h),Wn.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(cp)),h===e&&(h=zi());i.charCodeAt(r)===34?(h=jr,r++):(h=e,I===0&&C(sn)),h!==e?(_=s,s=xx(l)):(r=s,s=e)}else r=s,s=e;return s}function zv(){var s,u,l,h,m,b;if(s=r,i.substr(r,3)===$r?(u=$r,r+=3):(u=e,I===0&&C(hp)),u!==e){for(l=[],h=r,i.substr(r,2)===Hi?(m=Hi,r+=2):(m=e,I===0&&C(pp)),m===e&&(i.charCodeAt(r)===39?(m=fr,r++):(m=e,I===0&&C(Ho))),m===e&&(m=null),Ua.test(i.charAt(r))?(b=i.charAt(r),r++):(b=e,I===0&&C(up)),b===e&&(b=zi()),b!==e?(m=[m,b],h=m):(r=h,h=e);h!==e;)l.push(h),h=r,i.substr(r,2)===Hi?(m=Hi,r+=2):(m=e,I===0&&C(pp)),m===e&&(i.charCodeAt(r)===39?(m=fr,r++):(m=e,I===0&&C(Ho))),m===e&&(m=null),Ua.test(i.charAt(r))?(b=i.charAt(r),r++):(b=e,I===0&&C(up)),b===e&&(b=zi()),b!==e?(m=[m,b],h=m):(r=h,h=e);i.substr(r,3)===$r?(h=$r,r+=3):(h=e,I===0&&C(hp)),h!==e?(_=s,s=vx(l)):(r=s,s=e)}else r=s,s=e;return s}function jv(){var s,u,l,h,m,b;if(s=r,i.substr(r,3)===qr?(u=qr,r+=3):(u=e,I===0&&C(fp)),u!==e){for(l=[],h=r,i.substr(r,2)===dr?(m=dr,r+=2):(m=e,I===0&&C(dp)),m===e&&(i.charCodeAt(r)===34?(m=jr,r++):(m=e,I===0&&C(sn))),m===e&&(m=null),Js.test(i.charAt(r))?(b=i.charAt(r),r++):(b=e,I===0&&C(gp)),b===e&&(b=zi()),b!==e?(m=[m,b],h=m):(r=h,h=e);h!==e;)l.push(h),h=r,i.substr(r,2)===dr?(m=dr,r+=2):(m=e,I===0&&C(dp)),m===e&&(i.charCodeAt(r)===34?(m=jr,r++):(m=e,I===0&&C(sn))),m===e&&(m=null),Js.test(i.charAt(r))?(b=i.charAt(r),r++):(b=e,I===0&&C(gp)),b===e&&(b=zi()),b!==e?(m=[m,b],h=m):(r=h,h=e);i.substr(r,3)===qr?(h=qr,r+=3):(h=e,I===0&&C(fp)),h!==e?(_=s,s=yx(l)):(r=s,s=e)}else r=s,s=e;return s}function zi(){var s,u,l;return s=r,i.charCodeAt(r)===92?(u=ei,r++):(u=e,I===0&&C(mp)),u!==e?(Sh.test(i.charAt(r))?(l=i.charAt(r),r++):(l=e,I===0&&C(lm)),l!==e?(_=s,s=Ex()):(r=s,s=e)):(r=s,s=e),s}function ji(){var s,u,l,h;if(s=r,i.charCodeAt(r)===40?(u=T,r++):(u=e,I===0&&C(ie)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();i.charCodeAt(r)===41?(h=k,r++):(h=e,I===0&&C(oe)),h!==e?(u=[u,l,h],s=u):(r=s,s=e)}else r=s,s=e;return s}function d(){var s;return s=$v(),s===e&&(s=wl(),s===e&&(s=xl())),s}function wl(){var s;return ac.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(cm)),s}function xl(){var s;return Lh.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(hm)),s}function dn(){var s;return Bh.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(pm)),s}function jp(){var s,u,l,h;if(s=r,i.charCodeAt(r)===35?(u=gr,r++):(u=e,I===0&&C(Pa)),u!==e){for(l=[],h=dn();h!==e;)l.push(h),h=dn();h=xl(),h!==e?(_=s,s=Cx()):(r=s,s=e)}else r=s,s=e;return s}function $v(){var s,u,l,h,m,b;for(s=r,u=xl(),u===e&&(u=null),l=[],h=wl();h!==e;)l.push(h),h=wl();if(i.charCodeAt(r)===35?(h=gr,r++):(h=e,I===0&&C(Pa)),h!==e){for(m=[],b=dn();b!==e;)m.push(b),b=dn();_=s,s=Ix()}else r=s,s=e;return s}function qv(){var s,u,l,h;if(s=r,i.charCodeAt(r)===91?(u=ai,r++):(u=e,I===0&&C(Dr)),u!==e){for(l=[],h=d();h!==e;)l.push(h),h=d();i.charCodeAt(r)===93?(h=Wi,r++):(h=e,I===0&&C(Cs)),h!==e?(u=[u,l,h],s=u):(r=s,s=e)}else r=s,s=e;return s}function $p(){var s;return _a.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(um)),s===e&&(kh.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(fm)),s===e&&(Gr.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(dm)),s===e&&(Vh.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(gm)),s===e&&(lc.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(mm)),s===e&&(yo.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(bm)),s===e&&(cc.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(wm)),s===e&&(hc.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(xm)),s===e&&(Oa.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(vm)),s===e&&(Fh.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(ym)),s===e&&(pc.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Em)),s===e&&(uc.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Cm)),s===e&&(Uh.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Im)))))))))))))),s}function lo(){var s;return s=$p(),s===e&&(i.charCodeAt(r)===95?(s=Gn,r++):(s=e,I===0&&C(bp))),s}function qp(){var s,u,l,h;if(s=r,u=lo(),u===e&&($e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke))),u!==e){for(l=[],h=lo(),h===e&&($e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke)),h===e&&(zs.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Qa)),h===e&&(Do.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Xa)),h===e&&(js.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ya))))));h!==e;)l.push(h),h=lo(),h===e&&($e.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ke)),h===e&&(zs.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Qa)),h===e&&(Do.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Xa)),h===e&&(js.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(Ya))))));_=s,s=Ax()}else r=s,s=e;return s}function Mt(){var s;return s=lo(),s===e&&(i.charCodeAt(r)===45?(s=yt,r++):(s=e,I===0&&C(Qt)),s===e&&($e.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Ke)),s===e&&(zs.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Qa)),s===e&&(Do.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Xa)),s===e&&(js.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Ya))))))),s}function Kv(){var s,u,l,h,m,b;if(s=r,u=$p(),u!==e){for(l=[],h=Mt(),h===e&&(h=r,i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e?(b=Mt(),b!==e?(m=[m,b],h=m):(r=h,h=e)):(r=h,h=e));h!==e;)l.push(h),h=Mt(),h===e&&(h=r,i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e?(b=Mt(),b!==e?(m=[m,b],h=m):(r=h,h=e)):(r=h,h=e));_=s,s=Nx()}else r=s,s=e;return s}function ey(){var s,u,l,h,m,b;if(s=r,u=lo(),u===e&&(i.charCodeAt(r)===58?(u=Qe,r++):(u=e,I===0&&C(xr)),u===e&&($e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Ke)),u===e&&(u=es()))),u!==e){for(l=[],h=Mt(),h===e&&(i.charCodeAt(r)===58?(h=Qe,r++):(h=e,I===0&&C(xr)),h===e&&(h=es())),h===e&&(h=r,i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e?(b=Mt(),b===e&&(i.charCodeAt(r)===58?(b=Qe,r++):(b=e,I===0&&C(xr)),b===e&&(b=es())),b!==e?(m=[m,b],h=m):(r=h,h=e)):(r=h,h=e));h!==e;)l.push(h),h=Mt(),h===e&&(i.charCodeAt(r)===58?(h=Qe,r++):(h=e,I===0&&C(xr)),h===e&&(h=es())),h===e&&(h=r,i.charCodeAt(r)===46?(m=De,r++):(m=e,I===0&&C(ut)),m!==e?(b=Mt(),b===e&&(i.charCodeAt(r)===58?(b=Qe,r++):(b=e,I===0&&C(xr)),b===e&&(b=es())),b!==e?(m=[m,b],h=m):(r=h,h=e)):(r=h,h=e));_=s,s=Rx()}else r=s,s=e;return s}function es(){var s;return s=ty(),s===e&&(s=iy()),s}function ty(){var s,u,l,h;return s=r,i.charCodeAt(r)===37?(u=Zn,r++):(u=e,I===0&&C(wp)),u!==e?(l=Kp(),l!==e?(h=Kp(),h!==e?(u=[u,l,h],s=u):(r=s,s=e)):(r=s,s=e)):(r=s,s=e),s}function Kp(){var s;return $e.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Ke)),s===e&&(fc.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Am)),s===e&&(dc.test(i.charAt(r))?(s=i.charAt(r),r++):(s=e,I===0&&C(Nm)))),s}function iy(){var s,u,l;return s=r,i.charCodeAt(r)===92?(u=ei,r++):(u=e,I===0&&C(mp)),u!==e?(i.charCodeAt(r)===95?(l=Gn,r++):(l=e,I===0&&C(bp)),l===e&&(i.charCodeAt(r)===126?(l=Rh,r++):(l=e,I===0&&C(Rm)),l===e&&(i.charCodeAt(r)===46?(l=De,r++):(l=e,I===0&&C(ut)),l===e&&(i.charCodeAt(r)===45?(l=yt,r++):(l=e,I===0&&C(Qt)),l===e&&(i.charCodeAt(r)===33?(l=Kt,r++):(l=e,I===0&&C(rn)),l===e&&(i.charCodeAt(r)===36?(l=wt,r++):(l=e,I===0&&C(sp)),l===e&&(i.charCodeAt(r)===38?(l=nc,r++):(l=e,I===0&&C(Tm)),l===e&&(i.charCodeAt(r)===39?(l=fr,r++):(l=e,I===0&&C(Ho)),l===e&&(i.charCodeAt(r)===40?(l=T,r++):(l=e,I===0&&C(ie)),l===e&&(i.charCodeAt(r)===41?(l=k,r++):(l=e,I===0&&C(oe)),l===e&&(i.charCodeAt(r)===42?(l=G,r++):(l=e,I===0&&C(St)),l===e&&(i.charCodeAt(r)===43?(l=st,r++):(l=e,I===0&&C(ti)),l===e&&(i.charCodeAt(r)===44?(l=Ge,r++):(l=e,I===0&&C(We)),l===e&&(i.charCodeAt(r)===59?(l=ue,r++):(l=e,I===0&&C(Ii)),l===e&&(i.charCodeAt(r)===58?(l=Qe,r++):(l=e,I===0&&C(xr)),l===e&&(i.charCodeAt(r)===61?(l=Ut,r++):(l=e,I===0&&C(Ti)),l===e&&(i.charCodeAt(r)===47?(l=ot,r++):(l=e,I===0&&C(gi)),l===e&&(i.charCodeAt(r)===63?(l=fi,r++):(l=e,I===0&&C(tn)),l===e&&(i.charCodeAt(r)===35?(l=gr,r++):(l=e,I===0&&C(Pa)),l===e&&(i.charCodeAt(r)===64?(l=On,r++):(l=e,I===0&&C(np)),l===e&&(i.charCodeAt(r)===37?(l=Zn,r++):(l=e,I===0&&C(wp)))))))))))))))))))))),l!==e?(u=[u,l],s=u):(r=s,s=e)):(r=s,s=e),s}let eu={};function a(s,u){return!!(s.type==="Var"&&s.varType===u.varType&&s.varname===u.varname||s.iriref&&s.iriref===u.iriref||s.type==="PrefixedName"&&s.pn_prefix===u.pn_prefix&&s.pn_local===u.pn_local)}if(an=c(),an!==e&&r===i.length)return an;throw an!==e&&r<i.length&&C(Tx()),vp(Ha,mi<i.length?i.charAt(mi):null,mi<i.length?Jo(mi,mi+1):Jo(mi,mi))}var In,Ea,Zs,PI=" ",Vg=0;function Ug(i,t=2){if(PI=" ".repeat(t),In=[],Ea=i.comments,Zs="",i.headers&&Je(i.headers.join("")),i.prologue?.decl.length&&(i.prologue.decl.forEach(e=>{e.type==="BaseDecl"?Je(`BASE <${e.iriref}>`):Je(`PREFIX ${e.pn_prefix||""}: <${e.iriref}>`)}),Je("")),i.selectQuery)x3(i.selectQuery);else if(i.constructQuery)v3(i.constructQuery);else if(i.askQuery)g3(i.askQuery);else if(i.describeQuery)m3(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(In[In.length-1]+=` ;
64
+ `),b3(i.update[e]);for(i.values&&XI(i.values);Ea&&Ea.length;)In[In.length-1]+=Ea.shift().text;return In.join(`
65
+ `)}var ko=(i=1)=>{Zs+=PI.repeat(i)},Vo=(i=1)=>{Zs=Zs.substr(0,Zs.length-PI.length*i)},Je=i=>{In.push(Zs+i)},Rt=(i,t)=>{for(;Ea&&Ea.length&&Ea[0].pos<t;)In[In.length-1]+=Ea.shift().text;Je(i)},g3=i=>{Je("ASK {");let t=Jr(i.where);Rt("}",t+1),uf(i)},m3=i=>{let t=i.describe.map(lt).join(" ");if(Je(`DESCRIBE ${t}`),QI(i.from),i.where){Je("WHERE {");let e=Jr(i.where);Rt("}",e+1)}uf(i)},b3=i=>{if(i.type==="insertdata")Je("INSERT DATA {"),ko(),An(i.insert),Vo(),Je("}");else if(i.type==="deletedata")Je("DELETE DATA {"),ko(),An(i.delete),Vo(),Je("}");else if(i.type==="deletewhere")Je("DELETE WHERE {"),ko(),An(i.delete),Vo(),Je("}");else if(i.type==="modify"){i.with&&Je(`WITH ${lt(i.with)}`),i.delete&&(Je("DELETE {"),ko(),An(i.delete),Vo(),Je("}")),i.insert&&(Je("INSERT {"),ko(),An(i.insert),Vo(),Je("}")),i.using&&i.using.forEach(e=>{Je(`USING ${w3(e)}`)}),Je("WHERE {");let t=Jr(i.where);Rt("}",t+1)}else if(i.type==="add"){let t=Ch(i.graphs[0]),e=Ch(i.graphs[1]),o=" ";i.silent&&(o=" SILENT "),Je(`ADD${o}${t} TO ${e}`)}else if(i.type==="move"){let t=Ch(i.graphs[0]),e=Ch(i.graphs[1]),o=" ";i.silent&&(o=" SILENT "),Je(`MOVE${o}${t} TO ${e}`)}else if(i.type==="copy"){let t=Ch(i.graphs[0]),e=Ch(i.graphs[1]),o=" ";i.silent&&(o=" SILENT "),Je(`COPY${o}${t} TO ${e}`)}else if(i.type==="load"){let t=" ";i.silent&&(t=" SILENT "),Je(`LOAD${t}${xo(i.sourceGraph)}`)}else if(i.type==="clear"){let t=" ";i.silent&&(t=" SILENT "),Je(`CLEAR${t}${i2(i.destinyGraph)}`)}else if(i.type==="drop"){let t=" ";i.silent&&(t=" SILENT "),Je(`DROP${t}${i2(i.destinyGraph)}`)}else if(i.type==="create"){let t=" ";i.silent&&(t=" SILENT "),Je(`CREATE${t}GRAPH ${xo(i.destinyGraph)}`)}},w3=i=>i.named?`NAMED ${xo(i.iri)}`:xo(i.iri),Ch=i=>i==="default"?"DEFAULT":xo(i),i2=i=>i==="default"?"DEFAULT":i==="named"?"NAMED":i==="all"?"ALL":`GRAPH ${xo(i)}`,Jr=(i,t=0)=>(ko(),i.type==="SubSelect"?(DI(i),t=i.location.end.offset):i.graphPattern?i.graphPattern.forEach(e=>{r2(e),t=e.location.end.offset}):i.forEach(e=>{r2(e),t=e.location.end.offset}),Vo(),t),x3=i=>{let t=i.selectClause.location.start.offset;Rt(o2(i.selectClause),t);let e=i.selectClause.location.end.offset,o=QI(i.selectClause.from);o>e&&(e=o),Rt("WHERE {",e+1),e=Jr(i.whereClause,e),Rt("}",e+1),uf(i)},DI=i=>{let t=i.selectClause.location.start.offset,e=i.selectClause.location.end.offset;Rt(o2(i.selectClause),t),Rt("WHERE {",e+1),e=Jr(i.whereClause,e),Rt("}",e+1),i.values&&XI(i.values),uf(i)},QI=i=>{if(i){let t;return i.forEach(e=>{e.graph?t=y3(e.graph):e.namedGraph&&(t=E3(e.namedGraph))}),t}},uf=i=>{i.group&&Je(C3(i.group)),i.having&&Je(`HAVING ${Ct(i.having[0])}`),i.orderBy&&Je("ORDER BY "+I3(i.orderBy)),i.limitOffset?.forEach(t=>{t.limit?Je(`LIMIT ${t.limit}`):t.offset&&Je(`OFFSET ${t.offset}`)})},v3=i=>{i.template?(Rt("CONSTRUCT {",i.location.start.offset),ko(),An(i.template.triplePattern),Vo(),Je("}")):Je("CONSTRUCT"),QI(i.from),Je("WHERE {");let t=Jr(i.where);Rt("}",t+1),uf(i)},y3=i=>{let t=xo(i);if(t!=null){let e=i.location.start.offset,o=i.location.end.offset;return Rt("FROM "+t,e),o}},E3=i=>{let t=xo(i);if(t!=null){let e=i.location.start.offset,o=i.location.end.offset;return Rt("FROM NAMED "+t,e),o}},r2=i=>{if(Vg=i.location.start.offset,i.type==="SubSelect"){Je("{"),ko(),DI(i),Vo(),Je("}");return}if(i.graphPattern&&i.graph){Rt(`GRAPH ${lt(i.graph)} {`,Vg);let t=Jr(i);Rt("}",t+1);return}if(i.graphPattern){Je("{");let t=Jr(i);Rt("}",t+1);return}if(i.data){XI(i);return}if(i.triplePattern){An(i.triplePattern);return}if(i.union){for(let t=0;t<i.union.length;t++)t>0&&Je("UNION"),Je("{"),Jr(i.union[t]),Rt("}",i.union[t].location.end.offset+2);return}if(i.optional){Rt("OPTIONAL {",Vg);let t=Jr(i.optional);Rt("}",t+1);return}if(i.minus){Rt("MINUS {",Vg);let t=Jr(i.minus);Rt("}",t+1);return}if(i.filter){N3(i);return}if(i.bind){Je(`BIND (${Ct(i.bind)} AS ${sc(i.as)})`);return}if(i.type==="ServiceGraphPattern"){let t=" ";i.silent&&(t=" SILENT "),Je(`SERVICE${t}${lt(i.service)} {`),i.pattern.type==="SubSelect"?(ko(),DI(i.pattern),Vo()):Jr(i.pattern),Je("}");return}if(i.functionRef){let t=i.args.map(Ct).join(", ");Je(xo(i.functionRef)+`(${t})`)}},C3=i=>{let t=["GROUP BY"],e=0;return i.forEach(o=>{t[e].length>80?(e++,t[e]=" "):t[e]+=" ",t[e]+=lt(o)}),t.join(`
66
+ `)},I3=i=>{let t=[];return i.forEach(e=>{let o;e.type==="Var"?o=sc(e):o=Ct(e),e.asc?t.push(`ASC${o}`):e.desc?t.push(`DESC${o}`):t.push(o)}),t.join(" ")},o2=i=>{let t=[];t[0]="SELECT",i.distinct&&(t[0]+=" DISTINCT"),i.reduced&&(t[0]+=" REDUCED");let e=0;return i.var.forEach(o=>{t[e].length>80?(e++,t[e]=" "):t[e]+=" ",t[e]+=A3(o)}),t.join(`
67
+ `)},A3=i=>{if(i.varname)return sc(i);if(i.as)return`(${Ct(i.expression)} AS ${sc(i.as)})`;if(i==="*")return"*"},N3=i=>{if(i.filter.notexists){Je("FILTER NOT EXISTS {");let t=Jr(i.filter.notexists);Rt("}",t+1)}else if(i.filter.exists){Je("FILTER EXISTS {");let t=Jr(i.filter.exists);Rt("}",t+1)}else Rt(`FILTER ${Ct(i.filter)}`,i.location.start.offset)},An=i=>{i.forEach(t=>{t.graph?(Rt(`GRAPH ${lt(t.graph)} {`,t.graph.location.start.offset),ko(),An(t.triplePattern),Vo(),Je("}")):t.triplePattern?An(t.triplePattern):t.properties?R3(t):Rt(`[${L3(t.subject.blankNodeProperties)}] .`,t.subject.location.start.offset)})},R3=i=>{let t=lt(i.subject),e,o;i.properties.forEach(n=>{e?(Rt(`${e} ;`,o),e=" ".repeat(t.length)+` ${lt(n.predicate)} ${lt(n.objects)}`,n.predicate.location?o=n.predicate.location.start.offset:o=n.predicate.value.location.start.offset):(e=`${t} ${lt(n.predicate)} ${lt(n.objects)}`,o=i.subject.location.start.offset)}),Rt(`${e} .`,o)},Fg=i=>{let t="";return i.forEach(e=>{t&&(t+=" "),e.graph?(t+=`GRAPH ${lt(e.graph)} { `,t+=Fg(e.triplePattern),t+=" }"):e.triplePattern?t+=Fg(e.triplePattern):(t+=T3(e),(i.length>1||e.properties.length>1)&&(t+=" ."))}),t},T3=i=>{let t=lt(i.subject),e;return i.properties.forEach(o=>{e?e+=` ; ${lt(o.predicate)} ${lt(o.objects)}`:e=`${t} ${lt(o.predicate)} ${lt(o.objects)}`}),e},S3=(i,t)=>{if(i.length===1&&!t){let n=i[0];return` ${lt(n.predicate)} ${lt(n.objects)}`}ko();let e="",o=Zs+" ".repeat(2);return i.forEach(n=>{e?(e+=` ;
68
+ `,e+=`${o} ${lt(n.predicate)} ${lt(n.objects,!0)}`):(e+=`
69
+ ${o}`,e+=` ${lt(n.predicate)} ${lt(n.objects,!0)}`)}),e+=`
70
+ ${Zs}`,Vo(),e},L3=i=>{if(i.length===1){let o=i[0];return` ${lt(o.predicate)} ${lt(o.objects)} `}let t="",e=Zs+" ".repeat(2);return i.forEach(o=>{t?(t+=` ;
71
+ `,t+=`${e}${lt(o.predicate)} ${lt(o.objects,!0)}`):(t+=`
72
+ ${e}`,t+=`${lt(o.predicate)} ${lt(o.objects,!0)}`)}),t+=`
73
+ ${Zs}`,t},B3=i=>{let t=i.distinct?"DISTINCT ":"";if(i.aggregateType==="count"){let e;return i.expression==="*"?e="*":e=Ct(i.expression),`COUNT(${t}${e})`}else{if(i.aggregateType==="sum")return`sum(${t}${Ct(i.expression)})`;if(i.aggregateType==="min")return`MIN(${t}${Ct(i.expression)})`;if(i.aggregateType==="max")return`MAX(${t}${Ct(i.expression)})`;if(i.aggregateType==="avg")return`AVG(${t}${Ct(i.expression)})`;if(i.aggregateType==="sample")return`SAMPLE(${t}${Ct(i.expression)})`;if(i.aggregateType==="group_concat"){let e="";return i.separator&&(e=`; SEPARATOR = ${s2(i.separator)}`),`GROUP_CONCAT(${t}${Ct(i.expression)}${e})`}}},Ct=i=>{if(i.functionRef)return xo(i.functionRef)+"("+i.args.map(Ct).join(", ")+")";if(i.exists)return`EXISTS { ${Fg(i.exists)} }`;if(i.notexists)return`NOT EXISTS { ${Fg(i.notexists)} }`;switch(i.expressionType){case"atomic":return Gs(lt(i.value),i.bracketted);case"irireforfunction":let t=xo(i.iriref);return i.args&&(t+="("+i.args.map(Ct).join(", ")+")"),Gs(t,i.bracketted);case"builtincall":let e="";return i.args&&(e=i.args.map(lt).join(", ")),Gs(`${i.builtincall}(${e})`,i.bracketted);case"unaryexpression":let o=i.unaryexpression+Ct(i.expression);return Gs(o,i.bracketted);case"aggregate":return B3(i);case"multiplicativeexpression":let n=Ct(i.first);return i.rest.forEach(A=>{n+=" "+A.operator+" "+Ct(A.expression)}),Gs(n,i.bracketted);case"additiveexpression":let c=Ct(i.op1);return i.ops.forEach(A=>{c+=" "+A.operator+" "+Ct(A.expression)}),Gs(c,i.bracketted);case"relationalexpression":let g=Ct(i.op1)+" "+i.operator+" ";return Array.isArray(i.op2)?g+="("+i.op2.map(lt).join(", ")+")":g+=Ct(i.op2),Gs(g,i.bracketted);case"aliasedexpression":let w=Ct(i.expression);return i.as&&(w+=` AS ${sc(i.as)}`),Gs(w,i.bracketted);case"conditionaland":return Gs(i.operands.map(Ct).join(" && "),i.bracketted);case"conditionalor":return Gs(i.operands.map(Ct).join(" || "),i.bracketted);case"regex":let y=Ct(i.text);return y+=", "+Ct(i.pattern),i.flags&&(y+=", "+Ct(i.flags)),`regex(${y})`}},Gs=(i,t)=>t?`(${i})`:i,XI=i=>{if(i.oneVar){let t=lt(i.oneVar),e=i.data.map(lt).join(" ");Je(`VALUES ${t} { ${e} }`)}else if(i.variables){let t=i.variables.map(sc).join(" ");if(i.variables.length===1){let e=i.data.map(o=>"("+o.map(lt).join(" ")+")").join(" ");Je(`VALUES (${t}) { ${e} }`)}else Je(`VALUES (${t}) {`),ko(),i.data.map(e=>{Je("("+e.map(lt).join(" ")+")")}),Vo(),Je("}")}},lt=(i,t=!1)=>{if(i==="UNDEF")return i;if(Array.isArray(i))return i.map(o=>lt(o,t)).join(", ");if(i.varname)return sc(i);if(i.collection)return`( ${i.collection.map(n=>lt(n)).join(" ")} )`;if(i.hasOwnProperty("literal"))return s2(i);if(i.blankNode)return i.blankNode;if(i.expressionType)return Ct(i);if(i.blankNodeProperties)return`[${S3(i.blankNodeProperties,t)} ]`;let e="";return i.inverse&&(e+="^"),(i.pn_prefix||i.pn_local||i.iriref||i.a)&&(e+=xo(i)),i.alternative?e+=i.alternative.map(o=>lt(o)).join("|"):i.sequence&&(e+=i.sequence.map(o=>lt(o)).join("/")),i.bracketted&&(e=`(${e})`),i.modifier&&(e+=i.modifier),e},s2=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 t=i.quote+i.literal+i.quote;return i.dataType?t+=`^^${xo(i.dataType)}`:i.lang&&(t+="@"+i.lang),t},xo=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"},sc=i=>i.varType==="VAR2"?"$"+i.varname:"?"+i.varname;var fs="",HI;function n2(i,t=4){HI=" ".repeat(t);let e="";return e+=`@prefix : <https://purl.org/sparql-formatter/ontology#> .
74
+
75
+ `,e+=`[]
76
+ `+YI(i)+` .
77
+ `,e}function YI(i){let t=[];return V3(),Object.keys(i).forEach(e=>{if(e==="type")t.push(fs+`a :${i[e]}`);else{if(e==="location"||e==="@context")return;if(typeof i[e]=="object")t.push(k3(e,i[e]));else{let o=i[e];typeof o=="string"&&(o=JSON.stringify(o)),t.push(fs+`:${e} ${o}`)}}}),F3(),t.join(` ;
78
+ `)}function k3(i,t){if(Array.isArray(t)){let e=t.map(o=>YI(o)+`
79
+ `);return fs+`:${i} [
80
+ `+e.join(fs+`], [
81
+ `)+fs+"]"}else return fs+`:${i} [
82
+ `+YI(t)+`
83
+ `+fs+"]"}var V3=(i=1)=>{fs+=HI.repeat(i)},F3=(i=1)=>{fs=fs.substr(0,fs.length-HI.length*i)};var U3=(i,t="default",e=2)=>{switch(t){case"default":return Ug(pf(i),e);case"compact":return Ug(WI(i),e);case"turtle":return n2(pf(i),e);case"jsonld":return JSON.stringify(pf(i),_3,e);default:throw new Error(`Unsupported formatting mode: ${t}`)}};function _3(i,t){if(i!=="location")return t}var JI={parseSparql:pf,parseSparqlAsCompact:WI,formatAst:Ug,format:U3};typeof window<"u"&&(window.spfmt=JI);var Vr=Lc(l2());var O3="<http://www.opengis.net/ont/geosparql#wktLiteral>";function Ih(i){return Number(i.toFixed(6)).toString()}function G3(i,t){return i.lat===t.lat&&i.lng===t.lng}function c2(i){return i.map(t=>`${Ih(t.lng)} ${Ih(t.lat)}`).join(", ")}function zI(i,t){if(!Array.isArray(t)||t.length===0)return;if(i==="POINT"){let n=t[t.length-1];return`POINT(${Ih(n.lng)} ${Ih(n.lat)})`}if(i==="LINESTRING")return t.length<2?void 0:`LINESTRING(${c2(t)})`;if(i!=="POLYGON"||t.length<3||new Set(t.map(n=>`${Ih(n.lng)} ${Ih(n.lat)}`)).size<3)return;let o=t.slice();return G3(o[0],o[o.length-1])||o.push(o[0]),`POLYGON((${c2(o)}))`}function h2(i){return`"${i}"^^${O3}`}var Z3=3e3,M3=4e3,W3=500,D3=300,P3=["mode","value","lineNumbers","lineWrapping","readOnly","tabSize","indentUnit","indentWithTabs","theme","extraKeys","tabMode","foldGutter","gutters","matchBrackets","highlightSelectionMatches","autoCloseBrackets","fixedGutter","placeholder","autofocus","viewportMargin"];function Q3(i){return WC({},ff.defaults,i,(t,e)=>{if(Array.isArray(e))return e})}function X3(i){if(!i)throw new Error("No parent passed as argument. Dont know where to draw YASQE");let t=document.createElement("div");return t.className="yasqe",i.appendChild(t),t}var jt=class jt extends kg{constructor(e,o={}){let n=Q3(o),c=X3(e),g={};for(let y of P3)n[y]!==void 0&&(g[y]=n[y]);super(c,g);this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.handleChange=()=>{this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()};this.handleBlur=()=>{this.saveQuery()};this.handleChanges=()=>{this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()};this.handleCursorActivity=()=>{this.autocomplete(!0);let e=this.getDoc().getCursor(),o=this.getTokenAt(e);o&&o.type==="variable-3"?this.showNotification("uri-describe-hint","CTRL+click: find triples where URI is subject. CTRL+SHIFT+click: find triples where URI is object."):this.hideNotification("uri-describe-hint")};this.handleQuery=(e,o,n)=>{this.req=o,this.abortController=n,this.updateQueryButton()};this.handleQueryResponse=(e,o,n)=>{this.lastQueryDuration=n,this.req=void 0,this.updateQueryButton()};this.handleQueryAbort=(e,o)=>{this.req=void 0,this.updateQueryButton()};this.initDrag=()=>{document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)};this.doDrag=e=>{this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"};this.stopDrag=()=>{document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh(),this.snippetsResizeHandler&&this.snippetsResizeHandler()};this.notificationEls={};this.expandEditor=()=>{this.setSize(null,"100%")};this.rootEl=c,this.config=n,this.storage=new Pl(jt.storageNamespace),this.drawButtons(),this.drawSnippetsBar();let w=this.getStorageId();if(w){let y=this.storage.get(w);y&&typeof y=="string"?this.persistentConfig={query:y,editorHeight:this.config.editorHeight}:this.persistentConfig=y,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(y=>this.enableCompleter(y).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()}getHintFn(){let e=this.pendingHintFn??this.buildHintFn(!1);return this.pendingHintFn=void 0,e}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)}getStorageId(e){let o=e||this.config.persistenceId;if(o)return typeof o=="string"?o:o(this)}drawButtons(){let e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){let K=this.config.pluginButtons();if(!K)return;if(Array.isArray(K))for(let J of K)e.append(J);else e.appendChild(K)}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),ge(this.queryBtn,"yasqe_queryButton");let K=document.createElement("i");ge(K,"fas"),ge(K,"fa-play"),ge(K,"queryIcon"),ge(K,"queryIcon--play"),K.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(K);let J=document.createElement("i");ge(J,"fas"),ge(J,"fa-exclamation-triangle"),ge(J,"queryIcon"),ge(J,"queryIcon--warning"),J.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(J);let te=document.createElement("i");ge(te,"fas"),ge(te,"fa-spinner"),ge(te,"fa-pulse"),ge(te,"queryIcon"),ge(te,"queryIcon--loading"),te.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(te);let ae=document.createElement("span");ae.className="yasqe_queryButton_text",ae.textContent="Run",this.queryBtn.appendChild(ae),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query (Ctrl+Enter)",this.queryBtn.setAttribute("aria-label","Run query"),e.appendChild(this.queryBtn),this.updateQueryButton()}if(this.config.createShareableLink){let K=document.createElement("i");ge(K,"fas"),ge(K,"fa-share-nodes"),K.setAttribute("aria-hidden","true");let J=document.createElement("button");J.className="yasqe_share",J.title="Share query",J.setAttribute("aria-label","Share query"),J.appendChild(K),e.appendChild(J),this.shareBtn=J,J.addEventListener("click",ae=>te(ae)),J.addEventListener("keydown",ae=>{ae.code==="Enter"&&te(ae)});let te=ae=>{ae.stopPropagation();let me=document.createElement("div");me.className="yasqe_sharePopup",e.appendChild(me);let Ee,Pe,Re=(ve,fe=Z3,Le="info")=>{if(Ee&&Ee.remove(),Pe!==void 0&&clearTimeout(Pe),Ee=document.createElement("div"),Ee.className=Le==="warning"?"yasqe_toast yasqe_toast-warning":"yasqe_toast",Le==="warning"){let bt=document.createElement("span");bt.className="yasqe_toast-icon";let $t=document.createElement("i");ge($t,"fas"),ge($t,"fa-exclamation-triangle"),$t.setAttribute("aria-hidden","true"),bt.appendChild($t),Ee.appendChild(bt)}let _e=document.createElement("span");_e.className="yasqe_toast-message",_e.textContent=ve,Ee.appendChild(_e),document.body.appendChild(Ee),Pe=window.setTimeout(()=>{Ee&&(Ee.classList.add("yasqe_toast-fadeout"),setTimeout(()=>{Ee?.remove(),Ee=void 0},D3))},fe)},Ie=ve=>{me&&ve.target!==me&&!me.contains(ve.target)&&(me.remove(),me=void 0,Ee&&(Ee.remove(),Ee=void 0),Pe!==void 0&&clearTimeout(Pe),document.body.removeEventListener("click",Ie,!0))};document.body.addEventListener("click",Ie,!0),me.innerHTML="";let Ye=async(ve,fe,Le=!1)=>{try{if(!navigator.clipboard||!navigator.clipboard.writeText){let _e=document.createElement("textarea");_e.value=ve,_e.style.position="fixed",_e.style.left="-999999px",document.body.appendChild(_e),_e.select();try{document.execCommand("copy"),document.body.removeChild(_e),Re(`${fe} copied to clipboard!`)}catch{throw document.body.removeChild(_e),new Error("Copy command not supported")}}else await navigator.clipboard.writeText(ve),Re(`${fe} copied to clipboard!`);Le&&setTimeout(()=>{Re("Warning: Authentication credentials included in copied content",M3,"warning")},W3)}catch(_e){console.error("Failed to copy to clipboard:",_e),Re("Failed to copy to clipboard. Please copy manually.",2e3)}},Oe=document.createElement("div");Oe.className="yasqe_sharePopup_title",Oe.textContent="Share Query",me.appendChild(Oe);let de=document.createElement("div");de.className="yasqe_sharePopup_buttons",me.appendChild(de);let ue=document.createElement("button");ue.innerText="Copy URL",ue.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",de.appendChild(ue),ue.onclick=async()=>{if(!this.config.createShareableLink)return;let ve=this.config.createShareableLink(this);await Ye(ve,"URL")};let dt=this.config.createShortLink;if(dt){let ve=document.createElement("button");ve.innerText="Shorten URL",ve.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",de.appendChild(ve),ve.onclick=async()=>{ve.disabled=!0,ve.innerText="Shortening...";try{if(!this.config.createShareableLink)return;let fe=this.config.createShareableLink(this),Le=await dt(this,fe);await Ye(Le,"Shortened URL"),ve.innerText="Shorten URL",ve.disabled=!1}catch(fe){ve.innerText="Shorten URL",ve.disabled=!1;let Le="Failed to shorten URL";typeof fe=="string"&&fe.length!==0?Le=fe:fe.message&&fe.message.length!==0&&(Le=fe.message),Re(Le,3e3)}}}let ce=document.createElement("button");ce.innerText="Copy cURL",ce.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",de.appendChild(ce),ce.onclick=async()=>{let ve=this.getAsCurlString(),fe=this.hasAuthenticationCredentials();await Ye(ve,"cURL command",fe)};let Be=document.createElement("button");Be.innerText="Copy PowerShell",Be.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",de.appendChild(Be),Be.onclick=async()=>{let ve=this.getAsPowerShellString(),fe=this.hasAuthenticationCredentials();await Ye(ve,"PowerShell command",fe)};let qe=document.createElement("button");qe.innerText="Copy wget",qe.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",de.appendChild(qe),qe.onclick=async()=>{let ve=this.getAsWgetString(),fe=this.hasAuthenticationCredentials();await Ye(ve,"wget command",fe)};let Xe=()=>{if(!me)return;let ve=e.getBoundingClientRect(),fe=me.offsetHeight||300,Le=window.innerHeight,_e=ve.top,bt=Le-ve.bottom;_e>=fe+20?(me.style.bottom=(e.clientHeight||46)+"px",me.style.top="auto",me.style.right="0px"):(me.style.position="fixed",me.style.bottom="auto",me.style.top="20px",me.style.right="20px")};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(Xe):setTimeout(Xe,0)}}let o=document.createElement("div");ge(o,"yasqe_saveWrapper"),o.style.display="none",this.saveBtnWrapper=o;let n=document.createElement("button");ge(n,"yasqe_saveManagedButton");let c=document.createElement("i");ge(c,"fas"),ge(c,"fa-database"),c.setAttribute("aria-hidden","true"),n.appendChild(c),n.title="Save as managed query",n.setAttribute("aria-label","Save as managed query"),n.onclick=()=>{this.emit("saveManagedQuery")},o.appendChild(n);let g=document.createElement("button");ge(g,"yasqe_saveRqButton");let w=document.createElement("i");if(ge(w,"fas"),ge(w,"fa-file-download"),w.setAttribute("aria-hidden","true"),g.appendChild(w),g.title="Save as .rq file",g.setAttribute("aria-label","Save as .rq file"),g.onclick=()=>{this.emit("downloadRqFile")},o.appendChild(g),e.appendChild(o),this.config.showFormatButton){let K=document.createElement("button");ge(K,"yasqe_formatButton");let J=document.createElement("i");ge(J,"fas"),ge(J,"fa-align-left"),J.setAttribute("aria-hidden","true"),K.appendChild(J),K.onclick=()=>{this.format()},K.title="Format query (Shift+Ctrl+F)",K.setAttribute("aria-label","Format query"),e.appendChild(K)}if(this.config.showMapButton){this.mapBtn=document.createElement("button"),ge(this.mapBtn,"yasqe_mapButton");let K=document.createElement("i");ge(K,"fas"),ge(K,"fa-map-location-dot"),K.setAttribute("aria-hidden","true"),this.mapBtn.appendChild(K),this.mapBtn.onclick=J=>{this.toggleMapPopup(e,{x:J.clientX,y:J.clientY})},this.mapBtn.title="Open map",this.mapBtn.setAttribute("aria-label","Open map"),e.appendChild(this.mapBtn)}this.fullscreenBtn=document.createElement("button"),ge(this.fullscreenBtn,"yasqe_fullscreenButton");let y=document.createElement("i");ge(y,"fas"),ge(y,"fa-expand"),ge(y,"fullscreenIcon"),y.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(y);let A=document.createElement("i");ge(A,"fas"),ge(A,"fa-compress"),ge(A,"fullscreenExitIcon"),A.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(A),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),e.appendChild(this.fullscreenBtn),this.hamburgerBtn=document.createElement("button"),ge(this.hamburgerBtn,"yasqe_hamburgerButton");let R=document.createElement("i");if(ge(R,"fas"),ge(R,"fa-bars"),R.setAttribute("aria-hidden","true"),this.hamburgerBtn.appendChild(R),this.hamburgerBtn.title="More options",this.hamburgerBtn.setAttribute("aria-label","More options"),this.hamburgerBtn.setAttribute("aria-expanded","false"),e.appendChild(this.hamburgerBtn),this.hamburgerMenu=document.createElement("div"),this.hamburgerMenu.className="yasqe_hamburgerMenu",e.appendChild(this.hamburgerMenu),this.config.createShareableLink){let K=document.createElement("button");K.className="yasqe_hamburgerMenuItem";let J=document.createElement("i");ge(J,"fas"),ge(J,"fa-share-nodes"),J.setAttribute("aria-hidden","true"),K.appendChild(J);let te=document.createElement("span");te.textContent="Share",K.appendChild(te),K.onclick=()=>{this.closeHamburgerMenu(),this.shareBtn?.click()},this.hamburgerMenu.appendChild(K)}let T=document.createElement("button");T.className="yasqe_hamburgerMenuItem";let F=document.createElement("i");ge(F,"fas"),ge(F,"fa-database"),F.setAttribute("aria-hidden","true"),T.appendChild(F);let k=document.createElement("span");k.textContent="Save as managed query",T.appendChild(k),T.onclick=()=>{this.closeHamburgerMenu(),this.emit("saveManagedQuery")},this.hamburgerMenu.appendChild(T);let G=document.createElement("button");G.className="yasqe_hamburgerMenuItem";let W=document.createElement("i");ge(W,"fas"),ge(W,"fa-file-download"),W.setAttribute("aria-hidden","true"),G.appendChild(W);let P=document.createElement("span");if(P.textContent="Save as .rq file",G.appendChild(P),G.onclick=()=>{this.closeHamburgerMenu(),this.emit("downloadRqFile")},this.hamburgerMenu.appendChild(G),this.config.showFormatButton){let K=document.createElement("button");K.className="yasqe_hamburgerMenuItem";let J=document.createElement("i");ge(J,"fas"),ge(J,"fa-align-left"),J.setAttribute("aria-hidden","true"),K.appendChild(J);let te=document.createElement("span");te.textContent="Format",K.appendChild(te),K.onclick=()=>{this.closeHamburgerMenu(),this.format()},this.hamburgerMenu.appendChild(K)}if(this.config.showMapButton){let K=document.createElement("button");K.className="yasqe_hamburgerMenuItem";let J=document.createElement("i");ge(J,"fas"),ge(J,"fa-map-location-dot"),J.setAttribute("aria-hidden","true"),K.appendChild(J);let te=document.createElement("span");te.textContent="Open map",K.appendChild(te),K.onclick=ae=>{this.closeHamburgerMenu(),this.toggleMapPopup(e,{x:ae.clientX,y:ae.clientY})},this.hamburgerMenu.appendChild(K)}let Q=document.createElement("button");Q.className="yasqe_hamburgerMenuItem";let H=document.createElement("i");ge(H,"fas"),ge(H,"fa-expand"),H.setAttribute("aria-hidden","true"),Q.appendChild(H);let re=document.createElement("span");re.textContent="Fullscreen",Q.appendChild(re),Q.onclick=()=>{this.closeHamburgerMenu(),this.toggleFullscreen()},this.hamburgerMenu.appendChild(Q),this.hamburgerBtn.onclick=K=>{K.stopPropagation(),this.toggleHamburgerMenu()},document.addEventListener("click",K=>{this.hamburgerMenu&&this.hamburgerBtn&&!this.hamburgerMenu.contains(K.target)&&!this.hamburgerBtn.contains(K.target)&&this.closeHamburgerMenu()})}toggleHamburgerMenu(){if(!this.hamburgerMenu||!this.hamburgerBtn)return;this.hamburgerMenu.classList.contains("active")?this.closeHamburgerMenu():(ge(this.hamburgerMenu,"active"),this.hamburgerBtn.setAttribute("aria-expanded","true"))}closeHamburgerMenu(){!this.hamburgerMenu||!this.hamburgerBtn||(mo(this.hamburgerMenu,"active"),this.hamburgerBtn.setAttribute("aria-expanded","false"))}toggleMapPopup(e,o){if(this.mapPopup){this.closeMapPopupHandler?.();return}this.createMapPopup(e,o)}createMapPopup(e,o){this.mapPopup=document.createElement("div"),this.mapPopup.className="yasqe_mapPopup",e.appendChild(this.mapPopup);let n=document.createElement("div");n.className="yasqe_mapPopup_header";let c=document.createElement("div");c.className="yasqe_mapPopup_title",c.textContent="Create WKT",n.appendChild(c);let g=document.createElement("button");g.className="yasqe_mapPopup_close",g.setAttribute("aria-label","Close map"),g.innerHTML="&times;",n.appendChild(g),this.mapPopup.appendChild(n);let w=document.createElement("div");w.className="yasqe_mapPopup_map",this.mapPopup.appendChild(w);let y=document.createElement("div");y.style.height="100%",y.style.width="100%",w.appendChild(y);let A=document.createElement("div");A.className="yasqe_mapPopup_geometryControls leaflet-bar",w.appendChild(A);let R=document.createElement("div");R.className="yasqe_mapPopup_hint",R.textContent="Click the map to add coordinates",this.mapPopup.appendChild(R);let T=document.createElement("textarea");T.className="yasqe_mapPopup_preview",T.readOnly=!0,T.rows=2,this.mapPopup.appendChild(T);let F=document.createElement("div");F.className="yasqe_mapPopup_actions";let k=document.createElement("button");k.className="yasqe_btn yasqe_btn-sm",k.textContent="Undo";let G=document.createElement("button");G.className="yasqe_btn yasqe_btn-sm",G.textContent="Clear";let W=document.createElement("button");W.className="yasqe_btn yasqe_btn-sm",W.textContent="Insert WKT",F.appendChild(k),F.appendChild(G),F.appendChild(W),this.mapPopup.appendChild(F);let P="POINT",Q=[],H,re,K={},J=()=>getComputedStyle(this.rootEl).getPropertyValue("--yasgui-accent-color").trim()||"#337ab7",te=Vr.map(y,{zoomControl:!0,attributionControl:!0}).setView([51.505,-.09],2);te.getContainer().style.cursor="crosshair",Vr.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors",maxZoom:19}).addTo(te),Vr.DomEvent.disableClickPropagation(A),Vr.DomEvent.disableScrollPropagation(A);let ae=()=>{let de=zI(P,Q);T.value=de||"",W.disabled=!de,k.disabled=Q.length===0,G.disabled=Q.length===0},me=()=>{H&&(te.removeLayer(H),H=void 0),re&&(te.removeLayer(re),re=void 0);let de=Q.map(dt=>Vr.latLng(dt.lat,dt.lng)),ue=J();P==="POINT"&&de.length>0?H=Vr.marker(de[de.length-1]).addTo(te):P==="LINESTRING"&&de.length>0?re=Vr.polyline(de,{color:ue}).addTo(te):P==="POLYGON"&&de.length>0&&(re=Vr.polygon(de,{color:ue}).addTo(te)),ae()},Ee=()=>{for(let de of["POINT","LINESTRING","POLYGON"]){let ue=K[de];ue&&(ue.classList.toggle("active",de===P),ue.setAttribute("aria-pressed",de===P?"true":"false"))}},Pe=(de,ue,dt)=>{let ce=document.createElement("button");ce.type="button",ce.className="yasqe_mapPopup_geometryBtn",ce.title=dt,ce.setAttribute("aria-label",dt),ce.setAttribute("aria-pressed","false");let Be=document.createElement("i");return ge(Be,"fas"),ge(Be,ue),Be.setAttribute("aria-hidden","true"),ce.appendChild(Be),ce.onclick=qe=>{qe.preventDefault(),qe.stopPropagation(),P!==de&&(P=de,Q=[],Ee(),me())},A.appendChild(ce),ce};K.POINT=Pe("POINT","fa-location-dot","Point"),K.LINESTRING=Pe("LINESTRING","fa-slash","LineString"),K.POLYGON=Pe("POLYGON","fa-draw-polygon","Polygon"),Ee();let Re=()=>{document.removeEventListener("keydown",Ie),document.body.removeEventListener("click",Ye,!0),te.remove(),this.mapPopup?.remove(),this.mapPopup=void 0,this.closeMapPopupHandler=void 0},Ie=de=>{de.key==="Escape"&&Re()},Ye=de=>{this.mapPopup&&(this.mapPopup.contains(de.target)||this.mapBtn?.contains(de.target)||Re())};te.on("click",de=>{let ue={lat:de.latlng.lat,lng:de.latlng.lng};P==="POINT"?Q=[ue]:Q.push(ue),me()}),k.onclick=()=>{Q.pop(),me()},G.onclick=()=>{Q=[],me()},W.onclick=()=>{let de=zI(P,Q);de&&(this.replaceSelection(h2(de)),Re())},g.onclick=()=>Re(),this.closeMapPopupHandler=Re,document.addEventListener("keydown",Ie),document.body.addEventListener("click",Ye,!0);let Oe=()=>{if(!this.mapPopup)return;let de=this.mapPopup.offsetWidth||this.mapPopup.scrollWidth||520,ue=this.mapPopup.offsetHeight||this.mapPopup.scrollHeight||this.mapPopup.clientHeight,dt=window.innerWidth,ce=window.innerHeight;if(this.mapPopup.style.position="fixed",this.mapPopup.style.bottom="auto",o){let ve=o.x+12,fe=o.y+12;ve+de>dt-20&&(ve=Math.max(20,o.x-de-12)),fe+ue>ce-20&&(fe=Math.max(20,o.y-ue-12)),this.mapPopup.style.left=`${Math.max(20,ve)}px`,this.mapPopup.style.top=`${Math.max(20,fe)}px`,this.mapPopup.style.right="auto";return}let Be=e.getBoundingClientRect(),qe=Math.min(dt-de-20,Math.max(20,Be.right-de));this.mapPopup.style.left=`${Math.max(20,qe)}px`,this.mapPopup.style.top="20px",this.mapPopup.style.right="auto"};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{Oe(),te.invalidateSize()}):setTimeout(()=>{Oe(),te.invalidateSize()},0),me()}toggleMapWidget(e){let o=this.getWrapperElement().querySelector(".yasqe_buttons");!o||!(o instanceof HTMLDivElement)||this.toggleMapPopup(o,e)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(ge(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(mo(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}insertSnippet(e){let o=this.getDoc(),n=o.getCursor();o.replaceRange(e,n);let c=e.split(`
84
+ `),g=c[c.length-1];o.setCursor({line:n.line+c.length-1,ch:c.length===1?n.ch+g.length:g.length}),this.focus()}drawSnippetsBar(){if(!(this.config.showSnippetsBar&&this.config.snippets.length>0)){this.snippetsBar&&(this.snippetsBar.remove(),this.snippetsBar=void 0);return}if(!this.snippetsBar){this.snippetsBar=document.createElement("div"),ge(this.snippetsBar,"yasqe_snippetsBar");let k=this.getWrapperElement();k.parentElement?.insertBefore(this.snippetsBar,k)}this.snippetsBar.innerHTML="";let o=this.config.snippets,n=document.createElement("div");ge(n,"yasqe_snippetsVisible");let c=[],g={},w=[];o.forEach(k=>{k.group?(g[k.group]||(g[k.group]=[]),g[k.group].push(k)):w.push(k)}),Object.keys(g).forEach(k=>{let G=document.createElement("div");ge(G,"yasqe_snippetDropdown");let W=document.createElement("button");ge(W,"yasqe_snippetDropdownButton"),W.textContent=k+" ";let P=document.createElement("i");ge(P,"fas"),ge(P,"fa-chevron-down"),ge(P,"chevronIcon"),P.setAttribute("aria-hidden","true"),W.appendChild(P),W.setAttribute("aria-label",`${k} snippets`),W.setAttribute("aria-expanded","false");let Q=document.createElement("div");ge(Q,"yasqe_snippetDropdownContent"),Q.setAttribute("role","menu"),g[k].forEach(H=>{let re=document.createElement("button");ge(re,"yasqe_snippetDropdownItem"),re.textContent=H.label,re.title=H.code,re.setAttribute("role","menuitem"),re.onclick=()=>{this.insertSnippet(H.code),Q.style.display="none",W.setAttribute("aria-expanded","false")},Q.appendChild(re)}),W.onclick=H=>{H.stopPropagation();let re=Q.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(te=>{te.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(te=>te.setAttribute("aria-expanded","false")),re||(Q.style.display="block",W.setAttribute("aria-expanded","true"))},G.appendChild(W),G.appendChild(Q),c.push(G)}),w.forEach(k=>{let G=document.createElement("button");ge(G,"yasqe_snippetButton"),G.textContent=k.label,G.title=k.code,G.setAttribute("aria-label",`Insert ${k.label} snippet`),G.onclick=()=>this.insertSnippet(k.code),c.push(G)}),c.forEach(k=>n.appendChild(k)),this.snippetsBar.appendChild(n);let y=document.createElement("div");ge(y,"yasqe_snippetDropdown","yasqe_showMore"),y.style.display="none";let A=document.createElement("button");ge(A,"yasqe_snippetDropdownButton","yasqe_showMoreButton"),A.textContent="More ";let R=document.createElement("i");ge(R,"fas"),ge(R,"fa-chevron-down"),ge(R,"chevronIcon"),R.setAttribute("aria-hidden","true"),A.appendChild(R),A.setAttribute("aria-label","Show more snippets"),A.setAttribute("aria-expanded","false");let T=document.createElement("div");ge(T,"yasqe_snippetDropdownContent","yasqe_showMoreContent"),T.setAttribute("role","menu"),A.onclick=k=>{k.stopPropagation();let G=T.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(Q=>{Q!==T&&(Q.style.display="none")}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(Q=>{Q!==A&&Q.setAttribute("aria-expanded","false")}),G?(T.style.display="none",A.setAttribute("aria-expanded","false")):(T.style.display="block",A.setAttribute("aria-expanded","true"))},y.appendChild(A),y.appendChild(T),this.snippetsBar.appendChild(y);let F=()=>{if(!this.snippetsBar)return;let W=this.snippetsBar.offsetWidth-80-20,P=0,Q=[];c.forEach((H,re)=>{let K=H.offsetWidth+5;if(P+K>W&&re>0)if(H.style.display="none",H.classList.contains("yasqe_snippetDropdown")){let te=H.querySelector(".yasqe_snippetDropdownButton")?.textContent?.trim().replace(" ","")||"Group";Q.push({element:H,groupName:te})}else{let J=w.find(te=>te.label===H.textContent);Q.push({element:H,snippet:J})}else P+=K}),Q.length>0&&(y.style.display="inline-block",Q.forEach(({element:H,snippet:re,groupName:K})=>{if(K){let J=document.createElement("div");ge(J,"yasqe_snippetGroupHeader"),J.textContent=K,T.appendChild(J),H.querySelectorAll(".yasqe_snippetDropdownItem").forEach(ae=>{let me=ae.cloneNode(!0);me.onclick=ae.onclick,T.appendChild(me)})}else if(re){let J=document.createElement("button");ge(J,"yasqe_snippetDropdownItem"),J.textContent=re.label,J.title=re.code,J.setAttribute("role","menuitem"),J.onclick=()=>{this.insertSnippet(re.code),T.style.display="none",A.setAttribute("aria-expanded","false")},T.appendChild(J)}}))};requestAnimationFrame(F),this.snippetsResizeHandler&&window.removeEventListener("resize",this.snippetsResizeHandler),this.snippetsResizeHandler=()=>{this.snippetsBar&&(c.forEach(k=>k.style.display=""),y.style.display="none",T.innerHTML="",requestAnimationFrame(F))},window.addEventListener("resize",this.snippetsResizeHandler),this.snippetsClickHandler&&document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=k=>{this.snippetsBar&&!this.snippetsBar.contains(k.target)&&(this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(P=>{P.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(P=>P.setAttribute("aria-expanded","false")))},document.addEventListener("click",this.snippetsClickHandler)}drawResizer(){if(this.horizontalResizeWrapper)return;this.horizontalResizeWrapper=document.createElement("div"),ge(this.horizontalResizeWrapper,"horizontalResizeWrapper");let e=document.createElement("div");ge(e,"horizontalResizeChip"),this.horizontalResizeWrapper.appendChild(e),this.horizontalResizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.horizontalResizeWrapper)}calculateDragOffset(e,o){let n=0;o.offsetParent&&(n=o.offsetParent.offsetTop);let c=0,g=o.parentElement;for(;g;)c+=g.scrollTop,g=g.parentElement;return e.clientY-n-this.rootEl.offsetTop+c}duplicateLine(){let e=this.getDoc().getCursor();if(e){let o=this.getDoc().getLine(e.line);this.getDoc().replaceRange(o+`
85
+ `+o,{ch:0,line:e.line},{ch:o.length,line:e.line})}}updateQueryButton(e){if(!this.queryBtn)return;this.config.queryingDisabled?(ge(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(mo(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query (Ctrl+Enter)",this.queryBtn.setAttribute("aria-label","Run query")),e||(e=this.queryValid?"valid":"error"),e!=this.queryStatus&&(mo(this.queryBtn,"query_"+this.queryStatus),ge(this.queryBtn,"query_"+e),this.queryStatus=e);let o=!!this.req,n=e==="error";o&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!o&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")),o?(ge(this.queryBtn,"state-loading"),mo(this.queryBtn,"state-error"),mo(this.queryBtn,"state-normal")):n?(mo(this.queryBtn,"state-loading"),ge(this.queryBtn,"state-error"),mo(this.queryBtn,"state-normal")):(mo(this.queryBtn,"state-loading"),mo(this.queryBtn,"state-error"),ge(this.queryBtn,"state-normal"))}handleLocalStorageQuotaFull(e){console.warn("Localstorage quota exceeded. Clearing all queries"),jt.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),o=[];for(var n in e.state.variables)o.push(n);return o.sort()}autoformatSelection(e,o){var n=this.getValue();return n=n.substring(e,o),jt.autoformatString(n)}static autoformatString(e){var o=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],n=["}"],c=function(A){if(A==="{"||A===".")return 1;if(A===";")return y.length>2&&y[y.length-2]==="punc"?0:1;for(var R=0;R<o.length;R++)if(y.valueOf().toString()===o[R].valueOf().toString())return 1;for(var R=0;R<n.length;R++)if(w.trim()!==""&&A==n[R])return-1;return 0},g="",w="",y=[];return jt.runMode(e,"sparql11",function(A,R){y.push(R);var T=c(A);T!=0?(T==1?(g+=A+`
86
+ `,w=""):(g+=`
87
+ `+A,w=A),y=[]):(w+=A,g+=A),y.length==1&&y[0]=="sp-ws"&&(y=[])}),g.replace(/\n\s*\n/g,`
88
+ `).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,o=this.getDoc().getCursor("end").line,n=Math.min(e,o),c=Math.max(e,o),g=!0,w=n;w<=c;w++){var y=this.getDoc().getLine(w),A=y.trimStart();if(y.length>0&&(A.length===0||A.substring(0,1)!=="#")){g=!1;break}}for(var w=n;w<=c;w++){var y=this.getDoc().getLine(w),A=y.trimStart(),R=y.length-A.length;if(g&&A.length>0){var T=y.indexOf("#");if(T>=0){var F=1;T+1<y.length&&y.charAt(T+1)===" "&&(F=2),this.getDoc().replaceRange("",{line:w,ch:T},{line:w,ch:T+F})}}else!g&&y.length>0&&this.getDoc().replaceRange("# ",{line:w,ch:R})}}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let e=this.getDoc().getCursor("start"),o=this.getDoc().getCursor("end");var n=this.getDoc().indexFromPos(e),c=this.getDoc().indexFromPos(o);let g=this.autoformatSelection(n,c);this.operation(()=>{this.getDoc().replaceRange(g,e,o);for(var w=this.getDoc().posFromIndex(n).line,y=this.getDoc().posFromIndex(n+g.length).line,A=w;A<=y;A++)this.indentLine(A)})}formatQuery(){try{let e=this.getValue(),o=JI.format(e);this.setValue(o),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 o;if(typeof e=="string")o=e;else{e instanceof Array||(e=[e]);var n=e.reduce(function(R,T){for(var F in T)R[F]=F;return R},{}),c=[];for(var g in n)c.push(g);if(!c.length)return this.getValue();o="VALUES ("+c.join(" ")+`) {
89
+ `,e.forEach(function(R){o+="( ",c.forEach(function(T){o+=R[T]||"UNDEF"}),o+=` )
90
+ `}),o+=`}
91
+ `}if(!o)return this.getValue();var w="",y=!1,A=!1;return jt.runMode(this.getValue(),"sparql11",function(R,T,F,k,G){T==="keyword"&&R.toLowerCase()==="select"&&(A=!0),w+=R,A&&!y&&T==="punc"&&R==="{"&&(y=!0,w+=`
92
+ `+o)}),w}getValueWithoutComments(){var e="";return jt.runMode(this.getValue(),"sparql11",function(o,n){n!="comment"&&(e+=o)}),e}setCheckSyntaxErrors(e){this.config.syntaxErrorCheck=e,this.checkSyntax(),this.checkConstructVariables()}checkSyntax(){this.queryValid=!0,this.clearGutter("gutterErrorBar"),this.clearSyntaxErrorHighlight();for(var e,o=0;o<this.getDoc().lineCount();++o){var n=!1;this.prevQueryValid||(n=!0);var c=this.getTokenAt({line:o,ch:this.getDoc().getLine(o).length},n),e=c.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let G=this.getWrapperElement().querySelectorAll(".sp-error");for(let W=0;W<G.length;W++){var g=G[W];g.style&&(g.style.color="black")}return}let y=this.getDoc().getLine(o).length,A=typeof e.errorStartPos=="number"?Math.max(0,Math.min(y,e.errorStartPos)):Math.max(0,Math.min(y,c.start)),R=c.string?A+c.string.length:A+1,T=typeof e.errorEndPos=="number"?e.errorEndPos:R,F=Math.max(A+1,Math.min(y,T));F>A&&this.setSyntaxErrorHighlight({line:o,ch:A},{line:o,ch:F});let k=document.createElement("i");if(k.className="fas fa-exclamation-circle parseErrorIcon",e.errorMsg)ih(this,k,$u(e.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){let G=[];e.possibleCurrent.forEach(function(W){G.push("<strong style='text-decoration:underline'>"+$u(W)+"</strong>")}),ih(this,k,"This line is invalid. Expected: "+G.join(", "))}else ih(this,k,"Syntax error");this.setGutterMarker(o,"gutterErrorBar",k),this.queryBtn&&(ge(this.queryBtn,"query_error"),this.queryBtn.title="Query has syntax errors"),this.queryValid=!1;break}}this.queryValid&&this.queryBtn&&(mo(this.queryBtn,"query_error"),this.queryBtn.title="Run query (Ctrl+Enter)")}setCheckConstructVariables(e){this.config.checkConstructVariables=e,e?this.checkConstructVariables():this.clearGutter("gutterConstructWarning")}setSaveButtonVisible(e){this.saveBtnWrapper&&(this.saveBtnWrapper.style.display=e?"inline-flex":"none")}checkConstructVariables(){if(this.clearGutter("gutterConstructWarning"),!this.config.checkConstructVariables||!this.queryValid||this.getQueryType()!=="CONSTRUCT")return;let e=this.getDoc().lastLine(),n=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},!0).state,c=[];for(let g in n.constructVariables)n.whereVariables[g]||c.push(g);if(c.length!==0)for(let g=0;g<this.getDoc().lineCount();++g){let y=this.getTokenAt({line:g,ch:this.getDoc().getLine(g).length},!0).state;if(y.queryType==="CONSTRUCT"&&y.inConstructTemplate){let A=this.getDoc().getLine(g);for(let R of c){let T=R.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${T}(?![a-zA-Z0-9_])`).test(A)){let k=document.createElement("i");k.className="fas fa-exclamation-triangle constructVariableWarning",ih(this,k,"Variable <strong>"+$u(R)+"</strong> is used in CONSTRUCT but not defined in WHERE clause"),this.setGutterMarker(g,"gutterConstructWarning",k);break}}}}}getCompleteToken(e,o){return uR(this,e,o)}getPreviousNonWsToken(e,o){return uC(this,e,o)}getNextNonWsToken(e,o){return fC(this,e,o)}showNotification(e,o){if(!this.notificationEls[e]){let c=document.createElement("div");ge(c,"notificationContainer"),this.getWrapperElement().appendChild(c),this.notificationEls[e]=document.createElement("div"),ge(this.notificationEls[e],"notification","notif_"+e),c.appendChild(this.notificationEls[e])}for(let c in this.notificationEls)c!==e&&this.hideNotification(c);let n=this.notificationEls[e];ge(n,"active"),n.innerText=o}hideNotification(e){this.notificationEls[e]&&mo(this.notificationEls[e],"active")}setSnippetsBarVisible(e){this.config.showSnippetsBar=e,this.drawSnippetsBar()}getSnippetsBarVisible(){return this.config.showSnippetsBar&&this.config.snippets.length>0}refreshSnippetsBar(){this.drawSnippetsBar(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}enableCompleter(e){return jt.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new rg(this,jt.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}disableCompleter(e){this.config.autocompleters=this.config.autocompleters.filter(o=>o!==e),this.autocompleters[e]=void 0}autocomplete(e=!1){if(this.getDoc().somethingSelected())return;let o=this.buildHintFn(e);o&&(this.pendingHintFn=o,qk(this.view))}buildHintFn(e){let o=[];for(let n of this.config.autocompleters){let c=this.autocompleters[n];if(!c)continue;let g=c.autocomplete(e);g&&o.push(g)}if(o.length!==0)return async()=>{let n=await Promise.all(o.map(g=>g())),c;for(let g of n)!g||!g.list||g.list.length===0||(c?c.list.push(...g.list):c={list:[...g.list],from:g.from,to:g.to});return c}}isAutocompletionActive(){return $k(this.view.state)}hideAutocompletion(){Kk(this.view)}collapsePrefixes(e=!0){let o=oR(this.runner,this.view.state.doc);if(o===void 0)return;let n=this.view.state.doc.line(o+1).from;e?xd(this.view,n):aR(this.view,n)}getPrefixesFromQuery(){return pR(this)}addPrefixes(e){return cR(this,e)}removePrefixes(e){return hR(this,e)}updateWidget(){}query(e){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.persistentConfig?.autoformatOnQuery&&this.format(),this.abortQuery(),QC(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=Og.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=Og.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=Og.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 HC(this,e)}getAsPowerShellString(e){return JC(this,e)}getAsWgetString(e){return zC(this,e)}hasAuthenticationCredentials(e){let o=jl(this,e);return o?YC(o):!1}abortQuery(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}destroy(){this.abortQuery(),this.closeMapPopupHandler?.(),this.unregisterEventListeners(),this.horizontalResizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper?.removeEventListener("dblclick",this.expandEditor),this.snippetsClickHandler&&(document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=void 0);for(let e in this.autocompleters)this.disableCompleter(e);window.removeEventListener("hashchange",this.handleHashChange),this.destroyEditor(),this.rootEl.remove()}static clearStorage(){new Pl(jt.storageNamespace).removeNamespace()}static registerAutocompleter(e,o=!0){let n=e.name;jt.Autocompleters[n]=e,o&&jt.defaults.autocompleters.indexOf(n)<0&&jt.defaults.autocompleters.push(n)}static forkAutocompleter(e,o,n=!0){if(!jt.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!o?.name)throw new Error("Expected a name for newly registered autocompleter");let c=o.name;jt.Autocompleters[c]={...jt.Autocompleters[e],...o},n&&jt.defaults.autocompleters.indexOf(c)<0&&jt.defaults.autocompleters.push(c)}};jt.storageNamespace="triply",jt.Sparql=jC,jt.runMode=(e,o,n)=>Kd(e,n),jt.Autocompleters={},jt.defaults=tI();var ff=jt;AB.forEach(i=>{ff.registerAutocompleter(i)});var S7=ff;export{ff as Yasqe,S7 as default};
93
+ /*! Bundled license information:
94
+
95
+ leaflet/dist/leaflet-src.js:
96
+ (* @preserve
97
+ * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
98
+ * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
99
+ *)
100
+
101
+ dompurify/dist/purify.es.mjs:
102
+ (*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *)
103
+
104
+ lodash-es/lodash.js:
105
+ (**
106
+ * @license
107
+ * Lodash (Custom Build) <https://lodash.com/>
108
+ * Build: `lodash modularize exports="es" -o ./`
109
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
110
+ * Released under MIT license <https://lodash.com/license>
111
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
112
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
113
+ *)
114
+ */
115
+ //# sourceMappingURL=yasqe.mjs.map