@matdata/yasgui 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +175 -0
- package/build/ts/src/PersistentConfig.d.ts +49 -0
- package/build/ts/src/Tab.d.ts +105 -0
- package/build/ts/src/TabContextMenu.d.ts +29 -0
- package/build/ts/src/TabElements.d.ts +45 -0
- package/build/ts/src/TabSettingsModal.d.ts +28 -0
- package/build/ts/src/defaults.d.ts +3 -0
- package/build/ts/src/endpointSelect.d.ts +44 -0
- package/build/ts/src/index.d.ts +104 -0
- package/build/ts/src/linkUtils.d.ts +43 -0
- package/build/yasgui.html +24 -0
- package/build/yasgui.min.css +2 -0
- package/build/yasgui.min.css.map +1 -0
- package/build/yasgui.min.js +3 -0
- package/build/yasgui.min.js.LICENSE.txt +59 -0
- package/build/yasgui.min.js.map +1 -0
- package/package.json +48 -0
- package/src/PersistentConfig.ts +159 -0
- package/src/Tab.ts +775 -0
- package/src/TabContextMenu.scss +42 -0
- package/src/TabContextMenu.ts +143 -0
- package/src/TabElements.scss +134 -0
- package/src/TabElements.ts +336 -0
- package/src/TabSettingsModal.scss +226 -0
- package/src/TabSettingsModal.ts +424 -0
- package/src/defaults.ts +64 -0
- package/src/endpointSelect.scss +122 -0
- package/src/endpointSelect.ts +339 -0
- package/src/index.scss +97 -0
- package/src/index.ts +373 -0
- package/src/linkUtils.ts +234 -0
- package/src/tab.scss +61 -0
- package/static/yasgui.bootstrap.css +36 -0
- package/static/yasgui.polyfill.min.js +4 -0
- package/typings-custom/@tarekraafat/autocomplete.js/index.d.ts +48 -0
- package/typings-custom/main.d.ts +1 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see yasgui.min.js.LICENSE.txt */
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Yasgui",[],e):"object"==typeof exports?exports.Yasgui=e():t.Yasgui=e()}(self,()=>(()=>{var __webpack_modules__={160:t=>{"use strict";var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),i=new RegExp("("+e+")+","gi");function r(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),i=t.slice(e);return Array.prototype.concat.call([],r(n),r(i))}function o(t){try{return decodeURIComponent(t)}catch(o){for(var e=t.match(n)||[],i=1;i<e.length;i++)e=(t=r(e,i).join("")).match(n)||[];return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var r=o(n[0]);r!==n[0]&&(e[n[0]]=r)}n=i.exec(t)}e["%C2"]="�";for(var s=Object.keys(e),a=0;a<s.length;a++){var l=s[a];t=t.replace(new RegExp(l,"g"),e[l])}return t}(t)}}},232:(t,e,n)=>{var i=n(8541)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},365:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(4360);function r(t,e){if(e&&("object"==(0,i.A)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}},666:(t,e,n)=>{!function(t){"use strict";function e(e){return function(n,i){var r=i.line,o=n.getLine(r);function s(e){for(var s,a=i.ch,l=0;;){var u=a<=0?-1:o.lastIndexOf(e[0],a-1);if(-1!=u){if(1==l&&u<i.ch)break;if(s=n.getTokenTypeAt(t.Pos(r,u+1)),!/^(comment|string)/.test(s))return{ch:u+1,tokenType:s,pair:e};a=u-1}else{if(1==l)break;l=1,a=o.length}}}function a(e){var i,o,s=1,a=n.lastLine(),l=e.ch;t:for(var u=r;u<=a;++u)for(var c=n.getLine(u),h=u==r?l:0;;){var p=c.indexOf(e.pair[0],h),d=c.indexOf(e.pair[1],h);if(p<0&&(p=c.length),d<0&&(d=c.length),(h=Math.min(p,d))==c.length)break;if(n.getTokenTypeAt(t.Pos(u,h+1))==e.tokenType)if(h==p)++s;else if(! --s){i=u,o=h;break t}++h}return null==i||r==i?null:{from:t.Pos(r,l),to:t.Pos(i,o)}}for(var l=[],u=0;u<e.length;u++){var c=s(e[u]);c&&l.push(c)}for(l.sort(function(t,e){return t.ch-e.ch}),u=0;u<l.length;u++){var h=a(l[u]);if(h)return h}return null}}t.registerHelper("fold","brace",e([["{","}"],["[","]"]])),t.registerHelper("fold","brace-paren",e([["{","}"],["[","]"],["(",")"]])),t.registerHelper("fold","import",function(e,n){function i(n){if(n<e.firstLine()||n>e.lastLine())return null;var i=e.getTokenAt(t.Pos(n,1));if(/\S/.test(i.string)||(i=e.getTokenAt(t.Pos(n,i.end+1))),"keyword"!=i.type||"import"!=i.string)return null;for(var r=n,o=Math.min(e.lastLine(),n+10);r<=o;++r){var s=e.getLine(r).indexOf(";");if(-1!=s)return{startCh:i.end,end:t.Pos(r,s)}}}var r,o=n.line,s=i(o);if(!s||i(o-1)||(r=i(o-2))&&r.end.line==o-1)return null;for(var a=s.end;;){var l=i(a.line+1);if(null==l)break;a=l.end}return{from:e.clipPos(t.Pos(o,s.startCh+1)),to:a}}),t.registerHelper("fold","include",function(e,n){function i(n){if(n<e.firstLine()||n>e.lastLine())return null;var i=e.getTokenAt(t.Pos(n,1));return/\S/.test(i.string)||(i=e.getTokenAt(t.Pos(n,i.end+1))),"meta"==i.type&&"#include"==i.string.slice(0,8)?i.start+8:void 0}var r=n.line,o=i(r);if(null==o||null!=i(r-1))return null;for(var s=r;null!=i(s+1);)++s;return{from:t.Pos(r,o+1),to:e.clipPos(t.Pos(s))}})}(n(1719))},732:(t,e,n)=>{var i=n(7589),r=i.Global,o=i.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!u(t))return null;var e="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(e),"$1"))},write:function(t,e){if(!t)return;s.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"},each:a,remove:l,clearAll:function(){a(function(t,e){l(e)})}};var s=r.document;function a(t){for(var e=s.cookie.split(/; ?/g),n=e.length-1;n>=0;n--)if(o(e[n])){var i=e[n].split("="),r=unescape(i[0]);t(unescape(i[1]),r)}}function l(t){t&&u(t)&&(s.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function u(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},761:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(8086);const r=function(t){if("string"==typeof t||(0,i.A)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},815:()=>{"object"!=typeof JSON&&(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,gap,indent,meta,rep;function f(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,i,r,o,s,a=gap,l=e[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof rep&&(l=rep.call(e,t,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(l)){for(o=l.length,n=0;n<o;n+=1)s[n]=str(n,l)||"null";return r=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,r}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(r=str(i=rep[n],l))&&s.push(quote(i)+(gap?": ":":")+r);else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(r=str(i,l))&&s.push(quote(i)+(gap?": ":":")+r);return r=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,r}}"function"!=typeof Date.prototype.toJSON&&(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),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;i<n;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(t,e){var n,i,r=t[e];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(void 0!==(i=walk(r,n))?r[n]=i:delete r[n]);return reviver.call(t,e,r)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},946:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t){return function(){return t}}},991:(t,e,n)=>{"use strict";n.r(e)},1100:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t){return t}},1115:(t,e,n)=>{var i=n(1461),r=n(1907);t.exports=function(t,e,n,o,s){return new r(i().w(t,e,n,o),s||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},1262:(t,e,n)=>{!function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(i,r){var o,s,a=i.indentUnit,l={},u=r.htmlMode?e:n;for(var c in u)l[c]=u[c];for(var c in r)l[c]=r[c];function h(t,e){function n(n){return e.tokenize=n,n(t,e)}var i=t.next();return"<"==i?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(f("atom","]]>")):null:t.match("--")?n(f("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(g(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=f("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=p,"tag bracket"):"&"==i?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function p(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=h,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){e.tokenize=h,e.state=_,e.tagName=e.tagStart=null;var i=e.tokenize(t,e);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=d(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=p;break}return"string"};return e.isInAttribute=!0,e}function f(t,e){return function(n,i){for(;!n.eol();){if(n.match(e)){i.tokenize=h;break}n.next()}return t}}function g(t){return function(e,n){for(var i;null!=(i=e.next());){if("<"==i)return n.tokenize=g(t+1),n.tokenize(e,n);if(">"==i){if(1==t){n.tokenize=h;break}return n.tokenize=g(t-1),n.tokenize(e,n)}}return"meta"}}function m(t){return t&&t.toLowerCase()}function v(t,e,n){this.prev=t.context,this.tagName=e||"",this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function y(t){t.context&&(t.context=t.context.prev)}function E(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(m(n))||!l.contextGrabbers[m(n)].hasOwnProperty(m(e)))return;y(t)}}function _(t,e,n){return"openTag"==t?(n.tagStart=e.column(),x):"closeTag"==t?b:_}function x(t,e,n){return"word"==t?(n.tagName=e.current(),s="tag",A):l.allowMissingTagName&&"endTag"==t?(s="tag bracket",A(t,e,n)):(s="error",x)}function b(t,e,n){if("word"==t){var i=e.current();return n.context&&n.context.tagName!=i&&l.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&y(n),n.context&&n.context.tagName==i||!1===l.matchClosing?(s="tag",T):(s="tag error",S)}return l.allowMissingTagName&&"endTag"==t?(s="tag bracket",T(t,e,n)):(s="error",S)}function T(t,e,n){return"endTag"!=t?(s="error",T):(y(n),_)}function S(t,e,n){return s="error",T(t,e,n)}function A(t,e,n){if("word"==t)return s="attribute",L;if("endTag"==t||"selfcloseTag"==t){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(m(i))?E(n,i):(E(n,i),n.context=new v(n,i,r==n.indented)),_}return s="error",A}function L(t,e,n){return"equals"==t?C:(l.allowMissing||(s="error"),A(t,e,n))}function C(t,e,n){return"string"==t?N:"word"==t&&l.allowUnquoted?(s="string",A):(s="error",A(t,e,n))}function N(t,e,n){return"string"==t?N:A(t,e,n)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:_,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(s=null,e.state=e.state(o||n,t,e),s&&(n="error"==s?n+" error":s)),n},indent:function(e,n,i){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+a;if(r&&r.noIndent)return t.Pass;if(e.tokenize!=p&&e.tokenize!=h)return i?i.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+a*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;r;){if(r.tagName==o[2]){r=r.prev;break}if(!l.implicitlyClosed.hasOwnProperty(m(r.tagName)))break;r=r.prev}else if(o)for(;r;){var s=l.contextGrabbers[m(r.tagName)];if(!s||!s.hasOwnProperty(m(o[2])))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+a:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==C&&(t.state=A)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)e.push(n.tagName);return e.reverse()}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(1719))},1273:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(5168);const r=function(t){var e=new t.constructor(t.byteLength);return new i.A(e).set(new i.A(t)),e}},1408:(t,e,n)=>{"use strict";n.d(e,{A:()=>M});var i=n(3779),r=n(8412);const o=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const s=function(t){return this.__data__.has(t)};function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r.A;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=s;const l=a;const u=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const c=function(t,e){return t.has(e)};const h=function(t,e,n,i,r,o){var s=1&n,a=t.length,h=e.length;if(a!=h&&!(s&&h>a))return!1;var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var f=-1,g=!0,m=2&n?new l:void 0;for(o.set(t,e),o.set(e,t);++f<a;){var v=t[f],y=e[f];if(i)var E=s?i(y,v,f,e,t,o):i(v,y,f,t,e,o);if(void 0!==E){if(E)continue;g=!1;break}if(m){if(!u(e,function(t,e){if(!c(m,e)&&(v===t||r(v,t,n,i,o)))return m.push(e)})){g=!1;break}}else if(v!==y&&!r(v,y,n,i,o)){g=!1;break}}return o.delete(t),o.delete(e),g};var p=n(7181),d=n(5168),f=n(7348);const g=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n};const m=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n};var v=p.A?p.A.prototype:void 0,y=v?v.valueOf:void 0;const E=function(t,e,n,i,r,o,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new d.A(t),new d.A(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=g;case"[object Set]":var l=1&i;if(a||(a=m),t.size!=e.size&&!l)return!1;var u=s.get(t);if(u)return u==e;i|=2,s.set(t,e);var c=h(a(t),a(e),i,r,o,s);return s.delete(t),c;case"[object Symbol]":if(y)return y.call(t)==y.call(e)}return!1};var _=n(6886),x=Object.prototype.hasOwnProperty;const b=function(t,e,n,i,r,o){var s=1&n,a=(0,_.A)(t),l=a.length;if(l!=(0,_.A)(e).length&&!s)return!1;for(var u=l;u--;){var c=a[u];if(!(s?c in e:x.call(e,c)))return!1}var h=o.get(t),p=o.get(e);if(h&&p)return h==e&&p==t;var d=!0;o.set(t,e),o.set(e,t);for(var f=s;++u<l;){var g=t[c=a[u]],m=e[c];if(i)var v=s?i(m,g,c,e,t,o):i(g,m,c,t,e,o);if(!(void 0===v?g===m||r(g,m,n,i,o):v)){d=!1;break}f||(f="constructor"==c)}if(d&&!f){var y=t.constructor,E=e.constructor;y==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof E&&E instanceof E||(d=!1)}return o.delete(t),o.delete(e),d};var T=n(4889),S=n(8285),A=n(6118),L=n(4249),C="[object Arguments]",N="[object Array]",I="[object Object]",w=Object.prototype.hasOwnProperty;const R=function(t,e,n,r,o,s){var a=(0,S.A)(t),l=(0,S.A)(e),u=a?N:(0,T.A)(t),c=l?N:(0,T.A)(e),p=(u=u==C?I:u)==I,d=(c=c==C?I:c)==I,f=u==c;if(f&&(0,A.A)(t)){if(!(0,A.A)(e))return!1;a=!0,p=!1}if(f&&!p)return s||(s=new i.A),a||(0,L.A)(t)?h(t,e,n,r,o,s):E(t,e,u,n,r,o,s);if(!(1&n)){var g=p&&w.call(t,"__wrapped__"),m=d&&w.call(e,"__wrapped__");if(g||m){var v=g?t.value():t,y=m?e.value():e;return s||(s=new i.A),o(v,y,n,r,s)}}return!!f&&(s||(s=new i.A),b(t,e,n,r,o,s))};var P=n(8214);const M=function t(e,n,i,r,o){return e===n||(null==e||null==n||!(0,P.A)(e)&&!(0,P.A)(n)?e!=e&&n!=n:R(e,n,i,r,t,o))}},1461:(t,e,n)=>{var i=n(6918);function r(){var e,n,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function l(t,r,o,s){var a=r&&r.prototype instanceof c?r:c,l=Object.create(a.prototype);return i(l,"_invoke",function(t,i,r){var o,s,a,l=0,c=r||[],h=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,n){return o=t,s=0,a=e,p.n=n,u}};function d(t,i){for(s=t,a=i,n=0;!h&&l&&!r&&n<c.length;n++){var r,o=c[n],d=p.p,f=o[2];t>3?(r=f===i)&&(a=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=d&&((r=t<2&&d<o[1])?(s=0,p.v=i,p.n=o[1]):d<f&&(r=t<3||o[0]>i||i>f)&&(o[4]=t,o[5]=i,p.n=f,s=0))}if(r||t>1)return u;throw h=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(h&&1===c&&d(c,f),s=c,a=f;(n=s<2?e:a)||!h;){o||(s?s<3?(s>1&&(p.n=-1),d(s,a)):p.n=a:p.v=a);try{if(l=2,o){if(s||(r="next"),n=o[r]){if(!(n=n.call(o,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,s<2&&(s=0)}else 1===s&&(n=o.return)&&n.call(o),s<2&&(a=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=e}else if((n=(h=p.n<0)?a:t.call(i,p))!==u)break}catch(t){o=e,s=1,a=t}finally{l=1}}return{value:n,done:h}}}(t,o,s),!0),l}var u={};function c(){}function h(){}function p(){}n=Object.getPrototypeOf;var d=[][s]?n(n([][s]())):(i(n={},s,function(){return this}),n),f=p.prototype=c.prototype=Object.create(d);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,i(t,a,"GeneratorFunction")),t.prototype=Object.create(f),t}return h.prototype=p,i(f,"constructor",p),i(p,"constructor",h),h.displayName="GeneratorFunction",i(p,a,"GeneratorFunction"),i(f),i(f,a,"Generator"),i(f,s,function(){return this}),i(f,"toString",function(){return"[object Generator]"}),(t.exports=r=function(){return{w:l,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},1475:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="download",i=[],r="f019",o="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z";e.definition={prefix:"fas",iconName:n,icon:[512,512,i,r,o]},e.faDownload=e.definition,e.prefix="fas",e.iconName=n,e.width=512,e.height=512,e.ligatures=i,e.unicode=r,e.svgPathData=o},1540:function(t,e,n){var i;!function(){var r={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function o(t){return t&&(t=t.toString().replace(r.pluses,"%20"),t=decodeURIComponent(t)),t}function s(t){var e,n,i,s,a,l,u,c=[];if(null==t||""===t)return c;for(0===t.indexOf("?")&&(t=t.substring(1)),e=0,u=(n=t.toString().split(r.query_separator)).length;e<u;e++)0!==(s=(i=n[e]).indexOf("="))&&(a=o(i.substring(0,s)),l=o(i.substring(s+1)),c.push(-1===s?[i,null]:[a,l]));return c}function a(t){this.uriParts=function(t){var e=r.uri_parser.exec(t||""),n={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach(function(t,i){n[t]=e[i]||""}),n}(t),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(t,e){var n,i;if(null==this)throw new TypeError(" this is null or not defined");var r=Object(this),o=r.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),i=0;i<o;){var s;i in r&&(s=r[i],t.call(n,s,i,r)),i++}}),["protocol","userInfo","host","port","path","anchor"].forEach(function(t){a.prototype[t]=function(e){return void 0!==e&&(this.uriParts[t]=e),this.uriParts[t]}}),a.prototype.hasAuthorityPrefix=function(t){return void 0!==t&&(this.hasAuthorityPrefixUserPref=t),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},a.prototype.isColonUri=function(t){if(void 0===t)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!t},a.prototype.query=function(t){var e,n,i,r="";for(void 0!==t&&(this.queryPairs=s(t)),e=0,i=this.queryPairs.length;e<i;e++)n=this.queryPairs[e],r.length>0&&(r+="&"),null===n[1]?r+=n[0]:(r+=n[0],r+="=",void 0!==n[1]&&(r+=encodeURIComponent(n[1])));return r.length>0?"?"+r:r},a.prototype.getQueryParamValue=function(t){var e,n,i;for(n=0,i=this.queryPairs.length;n<i;n++)if(t===(e=this.queryPairs[n])[0])return e[1]},a.prototype.getQueryParamValues=function(t){var e,n,i,r=[];for(e=0,i=this.queryPairs.length;e<i;e++)t===(n=this.queryPairs[e])[0]&&r.push(n[1]);return r},a.prototype.deleteQueryParam=function(t,e){var n,i,r,s,a,l=[];for(n=0,a=this.queryPairs.length;n<a;n++)r=o((i=this.queryPairs[n])[0])===o(t),s=i[1]===e,(1!==arguments.length||r)&&(2!==arguments.length||r&&s)||l.push(i);return this.queryPairs=l,this},a.prototype.addQueryParam=function(t,e,n){return 3===arguments.length&&-1!==n?(n=Math.min(n,this.queryPairs.length),this.queryPairs.splice(n,0,[t,e])):arguments.length>0&&this.queryPairs.push([t,e]),this},a.prototype.hasQueryParam=function(t){var e,n=this.queryPairs.length;for(e=0;e<n;e++)if(this.queryPairs[e][0]==t)return!0;return!1},a.prototype.replaceQueryParam=function(t,e,n){var i,r,s=-1,a=this.queryPairs.length;if(3===arguments.length){for(i=0;i<a;i++)if(o((r=this.queryPairs[i])[0])===o(t)&&decodeURIComponent(r[1])===o(n)){s=i;break}s>=0&&this.deleteQueryParam(t,o(n)).addQueryParam(t,e,s)}else{for(i=0;i<a;i++)if(o((r=this.queryPairs[i])[0])===o(t)){s=i;break}this.deleteQueryParam(t),this.addQueryParam(t,e,s)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach(function(t){var e="set"+t.charAt(0).toUpperCase()+t.slice(1);a.prototype[e]=function(e){return this[t](e),this}}),a.prototype.scheme=function(){var t="";return this.protocol()?(t+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(t+=":"),t+="//"):this.hasAuthorityPrefix()&&this.host()&&(t+="//"),t},a.prototype.origin=function(){var t=this.scheme();return this.userInfo()&&this.host()&&(t+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(t+="@")),this.host()&&(t+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(t+=":"+this.port())),t},a.prototype.addTrailingSlash=function(){var t=this.path()||"";return"/"!==t.substr(-1)&&this.path(t+"/"),this},a.prototype.toString=function(){var t,e=this.origin();return this.isColonUri()?this.path()&&(e+=":"+this.path()):this.path()?(t=this.path(),r.ends_with_slashes.test(e)||r.starts_with_slashes.test(t)?(e&&e.replace(r.ends_with_slashes,"/"),t=t.replace(r.starts_with_slashes,"/")):e+="/",e+=t):this.host()&&(this.query().toString()||this.anchor())&&(e+="/"),this.query().toString()&&(e+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(e+="#"),e+=this.anchor()),e},a.prototype.clone=function(){return new a(this.toString())},void 0===(i=function(){return a}.call(e,n,e,t))||(t.exports=i)}()},1671:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var i=n(9790);const r=n(8377).A["__core-js_shared__"];var o,s=(o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";const a=function(t){return!!s&&s in t};var l=n(6809),u=n(5549),c=/^\[object .+?Constructor\]$/,h=Function.prototype,p=Object.prototype,d=h.toString,f=p.hasOwnProperty,g=RegExp("^"+d.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(t){return!(!(0,l.A)(t)||a(t))&&((0,i.A)(t)?g:c).test((0,u.A)(t))};const v=function(t,e){return null==t?void 0:t[e]};const y=function(t,e){var n=v(t,e);return m(n)?n:void 0}},1697:t=>{t.exports=function(t){var e=Object(t),n=[];for(var i in e)n.unshift(i);return function t(){for(;n.length;)if((i=n.pop())in e)return t.value=i,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},1710:(t,e,n)=>{"use strict";n.r(e)},1717:(t,e,n)=>{"use strict";function i(t){if(Array.isArray(t))return t}n.d(e,{A:()=>i})},1719:function(t){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),s=i||r||o,a=s&&(i?document.documentMode||6:+(o||r)[1]),l=!o&&/WebKit\//.test(t),u=l&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\/(\d+)/.exec(t),h=c&&+c[1],p=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),g=/PhantomJS/.test(t),m=d&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),v=/Android/.test(t),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),E=m||/Mac/.test(e),_=/\bCrOS\b/.test(t),x=/win/i.test(e),b=p&&t.match(/Version\/(\d*\.\d*)/);b&&(b=Number(b[1])),b&&b>=15&&(p=!1,l=!0);var T=E&&(u||p&&(null==b||b<12.11)),S=n||s&&a>=9;function A(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var L,C=function(t,e){var n=t.className,i=A(e).exec(n);if(i){var r=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function N(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function I(t,e){return N(t).appendChild(e)}function w(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)r.appendChild(e[o]);return r}function R(t,e,n,i){var r=w(t,e,n,i);return r.setAttribute("role","presentation"),r}function P(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function M(t){var e,n=t.ownerDocument||t;try{e=t.activeElement}catch(t){e=n.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function O(t,e){var n=t.className;A(e).test(n)||(t.className+=(n?" ":"")+e)}function k(t,e){for(var n=t.split(" "),i=0;i<n.length;i++)n[i]&&!A(n[i]).test(e)&&(e+=" "+n[i]);return e}L=document.createRange?function(t,e,n,i){var r=document.createRange();return r.setEnd(i||t,n),r.setStart(t,e),r}:function(t,e,n){var i=document.body.createTextRange();try{i.moveToElementText(t.parentNode)}catch(t){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",e),i};var D=function(t){t.select()};function G(t){return t.display.wrapper.ownerDocument}function B(t){return j(t.display.wrapper)}function j(t){return t.getRootNode?t.getRootNode():t.ownerDocument}function F(t){return G(t).defaultView}function U(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function H(t,e,n){for(var i in e||(e={}),t)!t.hasOwnProperty(i)||!1===n&&e.hasOwnProperty(i)||(e[i]=t[i]);return e}function q(t,e,n,i,r){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=i||0,s=r||0;;){var a=t.indexOf("\t",o);if(a<0||a>=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}m?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(D=function(t){try{t.select()}catch(t){}});var z=function(){this.id=null,this.f=null,this.time=0,this.handler=U(this.onTimeout,this)};function V(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}z.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},z.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var W=50,Z={toString:function(){return"CodeMirror.Pass"}},Q={scroll:!1},X={origin:"*mouse"},Y={origin:"+move"};function $(t,e,n){for(var i=0,r=0;;){var o=t.indexOf("\t",i);-1==o&&(o=t.length);var s=o-i;if(o==t.length||r+s>=e)return i+Math.min(s,e-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=e)return i}}var K=[""];function J(t){for(;K.length<=t;)K.push(tt(K)+" ");return K[t]}function tt(t){return t[t.length-1]}function et(t,e){for(var n=[],i=0;i<t.length;i++)n[i]=e(t[i],i);return n}function nt(t,e,n){for(var i=0,r=n(e);i<t.length&&n(t[i])<=r;)i++;t.splice(i,0,e)}function it(){}function rt(t,e){var n;return Object.create?n=Object.create(t):(it.prototype=t,n=new it),e&&H(e,n),n}var ot=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function st(t){return/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||ot.test(t))}function at(t,e){return e?!!(e.source.indexOf("\\w")>-1&&st(t))||e.test(t):st(t)}function lt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var ut=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ct(t){return t.charCodeAt(0)>=768&&ut.test(t)}function ht(t,e,n){for(;(n<0?e>0:e<t.length)&&ct(t.charAt(e));)e+=n;return e}function pt(t,e,n){for(var i=e>n?-1:1;;){if(e==n)return e;var r=(e+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+i}}function dt(t,e,n,i){if(!t)return i(e,n,"ltr",0);for(var r=!1,o=0;o<t.length;++o){var s=t[o];(s.from<n&&s.to>e||e==n&&s.to==e)&&(i(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),r=!0)}r||i(e,n,"ltr")}var ft=null;function gt(t,e,n){var i;ft=null;for(var r=0;r<t.length;++r){var o=t[r];if(o.from<e&&o.to>e)return r;o.to==e&&(o.from!=o.to&&"before"==n?i=r:ft=r),o.from==e&&(o.from!=o.to&&"before"!=n?i=r:ft=r)}return null!=i?i:ft}var mt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",e="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?t.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?e.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,s=/[Lb1n]/,a=/[1n]/;function l(t,e,n){this.level=t,this.from=e,this.to=n}return function(t,e){var u="ltr"==e?"L":"R";if(0==t.length||"ltr"==e&&!i.test(t))return!1;for(var c=t.length,h=[],p=0;p<c;++p)h.push(n(t.charCodeAt(p)));for(var d=0,f=u;d<c;++d){var g=h[d];"m"==g?h[d]=f:f=g}for(var m=0,v=u;m<c;++m){var y=h[m];"1"==y&&"r"==v?h[m]="n":o.test(y)&&(v=y,"r"==y&&(h[m]="R"))}for(var E=1,_=h[0];E<c-1;++E){var x=h[E];"+"==x&&"1"==_&&"1"==h[E+1]?h[E]="1":","!=x||_!=h[E+1]||"1"!=_&&"n"!=_||(h[E]=_),_=x}for(var b=0;b<c;++b){var T=h[b];if(","==T)h[b]="N";else if("%"==T){var S=void 0;for(S=b+1;S<c&&"%"==h[S];++S);for(var A=b&&"!"==h[b-1]||S<c&&"1"==h[S]?"1":"N",L=b;L<S;++L)h[L]=A;b=S-1}}for(var C=0,N=u;C<c;++C){var I=h[C];"L"==N&&"1"==I?h[C]="L":o.test(I)&&(N=I)}for(var w=0;w<c;++w)if(r.test(h[w])){var R=void 0;for(R=w+1;R<c&&r.test(h[R]);++R);for(var P="L"==(w?h[w-1]:u),M=P==("L"==(R<c?h[R]:u))?P?"L":"R":u,O=w;O<R;++O)h[O]=M;w=R-1}for(var k,D=[],G=0;G<c;)if(s.test(h[G])){var B=G;for(++G;G<c&&s.test(h[G]);++G);D.push(new l(0,B,G))}else{var j=G,F=D.length,U="rtl"==e?1:0;for(++G;G<c&&"L"!=h[G];++G);for(var H=j;H<G;)if(a.test(h[H])){j<H&&(D.splice(F,0,new l(1,j,H)),F+=U);var q=H;for(++H;H<G&&a.test(h[H]);++H);D.splice(F,0,new l(2,q,H)),F+=U,j=H}else++H;j<G&&D.splice(F,0,new l(1,j,G))}return"ltr"==e&&(1==D[0].level&&(k=t.match(/^\s+/))&&(D[0].from=k[0].length,D.unshift(new l(0,0,k[0].length))),1==tt(D).level&&(k=t.match(/\s+$/))&&(tt(D).to-=k[0].length,D.push(new l(0,c-k[0].length,c)))),"rtl"==e?D.reverse():D}}();function vt(t,e){var n=t.order;return null==n&&(n=t.order=mt(t.text,e)),n}var yt=[],Et=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var i=t._handlers||(t._handlers={});i[e]=(i[e]||yt).concat(n)}};function _t(t,e){return t._handlers&&t._handlers[e]||yt}function xt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var i=t._handlers,r=i&&i[e];if(r){var o=V(r,n);o>-1&&(i[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function bt(t,e){var n=_t(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r<n.length;++r)n[r].apply(null,i)}function Tt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),bt(t,n||e.type,t,e),It(e)||e.codemirrorIgnore}function St(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),i=0;i<e.length;++i)-1==V(n,e[i])&&n.push(e[i])}function At(t,e){return _t(t,e).length>0}function Lt(t){t.prototype.on=function(t,e){Et(this,t,e)},t.prototype.off=function(t,e){xt(this,t,e)}}function Ct(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Nt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function It(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function wt(t){Ct(t),Nt(t)}function Rt(t){return t.target||t.srcElement}function Pt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),E&&t.ctrlKey&&1==e&&(e=3),e}var Mt,Ot,kt=function(){if(s&&a<9)return!1;var t=w("div");return"draggable"in t||"dragDrop"in t}();function Dt(t){if(null==Mt){var e=w("span","");I(t,w("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Mt=e.offsetWidth<=1&&e.offsetHeight>2&&!(s&&a<8))}var n=Mt?w("span",""):w("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Gt(t){if(null!=Ot)return Ot;var e=I(t,document.createTextNode("AخA")),n=L(e,0,1).getBoundingClientRect(),i=L(e,1,2).getBoundingClientRect();return N(t),!(!n||n.left==n.right)&&(Ot=i.right-n.right<3)}var Bt,jt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],i=t.length;e<=i;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Ft=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Ut="oncopy"in(Bt=w("div"))||(Bt.setAttribute("oncopy","return;"),"function"==typeof Bt.oncopy),Ht=null;function qt(t){if(null!=Ht)return Ht;var e=I(t,w("span","x")),n=e.getBoundingClientRect(),i=L(e,0,1).getBoundingClientRect();return Ht=Math.abs(n.left-i.left)>1}var zt={},Vt={};function Wt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),zt[t]=e}function Zt(t,e){Vt[t]=e}function Qt(t){if("string"==typeof t&&Vt.hasOwnProperty(t))t=Vt[t];else if(t&&"string"==typeof t.name&&Vt.hasOwnProperty(t.name)){var e=Vt[t.name];"string"==typeof e&&(e={name:e}),(t=rt(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Qt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Qt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Xt(t,e){e=Qt(e);var n=zt[e.name];if(!n)return Xt(t,"text/plain");var i=n(t,e);if(Yt.hasOwnProperty(e.name)){var r=Yt[e.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)i[s]=e.modeProps[s];return i}var Yt={};function $t(t,e){H(e,Yt.hasOwnProperty(t)?Yt[t]:Yt[t]={})}function Kt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Jt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function te(t,e,n){return!t.startState||t.startState(e,n)}var ee=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function ne(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(e<o){n=r;break}e-=o}return n.lines[e]}function ie(t,e,n){var i=[],r=e.line;return t.iter(e.line,n.line+1,function(t){var o=t.text;r==n.line&&(o=o.slice(0,n.ch)),r==e.line&&(o=o.slice(e.ch)),i.push(o),++r}),i}function re(t,e,n){var i=[];return t.iter(e,n,function(t){i.push(t.text)}),i}function oe(t,e){var n=e-t.height;if(n)for(var i=t;i;i=i.parent)i.height+=n}function se(t){if(null==t.parent)return null;for(var e=t.parent,n=V(e.lines,t),i=e.parent;i;e=i,i=i.parent)for(var r=0;i.children[r]!=e;++r)n+=i.children[r].chunkSize();return n+e.first}function ae(t,e){var n=t.first;t:do{for(var i=0;i<t.children.length;++i){var r=t.children[i],o=r.height;if(e<o){t=r;continue t}e-=o,n+=r.chunkSize()}return n}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s].height;if(e<a)break;e-=a}return n+s}function le(t,e){return e>=t.first&&e<t.first+t.size}function ue(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function ce(t,e,n){if(void 0===n&&(n=null),!(this instanceof ce))return new ce(t,e,n);this.line=t,this.ch=e,this.sticky=n}function he(t,e){return t.line-e.line||t.ch-e.ch}function pe(t,e){return t.sticky==e.sticky&&0==he(t,e)}function de(t){return ce(t.line,t.ch)}function fe(t,e){return he(t,e)<0?e:t}function ge(t,e){return he(t,e)<0?t:e}function me(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function ve(t,e){if(e.line<t.first)return ce(t.first,0);var n=t.first+t.size-1;return e.line>n?ce(n,ne(t,n).text.length):ye(e,ne(t,e.line).text.length)}function ye(t,e){var n=t.ch;return null==n||n>e?ce(t.line,e):n<0?ce(t.line,0):t}function Ee(t,e){for(var n=[],i=0;i<e.length;i++)n[i]=ve(t,e[i]);return n}ee.prototype.eol=function(){return this.pos>=this.string.length},ee.prototype.sol=function(){return this.pos==this.lineStart},ee.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ee.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ee.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},ee.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},ee.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},ee.prototype.skipToEnd=function(){this.pos=this.string.length},ee.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},ee.prototype.backUp=function(t){this.pos-=t},ee.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},ee.prototype.indentation=function(){return q(this.string,null,this.tabSize)-(this.lineStart?q(this.string,this.lineStart,this.tabSize):0)},ee.prototype.match=function(t,e,n){if("string"!=typeof t){var i=this.string.slice(this.pos).match(t);return i&&i.index>0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},ee.prototype.current=function(){return this.string.slice(this.start,this.pos)},ee.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},ee.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},ee.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var _e=function(t,e){this.state=t,this.lookAhead=e},xe=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function be(t,e,n,i){var r=[t.state.modeGen],o={};Re(t,e.text,t.doc.mode,n,function(t,e){return r.push(t,e)},o,i);for(var s=n.state,a=function(i){n.baseTokens=r;var a=t.state.overlays[i],l=1,u=0;n.state=!0,Re(t,e.text,a.mode,n,function(t,e){for(var n=l;u<t;){var i=r[l];i>t&&r.splice(l,1,t,r[l+1],i),l+=2,u=Math.min(t,i)}if(e)if(a.opaque)r.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=r[n+1];r[n+1]=(o?o+" ":"")+"overlay "+e}},o),n.state=s,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)a(l);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function Te(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var i=Se(t,se(e)),r=e.text.length>t.options.maxHighlightLength&&Kt(t.doc.mode,i.state),o=be(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Se(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new xe(i,!0,e);var o=Pe(t,e,n),s=o>i.first&&ne(i,o-1).stateAfter,a=s?xe.fromSaved(i,s,o):new xe(i,te(i.mode),o);return i.iter(o,e,function(n){Ae(t,n.text,a);var i=a.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&i<r.viewTo?a.save():null,a.nextLine()}),n&&(i.modeFrontier=a.line),a}function Ae(t,e,n,i){var r=t.doc.mode,o=new ee(e,t.options.tabSize,n);for(o.start=o.pos=i||0,""==e&&Le(r,n.state);!o.eol();)Ce(r,o,n.state),o.start=o.pos}function Le(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Jt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Ce(t,e,n,i){for(var r=0;r<10;r++){i&&(i[0]=Jt(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}xe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},xe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},xe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xe.fromSaved=function(t,e,n){return e instanceof _e?new xe(t,Kt(t.mode,e.state),n,e.lookAhead):new xe(t,Kt(t.mode,e),n)},xe.prototype.save=function(t){var e=!1!==t?Kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _e(e,this.maxLookAhead):e};var Ne=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function Ie(t,e,n,i){var r,o,s=t.doc,a=s.mode,l=ne(s,(e=ve(s,e)).line),u=Se(t,e.line,n),c=new ee(l.text,t.options.tabSize,u);for(i&&(o=[]);(i||c.pos<e.ch)&&!c.eol();)c.start=c.pos,r=Ce(a,c,u.state),i&&o.push(new Ne(c,r,Kt(s.mode,u.state)));return i?o:new Ne(c,r,u.state)}function we(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==e[i]?e[i]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[i])||(e[i]+=" "+n[2])}return t}function Re(t,e,n,i,r,o,s){var a=n.flattenSpans;null==a&&(a=t.options.flattenSpans);var l,u=0,c=null,h=new ee(e,t.options.tabSize,i),p=t.options.addModeClass&&[null];for(""==e&&we(Le(n,i.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(a=!1,s&&Ae(t,e,i,h.pos),h.pos=e.length,l=null):l=we(Ce(n,h,i.state,p),o),p){var d=p[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!a||c!=l){for(;u<h.start;)r(u=Math.min(h.start,u+5e3),c);c=l}h.start=h.pos}for(;u<h.pos;){var f=Math.min(h.pos,u+5e3);r(f,c),u=f}}function Pe(t,e,n){for(var i,r,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var l=ne(o,a-1),u=l.stateAfter;if(u&&(!n||a+(u instanceof _e?u.lookAhead:0)<=o.modeFrontier))return a;var c=q(l.text,null,t.options.tabSize);(null==r||i>c)&&(r=a-1,i=c)}return r}function Me(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,i=e-1;i>n;i--){var r=ne(t,i).stateAfter;if(r&&(!(r instanceof _e)||i+r.lookAhead<e)){n=i+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}var Oe=!1,ke=!1;function De(){Oe=!0}function Ge(){ke=!0}function Be(t,e,n){this.marker=t,this.from=e,this.to=n}function je(t,e){if(t)for(var n=0;n<t.length;++n){var i=t[n];if(i.marker==e)return i}}function Fe(t,e){for(var n,i=0;i<t.length;++i)t[i]!=e&&(n||(n=[])).push(t[i]);return n}function Ue(t,e,n){var i=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));i&&t.markedSpans&&i.has(t.markedSpans)?t.markedSpans.push(e):(t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],i&&i.add(t.markedSpans)),e.marker.attachLine(t)}function He(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],s=o.marker;if(null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e)||o.from==e&&"bookmark"==s.type&&(!n||!o.marker.insertLeft)){var a=null==o.to||(s.inclusiveRight?o.to>=e:o.to>e);(i||(i=[])).push(new Be(s,o.from,a?null:o.to))}}return i}function qe(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],s=o.marker;if(null==o.to||(s.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft)){var a=null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e);(i||(i=[])).push(new Be(s,a?null:o.from-e,null==o.to?null:o.to-e))}}return i}function ze(t,e){if(e.full)return null;var n=le(t,e.from.line)&&ne(t,e.from.line).markedSpans,i=le(t,e.to.line)&&ne(t,e.to.line).markedSpans;if(!n&&!i)return null;var r=e.from.ch,o=e.to.ch,s=0==he(e.from,e.to),a=He(n,r,s),l=qe(i,o,s),u=1==e.text.length,c=tt(e.text).length+(u?r:0);if(a)for(var h=0;h<a.length;++h){var p=a[h];if(null==p.to){var d=je(l,p.marker);d?u&&(p.to=null==d.to?null:d.to+c):p.to=r}}if(l)for(var f=0;f<l.length;++f){var g=l[f];null!=g.to&&(g.to+=c),null==g.from?je(a,g.marker)||(g.from=c,u&&(a||(a=[])).push(g)):(g.from+=c,u&&(a||(a=[])).push(g))}a&&(a=Ve(a)),l&&l!=a&&(l=Ve(l));var m=[a];if(!u){var v,y=e.text.length-2;if(y>0&&a)for(var E=0;E<a.length;++E)null==a[E].to&&(v||(v=[])).push(new Be(a[E].marker,null,null));for(var _=0;_<y;++_)m.push(v);m.push(l)}return m}function Ve(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function We(t,e,n){var i=null;if(t.iter(e.line,n.line+1,function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||i&&-1!=V(i,n)||(i||(i=[])).push(n)}}),!i)return null;for(var r=[{from:e,to:n}],o=0;o<i.length;++o)for(var s=i[o],a=s.find(0),l=0;l<r.length;++l){var u=r[l];if(!(he(u.to,a.from)<0||he(u.from,a.to)>0)){var c=[l,1],h=he(u.from,a.from),p=he(u.to,a.to);(h<0||!s.inclusiveLeft&&!h)&&c.push({from:u.from,to:a.from}),(p>0||!s.inclusiveRight&&!p)&&c.push({from:a.to,to:u.to}),r.splice.apply(r,c),l+=c.length-3}}return r}function Ze(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function Qe(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Xe(t){return t.inclusiveLeft?-1:0}function Ye(t){return t.inclusiveRight?1:0}function $e(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var i=t.find(),r=e.find(),o=he(i.from,r.from)||Xe(t)-Xe(e);if(o)return-o;var s=he(i.to,r.to)||Ye(t)-Ye(e);return s||e.id-t.id}function Ke(t,e){var n,i=ke&&t.markedSpans;if(i)for(var r=void 0,o=0;o<i.length;++o)(r=i[o]).marker.collapsed&&null==(e?r.from:r.to)&&(!n||$e(n,r.marker)<0)&&(n=r.marker);return n}function Je(t){return Ke(t,!0)}function tn(t){return Ke(t,!1)}function en(t,e){var n,i=ke&&t.markedSpans;if(i)for(var r=0;r<i.length;++r){var o=i[r];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!n||$e(n,o.marker)<0)&&(n=o.marker)}return n}function nn(t,e,n,i,r){var o=ne(t,e),s=ke&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var l=s[a];if(l.marker.collapsed){var u=l.marker.find(0),c=he(u.from,n)||Xe(l.marker)-Xe(r),h=he(u.to,i)||Ye(l.marker)-Ye(r);if(!(c>=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?he(u.to,n)>=0:he(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?he(u.from,i)<=0:he(u.from,i)<0)))return!0}}}function rn(t){for(var e;e=Je(t);)t=e.find(-1,!0).line;return t}function on(t){for(var e;e=tn(t);)t=e.find(1,!0).line;return t}function sn(t){for(var e,n;e=tn(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function an(t,e){var n=ne(t,e),i=rn(n);return n==i?e:se(i)}function ln(t,e){if(e>t.lastLine())return e;var n,i=ne(t,e);if(!un(t,i))return e;for(;n=tn(i);)i=n.find(1,!0).line;return se(i)+1}function un(t,e){var n=ke&&e.markedSpans;if(n)for(var i=void 0,r=0;r<n.length;++r)if((i=n[r]).marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&cn(t,e,i))return!0}}function cn(t,e,n){if(null==n.to){var i=n.marker.find(1,!0);return cn(t,i.line,je(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var r=void 0,o=0;o<e.markedSpans.length;++o)if((r=e.markedSpans[o]).marker.collapsed&&!r.marker.widgetNode&&r.from==n.to&&(null==r.to||r.to!=n.from)&&(r.marker.inclusiveLeft||n.marker.inclusiveRight)&&cn(t,e,r))return!0}function hn(t){for(var e=0,n=(t=rn(t)).parent,i=0;i<n.lines.length;++i){var r=n.lines[i];if(r==t)break;e+=r.height}for(var o=n.parent;o;o=(n=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==n)break;e+=a.height}return e}function pn(t){if(0==t.height)return 0;for(var e,n=t.text.length,i=t;e=Je(i);){var r=e.find(0,!0);i=r.from.line,n+=r.from.ch-r.to.ch}for(i=t;e=tn(i);){var o=e.find(0,!0);n-=i.text.length-o.from.ch,n+=(i=o.to.line).text.length-o.to.ch}return n}function dn(t){var e=t.display,n=t.doc;e.maxLine=ne(n,n.first),e.maxLineLength=pn(e.maxLine),e.maxLineChanged=!0,n.iter(function(t){var n=pn(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}var fn=function(t,e,n){this.text=t,Qe(this,e),this.height=n?n(this):1};function gn(t,e,n,i){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Ze(t),Qe(t,n);var r=i?i(t):1;r!=t.height&&oe(t,r)}function mn(t){t.parent=null,Ze(t)}fn.prototype.lineNo=function(){return se(this)},Lt(fn);var vn={},yn={};function En(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?yn:vn;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function _n(t,e){var n=R("span",null,null,l?"padding-right: .1px":null),i={pre:R("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var r=0;r<=(e.rest?e.rest.length:0);r++){var o=r?e.rest[r-1]:e.line,s=void 0;i.pos=0,i.addToken=bn,Gt(t.display.measure)&&(s=vt(o,t.doc.direction))&&(i.addToken=Sn(i.addToken,s)),i.map=[],Ln(o,i,Te(t,o,e!=t.display.externalMeasured&&se(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=k(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=k(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Dt(t.display.measure))),0==r?(e.measure.map=i.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(i.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var a=i.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return bt(t,"renderLine",t,e.line,i.pre),i.pre.className&&(i.textClass=k(i.pre.className,i.textClass||"")),i}function xn(t){var e=w("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function bn(t,e,n,i,r,o,l){if(e){var u,c=t.splitSpaces?Tn(e,t.trailingSpace):e,h=t.cm.state.specialChars,p=!1;if(h.test(e)){u=document.createDocumentFragment();for(var d=0;;){h.lastIndex=d;var f=h.exec(e),g=f?f.index-d:e.length-d;if(g){var m=document.createTextNode(c.slice(d,d+g));s&&a<9?u.appendChild(w("span",[m])):u.appendChild(m),t.map.push(t.pos,t.pos+g,m),t.col+=g,t.pos+=g}if(!f)break;d+=g+1;var v=void 0;if("\t"==f[0]){var y=t.cm.options.tabSize,E=y-t.col%y;(v=u.appendChild(w("span",J(E),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=E}else"\r"==f[0]||"\n"==f[0]?((v=u.appendChild(w("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]),t.col+=1):((v=t.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),s&&a<9?u.appendChild(w("span",[v])):u.appendChild(v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,u=document.createTextNode(c),t.map.push(t.pos,t.pos+e.length,u),s&&a<9&&(p=!0),t.pos+=e.length;if(t.trailingSpace=32==c.charCodeAt(e.length-1),n||i||r||p||o||l){var _=n||"";i&&(_+=i),r&&(_+=r);var x=w("span",[u],_,o);if(l)for(var b in l)l.hasOwnProperty(b)&&"style"!=b&&"class"!=b&&x.setAttribute(b,l[b]);return t.content.appendChild(x)}t.content.appendChild(u)}}function Tn(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,i="",r=0;r<t.length;r++){var o=t.charAt(r);" "!=o||!n||r!=t.length-1&&32!=t.charCodeAt(r+1)||(o=" "),i+=o,n=" "==o}return i}function Sn(t,e){return function(n,i,r,o,s,a,l){r=r?r+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+i.length;;){for(var h=void 0,p=0;p<e.length&&!((h=e[p]).to>u&&h.from<=u);p++);if(h.to>=c)return t(n,i,r,o,s,a,l);t(n,i.slice(0,h.to-u),r,o,null,a,l),o=null,i=i.slice(h.to-u),u=h.to}}}function An(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function Ln(t,e,n){var i=t.markedSpans,r=t.text,o=0;if(i)for(var s,a,l,u,c,h,p,d=r.length,f=0,g=1,m="",v=0;;){if(v==f){l=u=c=a="",p=null,h=null,v=1/0;for(var y=[],E=void 0,_=0;_<i.length;++_){var x=i[_],b=x.marker;if("bookmark"==b.type&&x.from==f&&b.widgetNode)y.push(b);else if(x.from<=f&&(null==x.to||x.to>f||b.collapsed&&x.to==f&&x.from==f)){if(null!=x.to&&x.to!=f&&v>x.to&&(v=x.to,u=""),b.className&&(l+=" "+b.className),b.css&&(a=(a?a+";":"")+b.css),b.startStyle&&x.from==f&&(c+=" "+b.startStyle),b.endStyle&&x.to==v&&(E||(E=[])).push(b.endStyle,x.to),b.title&&((p||(p={})).title=b.title),b.attributes)for(var T in b.attributes)(p||(p={}))[T]=b.attributes[T];b.collapsed&&(!h||$e(h.marker,b)<0)&&(h=x)}else x.from>f&&v>x.from&&(v=x.from)}if(E)for(var S=0;S<E.length;S+=2)E[S+1]==v&&(u+=" "+E[S]);if(!h||h.from==f)for(var A=0;A<y.length;++A)An(e,0,y[A]);if(h&&(h.from||0)==f){if(An(e,(null==h.to?d+1:h.to)-f,h.marker,null==h.from),null==h.to)return;h.to==f&&(h=!1)}}if(f>=d)break;for(var L=Math.min(d,v);;){if(m){var C=f+m.length;if(!h){var N=C>L?m.slice(0,L-f):m;e.addToken(e,N,s?s+l:l,c,f+N.length==v?u:"",a,p)}if(C>=L){m=m.slice(L-f),f=L;break}f=C,c=""}m=r.slice(o,o=n[g++]),s=En(n[g++],e.cm.options)}}else for(var I=1;I<n.length;I+=2)e.addToken(e,r.slice(o,o=n[I]),En(n[I+1],e.cm.options))}function Cn(t,e,n){this.line=e,this.rest=sn(e),this.size=this.rest?se(tt(this.rest))-n+1:1,this.node=this.text=null,this.hidden=un(t,e)}function Nn(t,e,n){for(var i,r=[],o=e;o<n;o=i){var s=new Cn(t.doc,ne(t.doc,o),o);i=o+s.size,r.push(s)}return r}var In=null;function wn(t){In?In.ops.push(t):t.ownsGroup=In={ops:[t],delayedCallbacks:[]}}function Rn(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var i=0;i<t.ops.length;i++){var r=t.ops[i];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(n<e.length)}function Pn(t,e){var n=t.ownsGroup;if(n)try{Rn(n)}finally{In=null,e(n)}}var Mn=null;function On(t,e){var n=_t(t,e);if(n.length){var i,r=Array.prototype.slice.call(arguments,2);In?i=In.delayedCallbacks:Mn?i=Mn:(i=Mn=[],setTimeout(kn,0));for(var o=function(t){i.push(function(){return n[t].apply(null,r)})},s=0;s<n.length;++s)o(s)}}function kn(){var t=Mn;Mn=null;for(var e=0;e<t.length;++e)t[e]()}function Dn(t,e,n,i){for(var r=0;r<e.changes.length;r++){var o=e.changes[r];"text"==o?Fn(t,e):"gutter"==o?Hn(t,e,n,i):"class"==o?Un(t,e):"widget"==o&&qn(t,e,i)}e.changes=null}function Gn(t){return t.node==t.text&&(t.node=w("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),s&&a<8&&(t.node.style.zIndex=2)),t.node}function Bn(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var i=Gn(e);e.background=i.insertBefore(w("div",null,n),i.firstChild),t.display.input.setUneditable(e.background)}}function jn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):_n(t,e)}function Fn(t,e){var n=e.text.className,i=jn(t,e);e.text==e.node&&(e.node=i.pre),e.text.parentNode.replaceChild(i.pre,e.text),e.text=i.pre,i.bgClass!=e.bgClass||i.textClass!=e.textClass?(e.bgClass=i.bgClass,e.textClass=i.textClass,Un(t,e)):n&&(e.text.className=n)}function Un(t,e){Bn(t,e),e.line.wrapClass?Gn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function Hn(t,e,n,i){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var r=Gn(e);e.gutterBackground=w("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),r.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var s=Gn(e),a=e.gutter=w("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),t.display.input.setUneditable(a),s.insertBefore(a,e.text),e.line.gutterClass&&(a.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=a.appendChild(w("div",ue(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.display.gutterSpecs.length;++l){var u=t.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&a.appendChild(w("div",[c],"CodeMirror-gutter-elt","left: "+i.gutterLeft[u]+"px; width: "+i.gutterWidth[u]+"px"))}}}function qn(t,e,n){e.alignable&&(e.alignable=null);for(var i=A("CodeMirror-linewidget"),r=e.node.firstChild,o=void 0;r;r=o)o=r.nextSibling,i.test(r.className)&&e.node.removeChild(r);Vn(t,e,n)}function zn(t,e,n,i){var r=jn(t,e);return e.text=e.node=r.pre,r.bgClass&&(e.bgClass=r.bgClass),r.textClass&&(e.textClass=r.textClass),Un(t,e),Hn(t,e,n,i),Vn(t,e,i),e.node}function Vn(t,e,n){if(Wn(t,e.line,e,n,!0),e.rest)for(var i=0;i<e.rest.length;i++)Wn(t,e.rest[i],e,n,!1)}function Wn(t,e,n,i,r){if(e.widgets)for(var o=Gn(n),s=0,a=e.widgets;s<a.length;++s){var l=a[s],u=w("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Zn(l,u,n,i),t.display.input.setUneditable(u),r&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),On(l,"redraw")}}function Zn(t,e,n,i){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var r=i.wrapperWidth;e.style.left=i.fixedPos+"px",t.coverGutter||(r-=i.gutterTotalWidth,e.style.paddingLeft=i.gutterTotalWidth+"px"),e.style.width=r+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-i.gutterTotalWidth+"px"))}function Qn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!P(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),I(e.display.measure,w("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function Xn(t,e){for(var n=Rt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Yn(t){return t.lineSpace.offsetTop}function $n(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Kn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=I(t.measure,w("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,i={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(i.left)||isNaN(i.right)||(t.cachedPaddingH=i),i}function Jn(t){return W-t.display.nativeBarWidth}function ti(t){return t.display.scroller.clientWidth-Jn(t)-t.display.barWidth}function ei(t){return t.display.scroller.clientHeight-Jn(t)-t.display.barHeight}function ni(t,e,n){var i=t.options.lineWrapping,r=i&&ti(t);if(!e.measure.heights||i&&e.measure.width!=r){var o=e.measure.heights=[];if(i){e.measure.width=r;for(var s=e.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var l=s[a],u=s[a+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function ii(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var i=0;i<t.rest.length;i++)if(t.rest[i]==e)return{map:t.measure.maps[i],cache:t.measure.caches[i]};for(var r=0;r<t.rest.length;r++)if(se(t.rest[r])>n)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}}function ri(t,e){var n=se(e=rn(e)),i=t.display.externalMeasured=new Cn(t.doc,e,n);i.lineN=n;var r=i.built=_n(t,i);return i.text=r.pre,I(t.display.lineMeasure,r.pre),i}function oi(t,e,n,i){return li(t,ai(t,e),n,i)}function si(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[Ui(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function ai(t,e){var n=se(e),i=si(t,n);i&&!i.text?i=null:i&&i.changes&&(Dn(t,i,n,Di(t)),t.curOp.forceUpdate=!0),i||(i=ri(t,e));var r=ii(i,e,n);return{line:e,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function li(t,e,n,i,r){e.before&&(n=-1);var o,s=n+(i||"");return e.cache.hasOwnProperty(s)?o=e.cache[s]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(ni(t,e.view,e.rect),e.hasHeights=!0),(o=di(t,e,n,i)).bogus||(e.cache[s]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}var ui,ci={left:0,right:0,top:0,bottom:0};function hi(t,e,n){for(var i,r,o,s,a,l,u=0;u<t.length;u+=3)if(a=t[u],l=t[u+1],e<a?(r=0,o=1,s="left"):e<l?o=1+(r=e-a):(u==t.length-3||e==l&&t[u+3]>e)&&(r=(o=l-a)-1,e>=l&&(s="right")),null!=r){if(i=t[u+2],a==l&&n==(i.insertLeft?"left":"right")&&(s=n),"left"==n&&0==r)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)i=t[2+(u-=3)],s="left";if("right"==n&&r==l-a)for(;u<t.length-3&&t[u+3]==t[u+4]&&!t[u+5].insertLeft;)i=t[(u+=3)+2],s="right";break}return{node:i,start:r,end:o,collapse:s,coverStart:a,coverEnd:l}}function pi(t,e){var n=ci;if("left"==e)for(var i=0;i<t.length&&(n=t[i]).left==n.right;i++);else for(var r=t.length-1;r>=0&&(n=t[r]).left==n.right;r--);return n}function di(t,e,n,i){var r,o=hi(e.map,n,i),l=o.node,u=o.start,c=o.end,h=o.collapse;if(3==l.nodeType){for(var p=0;p<4;p++){for(;u&&ct(e.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&ct(e.line.text.charAt(o.coverStart+c));)++c;if((r=s&&a<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():pi(L(l,u,c).getClientRects(),i)).left||r.right||0==u)break;c=u,u-=1,h="right"}s&&a<11&&(r=fi(t.display.measure,r))}else{var d;u>0&&(h=i="right"),r=t.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==i?d.length-1:0]:l.getBoundingClientRect()}if(s&&a<9&&!u&&(!r||!r.left&&!r.right)){var f=l.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+ki(t.display),top:f.top,bottom:f.bottom}:ci}for(var g=r.top-e.rect.top,m=r.bottom-e.rect.top,v=(g+m)/2,y=e.view.measure.heights,E=0;E<y.length-1&&!(v<y[E]);E++);var _=E?y[E-1]:0,x=y[E],b={left:("right"==h?r.right:r.left)-e.rect.left,right:("left"==h?r.left:r.right)-e.rect.left,top:_,bottom:x};return r.left||r.right||(b.bogus=!0),t.options.singleCursorHeightPerLine||(b.rtop=g,b.rbottom=m),b}function fi(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!qt(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*i,bottom:e.bottom*i}}function gi(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function mi(t){t.display.externalMeasure=null,N(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)gi(t.display.view[e])}function vi(t){mi(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function yi(t){return c&&v?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function Ei(t){return c&&v?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function _i(t){var e=rn(t).widgets,n=0;if(e)for(var i=0;i<e.length;++i)e[i].above&&(n+=Qn(e[i]));return n}function xi(t,e,n,i,r){if(!r){var o=_i(e);n.top+=o,n.bottom+=o}if("line"==i)return n;i||(i="local");var s=hn(e);if("local"==i?s+=Yn(t.display):s-=t.display.viewOffset,"page"==i||"window"==i){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==i?0:Ei(G(t)));var l=a.left+("window"==i?0:yi(G(t)));n.left+=l,n.right+=l}return n.top+=s,n.bottom+=s,n}function bi(t,e,n){if("div"==n)return e;var i=e.left,r=e.top;if("page"==n)i-=yi(G(t)),r-=Ei(G(t));else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();i+=o.left,r+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:i-s.left,top:r-s.top}}function Ti(t,e,n,i,r){return i||(i=ne(t.doc,e.line)),xi(t,i,oi(t,i,e.ch,r),n)}function Si(t,e,n,i,r,o){function s(e,s){var a=li(t,r,e,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,xi(t,i,a,n)}i=i||ne(t.doc,e.line),r||(r=ai(t,i));var a=vt(i,t.doc.direction),l=e.ch,u=e.sticky;if(l>=i.text.length?(l=i.text.length,u="before"):l<=0&&(l=0,u="after"),!a)return s("before"==u?l-1:l,"before"==u);function c(t,e,n){return s(n?t-1:t,1==a[e].level!=n)}var h=gt(a,l,u),p=ft,d=c(l,h,"before"==u);return null!=p&&(d.other=c(l,p,"before"!=u)),d}function Ai(t,e){var n=0;e=ve(t.doc,e),t.options.lineWrapping||(n=ki(t.display)*e.ch);var i=ne(t.doc,e.line),r=hn(i)+Yn(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Li(t,e,n,i,r){var o=ce(t,e,n);return o.xRel=r,i&&(o.outside=i),o}function Ci(t,e,n){var i=t.doc;if((n+=t.display.viewOffset)<0)return Li(i.first,0,null,-1,-1);var r=ae(i,n),o=i.first+i.size-1;if(r>o)return Li(i.first+i.size-1,ne(i,o).text.length,null,1,1);e<0&&(e=0);for(var s=ne(i,r);;){var a=Ri(t,s,r,e,n),l=en(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!l)return a;var u=l.find(1);if(u.line==r)return u;s=ne(i,r=u.line)}}function Ni(t,e,n,i){i-=_i(e);var r=e.text.length,o=pt(function(e){return li(t,n,e-1).bottom<=i},r,0);return{begin:o,end:r=pt(function(e){return li(t,n,e).top>i},o,r)}}function Ii(t,e,n,i){return n||(n=ai(t,e)),Ni(t,e,n,xi(t,e,li(t,n,i),"line").top)}function wi(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function Ri(t,e,n,i,r){r-=hn(e);var o=ai(t,e),s=_i(e),a=0,l=e.text.length,u=!0,c=vt(e,t.doc.direction);if(c){var h=(t.options.lineWrapping?Mi:Pi)(t,e,n,o,c,i,r);a=(u=1!=h.level)?h.from:h.to-1,l=u?h.to:h.from-1}var p,d,f=null,g=null,m=pt(function(e){var n=li(t,o,e);return n.top+=s,n.bottom+=s,!!wi(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=e,g=n),!0)},a,l),v=!1;if(g){var y=i-g.left<g.right-i,E=y==u;m=f+(E?0:1),d=E?"after":"before",p=y?g.left:g.right}else{u||m!=l&&m!=a||m++,d=0==m?"after":m==e.text.length?"before":li(t,o,m-(u?1:0)).bottom+s<=r==u?"after":"before";var _=Si(t,ce(n,m,d),"line",e,o);p=_.left,v=r<_.top?-1:r>=_.bottom?1:0}return Li(n,m=ht(e.text,m,1),d,v,i-p)}function Pi(t,e,n,i,r,o,s){var a=pt(function(a){var l=r[a],u=1!=l.level;return wi(Si(t,ce(n,u?l.to:l.from,u?"before":"after"),"line",e,i),o,s,!0)},0,r.length-1),l=r[a];if(a>0){var u=1!=l.level,c=Si(t,ce(n,u?l.from:l.to,u?"after":"before"),"line",e,i);wi(c,o,s,!0)&&c.top>s&&(l=r[a-1])}return l}function Mi(t,e,n,i,r,o,s){var a=Ni(t,e,i,s),l=a.begin,u=a.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,h=null,p=0;p<r.length;p++){var d=r[p];if(!(d.from>=u||d.to<=l)){var f=li(t,i,1!=d.level?Math.min(u,d.to)-1:Math.max(l,d.from)).right,g=f<o?o-f+1e9:f-o;(!c||h>g)&&(c=d,h=g)}}return c||(c=r[r.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function Oi(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==ui){ui=w("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)ui.appendChild(document.createTextNode("x")),ui.appendChild(w("br"));ui.appendChild(document.createTextNode("x"))}I(t.measure,ui);var n=ui.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),N(t.measure),n||1}function ki(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=w("span","xxxxxxxxxx"),n=w("pre",[e],"CodeMirror-line-like");I(t.measure,n);var i=e.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(t.cachedCharWidth=r),r||10}function Di(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=t.display.gutterSpecs[s].className;n[a]=o.offsetLeft+o.clientLeft+r,i[a]=o.clientWidth}return{fixedPos:Gi(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function Gi(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Bi(t){var e=Oi(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/ki(t.display)-3);return function(r){if(un(t.doc,r))return 0;var o=0;if(r.widgets)for(var s=0;s<r.widgets.length;s++)r.widgets[s].height&&(o+=r.widgets[s].height);return n?o+(Math.ceil(r.text.length/i)||1)*e:o+e}}function ji(t){var e=t.doc,n=Bi(t);e.iter(function(t){var e=n(t);e!=t.height&&oe(t,e)})}function Fi(t,e,n,i){var r=t.display;if(!n&&"true"==Rt(e).getAttribute("cm-not-content"))return null;var o,s,a=r.lineSpace.getBoundingClientRect();try{o=e.clientX-a.left,s=e.clientY-a.top}catch(t){return null}var l,u=Ci(t,o,s);if(i&&u.xRel>0&&(l=ne(t.doc,u.line).text).length==u.ch){var c=q(l,l.length,t.options.tabSize)-l.length;u=ce(u.line,Math.max(0,Math.round((o-Kn(t.display).left)/ki(t.display))-c))}return u}function Ui(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,i=0;i<n.length;i++)if((e-=n[i].size)<0)return i}function Hi(t,e,n,i){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),i||(i=0);var r=t.display;if(i&&n<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>e)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)ke&&an(t.doc,e)<r.viewTo&&zi(t);else if(n<=r.viewFrom)ke&&ln(t.doc,n+i)>r.viewFrom?zi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)zi(t);else if(e<=r.viewFrom){var o=Vi(t,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):zi(t)}else if(n>=r.viewTo){var s=Vi(t,e,e,-1);s?(r.view=r.view.slice(0,s.index),r.viewTo=s.lineN):zi(t)}else{var a=Vi(t,e,e,-1),l=Vi(t,n,n+i,1);a&&l?(r.view=r.view.slice(0,a.index).concat(Nn(t,a.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):zi(t)}var u=r.externalMeasured;u&&(n<u.lineN?u.lineN+=i:e<u.lineN+u.size&&(r.externalMeasured=null))}function qi(t,e,n){t.curOp.viewChanged=!0;var i=t.display,r=t.display.externalMeasured;if(r&&e>=r.lineN&&e<r.lineN+r.size&&(i.externalMeasured=null),!(e<i.viewFrom||e>=i.viewTo)){var o=i.view[Ui(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==V(s,n)&&s.push(n)}}}function zi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Vi(t,e,n,i){var r,o=Ui(t,e),s=t.display.view;if(!ke||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,l=0;l<o;l++)a+=s[l].size;if(a!=e){if(i>0){if(o==s.length-1)return null;r=a+s[o].size-e,o++}else r=a-e;e+=r,n+=r}for(;an(t.doc,n)!=n;){if(o==(i<0?0:s.length-1))return null;n+=i*s[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function Wi(t,e,n){var i=t.display;0==i.view.length||e>=i.viewTo||n<=i.viewFrom?(i.view=Nn(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=Nn(t,e,i.viewFrom).concat(i.view):i.viewFrom<e&&(i.view=i.view.slice(Ui(t,e))),i.viewFrom=e,i.viewTo<n?i.view=i.view.concat(Nn(t,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,Ui(t,n)))),i.viewTo=n}function Zi(t){for(var e=t.display.view,n=0,i=0;i<e.length;i++){var r=e[i];r.hidden||r.node&&!r.changes||++n}return n}function Qi(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Xi(t,e){void 0===e&&(e=!0);var n=t.doc,i={},r=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),s=t.options.$customCursor;s&&(e=!0);for(var a=0;a<n.sel.ranges.length;a++)if(e||a!=n.sel.primIndex){var l=n.sel.ranges[a];if(!(l.from().line>=t.display.viewTo||l.to().line<t.display.viewFrom)){var u=l.empty();if(s){var c=s(t,l);c&&Yi(t,c,r)}else(u||t.options.showCursorWhenSelecting)&&Yi(t,l.head,r);u||Ki(t,l,o)}}return i}function Yi(t,e,n){var i=Si(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),r=n.appendChild(w("div"," ","CodeMirror-cursor"));if(r.style.left=i.left+"px",r.style.top=i.top+"px",r.style.height=Math.max(0,i.bottom-i.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var o=Ti(t,e,"div",null,null),s=o.right-o.left;r.style.width=(s>0?s:t.defaultCharWidth())+"px"}if(i.other){var a=n.appendChild(w("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function $i(t,e){return t.top-e.top||t.left-e.left}function Ki(t,e,n){var i=t.display,r=t.doc,o=document.createDocumentFragment(),s=Kn(t.display),a=s.left,l=Math.max(i.sizerWidth,ti(t)-i.sizer.offsetLeft)-s.right,u="ltr"==r.direction;function c(t,e,n,i){e<0&&(e=0),e=Math.round(e),i=Math.round(i),o.appendChild(w("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(n??l-t)+"px;\n height: "+(i-e)+"px"))}function h(e,n,i){var o,s,h=ne(r,e),p=h.text.length;function d(n,i){return Ti(t,ce(e,n),"div",h,i)}function f(e,n,i){var r=Ii(t,h,null,e),o="ltr"==n==("after"==i)?"left":"right";return d("after"==i?r.begin:r.end-(/\s/.test(h.text.charAt(r.end-1))?2:1),o)[o]}var g=vt(h,r.direction);return dt(g,n||0,i??p,function(t,e,r,h){var m="ltr"==r,v=d(t,m?"left":"right"),y=d(e-1,m?"right":"left"),E=null==n&&0==t,_=null==i&&e==p,x=0==h,b=!g||h==g.length-1;if(y.top-v.top<=3){var T=(u?_:E)&&b,S=(u?E:_)&&x?a:(m?v:y).left,A=T?l:(m?y:v).right;c(S,v.top,A-S,v.bottom)}else{var L,C,N,I;m?(L=u&&E&&x?a:v.left,C=u?l:f(t,r,"before"),N=u?a:f(e,r,"after"),I=u&&_&&b?l:y.right):(L=u?f(t,r,"before"):a,C=!u&&E&&x?l:v.right,N=!u&&_&&b?a:y.left,I=u?f(e,r,"after"):l),c(L,v.top,C-L,v.bottom),v.bottom<y.top&&c(a,v.bottom,null,y.top),c(N,y.top,I-N,y.bottom)}(!o||$i(v,o)<0)&&(o=v),$i(y,o)<0&&(o=y),(!s||$i(v,s)<0)&&(s=v),$i(y,s)<0&&(s=y)}),{start:o,end:s}}var p=e.from(),d=e.to();if(p.line==d.line)h(p.line,p.ch,d.ch);else{var f=ne(r,p.line),g=ne(r,d.line),m=rn(f)==rn(g),v=h(p.line,p.ch,m?f.text.length+1:null).end,y=h(d.line,m?0:null,d.ch).start;m&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(a,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(a,v.bottom,null,y.top)}n.appendChild(o)}function Ji(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval(function(){t.hasFocus()||ir(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function tr(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||nr(t))}function er(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&ir(t))},100)}function nr(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(bt(t,"focus",t,e),t.state.focused=!0,O(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Ji(t))}function ir(t,e){t.state.delayingBlurEvent||(t.state.focused&&(bt(t,"blur",t,e),t.state.focused=!1,C(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function rr(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=Math.max(0,e.scroller.getBoundingClientRect().top),r=e.lineDiv.getBoundingClientRect().top,o=0,l=0;l<e.view.length;l++){var u=e.view[l],c=t.options.lineWrapping,h=void 0,p=0;if(!u.hidden){if(r+=u.line.height,s&&a<8){var d=u.node.offsetTop+u.node.offsetHeight;h=d-n,n=d}else{var f=u.node.getBoundingClientRect();h=f.bottom-f.top,!c&&u.text.firstChild&&(p=u.text.firstChild.getBoundingClientRect().right-f.left-1)}var g=u.line.height-h;if((g>.005||g<-.005)&&(r<i&&(o-=g),oe(u.line,h),or(u.line),u.rest))for(var m=0;m<u.rest.length;m++)or(u.rest[m]);if(p>t.display.sizerWidth){var v=Math.ceil(p/ki(t.display));v>t.display.maxLineLength&&(t.display.maxLineLength=v,t.display.maxLine=u.line,t.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(e.scroller.scrollTop+=o)}function or(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],i=n.node.parentNode;i&&(n.height=i.offsetHeight)}}function sr(t,e,n){var i=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;i=Math.floor(i-Yn(t));var r=n&&null!=n.bottom?n.bottom:i+t.wrapper.clientHeight,o=ae(e,i),s=ae(e,r);if(n&&n.ensure){var a=n.ensure.from.line,l=n.ensure.to.line;a<o?(o=a,s=ae(e,hn(ne(e,a))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=s&&(o=ae(e,hn(ne(e,l))-t.wrapper.clientHeight),s=l)}return{from:o,to:Math.max(s,o+1)}}function ar(t,e){if(!Tt(t,"scrollCursorIntoView")){var n=t.display,i=n.sizer.getBoundingClientRect(),r=null,o=n.wrapper.ownerDocument;if(e.top+i.top<0?r=!0:e.bottom+i.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(r=!1),null!=r&&!g){var s=w("div","",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Yn(t.display))+"px;\n height: "+(e.bottom-e.top+Jn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(s),s.scrollIntoView(r),t.display.lineSpace.removeChild(s)}}}function lr(t,e,n,i){var r;null==i&&(i=0),t.options.lineWrapping||e!=n||(n="before"==e.sticky?ce(e.line,e.ch+1,"before"):e,e=e.ch?ce(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e);for(var o=0;o<5;o++){var s=!1,a=Si(t,e),l=n&&n!=e?Si(t,n):a,u=cr(t,r={left:Math.min(a.left,l.left),top:Math.min(a.top,l.top)-i,right:Math.max(a.left,l.left),bottom:Math.max(a.bottom,l.bottom)+i}),c=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=u.scrollTop&&(vr(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(s=!0)),null!=u.scrollLeft&&(Er(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(s=!0)),!s)break}return r}function ur(t,e){var n=cr(t,e);null!=n.scrollTop&&vr(t,n.scrollTop),null!=n.scrollLeft&&Er(t,n.scrollLeft)}function cr(t,e){var n=t.display,i=Oi(t.display);e.top<0&&(e.top=0);var r=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=ei(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+$n(n),l=e.top<i,u=e.bottom>a-i;if(e.top<r)s.scrollTop=l?0:e.top;else if(e.bottom>r+o){var c=Math.min(e.top,(u?a:e.bottom)-o);c!=r&&(s.scrollTop=c)}var h=t.options.fixedGutter?0:n.gutters.offsetWidth,p=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-h,d=ti(t)-n.gutters.offsetWidth,f=e.right-e.left>d;return f&&(e.right=e.left+d),e.left<10?s.scrollLeft=0:e.left<p?s.scrollLeft=Math.max(0,e.left+h-(f?0:10)):e.right>d+p-3&&(s.scrollLeft=e.right+(f?0:10)-d),s}function hr(t,e){null!=e&&(gr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function pr(t){gr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function dr(t,e,n){null==e&&null==n||gr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function fr(t,e){gr(t),t.curOp.scrollToPos=e}function gr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,mr(t,Ai(t,e.from),Ai(t,e.to),e.margin))}function mr(t,e,n,i){var r=cr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});dr(t,r.scrollLeft,r.scrollTop)}function vr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||Qr(t,{top:e}),yr(t,e,!0),n&&Qr(t),Fr(t,100))}function yr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Er(t,e,n,i){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,Kr(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function _r(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+$n(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Jn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var xr=function(t,e,n){this.cm=n;var i=this.vert=w("div",[w("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=w("div",[w("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,t(i),t(r),Et(i,"scroll",function(){i.clientHeight&&e(i.scrollTop,"vertical")}),Et(r,"scroll",function(){r.clientWidth&&e(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},xr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xr.prototype.zeroWidthHack=function(){var t=E&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new z,this.disableVert=new z},xr.prototype.enableZeroWidthBar=function(t,e,n){function i(){var r=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.visibility="hidden":e.set(1e3,i)}t.style.visibility="",e.set(1e3,i)},xr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var br=function(){};function Tr(t,e){e||(e=_r(t));var n=t.display.barWidth,i=t.display.barHeight;Sr(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&rr(t),Sr(t,_r(t)),n=t.display.barWidth,i=t.display.barHeight}function Sr(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}br.prototype.update=function(){return{bottom:0,right:0}},br.prototype.setScrollLeft=function(){},br.prototype.setScrollTop=function(){},br.prototype.clear=function(){};var Ar={native:xr,null:br};function Lr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&C(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ar[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),Et(e,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?Er(t,e):vr(t,e)},t),t.display.scrollbars.addClass&&O(t.display.wrapper,t.display.scrollbars.addClass)}var Cr=0;function Nr(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cr,markArrays:null},wn(t.curOp)}function Ir(t){var e=t.curOp;e&&Pn(e,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;wr(t)})}function wr(t){for(var e=t.ops,n=0;n<e.length;n++)Rr(e[n]);for(var i=0;i<e.length;i++)Pr(e[i]);for(var r=0;r<e.length;r++)Mr(e[r]);for(var o=0;o<e.length;o++)Or(e[o]);for(var s=0;s<e.length;s++)kr(e[s])}function Rr(t){var e=t.cm,n=e.display;qr(e),t.updateMaxLine&&dn(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Hr(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Pr(t){t.updatedDisplay=t.mustUpdate&&Wr(t.cm,t.update)}function Mr(t){var e=t.cm,n=e.display;t.updatedDisplay&&rr(e),t.barMeasure=_r(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=oi(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Jn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-ti(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Or(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Er(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==M(B(e));t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Tr(e,t.barMeasure),t.updatedDisplay&&$r(e,t.barMeasure),t.selectionChanged&&Ji(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&tr(t.cm)}function kr(t){var e=t.cm,n=e.display,i=e.doc;t.updatedDisplay&&Zr(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&yr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Er(e,t.scrollLeft,!0,!0),t.scrollToPos&&ar(e,lr(e,ve(i,t.scrollToPos.from),ve(i,t.scrollToPos.to),t.scrollToPos.margin));var r=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(r)for(var s=0;s<r.length;++s)r[s].lines.length||bt(r[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&bt(o[a],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&bt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Dr(t,e){if(t.curOp)return e();Nr(t);try{return e()}finally{Ir(t)}}function Gr(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Nr(t);try{return e.apply(t,arguments)}finally{Ir(t)}}}function Br(t){return function(){if(this.curOp)return t.apply(this,arguments);Nr(this);try{return t.apply(this,arguments)}finally{Ir(this)}}}function jr(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Nr(e);try{return t.apply(this,arguments)}finally{Ir(e)}}}function Fr(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,U(Ur,t))}function Ur(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,i=Se(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),function(o){if(i.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Kt(e.mode,i.state):null,l=be(t,o,i,!0);a&&(i.state=a),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var h=!s||s.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!h&&p<s.length;++p)h=s[p]!=o.styles[p];h&&r.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=t.options.maxHighlightLength&&Ae(t,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>n)return Fr(t,t.options.workDelay),!0}),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&Dr(t,function(){for(var e=0;e<r.length;e++)qi(t,r[e],"text")})}}var Hr=function(t,e,n){var i=t.display;this.viewport=e,this.visible=sr(i,t.doc,e),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=ti(t),this.force=n,this.dims=Di(t),this.events=[]};function qr(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Jn(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Jn(t)+"px",e.scrollbarsClipped=!0)}function zr(t){if(t.hasFocus())return null;var e=M(B(t));if(!e||!P(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var i=F(t).getSelection();i.anchorNode&&i.extend&&P(t.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}function Vr(t){if(t&&t.activeElt&&t.activeElt!=M(j(t.activeElt))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&P(document.body,t.anchorNode)&&P(document.body,t.focusNode))){var e=t.activeElt.ownerDocument,n=e.defaultView.getSelection(),i=e.createRange();i.setEnd(t.anchorNode,t.anchorOffset),i.collapse(!1),n.removeAllRanges(),n.addRange(i),n.extend(t.focusNode,t.focusOffset)}}function Wr(t,e){var n=t.display,i=t.doc;if(e.editorIsHidden)return zi(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Zi(t))return!1;Jr(t)&&(zi(t),e.dims=Di(t));var r=i.first+i.size,o=Math.max(e.visible.from-t.options.viewportMargin,i.first),s=Math.min(r,e.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(i.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(r,n.viewTo)),ke&&(o=an(t.doc,o),s=ln(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;Wi(t,o,s),n.viewOffset=hn(ne(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=Zi(t);if(!a&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=zr(t);return l>4&&(n.lineDiv.style.display="none"),Xr(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Vr(u),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,Fr(t,400)),n.updateLineNumbers=null,!0}function Zr(t,e){for(var n=e.viewport,i=!0;;i=!1){if(i&&t.options.lineWrapping&&e.oldDisplayWidth!=ti(t))i&&(e.visible=sr(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+$n(t.display)-ei(t),n.top)}),e.visible=sr(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!Wr(t,e))break;rr(t);var r=_r(t);Qi(t),Tr(t,r),$r(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Qr(t,e){var n=new Hr(t,e);if(Wr(t,n)){rr(t),Zr(t,n);var i=_r(t);Qi(t),Tr(t,i),$r(t,i),n.finish()}}function Xr(t,e,n){var i=t.display,r=t.options.lineNumbers,o=i.lineDiv,s=o.firstChild;function a(e){var n=e.nextSibling;return l&&E&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var u=i.view,c=i.viewFrom,h=0;h<u.length;h++){var p=u[h];if(p.hidden);else if(p.node&&p.node.parentNode==o){for(;s!=p.node;)s=a(s);var d=r&&null!=e&&e<=c&&p.lineNumber;p.changes&&(V(p.changes,"gutter")>-1&&(d=!1),Dn(t,p,c,n)),d&&(N(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(ue(t.options,c)))),s=p.node.nextSibling}else{var f=zn(t,p,c,n);o.insertBefore(f,s)}c+=p.size}for(;s;)s=a(s)}function Yr(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px",On(t,"gutterChanged",t)}function $r(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Jn(t)+"px"}function Kr(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=Gi(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=i+"px",s=0;s<n.length;s++)if(!n[s].hidden){t.options.fixedGutter&&(n[s].gutter&&(n[s].gutter.style.left=o),n[s].gutterBackground&&(n[s].gutterBackground.style.left=o));var a=n[s].alignable;if(a)for(var l=0;l<a.length;l++)a[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=i+r+"px")}}function Jr(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=ue(t.options,e.first+e.size-1),i=t.display;if(n.length!=i.lineNumChars){var r=i.measure.appendChild(w("div",[w("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=r.firstChild.offsetWidth,s=r.offsetWidth-o;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(o,i.lineGutter.offsetWidth-s)+1,i.lineNumWidth=i.lineNumInnerWidth+s,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",Yr(t.display),!0}return!1}function to(t,e){for(var n=[],i=!1,r=0;r<t.length;r++){var o=t[r],s=null;if("string"!=typeof o&&(s=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;i=!0}n.push({className:o,style:s})}return e&&!i&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function eo(t){var e=t.gutters,n=t.gutterSpecs;N(e),t.lineGutter=null;for(var i=0;i<n.length;++i){var r=n[i],o=r.className,s=r.style,a=e.appendChild(w("div",null,"CodeMirror-gutter "+o));s&&(a.style.cssText=s),"CodeMirror-linenumbers"==o&&(t.lineGutter=a,a.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",Yr(t)}function no(t){eo(t.display),Hi(t),Kr(t)}function io(t,e,i,r){var o=this;this.input=i,o.scrollbarFiller=w("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=w("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=R("div",null,"CodeMirror-code"),o.selectionDiv=w("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=w("div",null,"CodeMirror-cursors"),o.measure=w("div",null,"CodeMirror-measure"),o.lineMeasure=w("div",null,"CodeMirror-measure"),o.lineSpace=R("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=R("div",[o.lineSpace],"CodeMirror-lines");o.mover=w("div",[u],null,"position: relative"),o.sizer=w("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=w("div",null,null,"position: absolute; height: "+W+"px; width: 1px;"),o.gutters=w("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=w("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=w("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&105===h&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),s&&a<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=to(r.gutters,r.lineNumbers),eo(o),i.init(o)}Hr.prototype.signal=function(t,e){At(t,e)&&this.events.push(arguments)},Hr.prototype.finish=function(){for(var t=0;t<this.events.length;t++)bt.apply(null,this.events[t])};var ro=0,oo=null;function so(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function ao(t){var e=so(t);return e.x*=oo,e.y*=oo,e}function lo(t,e){c&&102==h&&(null==t.display.chromeScrollHack?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var i=so(e),r=i.x,o=i.y,s=oo;0===e.deltaMode&&(r=e.deltaX,o=e.deltaY,s=1);var a=t.display,u=a.scroller,d=u.scrollWidth>u.clientWidth,f=u.scrollHeight>u.clientHeight;if(r&&d||o&&f){if(o&&E&&l)t:for(var g=e.target,m=a.view;g!=u;g=g.parentNode)for(var v=0;v<m.length;v++)if(m[v].node==g){t.display.currentWheelTarget=g;break t}if(r&&!n&&!p&&null!=s)return o&&f&&vr(t,Math.max(0,u.scrollTop+o*s)),Er(t,Math.max(0,u.scrollLeft+r*s)),(!o||o&&f)&&Ct(e),void(a.wheelStartX=null);if(o&&null!=s){var y=o*s,_=t.doc.scrollTop,x=_+a.wrapper.clientHeight;y<0?_=Math.max(0,_+y-50):x=Math.min(t.doc.height,x+y+50),Qr(t,{top:_,bottom:x})}ro<20&&0!==e.deltaMode&&(null==a.wheelStartX?(a.wheelStartX=u.scrollLeft,a.wheelStartY=u.scrollTop,a.wheelDX=r,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var t=u.scrollLeft-a.wheelStartX,e=u.scrollTop-a.wheelStartY,n=e&&a.wheelDY&&e/a.wheelDY||t&&a.wheelDX&&t/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(oo=(oo*ro+n)/(ro+1),++ro)}},200)):(a.wheelDX+=r,a.wheelDY+=o))}}s?oo=-.53:n?oo=15:c?oo=-.7:d&&(oo=-1/3);var uo=function(t,e){this.ranges=t,this.primIndex=e};uo.prototype.primary=function(){return this.ranges[this.primIndex]},uo.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],i=t.ranges[e];if(!pe(n.anchor,i.anchor)||!pe(n.head,i.head))return!1}return!0},uo.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new co(de(this.ranges[e].anchor),de(this.ranges[e].head));return new uo(t,this.primIndex)},uo.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},uo.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var i=this.ranges[n];if(he(e,i.from())>=0&&he(t,i.to())<=0)return n}return-1};var co=function(t,e){this.anchor=t,this.head=e};function ho(t,e,n){var i=t&&t.options.selectionsMayTouch,r=e[n];e.sort(function(t,e){return he(t.from(),e.from())}),n=V(e,r);for(var o=1;o<e.length;o++){var s=e[o],a=e[o-1],l=he(a.to(),s.from());if(i&&!s.empty()?l>0:l>=0){var u=ge(a.from(),s.from()),c=fe(a.to(),s.to()),h=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,e.splice(--o,2,new co(h?c:u,h?u:c))}}return new uo(e,n)}function po(t,e){return new uo([new co(t,e||t)],0)}function fo(t){return t.text?ce(t.from.line+t.text.length-1,tt(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function go(t,e){if(he(t,e.from)<0)return t;if(he(t,e.to)<=0)return fo(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=fo(e).ch-e.to.ch),ce(n,i)}function mo(t,e){for(var n=[],i=0;i<t.sel.ranges.length;i++){var r=t.sel.ranges[i];n.push(new co(go(r.anchor,e),go(r.head,e)))}return ho(t.cm,n,t.sel.primIndex)}function vo(t,e,n){return t.line==e.line?ce(n.line,t.ch-e.ch+n.ch):ce(n.line+(t.line-e.line),t.ch)}function yo(t,e,n){for(var i=[],r=ce(t.first,0),o=r,s=0;s<e.length;s++){var a=e[s],l=vo(a.from,r,o),u=vo(fo(a),r,o);if(r=a.to,o=u,"around"==n){var c=t.sel.ranges[s],h=he(c.head,c.anchor)<0;i[s]=new co(h?u:l,h?l:u)}else i[s]=new co(l,l)}return new uo(i,t.sel.primIndex)}function Eo(t){t.doc.mode=Xt(t.options,t.doc.modeOption),_o(t)}function _o(t){t.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Fr(t,100),t.state.modeGen++,t.curOp&&Hi(t)}function xo(t,e){return 0==e.from.ch&&0==e.to.ch&&""==tt(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function bo(t,e,n,i){function r(t){return n?n[t]:null}function o(t,n,r){gn(t,n,r,i),On(t,"change",t,e)}function s(t,e){for(var n=[],o=t;o<e;++o)n.push(new fn(u[o],r(o),i));return n}var a=e.from,l=e.to,u=e.text,c=ne(t,a.line),h=ne(t,l.line),p=tt(u),d=r(u.length-1),f=l.line-a.line;if(e.full)t.insert(0,s(0,u.length)),t.remove(u.length,t.size-u.length);else if(xo(t,e)){var g=s(0,u.length-1);o(h,h.text,d),f&&t.remove(a.line,f),g.length&&t.insert(a.line,g)}else if(c==h)if(1==u.length)o(c,c.text.slice(0,a.ch)+p+c.text.slice(l.ch),d);else{var m=s(1,u.length-1);m.push(new fn(p+c.text.slice(l.ch),d,i)),o(c,c.text.slice(0,a.ch)+u[0],r(0)),t.insert(a.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,a.ch)+u[0]+h.text.slice(l.ch),r(0)),t.remove(a.line+1,f);else{o(c,c.text.slice(0,a.ch)+u[0],r(0)),o(h,p+h.text.slice(l.ch),d);var v=s(1,u.length-1);f>1&&t.remove(a.line+1,f-1),t.insert(a.line+1,v)}On(t,"change",t,e)}function To(t,e,n){function i(t,r,o){if(t.linked)for(var s=0;s<t.linked.length;++s){var a=t.linked[s];if(a.doc!=r){var l=o&&a.sharedHist;n&&!l||(e(a.doc,l),i(a.doc,t,l))}}}i(t,null,!0)}function So(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,ji(t),Eo(t),Ao(t),t.options.direction=e.direction,t.options.lineWrapping||dn(t),t.options.mode=e.modeOption,Hi(t)}function Ao(t){("rtl"==t.doc.direction?O:C)(t.display.lineDiv,"CodeMirror-rtl")}function Lo(t){Dr(t,function(){Ao(t),Hi(t)})}function Co(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function No(t,e){var n={from:de(e.from),to:fo(e),text:ie(t,e.from,e.to)};return ko(t,n,e.from.line,e.to.line+1),To(t,function(t){return ko(t,n,e.from.line,e.to.line+1)},!0),n}function Io(t){for(;t.length&&tt(t).ranges;)t.pop()}function wo(t,e){return e?(Io(t.done),tt(t.done)):t.done.length&&!tt(t.done).ranges?tt(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),tt(t.done)):void 0}function Ro(t,e,n,i){var r=t.history;r.undone.length=0;var o,s,a=+new Date;if((r.lastOp==i||r.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&r.lastModTime>a-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=wo(r,r.lastOp==i)))s=tt(o.changes),0==he(e.from,e.to)&&0==he(e.from,s.to)?s.to=fo(e):o.changes.push(No(t,e));else{var l=tt(r.done);for(l&&l.ranges||Oo(t.sel,r.done),o={changes:[No(t,e)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=a,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,s||bt(t,"historyAdded")}function Po(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function Mo(t,e,n,i){var r=t.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Po(t,o,tt(r.done),e))?r.done[r.done.length-1]=e:Oo(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&Io(r.undone)}function Oo(t,e){var n=tt(e);n&&n.ranges&&n.equals(t)||e.push(t)}function ko(t,e,n,i){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=n.markedSpans),++o})}function Do(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Go(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var i=[],r=0;r<e.text.length;++r)i.push(Do(n[r]));return i}function Bo(t,e){var n=Go(t,e),i=ze(t,e);if(!n)return i;if(!i)return n;for(var r=0;r<n.length;++r){var o=n[r],s=i[r];if(o&&s)t:for(var a=0;a<s.length;++a){for(var l=s[a],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue t;o.push(l)}else s&&(n[r]=s)}return n}function jo(t,e,n){for(var i=[],r=0;r<t.length;++r){var o=t[r];if(o.ranges)i.push(n?uo.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];i.push({changes:a});for(var l=0;l<s.length;++l){var u=s[l],c=void 0;if(a.push({from:u.from,to:u.to,text:u.text}),e)for(var h in u)(c=h.match(/^spans_(\d+)$/))&&V(e,Number(c[1]))>-1&&(tt(a)[h]=u[h],delete u[h])}}}return i}function Fo(t,e,n,i){if(i){var r=t.anchor;if(n){var o=he(e,r)<0;o!=he(n,r)<0?(r=e,e=n):o!=he(e,n)<0&&(e=n)}return new co(r,e)}return new co(n||e,e)}function Uo(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),Zo(t,new uo([Fo(t.sel.primary(),e,n,r)],0),i)}function Ho(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)i[o]=Fo(t.sel.ranges[o],e[o],null,r);Zo(t,ho(t.cm,i,t.sel.primIndex),n)}function qo(t,e,n,i){var r=t.sel.ranges.slice(0);r[e]=n,Zo(t,ho(t.cm,r,t.sel.primIndex),i)}function zo(t,e,n,i){Zo(t,po(e,n),i)}function Vo(t,e,n){var i={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new co(ve(t,e[n].anchor),ve(t,e[n].head))},origin:n&&n.origin};return bt(t,"beforeSelectionChange",t,i),t.cm&&bt(t.cm,"beforeSelectionChange",t.cm,i),i.ranges!=e.ranges?ho(t.cm,i.ranges,i.ranges.length-1):e}function Wo(t,e,n){var i=t.history.done,r=tt(i);r&&r.ranges?(i[i.length-1]=e,Qo(t,e,n)):Zo(t,e,n)}function Zo(t,e,n){Qo(t,e,n),Mo(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Qo(t,e,n){(At(t,"beforeSelectionChange")||t.cm&&At(t.cm,"beforeSelectionChange"))&&(e=Vo(t,e,n));var i=n&&n.bias||(he(e.primary().head,t.sel.primary().head)<0?-1:1);Xo(t,$o(t,e,i,!0)),n&&!1===n.scroll||!t.cm||"nocursor"==t.cm.getOption("readOnly")||pr(t.cm)}function Xo(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,St(t.cm)),On(t,"cursorActivity",t))}function Yo(t){Xo(t,$o(t,t.sel,null,!1))}function $o(t,e,n,i){for(var r,o=0;o<e.ranges.length;o++){var s=e.ranges[o],a=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=Jo(t,s.anchor,a&&a.anchor,n,i),u=s.head==s.anchor?l:Jo(t,s.head,a&&a.head,n,i);(r||l!=s.anchor||u!=s.head)&&(r||(r=e.ranges.slice(0,o)),r[o]=new co(l,u))}return r?ho(t.cm,r,e.primIndex):e}function Ko(t,e,n,i,r){var o=ne(t,e.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],l=a.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==a.from||(u?a.from<=e.ch:a.from<e.ch))&&(null==a.to||(c?a.to>=e.ch:a.to>e.ch))){if(r&&(bt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!l.atomic)continue;if(n){var h=l.find(i<0?1:-1),p=void 0;if((i<0?c:u)&&(h=ts(t,h,-i,h&&h.line==e.line?o:null)),h&&h.line==e.line&&(p=he(h,n))&&(i<0?p<0:p>0))return Ko(t,h,e,i,r)}var d=l.find(i<0?-1:1);return(i<0?u:c)&&(d=ts(t,d,i,d.line==e.line?o:null)),d?Ko(t,d,e,i,r):null}}return e}function Jo(t,e,n,i,r){var o=i||1,s=Ko(t,e,n,o,r)||!r&&Ko(t,e,n,o,!0)||Ko(t,e,n,-o,r)||!r&&Ko(t,e,n,-o,!0);return s||(t.cantEdit=!0,ce(t.first,0))}function ts(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?ve(t,ce(e.line-1)):null:n>0&&e.ch==(i||ne(t,e.line)).text.length?e.line<t.first+t.size-1?ce(e.line+1,0):null:new ce(e.line,e.ch+n)}function es(t){t.setSelection(ce(t.firstLine(),0),ce(t.lastLine()),Q)}function ns(t,e,n){var i={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return i.canceled=!0}};return n&&(i.update=function(e,n,r,o){e&&(i.from=ve(t,e)),n&&(i.to=ve(t,n)),r&&(i.text=r),void 0!==o&&(i.origin=o)}),bt(t,"beforeChange",t,i),t.cm&&bt(t.cm,"beforeChange",t.cm,i),i.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function is(t,e,n){if(t.cm){if(!t.cm.curOp)return Gr(t.cm,is)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(At(t,"beforeChange")||t.cm&&At(t.cm,"beforeChange"))||(e=ns(t,e,!0))){var i=Oe&&!n&&We(t,e.from,e.to);if(i)for(var r=i.length-1;r>=0;--r)rs(t,{from:i[r].from,to:i[r].to,text:r?[""]:e.text,origin:e.origin});else rs(t,e)}}function rs(t,e){if(1!=e.text.length||""!=e.text[0]||0!=he(e.from,e.to)){var n=mo(t,e);Ro(t,e,n,t.cm?t.cm.curOp.id:NaN),as(t,e,n,ze(t,e));var i=[];To(t,function(t,n){n||-1!=V(i,t.history)||(ps(t.history,e),i.push(t.history)),as(t,e,null,ze(t,e))})}}function os(t,e,n){var i=t.cm&&t.cm.state.suppressEdits;if(!i||n){for(var r,o=t.history,s=t.sel,a="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,u=0;u<a.length&&(r=a[u],n?!r.ranges||r.equals(t.sel):r.ranges);u++);if(u!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(r=a.pop()).ranges){if(i)return void a.push(r);break}if(Oo(r,l),n&&!r.equals(t.sel))return void Zo(t,r,{clearRedo:!1});s=r}var c=[];Oo(s,l),l.push({changes:c,generation:o.generation}),o.generation=r.generation||++o.maxGeneration;for(var h=At(t,"beforeChange")||t.cm&&At(t.cm,"beforeChange"),p=function(n){var i=r.changes[n];if(i.origin=e,h&&!ns(t,i,!1))return a.length=0,{};c.push(No(t,i));var o=n?mo(t,i):tt(a);as(t,i,o,Bo(t,i)),!n&&t.cm&&t.cm.scrollIntoView({from:i.from,to:fo(i)});var s=[];To(t,function(t,e){e||-1!=V(s,t.history)||(ps(t.history,i),s.push(t.history)),as(t,i,null,Bo(t,i))})},d=r.changes.length-1;d>=0;--d){var f=p(d);if(f)return f.v}}}}function ss(t,e){if(0!=e&&(t.first+=e,t.sel=new uo(et(t.sel.ranges,function(t){return new co(ce(t.anchor.line+e,t.anchor.ch),ce(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){Hi(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;i<n.viewTo;i++)qi(t.cm,i,"gutter")}}function as(t,e,n,i){if(t.cm&&!t.cm.curOp)return Gr(t.cm,as)(t,e,n,i);if(e.to.line<t.first)ss(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var r=e.text.length-1-(t.first-e.from.line);ss(t,r),e={from:ce(t.first,0),to:ce(e.to.line+r,e.to.ch),text:[tt(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:ce(o,ne(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=ie(t,e.from,e.to),n||(n=mo(t,e)),t.cm?ls(t.cm,e,i):bo(t,e,i),Qo(t,n,Q),t.cantEdit&&Jo(t,ce(t.firstLine(),0))&&(t.cantEdit=!1)}}function ls(t,e,n){var i=t.doc,r=t.display,o=e.from,s=e.to,a=!1,l=o.line;t.options.lineWrapping||(l=se(rn(ne(i,o.line))),i.iter(l,s.line+1,function(t){if(t==r.maxLine)return a=!0,!0})),i.sel.contains(e.from,e.to)>-1&&St(t),bo(i,e,n,Bi(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,function(t){var e=pn(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0)),Me(i,o.line),Fr(t,400);var u=e.text.length-(s.line-o.line)-1;e.full?Hi(t):o.line!=s.line||1!=e.text.length||xo(t.doc,e)?Hi(t,o.line,s.line+1,u):qi(t,o.line,"text");var c=At(t,"changes"),h=At(t,"change");if(h||c){var p={from:o,to:s,text:e.text,removed:e.removed,origin:e.origin};h&&On(t,"change",t,p),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(p)}t.display.selForContextMenu=null}function us(t,e,n,i,r){var o;i||(i=n),he(i,n)<0&&(n=(o=[i,n])[0],i=o[1]),"string"==typeof e&&(e=t.splitLines(e)),is(t,{from:n,to:i,text:e,origin:r})}function cs(t,e,n,i){n<t.line?t.line+=i:e<t.line&&(t.line=e,t.ch=0)}function hs(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r],s=!0;if(o.ranges){o.copied||((o=t[r]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)cs(o.ranges[a].anchor,e,n,i),cs(o.ranges[a].head,e,n,i)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=ce(u.from.line+i,u.from.ch),u.to=ce(u.to.line+i,u.to.ch);else if(e<=u.to.line){s=!1;break}}s||(t.splice(0,r+1),r=0)}}}function ps(t,e){var n=e.from.line,i=e.to.line,r=e.text.length-(i-n)-1;hs(t.done,n,i,r),hs(t.undone,n,i,r)}function ds(t,e,n,i){var r=e,o=e;return"number"==typeof e?o=ne(t,me(t,e)):r=se(e),null==r?null:(i(o,r)&&t.cm&&qi(t.cm,r,n),o)}function fs(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function gs(t){this.children=t;for(var e=0,n=0,i=0;i<t.length;++i){var r=t[i];e+=r.chunkSize(),n+=r.height,r.parent=this}this.size=e,this.height=n,this.parent=null}co.prototype.from=function(){return ge(this.anchor,this.head)},co.prototype.to=function(){return fe(this.anchor,this.head)},co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},fs.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,i=t+e;n<i;++n){var r=this.lines[n];this.height-=r.height,mn(r),On(r,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var i=0;i<e.length;++i)e[i].parent=this},iterN:function(t,e,n){for(var i=t+e;t<i;++t)if(n(this.lines[t]))return!0}},gs.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var i=this.children[n],r=i.chunkSize();if(t<r){var o=Math.min(e,r-t),s=i.height;if(i.removeInner(t,o),this.height-=s-i.height,r==o&&(this.children.splice(n--,1),i.parent=null),0==(e-=o))break;t=0}else t-=r}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof fs))){var a=[];this.collapse(a),this.children=[new fs(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(t<=o){if(r.insertInner(t,e,n),r.lines&&r.lines.length>50){for(var s=r.lines.length%25+25,a=s;a<r.lines.length;){var l=new fs(r.lines.slice(a,a+=25));r.height-=l.height,this.children.splice(++i,0,l),l.parent=this}r.lines=r.lines.slice(0,s),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new gs(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=V(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var i=new gs(t.children);i.parent=t,t.children=[i,e],t=i}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(t<o){var s=Math.min(e,o-t);if(r.iterN(t,s,n))return!0;if(0==(e-=s))break;t=0}else t-=o}}};var ms=function(t,e,n){if(n)for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);this.doc=t,this.node=e};function vs(t,e,n){hn(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&hr(t,n)}function ys(t,e,n,i){var r=new ms(t,n,i),o=t.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),ds(t,e,"widget",function(e){var n=e.widgets||(e.widgets=[]);if(null==r.insertAt?n.push(r):n.splice(Math.min(n.length,Math.max(0,r.insertAt)),0,r),r.line=e,o&&!un(t,e)){var i=hn(e)<t.scrollTop;oe(e,e.height+Qn(r)),i&&hr(o,r.height),o.curOp.forceUpdate=!0}return!0}),o&&On(o,"lineWidgetAdded",o,r,"number"==typeof e?e:se(e)),r}ms.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,i=se(n);if(null!=i&&e){for(var r=0;r<e.length;++r)e[r]==this&&e.splice(r--,1);e.length||(n.widgets=null);var o=Qn(this);oe(n,Math.max(0,n.height-o)),t&&(Dr(t,function(){vs(t,n,-o),qi(t,i,"widget")}),On(t,"lineWidgetCleared",t,this,i))}},ms.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,i=this.line;this.height=null;var r=Qn(this)-e;r&&(un(this.doc,i)||oe(i,i.height+r),n&&Dr(n,function(){n.curOp.forceUpdate=!0,vs(n,i,r),On(n,"lineWidgetChanged",n,t,se(i))}))},Lt(ms);var Es=0,_s=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Es};function xs(t,e,n,i,r){if(i&&i.shared)return Ts(t,e,n,i,r);if(t.cm&&!t.cm.curOp)return Gr(t.cm,xs)(t,e,n,i,r);var o=new _s(t,r),s=he(e,n);if(i&&H(i,o,!1),s>0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=R("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(nn(t,e.line,e,n,o)||e.line!=n.line&&nn(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ge()}o.addToHistory&&Ro(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var a,l=e.line,u=t.cm;if(t.iter(l,n.line+1,function(i){u&&o.collapsed&&!u.options.lineWrapping&&rn(i)==u.display.maxLine&&(a=!0),o.collapsed&&l!=e.line&&oe(i,0),Ue(i,new Be(o,l==e.line?e.ch:null,l==n.line?n.ch:null),t.cm&&t.cm.curOp),++l}),o.collapsed&&t.iter(e.line,n.line+1,function(e){un(t,e)&&oe(e,0)}),o.clearOnEnter&&Et(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(De(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++Es,o.atomic=!0),u){if(a&&(u.curOp.updateMaxLine=!0),o.collapsed)Hi(u,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=e.line;c<=n.line;c++)qi(u,c,"text");o.atomic&&Yo(u.doc),On(u,"markerAdded",u,o)}return o}_s.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Nr(t),At(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;o<this.lines.length;++o){var s=this.lines[o],a=je(s.markedSpans,this);t&&!this.collapsed?qi(t,se(s),"text"):t&&(null!=a.to&&(r=se(s)),null!=a.from&&(i=se(s))),s.markedSpans=Fe(s.markedSpans,a),null==a.from&&this.collapsed&&!un(this.doc,s)&&t&&oe(s,Oi(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=rn(this.lines[l]),c=pn(u);c>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Hi(t,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Yo(t.doc)),t&&On(t,"markerCleared",t,this,i,r),e&&Ir(t),this.parent&&this.parent.clear()}},_s.prototype.find=function(t,e){var n,i;null==t&&"bookmark"==this.type&&(t=1);for(var r=0;r<this.lines.length;++r){var o=this.lines[r],s=je(o.markedSpans,this);if(null!=s.from&&(n=ce(e?o:se(o),s.from),-1==t))return n;if(null!=s.to&&(i=ce(e?o:se(o),s.to),1==t))return i}return n&&{from:n,to:i}},_s.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,i=this.doc.cm;e&&i&&Dr(i,function(){var r=e.line,o=se(e.line),s=si(i,o);if(s&&(gi(s),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!un(n.doc,r)&&null!=n.height){var a=n.height;n.height=null;var l=Qn(n)-a;l&&oe(r,r.height+l)}On(i,"markerChanged",i,t)})},_s.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=V(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},_s.prototype.detachLine=function(t){if(this.lines.splice(V(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},Lt(_s);var bs=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function Ts(t,e,n,i,r){(i=H(i)).shared=!1;var o=[xs(t,e,n,i,r)],s=o[0],a=i.widgetNode;return To(t,function(t){a&&(i.widgetNode=a.cloneNode(!0)),o.push(xs(t,ve(t,e),ve(t,n),i,r));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;s=tt(o)}),new bs(o,s)}function Ss(t){return t.findMarks(ce(t.first,0),t.clipPos(ce(t.lastLine())),function(t){return t.parent})}function As(t,e){for(var n=0;n<e.length;n++){var i=e[n],r=i.find(),o=t.clipPos(r.from),s=t.clipPos(r.to);if(he(o,s)){var a=xs(t,o,s,i.primary,i.primary.type);i.markers.push(a),a.parent=i}}}function Ls(t){for(var e=function(e){var n=t[e],i=[n.primary.doc];To(n.primary.doc,function(t){return i.push(t)});for(var r=0;r<n.markers.length;r++){var o=n.markers[r];-1==V(i,o.doc)&&(o.parent=null,n.markers.splice(r--,1))}},n=0;n<t.length;n++)e(n)}bs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();On(this,"clear")}},bs.prototype.find=function(t,e){return this.primary.find(t,e)},Lt(bs);var Cs=0,Ns=function(t,e,n,i,r){if(!(this instanceof Ns))return new Ns(t,e,n,i,r);null==n&&(n=0),gs.call(this,[new fs([new fn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ce(n,0);this.sel=po(o),this.history=new Co(null),this.id=++Cs,this.modeOption=e,this.lineSep=i,this.direction="rtl"==r?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),bo(this,{from:o,to:o,text:t}),Zo(this,po(o),Q)};Ns.prototype=rt(gs.prototype,{constructor:Ns,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,i=0;i<e.length;++i)n+=e[i].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=re(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:jr(function(t){var e=ce(this.first,0),n=this.first+this.size-1;is(this,{from:e,to:ce(n,ne(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&dr(this.cm,0,0),Zo(this,po(e),Q)}),replaceRange:function(t,e,n,i){us(this,t,e=ve(this,e),n=n?ve(this,n):e,i)},getRange:function(t,e,n){var i=ie(this,ve(this,t),ve(this,e));return!1===n?i:""===n?i.join(""):i.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(le(this,t))return ne(this,t)},getLineNumber:function(t){return se(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=ne(this,t)),rn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ve(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:jr(function(t,e,n){zo(this,ve(this,"number"==typeof t?ce(t,e||0):t),null,n)}),setSelection:jr(function(t,e,n){zo(this,ve(this,t),ve(this,e||t),n)}),extendSelection:jr(function(t,e,n){Uo(this,ve(this,t),e&&ve(this,e),n)}),extendSelections:jr(function(t,e){Ho(this,Ee(this,t),e)}),extendSelectionsBy:jr(function(t,e){Ho(this,Ee(this,et(this.sel.ranges,t)),e)}),setSelections:jr(function(t,e,n){if(t.length){for(var i=[],r=0;r<t.length;r++)i[r]=new co(ve(this,t[r].anchor),ve(this,t[r].head||t[r].anchor));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),Zo(this,ho(this.cm,i,e),n)}}),addSelection:jr(function(t,e,n){var i=this.sel.ranges.slice(0);i.push(new co(ve(this,t),ve(this,e||t))),Zo(this,ho(this.cm,i,i.length-1),n)}),getSelection:function(t){for(var e,n=this.sel.ranges,i=0;i<n.length;i++){var r=ie(this,n[i].from(),n[i].to());e=e?e.concat(r):r}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,i=0;i<n.length;i++){var r=ie(this,n[i].from(),n[i].to());!1!==t&&(r=r.join(t||this.lineSeparator())),e[i]=r}return e},replaceSelection:function(t,e,n){for(var i=[],r=0;r<this.sel.ranges.length;r++)i[r]=t;this.replaceSelections(i,e,n||"+input")},replaceSelections:jr(function(t,e,n){for(var i=[],r=this.sel,o=0;o<r.ranges.length;o++){var s=r.ranges[o];i[o]={from:s.from(),to:s.to(),text:this.splitLines(t[o]),origin:n}}for(var a=e&&"end"!=e&&yo(this,i,e),l=i.length-1;l>=0;l--)is(this,i[l]);a?Wo(this,a):this.cm&&pr(this.cm)}),undo:jr(function(){os(this,"undo")}),redo:jr(function(){os(this,"redo")}),undoSelection:jr(function(){os(this,"undo",!0)}),redoSelection:jr(function(){os(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i<t.done.length;i++)t.done[i].ranges||++e;for(var r=0;r<t.undone.length;r++)t.undone[r].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new Co(this.history),To(this,function(e){return e.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:jo(this.history.done),undone:jo(this.history.undone)}},setHistory:function(t){var e=this.history=new Co(this.history);e.done=jo(t.done.slice(0),null,!0),e.undone=jo(t.undone.slice(0),null,!0)},setGutterMarker:jr(function(t,e,n){return ds(this,t,"gutter",function(t){var i=t.gutterMarkers||(t.gutterMarkers={});return i[e]=n,!n&<(i)&&(t.gutterMarkers=null),!0})}),clearGutter:jr(function(t){var e=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[t]&&ds(e,n,"gutter",function(){return n.gutterMarkers[t]=null,lt(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(t){var e;if("number"==typeof t){if(!le(this,t))return null;if(e=t,!(t=ne(this,t)))return null}else if(null==(e=se(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:jr(function(t,e,n){return ds(this,t,"gutter"==e?"gutter":"class",function(t){var i="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[i]){if(A(n).test(t[i]))return!1;t[i]+=" "+n}else t[i]=n;return!0})}),removeLineClass:jr(function(t,e,n){return ds(this,t,"gutter"==e?"gutter":"class",function(t){var i="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",r=t[i];if(!r)return!1;if(null==n)t[i]=null;else{var o=r.match(A(n));if(!o)return!1;var s=o.index+o[0].length;t[i]=r.slice(0,o.index)+(o.index&&s!=r.length?" ":"")+r.slice(s)||null}return!0})}),addLineWidget:jr(function(t,e,n){return ys(this,t,e,n)}),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return xs(this,ve(this,t),ve(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return xs(this,t=ve(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=ne(this,(t=ve(this,t)).line).markedSpans;if(n)for(var i=0;i<n.length;++i){var r=n[i];(null==r.from||r.from<=t.ch)&&(null==r.to||r.to>=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=ve(this,t),e=ve(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var l=s[a];null!=l.to&&r==t.line&&t.ch>=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&t.push(n[i].marker)}),t},posFromIndex:function(t){var e,n=this.first,i=this.lineSeparator().length;return this.iter(function(r){var o=r.text.length+i;if(o>t)return e=t,!0;t-=o,++n}),ve(this,ce(n,e))},indexFromPos:function(t){var e=(t=ve(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,function(t){e+=t.text.length+n}),e},copy:function(t){var e=new Ns(re(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var i=new Ns(re(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:t.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],As(i,Ss(this)),i},unlinkDoc:function(t){if(t instanceof Ha&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Ls(Ss(this));break}if(t.history==this.history){var n=[t.id];To(t,function(t){return n.push(t.id)},!0),t.history=new Co(null),t.history.done=jo(this.history.done,n),t.history.undone=jo(this.history.undone,n)}},iterLinkedDocs:function(t){To(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):jt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:jr(function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(t){return t.order=null}),this.cm&&Lo(this.cm))})}),Ns.prototype.eachLine=Ns.prototype.iter;var Is=0;function ws(t){var e=this;if(Ms(e),!Tt(e,t)&&!Xn(e.display,t)){Ct(t),s&&(Is=+new Date);var n=Fi(e,t,!0),i=t.dataTransfer.files;if(n&&!e.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var r=i.length,o=Array(r),a=0,l=function(){++a==r&&Gr(e,function(){var t={from:n=ve(e.doc,n),to:n,text:e.doc.splitLines(o.filter(function(t){return null!=t}).join(e.doc.lineSeparator())),origin:"paste"};is(e.doc,t),Wo(e.doc,po(ve(e.doc,n),ve(e.doc,fo(t))))})()},u=function(t,n){if(e.options.allowDropFileTypes&&-1==V(e.options.allowDropFileTypes,t.type))l();else{var i=new FileReader;i.onerror=function(){return l()},i.onload=function(){var t=i.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[n]=t),l()},i.readAsText(t)}},c=0;c<i.length;c++)u(i[c],c);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout(function(){return e.display.input.focus()},20);try{var h=t.dataTransfer.getData("Text");if(h){var p;if(e.state.draggingText&&!e.state.draggingText.copy&&(p=e.listSelections()),Qo(e.doc,po(n,n)),p)for(var d=0;d<p.length;++d)us(e.doc,"",p[d].anchor,p[d].head,"drag");e.replaceSelection(h,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Rs(t,e){if(s&&(!t.state.draggingText||+new Date-Is<100))wt(e);else if(!Tt(t,e)&&!Xn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=w("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}function Ps(t,e){var n=Fi(t,e);if(n){var i=document.createDocumentFragment();Yi(t,n,i),t.display.dragCursor||(t.display.dragCursor=w("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),I(t.display.dragCursor,i)}}function Ms(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Os(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],i=0;i<e.length;i++){var r=e[i].CodeMirror;r&&n.push(r)}n.length&&n[0].operation(function(){for(var e=0;e<n.length;e++)t(n[e])})}}var ks=!1;function Ds(){ks||(Gs(),ks=!0)}function Gs(){var t;Et(window,"resize",function(){null==t&&(t=setTimeout(function(){t=null,Os(Bs)},100))}),Et(window,"blur",function(){return Os(ir)})}function Bs(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var js={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fs=0;Fs<10;Fs++)js[Fs+48]=js[Fs+96]=String(Fs);for(var Us=65;Us<=90;Us++)js[Us]=String.fromCharCode(Us);for(var Hs=1;Hs<=12;Hs++)js[Hs+111]=js[Hs+63235]="F"+Hs;var qs={};function zs(t){var e,n,i,r,o=t.split(/-(?!$)/);t=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))r=!0;else if(/^a(lt)?$/i.test(a))e=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);i=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),r&&(t="Cmd-"+t),i&&(t="Shift-"+t),t}function Vs(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete t[n];continue}for(var r=et(n.split(" "),zs),o=0;o<r.length;o++){var s=void 0,a=void 0;o==r.length-1?(a=r.join(" "),s=i):(a=r.slice(0,o+1).join(" "),s="...");var l=e[a];if(l){if(l!=s)throw new Error("Inconsistent bindings for "+a)}else e[a]=s}delete t[n]}for(var u in e)t[u]=e[u];return t}function Ws(t,e,n,i){var r=(e=Ys(e)).call?e.call(t,i):e[t];if(!1===r)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Ws(t,e.fallthrough,n,i);for(var o=0;o<e.fallthrough.length;o++){var s=Ws(t,e.fallthrough[o],n,i);if(s)return s}}}function Zs(t){var e="string"==typeof t?t:js[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Qs(t,e,n){var i=t;return e.altKey&&"Alt"!=i&&(t="Alt-"+t),(T?e.metaKey:e.ctrlKey)&&"Ctrl"!=i&&(t="Ctrl-"+t),(T?e.ctrlKey:e.metaKey)&&"Mod"!=i&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=i&&(t="Shift-"+t),t}function Xs(t,e){if(p&&34==t.keyCode&&t.char)return!1;var n=js[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Qs(n,t,e))}function Ys(t){return"string"==typeof t?qs[t]:t}function $s(t,e){for(var n=t.doc.sel.ranges,i=[],r=0;r<n.length;r++){for(var o=e(n[r]);i.length&&he(o.from,tt(i).to)<=0;){var s=i.pop();if(he(s.from,o.from)<0){o.from=s.from;break}}i.push(o)}Dr(t,function(){for(var e=i.length-1;e>=0;e--)us(t.doc,"",i[e].from,i[e].to,"+delete");pr(t)})}function Ks(t,e,n){var i=ht(t.text,e+n,n);return i<0||i>t.text.length?null:i}function Js(t,e,n){var i=Ks(t,e.ch,n);return null==i?null:new ce(e.line,i,n<0?"after":"before")}function ta(t,e,n,i,r){if(t){"rtl"==e.doc.direction&&(r=-r);var o=vt(n,e.doc.direction);if(o){var s,a=r<0?tt(o):o[0],l=r<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var u=ai(e,n);s=r<0?n.text.length-1:0;var c=li(e,u,s).top;s=pt(function(t){return li(e,u,t).top==c},r<0==(1==a.level)?a.from:a.to-1,s),"before"==l&&(s=Ks(n,s,1))}else s=r<0?a.to:a.from;return new ce(i,s,l)}}return new ce(i,r<0?n.text.length:0,r<0?"before":"after")}function ea(t,e,n,i){var r=vt(e,t.doc.direction);if(!r)return Js(e,n,i);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=gt(r,n.ch,n.sticky),s=r[o];if("ltr"==t.doc.direction&&s.level%2==0&&(i>0?s.to>n.ch:s.from<n.ch))return Js(e,n,i);var a,l=function(t,n){return Ks(e,t instanceof ce?t.ch:t,n)},u=function(n){return t.options.lineWrapping?(a=a||ai(t,e),Ii(t,e,a,n)):{begin:0,end:e.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==s.level){var h=1==s.level==i<0,p=l(n,h?1:-1);if(null!=p&&(h?p<=s.to&&p<=c.end:p>=s.from&&p>=c.begin)){var d=h?"before":"after";return new ce(n.line,p,d)}}var f=function(t,e,i){for(var o=function(t,e){return e?new ce(n.line,l(t,1),"before"):new ce(n.line,t,"after")};t>=0&&t<r.length;t+=e){var s=r[t],a=e>0==(1!=s.level),u=a?i.begin:l(i.end,-1);if(s.from<=u&&u<s.to)return o(u,a);if(u=a?s.from:l(s.to,-1),i.begin<=u&&u<i.end)return o(u,a)}},g=f(o+i,i,c);if(g)return g;var m=i>0?c.end:l(c.begin,-1);return null==m||i>0&&m==e.text.length||!(g=f(i>0?0:r.length-1,i,u(m)))?null:g}qs.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qs.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qs.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},qs.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},qs.default=E?qs.macDefault:qs.pcDefault;var na={selectAll:es,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Q)},killLine:function(t){return $s(t,function(e){if(e.empty()){var n=ne(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:ce(e.head.line+1,0)}:{from:e.head,to:ce(e.head.line,n)}}return{from:e.from(),to:e.to()}})},deleteLine:function(t){return $s(t,function(e){return{from:ce(e.from().line,0),to:ve(t.doc,ce(e.to().line+1,0))}})},delLineLeft:function(t){return $s(t,function(t){return{from:ce(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(t){return $s(t,function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}})},delWrappedLineRight:function(t){return $s(t,function(e){var n=t.charCoords(e.head,"div").top+5,i=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:i}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(ce(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(ce(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return ia(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return oa(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(e){return ra(t,e.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")},Y)},goLineLeft:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")},Y)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5,i=t.coordsChar({left:0,top:n},"div");return i.ch<t.getLine(i.line).search(/\S/)?oa(t,e.head):i},Y)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),i=t.options.tabSize,r=0;r<n.length;r++){var o=n[r].from(),s=q(t.getLine(o.line),o.ch,i);e.push(J(i-s%i))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Dr(t,function(){for(var e=t.listSelections(),n=[],i=0;i<e.length;i++)if(e[i].empty()){var r=e[i].head,o=ne(t.doc,r.line).text;if(o)if(r.ch==o.length&&(r=new ce(r.line,r.ch-1)),r.ch>0)r=new ce(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),ce(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var s=ne(t.doc,r.line-1).text;s&&(r=new ce(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),ce(r.line-1,s.length-1),r,"+transpose"))}n.push(new co(r,r))}t.setSelections(n)})},newlineAndIndent:function(t){return Dr(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i<e.length;i++)t.indentLine(e[i].from().line,null,!0);pr(t)})},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function ia(t,e){var n=ne(t.doc,e),i=rn(n);return i!=n&&(e=se(i)),ta(!0,t,i,e,1)}function ra(t,e){var n=ne(t.doc,e),i=on(n);return i!=n&&(e=se(i)),ta(!0,t,n,e,-1)}function oa(t,e){var n=ia(t,e.line),i=ne(t.doc,n.line),r=vt(i,t.doc.direction);if(!r||0==r[0].level){var o=Math.max(n.ch,i.text.search(/\S/)),s=e.line==n.line&&e.ch<=o&&e.ch;return ce(n.line,s?0:o,n.sticky)}return n}function sa(t,e,n){if("string"==typeof e&&!(e=na[e]))return!1;t.display.input.ensurePolled();var i=t.display.shift,r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),r=e(t)!=Z}finally{t.display.shift=i,t.state.suppressEdits=!1}return r}function aa(t,e,n){for(var i=0;i<t.state.keyMaps.length;i++){var r=Ws(e,t.state.keyMaps[i],n,t);if(r)return r}return t.options.extraKeys&&Ws(e,t.options.extraKeys,n,t)||Ws(e,t.options.keyMap,n,t)}var la=new z;function ua(t,e,n,i){var r=t.state.keySeq;if(r){if(Zs(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:la.set(50,function(){t.state.keySeq==r&&(t.state.keySeq=null,t.display.input.reset())}),ca(t,r+" "+e,n,i))return!0}return ca(t,e,n,i)}function ca(t,e,n,i){var r=aa(t,e,i);return"multi"==r&&(t.state.keySeq=e),"handled"==r&&On(t,"keyHandled",t,e,n),"handled"!=r&&"multi"!=r||(Ct(n),Ji(t)),!!r}function ha(t,e){var n=Xs(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?ua(t,"Shift-"+n,e,function(e){return sa(t,e,!0)})||ua(t,n,e,function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return sa(t,e)}):ua(t,n,e,function(e){return sa(t,e)}))}function pa(t,e,n){return ua(t,"'"+n+"'",e,function(e){return sa(t,e,!0)})}var da=null;function fa(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=M(B(e)),Tt(e,t)))){s&&a<11&&27==t.keyCode&&(t.returnValue=!1);var i=t.keyCode;e.display.shift=16==i||t.shiftKey;var r=ha(e,t);p&&(da=r?i:null,r||88!=i||Ut||!(E?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!E&&!r&&46==i&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=i||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||ga(e)}}function ga(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(C(e,"CodeMirror-crosshair"),xt(document,"keyup",n),xt(document,"mouseover",n))}O(e,"CodeMirror-crosshair"),Et(document,"keyup",n),Et(document,"mouseover",n)}function ma(t){16==t.keyCode&&(this.doc.sel.shift=!1),Tt(this,t)}function va(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||Xn(e.display,t)||Tt(e,t)||t.ctrlKey&&!t.altKey||E&&t.metaKey)){var n=t.keyCode,i=t.charCode;if(p&&n==da)return da=null,void Ct(t);if(!p||t.which&&!(t.which<10)||!ha(e,t)){var r=String.fromCharCode(i??n);"\b"!=r&&(pa(e,t,r)||e.display.input.onKeyPress(t))}}}var ya,Ea,_a=400,xa=function(t,e,n){this.time=t,this.pos=e,this.button=n};function ba(t,e){var n=+new Date;return Ea&&Ea.compare(n,t,e)?(ya=Ea=null,"triple"):ya&&ya.compare(n,t,e)?(Ea=new xa(n,t,e),ya=null,"double"):(ya=new xa(n,t,e),Ea=null,"single")}function Ta(t){var e=this,n=e.display;if(!(Tt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,Xn(n,t))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Pa(e,t)){var i=Fi(e,t),r=Pt(t),o=i?ba(i,r):"single";F(e).focus(),1==r&&e.state.selectingText&&e.state.selectingText(t),i&&Sa(e,r,i,o,t)||(1==r?i?La(e,i,o,t):Rt(t)==n.scroller&&Ct(t):2==r?(i&&Uo(e.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(S?e.display.input.onContextMenu(t):er(e)))}}function Sa(t,e,n,i,r){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),ua(t,Qs(o=(1==e?"Left":2==e?"Middle":"Right")+o,r),r,function(e){if("string"==typeof e&&(e=na[e]),!e)return!1;var i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),i=e(t,n)!=Z}finally{t.state.suppressEdits=!1}return i})}function Aa(t,e,n){var i=t.getOption("configureMouse"),r=i?i(t,e,n):{};if(null==r.unit){var o=_?n.shiftKey&&n.metaKey:n.altKey;r.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==r.extend||t.doc.extend)&&(r.extend=t.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=E?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(E?n.altKey:n.ctrlKey)),r}function La(t,e,n,i){s?setTimeout(U(tr,t),0):t.curOp.focus=M(B(t));var r,o=Aa(t,n,i),a=t.doc.sel;t.options.dragDrop&&kt&&!t.isReadOnly()&&"single"==n&&(r=a.contains(e))>-1&&(he((r=a.ranges[r]).from(),e)<0||e.xRel>0)&&(he(r.to(),e)>0||e.xRel<0)?Ca(t,i,e,o):Ia(t,i,e,o)}function Ca(t,e,n,i){var r=t.display,o=!1,u=Gr(t,function(e){l&&(r.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:er(t)),xt(r.wrapper.ownerDocument,"mouseup",u),xt(r.wrapper.ownerDocument,"mousemove",c),xt(r.scroller,"dragstart",h),xt(r.scroller,"drop",u),o||(Ct(e),i.addNew||Uo(t.doc,n,null,null,i.extend),l&&!d||s&&9==a?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),c=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return o=!0};l&&(r.scroller.draggable=!0),t.state.draggingText=u,u.copy=!i.moveOnDrag,Et(r.wrapper.ownerDocument,"mouseup",u),Et(r.wrapper.ownerDocument,"mousemove",c),Et(r.scroller,"dragstart",h),Et(r.scroller,"drop",u),t.state.delayingBlurEvent=!0,setTimeout(function(){return r.input.focus()},20),r.scroller.dragDrop&&r.scroller.dragDrop()}function Na(t,e,n){if("char"==n)return new co(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new co(ce(e.line,0),ve(t.doc,ce(e.line+1,0)));var i=n(t,e);return new co(i.from,i.to)}function Ia(t,e,n,i){s&&er(t);var r=t.display,o=t.doc;Ct(e);var a,l,u=o.sel,c=u.ranges;if(i.addNew&&!i.extend?(l=o.sel.contains(n),a=l>-1?c[l]:new co(n,n)):(a=o.sel.primary(),l=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(a=new co(n,n)),n=Fi(t,e,!0,!0),l=-1;else{var h=Na(t,n,i.unit);a=i.extend?Fo(a,h.anchor,h.head,i.extend):h}i.addNew?-1==l?(l=c.length,Zo(o,ho(t,c.concat([a]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==i.unit&&!i.extend?(Zo(o,ho(t,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):qo(o,l,a,X):(l=0,Zo(o,new uo([a],0),X),u=o.sel);var p=n;function d(e){if(0!=he(p,e))if(p=e,"rectangle"==i.unit){for(var r=[],s=t.options.tabSize,c=q(ne(o,n.line).text,n.ch,s),h=q(ne(o,e.line).text,e.ch,s),d=Math.min(c,h),f=Math.max(c,h),g=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=m;g++){var v=ne(o,g).text,y=$(v,d,s);d==f?r.push(new co(ce(g,y),ce(g,y))):v.length>y&&r.push(new co(ce(g,y),ce(g,$(v,f,s))))}r.length||r.push(new co(n,n)),Zo(o,ho(t,u.ranges.slice(0,l).concat(r),l),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var E,_=a,x=Na(t,e,i.unit),b=_.anchor;he(x.anchor,b)>0?(E=x.head,b=ge(_.from(),x.anchor)):(E=x.anchor,b=fe(_.to(),x.head));var T=u.ranges.slice(0);T[l]=wa(t,new co(ve(o,b),E)),Zo(o,ho(t,T,l),X)}}var f=r.wrapper.getBoundingClientRect(),g=0;function m(e){var n=++g,s=Fi(t,e,!0,"rectangle"==i.unit);if(s)if(0!=he(s,p)){t.curOp.focus=M(B(t)),d(s);var a=sr(r,o);(s.line>=a.to||s.line<a.from)&&setTimeout(Gr(t,function(){g==n&&m(e)}),150)}else{var l=e.clientY<f.top?-20:e.clientY>f.bottom?20:0;l&&setTimeout(Gr(t,function(){g==n&&(r.scroller.scrollTop+=l,m(e))}),50)}}function v(e){t.state.selectingText=!1,g=1/0,e&&(Ct(e),r.input.focus()),xt(r.wrapper.ownerDocument,"mousemove",y),xt(r.wrapper.ownerDocument,"mouseup",E),o.history.lastSelOrigin=null}var y=Gr(t,function(t){0!==t.buttons&&Pt(t)?m(t):v(t)}),E=Gr(t,v);t.state.selectingText=E,Et(r.wrapper.ownerDocument,"mousemove",y),Et(r.wrapper.ownerDocument,"mouseup",E)}function wa(t,e){var n=e.anchor,i=e.head,r=ne(t.doc,n.line);if(0==he(n,i)&&n.sticky==i.sticky)return e;var o=vt(r);if(!o)return e;var s=gt(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var l,u=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==u||u==o.length)return e;if(i.line!=n.line)l=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=gt(o,i.ch,i.sticky),h=c-s||(i.ch-n.ch)*(1==a.level?-1:1);l=c==u-1||c==u?h<0:h>0}var p=o[u+(l?-1:0)],d=l==(1==p.level),f=d?p.from:p.to,g=d?"after":"before";return n.ch==f&&n.sticky==g?e:new co(new ce(n.line,f,g),i)}function Ra(t,e,n,i){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(t){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&Ct(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!At(t,n))return It(e);o-=a.top-s.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var u=s.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=r)return bt(t,n,t,ae(t.doc,o),t.display.gutterSpecs[l].className,e),It(e)}}function Pa(t,e){return Ra(t,e,"gutterClick",!0)}function Ma(t,e){Xn(t.display,e)||Oa(t,e)||Tt(t,e,"contextmenu")||S||t.display.input.onContextMenu(e)}function Oa(t,e){return!!At(t,"gutterContextMenu")&&Ra(t,e,"gutterContextMenu",!1)}function ka(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),vi(t)}xa.prototype.compare=function(t,e,n){return this.time+_a>t&&0==he(e,this.pos)&&n==this.button};var Da={toString:function(){return"CodeMirror.Init"}},Ga={},Ba={};function ja(t){var e=t.optionHandlers;function n(n,i,r,o){t.defaults[n]=i,r&&(e[n]=o?function(t,e,n){n!=Da&&r(t,e,n)}:r)}t.defineOption=n,t.Init=Da,n("value","",function(t,e){return t.setValue(e)},!0),n("mode",null,function(t,e){t.doc.modeOption=e,Eo(t)},!0),n("indentUnit",2,Eo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(t){_o(t),vi(t),Hi(t)},!0),n("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter(function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,n.push(ce(i,o))}i++});for(var r=n.length-1;r>=0;r--)us(t.doc,e,n[r],ce(n[r].line,n[r].ch+e.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Da&&t.refresh()}),n("specialCharPlaceholder",xn,function(t){return t.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),n("autocorrect",!1,function(t,e){return t.getInputField().autocorrect=e},!0),n("autocapitalize",!1,function(t,e){return t.getInputField().autocapitalize=e},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(t){ka(t),no(t)},!0),n("keyMap","default",function(t,e,n){var i=Ys(e),r=n!=Da&&Ys(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ua,!0),n("gutters",[],function(t,e){t.display.gutterSpecs=to(e,t.options.lineNumbers),no(t)},!0),n("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?Gi(t.display)+"px":"0",t.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(t){return Tr(t)},!0),n("scrollbarStyle","native",function(t){Lr(t),Tr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),n("lineNumbers",!1,function(t,e){t.display.gutterSpecs=to(t.options.gutters,e),no(t)},!0),n("firstLineNumber",1,no,!0),n("lineNumberFormatter",function(t){return t},no,!0),n("showCursorWhenSelecting",!1,Qi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(t,e){"nocursor"==e&&(ir(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),n("screenReaderLabel",null,function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)}),n("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),n("dragDrop",!0,Fa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Qi,!0),n("singleCursorHeightPerLine",!0,Qi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,_o,!0),n("addModeClass",!1,_o,!0),n("pollInterval",100),n("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),n("historyEventDelay",1250),n("viewportMargin",10,function(t){return t.refresh()},!0),n("maxHighlightLength",1e4,_o,!0),n("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),n("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),n("autofocus",null),n("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0),n("phrases",null)}function Fa(t,e,n){if(!e!=!(n&&n!=Da)){var i=t.display.dragFunctions,r=e?Et:xt;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function Ua(t){t.options.lineWrapping?(O(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(C(t.display.wrapper,"CodeMirror-wrap"),dn(t)),ji(t),Hi(t),vi(t),setTimeout(function(){return Tr(t)},100)}function Ha(t,e){var n=this;if(!(this instanceof Ha))return new Ha(t,e);this.options=e=e?H(e):{},H(Ga,e,!1);var i=e.value;"string"==typeof i?i=new Ns(i,e.mode,null,e.lineSeparator,e.direction):e.mode&&(i.modeOption=e.mode),this.doc=i;var r=new Ha.inputStyles[e.inputStyle](this),o=this.display=new io(t,i,r,e);for(var u in o.wrapper.CodeMirror=this,ka(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Lr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},e.autofocus&&!y&&o.input.focus(),s&&a<11&&setTimeout(function(){return n.display.input.reset(!0)},20),qa(this),Ds(),Nr(this),this.curOp.forceUpdate=!0,So(this,i),e.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&nr(n)},20):ir(this),Ba)Ba.hasOwnProperty(u)&&Ba[u](this,e[u],Da);Jr(this),e.finishInit&&e.finishInit(this);for(var c=0;c<za.length;++c)za[c](this);Ir(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function qa(t){var e=t.display;Et(e.scroller,"mousedown",Gr(t,Ta)),Et(e.scroller,"dblclick",s&&a<11?Gr(t,function(e){if(!Tt(t,e)){var n=Fi(t,e);if(n&&!Pa(t,e)&&!Xn(t.display,e)){Ct(e);var i=t.findWordAt(n);Uo(t.doc,i.anchor,i.head)}}}):function(e){return Tt(t,e)||Ct(e)}),Et(e.scroller,"contextmenu",function(e){return Ma(t,e)}),Et(e.input.getField(),"contextmenu",function(n){e.scroller.contains(n.target)||Ma(t,n)});var n,i={end:0};function r(){e.activeTouch&&(n=setTimeout(function(){return e.activeTouch=null},1e3),(i=e.activeTouch).end=+new Date)}function o(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function l(t,e){if(null==e.left)return!0;var n=e.left-t.left,i=e.top-t.top;return n*n+i*i>400}Et(e.scroller,"touchstart",function(r){if(!Tt(t,r)&&!o(r)&&!Pa(t,r)){e.input.ensurePolled(),clearTimeout(n);var s=+new Date;e.activeTouch={start:s,moved:!1,prev:s-i.end<=300?i:null},1==r.touches.length&&(e.activeTouch.left=r.touches[0].pageX,e.activeTouch.top=r.touches[0].pageY)}}),Et(e.scroller,"touchmove",function(){e.activeTouch&&(e.activeTouch.moved=!0)}),Et(e.scroller,"touchend",function(n){var i=e.activeTouch;if(i&&!Xn(e,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,s=t.coordsChar(e.activeTouch,"page");o=!i.prev||l(i,i.prev)?new co(s,s):!i.prev.prev||l(i,i.prev.prev)?t.findWordAt(s):new co(ce(s.line,0),ve(t.doc,ce(s.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),Ct(n)}r()}),Et(e.scroller,"touchcancel",r),Et(e.scroller,"scroll",function(){e.scroller.clientHeight&&(vr(t,e.scroller.scrollTop),Er(t,e.scroller.scrollLeft,!0),bt(t,"scroll",t))}),Et(e.scroller,"mousewheel",function(e){return lo(t,e)}),Et(e.scroller,"DOMMouseScroll",function(e){return lo(t,e)}),Et(e.wrapper,"scroll",function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0}),e.dragFunctions={enter:function(e){Tt(t,e)||wt(e)},over:function(e){Tt(t,e)||(Ps(t,e),wt(e))},start:function(e){return Rs(t,e)},drop:Gr(t,ws),leave:function(e){Tt(t,e)||Ms(t)}};var u=e.input.getField();Et(u,"keyup",function(e){return ma.call(t,e)}),Et(u,"keydown",Gr(t,fa)),Et(u,"keypress",Gr(t,va)),Et(u,"focus",function(e){return nr(t,e)}),Et(u,"blur",function(e){return ir(t,e)})}Ha.defaults=Ga,Ha.optionHandlers=Ba;var za=[];function Va(t,e,n,i){var r,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=Se(t,e).state:n="prev");var s=t.options.tabSize,a=ne(o,e),l=q(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var u,c=a.text.match(/^\s*/)[0];if(i||/\S/.test(a.text)){if("smart"==n&&((u=o.mode.indent(r,a.text.slice(c.length),a.text))==Z||u>150)){if(!i)return;n="prev"}}else u=0,n="not";"prev"==n?u=e>o.first?q(ne(o,e-1).text,null,s):0:"add"==n?u=l+t.options.indentUnit:"subtract"==n?u=l-t.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var h="",p=0;if(t.options.indentWithTabs)for(var d=Math.floor(u/s);d;--d)p+=s,h+="\t";if(p<u&&(h+=J(u-p)),h!=c)return us(o,h,ce(e,0),ce(e,c.length),"+input"),a.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var g=o.sel.ranges[f];if(g.head.line==e&&g.head.ch<c.length){var m=ce(e,c.length);qo(o,f,new co(m,m));break}}}Ha.defineInitHook=function(t){return za.push(t)};var Wa=null;function Za(t){Wa=t}function Qa(t,e,n,i,r){var o=t.doc;t.display.shift=!1,i||(i=o.sel);var s=+new Date-200,a="paste"==r||t.state.pasteIncoming>s,l=jt(e),u=null;if(a&&i.ranges.length>1)if(Wa&&Wa.text.join("\n")==e){if(i.ranges.length%Wa.text.length==0){u=[];for(var c=0;c<Wa.text.length;c++)u.push(o.splitLines(Wa.text[c]))}}else l.length==i.ranges.length&&t.options.pasteLinesPerSelection&&(u=et(l,function(t){return[t]}));for(var h=t.curOp.updateInput,p=i.ranges.length-1;p>=0;p--){var d=i.ranges[p],f=d.from(),g=d.to();d.empty()&&(n&&n>0?f=ce(f.line,f.ch-n):t.state.overwrite&&!a?g=ce(g.line,Math.min(ne(o,g.line).text.length,g.ch+tt(l).length)):a&&Wa&&Wa.lineWise&&Wa.text.join("\n")==l.join("\n")&&(f=g=ce(f.line,0)));var m={from:f,to:g,text:u?u[p%u.length]:l,origin:r||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};is(t.doc,m),On(t,"inputRead",t,m)}e&&!a&&Ya(t,e),pr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Xa(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||!e.hasFocus()||Dr(e,function(){return Qa(e,n,0,null,"paste")}),!0}function Ya(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=t.getModeAt(r.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(e.indexOf(o.electricChars.charAt(a))>-1){s=Va(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(ne(t.doc,r.head.line).text.slice(0,r.head.ch))&&(s=Va(t,r.head.line,"smart"));s&&On(t,"electricInput",t,r.head.line)}}}function $a(t){for(var e=[],n=[],i=0;i<t.doc.sel.ranges.length;i++){var r=t.doc.sel.ranges[i].head.line,o={anchor:ce(r,0),head:ce(r+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function Ka(t,e,n,i){t.setAttribute("autocorrect",n?"on":"off"),t.setAttribute("autocapitalize",i?"on":"off"),t.setAttribute("spellcheck",!!e)}function Ja(){var t=w("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),e=w("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),m&&(t.style.border="1px solid black"),e}function tl(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){F(this).focus(),this.display.input.focus()},setOption:function(t,n){var i=this.options,r=i[t];i[t]==n&&"mode"!=t||(i[t]=n,e.hasOwnProperty(t)&&Gr(this,e[t])(this,n,r),bt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Ys(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:Br(function(e,n){var i=e.token?e:t.getMode(this.options,e);if(i.startState)throw new Error("Overlays may not be stateful.");nt(this.state.overlays,{mode:i,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},function(t){return t.priority}),this.state.modeGen++,Hi(this)}),removeOverlay:Br(function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var i=e[n].modeSpec;if(i==t||"string"==typeof t&&i.name==t)return e.splice(n,1),this.state.modeGen++,void Hi(this)}}),indentLine:Br(function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),le(this.doc,t)&&Va(this,t,e,n)}),indentSelection:Br(function(t){for(var e=this.doc.sel.ranges,n=-1,i=0;i<e.length;i++){var r=e[i];if(r.empty())r.head.line>n&&(Va(this,r.head.line,t,!0),n=r.head.line,i==this.doc.sel.primIndex&&pr(this));else{var o=r.from(),s=r.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var l=a;l<n;++l)Va(this,l,t);var u=this.doc.sel.ranges;0==o.ch&&e.length==u.length&&u[i].from().ch>0&&qo(this.doc,i,new co(o,u[i].to()),Q)}}}),getTokenAt:function(t,e){return Ie(this,t,e)},getLineTokens:function(t,e){return Ie(this,ce(t),e,!0)},getTokenTypeAt:function(t){t=ve(this.doc,t);var e,n=Te(this,ne(this.doc,t.line)),i=0,r=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=i+r>>1;if((s?n[2*s-1]:0)>=o)r=s;else{if(!(n[2*s+1]<o)){e=n[2*s+2];break}i=s+1}}var a=e?e.indexOf("overlay "):-1;return a<0?e:0==a?null:e.slice(0,a-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var i=[];if(!n.hasOwnProperty(e))return i;var r=n[e],o=this.getModeAt(t);if("string"==typeof o[e])r[o[e]]&&i.push(r[o[e]]);else if(o[e])for(var s=0;s<o[e].length;s++){var a=r[o[e][s]];a&&i.push(a)}else o.helperType&&r[o.helperType]?i.push(r[o.helperType]):r[o.name]&&i.push(r[o.name]);for(var l=0;l<r._global.length;l++){var u=r._global[l];u.pred(o,this)&&-1==V(i,u.val)&&i.push(u.val)}return i},getStateAfter:function(t,e){var n=this.doc;return Se(this,(t=me(n,t??n.first+n.size-1))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Si(this,null==t?n.head:"object"==typeof t?ve(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return Ti(this,ve(this.doc,t),e||"page")},coordsChar:function(t,e){return Ci(this,(t=bi(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=bi(this,{top:t,left:0},e||"page").top,ae(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var i,r=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,r=!0),i=ne(this.doc,t)}else i=t;return xi(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-hn(i):0)},defaultTextHeight:function(){return Oi(this.display)},defaultCharWidth:function(){return ki(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var o=this.display,s=(t=Si(this,ve(this.doc,t))).bottom,a=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==i)s=t.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?s=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(s=t.bottom),a+e.offsetWidth>u&&(a=u-e.offsetWidth)}e.style.top=s+"px",e.style.left=e.style.right="","right"==r?(a=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?a=0:"middle"==r&&(a=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=a+"px"),n&&ur(this,{left:a,top:s,right:a+e.offsetWidth,bottom:s+e.offsetHeight})},triggerOnKeyDown:Br(fa),triggerOnKeyPress:Br(va),triggerOnKeyUp:ma,triggerOnMouseDown:Br(Ta),execCommand:function(t){if(na.hasOwnProperty(t))return na[t].call(null,this)},triggerElectric:Br(function(t){Ya(this,t)}),findPosH:function(t,e,n,i){var r=1;e<0&&(r=-1,e=-e);for(var o=ve(this.doc,t),s=0;s<e&&!(o=el(this.doc,o,r,n,i)).hitSide;++s);return o},moveH:Br(function(t,e){var n=this;this.extendSelectionsBy(function(i){return n.display.shift||n.doc.extend||i.empty()?el(n.doc,i.head,t,e,n.options.rtlMoveVisually):t<0?i.from():i.to()},Y)}),deleteH:Br(function(t,e){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):$s(this,function(n){var r=el(i,n.head,t,e,!1);return t<0?{from:r,to:n.head}:{from:n.head,to:r}})}),findPosV:function(t,e,n,i){var r=1,o=i;e<0&&(r=-1,e=-e);for(var s=ve(this.doc,t),a=0;a<e;++a){var l=Si(this,s,"div");if(null==o?o=l.left:l.left=o,(s=nl(this,l,r,n)).hitSide)break}return s},moveV:Br(function(t,e){var n=this,i=this.doc,r=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(s){if(o)return t<0?s.from():s.to();var a=Si(n,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),r.push(a.left);var l=nl(n,a,t,e);return"page"==e&&s==i.sel.primary()&&hr(n,Ti(n,l,"div").top-a.top),l},Y),r.length)for(var s=0;s<i.sel.ranges.length;s++)i.sel.ranges[s].goalColumn=r[s]}),findWordAt:function(t){var e=ne(this.doc,t.line).text,n=t.ch,i=t.ch;if(e){var r=this.getHelper(t,"wordChars");"before"!=t.sticky&&i!=e.length||!n?++i:--n;for(var o=e.charAt(n),s=at(o,r)?function(t){return at(t,r)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!at(t)};n>0&&s(e.charAt(n-1));)--n;for(;i<e.length&&s(e.charAt(i));)++i}return new co(ce(t.line,n),ce(t.line,i))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?O(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==M(B(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Br(function(t,e){dr(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Jn(this)-this.display.barHeight,width:t.scrollWidth-Jn(this)-this.display.barWidth,clientHeight:ei(this),clientWidth:ti(this)}},scrollIntoView:Br(function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:ce(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?fr(this,t):mr(this,t.from,t.to,t.margin)}),setSize:Br(function(t,e){var n=this,i=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=i(t)),null!=e&&(this.display.wrapper.style.height=i(e)),this.options.lineWrapping&&mi(this);var r=this.display.viewFrom;this.doc.iter(r,this.display.viewTo,function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){qi(n,r,"widget");break}++r}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(t){return Dr(this,t)},startOperation:function(){return Nr(this)},endOperation:function(){return Ir(this)},refresh:Br(function(){var t=this.display.cachedTextHeight;Hi(this),this.curOp.forceUpdate=!0,vi(this),dr(this,this.doc.scrollLeft,this.doc.scrollTop),Yr(this.display),(null==t||Math.abs(t-Oi(this.display))>.5||this.options.lineWrapping)&&ji(this),bt(this,"refresh",this)}),swapDoc:Br(function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),So(this,t),vi(this),this.display.input.reset(),dr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,e),e}),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Lt(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,o){t.registerHelper(e,i,o),n[e]._global.push({pred:r,val:o})}}function el(t,e,n,i,r){var o=e,s=n,a=ne(t,e.line),l=r&&"rtl"==t.direction?-n:n;function u(){var n=e.line+l;return!(n<t.first||n>=t.first+t.size)&&(e=new ce(n,e.ch,e.sticky),a=ne(t,n))}function c(o){var s;if("codepoint"==i){var c=a.text.charCodeAt(e.ch+(n>0?0:-1));if(isNaN(c))s=null;else{var h=n>0?c>=55296&&c<56320:c>=56320&&c<57343;s=new ce(e.line,Math.max(0,Math.min(a.text.length,e.ch+n*(h?2:1))),-n)}}else s=r?ea(t.cm,a,e,n):Js(a,e,n);if(null==s){if(o||!u())return!1;e=ta(r,t.cm,a,e.line,l)}else e=s;return!0}if("char"==i||"codepoint"==i)c();else if("column"==i)c(!0);else if("word"==i||"group"==i)for(var h=null,p="group"==i,d=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||c(!f);f=!1){var g=a.text.charAt(e.ch)||"\n",m=at(g,d)?"w":p&&"\n"==g?"n":!p||/\s/.test(g)?null:"p";if(!p||f||m||(m="s"),h&&h!=m){n<0&&(n=1,c(),e.sticky="after");break}if(m&&(h=m),n>0&&!c(!f))break}var v=Jo(t,e,o,s,!0);return pe(o,v)&&(v.hitSide=!0),v}function nl(t,e,n,i){var r,o,s=t.doc,a=e.left;if("page"==i){var l=Math.min(t.display.wrapper.clientHeight,F(t).innerHeight||s(t).documentElement.clientHeight),u=Math.max(l-.5*Oi(t.display),3);r=(n>0?e.bottom:e.top)+n*u}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(;(o=Ci(t,a,r)).outside;){if(n<0?r<=0:r>=s.height){o.hitSide=!0;break}r+=5*n}return o}var il=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function rl(t,e){var n=si(t,e.line);if(!n||n.hidden)return null;var i=ne(t.doc,e.line),r=ii(n,i,e.line),o=vt(i,t.doc.direction),s="left";o&&(s=gt(o,e.ch)%2?"right":"left");var a=hi(r.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function ol(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function sl(t,e){return e&&(t.bad=!0),t}function al(t,e,n,i,r){var o="",s=!1,a=t.doc.lineSeparator(),l=!1;function u(t){return function(e){return e.id==t}}function c(){s&&(o+=a,l&&(o+=a),s=l=!1)}function h(t){t&&(c(),o+=t)}function p(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void h(n);var o,d=e.getAttribute("cm-marker");if(d){var f=t.findMarks(ce(i,0),ce(r+1,0),u(+d));return void(f.length&&(o=f[0].find(0))&&h(ie(t.doc,o.from,o.to).join(a)))}if("false"==e.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;g&&c();for(var m=0;m<e.childNodes.length;m++)p(e.childNodes[m]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),g&&(s=!0)}else 3==e.nodeType&&h(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;p(e),e!=n;)e=e.nextSibling,l=!1;return o}function ll(t,e,n){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[n]))return sl(t.clipPos(ce(t.display.viewTo-1)),!0);e=null,n=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var r=0;r<t.display.view.length;r++){var o=t.display.view[r];if(o.node==i)return ul(o,e,n)}}function ul(t,e,n){var i=t.text.firstChild,r=!1;if(!e||!P(i,e))return sl(ce(se(t.line),0),!0);if(e==i&&(r=!0,e=i.childNodes[n],n=0,!e)){var o=t.rest?tt(t.rest):t.line;return sl(ce(se(o),o.text.length),r)}var s=3==e.nodeType?e:null,a=e;for(s||1!=e.childNodes.length||3!=e.firstChild.nodeType||(s=e.firstChild,n&&(n=s.nodeValue.length));a.parentNode!=i;)a=a.parentNode;var l=t.measure,u=l.maps;function c(e,n,i){for(var r=-1;r<(u?u.length:0);r++)for(var o=r<0?l.map:u[r],s=0;s<o.length;s+=3){var a=o[s+2];if(a==e||a==n){var c=se(r<0?t.line:t.rest[r]),h=o[s]+i;return(i<0||a!=e)&&(h=o[s+(i?1:0)]),ce(c,h)}}}var h=c(s,a,n);if(h)return sl(h,r);for(var p=a.nextSibling,d=s?s.nodeValue.length-n:0;p;p=p.nextSibling){if(h=c(p,p.firstChild,0))return sl(ce(h.line,h.ch-d),r);d+=p.textContent.length}for(var f=a.previousSibling,g=n;f;f=f.previousSibling){if(h=c(f,f.firstChild,-1))return sl(ce(h.line,h.ch+g),r);g+=f.textContent.length}}il.prototype.init=function(t){var e=this,n=this,i=n.cm,r=n.div=t.lineDiv;function o(t){for(var e=t.target;e;e=e.parentNode){if(e==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function s(t){if(o(t)&&!Tt(i,t)){if(i.somethingSelected())Za({lineWise:!1,text:i.getSelections()}),"cut"==t.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var e=$a(i);Za({lineWise:!0,text:e.text}),"cut"==t.type&&i.operation(function(){i.setSelections(e.ranges,0,Q),i.replaceSelection("",null,"cut")})}if(t.clipboardData){t.clipboardData.clearData();var s=Wa.text.join("\n");if(t.clipboardData.setData("Text",s),t.clipboardData.getData("Text")==s)return void t.preventDefault()}var a=Ja(),l=a.firstChild;Ka(l),i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),l.value=Wa.text.join("\n");var u=M(j(r));D(l),setTimeout(function(){i.display.lineSpace.removeChild(a),u.focus(),u==r&&n.showPrimarySelection()},50)}}r.contentEditable=!0,Ka(r,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),Et(r,"paste",function(t){!o(t)||Tt(i,t)||Xa(t,i)||a<=11&&setTimeout(Gr(i,function(){return e.updateFromDOM()}),20)}),Et(r,"compositionstart",function(t){e.composing={data:t.data,done:!1}}),Et(r,"compositionupdate",function(t){e.composing||(e.composing={data:t.data,done:!1})}),Et(r,"compositionend",function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)}),Et(r,"touchstart",function(){return n.forceCompositionEnd()}),Et(r,"input",function(){e.composing||e.readFromDOMSoon()}),Et(r,"copy",s),Et(r,"cut",s)},il.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},il.prototype.prepareSelection=function(){var t=Xi(this.cm,!1);return t.focus=M(j(this.div))==this.div,t},il.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},il.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},il.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,i=e.doc.sel.primary(),r=i.from(),o=i.to();if(e.display.viewTo==e.display.viewFrom||r.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var s=ll(e,t.anchorNode,t.anchorOffset),a=ll(e,t.focusNode,t.focusOffset);if(!s||s.bad||!a||a.bad||0!=he(ge(s,a),r)||0!=he(fe(s,a),o)){var l=e.display.view,u=r.line>=e.display.viewFrom&&rl(e,r)||{node:l[0].measure.map[2],offset:0},c=o.line<e.display.viewTo&&rl(e,o);if(!c){var h=l[l.length-1].measure,p=h.maps?h.maps[h.maps.length-1]:h.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(u&&c){var d,f=t.rangeCount&&t.getRangeAt(0);try{d=L(u.node,u.offset,c.offset,c.node)}catch(t){}d&&(!n&&e.state.focused?(t.collapse(u.node,u.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),f&&null==t.anchorNode?t.addRange(f):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},il.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},il.prototype.showMultipleSelections=function(t){I(this.cm.display.cursorDiv,t.cursors),I(this.cm.display.selectionDiv,t.selection)},il.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},il.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return P(this.div,e)},il.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&M(j(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},il.prototype.blur=function(){this.div.blur()},il.prototype.getField=function(){return this.div},il.prototype.supportsTouch=function(){return!0},il.prototype.receivedFocus=function(){var t=this,e=this;function n(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):Dr(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,n)},il.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},il.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&ol(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ll(e,t.anchorNode,t.anchorOffset),i=ll(e,t.focusNode,t.focusOffset);n&&i&&Dr(e,function(){Zo(e.doc,po(n,i),Q),(n.bad||i.bad)&&(e.curOp.selectionChanged=!0)})}}},il.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,i=this.cm,r=i.display,o=i.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>i.firstLine()&&(s=ce(s.line-1,ne(i.doc,s.line-1).length)),a.ch==ne(i.doc,a.line).text.length&&a.line<i.lastLine()&&(a=ce(a.line+1,0)),s.line<r.viewFrom||a.line>r.viewTo-1)return!1;s.line==r.viewFrom||0==(t=Ui(i,s.line))?(e=se(r.view[0].line),n=r.view[0].node):(e=se(r.view[t].line),n=r.view[t-1].node.nextSibling);var l,u,c=Ui(i,a.line);if(c==r.view.length-1?(l=r.viewTo-1,u=r.lineDiv.lastChild):(l=se(r.view[c+1].line)-1,u=r.view[c+1].node.previousSibling),!n)return!1;for(var h=i.doc.splitLines(al(i,n,u,e,l)),p=ie(i.doc,ce(e,0),ce(l,ne(i.doc,l).text.length));h.length>1&&p.length>1;)if(tt(h)==tt(p))h.pop(),p.pop(),l--;else{if(h[0]!=p[0])break;h.shift(),p.shift(),e++}for(var d=0,f=0,g=h[0],m=p[0],v=Math.min(g.length,m.length);d<v&&g.charCodeAt(d)==m.charCodeAt(d);)++d;for(var y=tt(h),E=tt(p),_=Math.min(y.length-(1==h.length?d:0),E.length-(1==p.length?d:0));f<_&&y.charCodeAt(y.length-f-1)==E.charCodeAt(E.length-f-1);)++f;if(1==h.length&&1==p.length&&e==s.line)for(;d&&d>s.ch&&y.charCodeAt(y.length-f-1)==E.charCodeAt(E.length-f-1);)d--,f++;h[h.length-1]=y.slice(0,y.length-f).replace(/^\u200b+/,""),h[0]=h[0].slice(d).replace(/\u200b+$/,"");var x=ce(e,d),b=ce(l,p.length?tt(p).length-f:0);return h.length>1||h[0]||he(x,b)?(us(i.doc,h,x,b,"+input"),!0):void 0},il.prototype.ensurePolled=function(){this.forceCompositionEnd()},il.prototype.reset=function(){this.forceCompositionEnd()},il.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},il.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},il.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Dr(this.cm,function(){return Hi(t.cm)})},il.prototype.setUneditable=function(t){t.contentEditable="false"},il.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Gr(this.cm,Qa)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},il.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},il.prototype.onContextMenu=function(){},il.prototype.resetPosition=function(){},il.prototype.needsContentAttribute=!0;var cl=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null,this.resetting=!1};function hl(t,e){if((e=e?H(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=M(j(t));e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function i(){t.value=a.getValue()}var r;if(t.form&&(Et(t.form,"submit",i),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var s=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=s}}catch(t){}}e.finishInit=function(n){n.save=i,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,i(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(xt(t.form,"submit",i),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=r))}},t.style.display="none";var a=Ha(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return a}function pl(t){t.off=xt,t.on=Et,t.wheelEventPixels=ao,t.Doc=Ns,t.splitLines=jt,t.countColumn=q,t.findColumn=$,t.isWordChar=st,t.Pass=Z,t.signal=bt,t.Line=fn,t.changeEnd=fo,t.scrollbarModel=Ar,t.Pos=ce,t.cmpPos=he,t.modes=zt,t.mimeModes=Vt,t.resolveMode=Qt,t.getMode=Xt,t.modeExtensions=Yt,t.extendMode=$t,t.copyState=Kt,t.startState=te,t.innerMode=Jt,t.commands=na,t.keyMap=qs,t.keyName=Xs,t.isModifierKey=Zs,t.lookupKey=Ws,t.normalizeKeyMap=Vs,t.StringStream=ee,t.SharedTextMarker=bs,t.TextMarker=_s,t.LineWidget=ms,t.e_preventDefault=Ct,t.e_stopPropagation=Nt,t.e_stop=wt,t.addClass=O,t.contains=P,t.rmClass=C,t.keyNames=js}cl.prototype.init=function(t){var e=this,n=this,i=this.cm;this.createField(t);var r=this.textarea;function o(t){if(!Tt(i,t)){if(i.somethingSelected())Za({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var e=$a(i);Za({lineWise:!0,text:e.text}),"cut"==t.type?i.setSelections(e.ranges,null,Q):(n.prevInput="",r.value=e.text.join("\n"),D(r))}"cut"==t.type&&(i.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(r.style.width="0px"),Et(r,"input",function(){s&&a>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()}),Et(r,"paste",function(t){Tt(i,t)||Xa(t,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())}),Et(r,"cut",o),Et(r,"copy",o),Et(t.scroller,"paste",function(e){if(!Xn(t,e)&&!Tt(i,e)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,r.dispatchEvent(o)}}),Et(t.lineSpace,"selectstart",function(e){Xn(t,e)||Ct(e)}),Et(r,"compositionstart",function(){var t=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:i.markText(t,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Et(r,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},cl.prototype.createField=function(t){this.wrapper=Ja(),this.textarea=this.wrapper.firstChild;var e=this.cm.options;Ka(this.textarea,e.spellcheck,e.autocorrect,e.autocapitalize)},cl.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},cl.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=Xi(t);if(t.options.moveInputWithCursor){var r=Si(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+s.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+s.left-o.left))}return i},cl.prototype.showSelection=function(t){var e=this.cm.display;I(e.cursorDiv,t.cursors),I(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},cl.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var e=this.cm;if(this.resetting=!0,e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&D(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null));this.resetting=!1}},cl.prototype.getField=function(){return this.textarea},cl.prototype.supportsTouch=function(){return!1},cl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||M(j(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(t){}},cl.prototype.blur=function(){this.textarea.blur()},cl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cl.prototype.receivedFocus=function(){this.slowPoll()},cl.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},cl.prototype.fastPoll=function(){var t=!1,e=this;function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}e.pollingFast=!0,e.polling.set(20,n)},cl.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!e.state.focused||Ft(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===r||E&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(i.length,r.length);l<u&&i.charCodeAt(l)==r.charCodeAt(l);)++l;return Dr(e,function(){Qa(e,r.slice(l),i.length-l,null,t.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},cl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cl.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},cl.prototype.onContextMenu=function(t){var e=this,n=e.cm,i=n.display,r=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=Fi(n,t),u=i.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Gr(n,Zo)(n.doc,po(o),Q);var c,h=r.style.cssText,d=e.wrapper.style.cssText,f=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-f.top-5)+"px; left: "+(t.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=r.ownerDocument.defaultView.scrollY),i.input.focus(),l&&r.ownerDocument.defaultView.scrollTo(null,c),i.input.reset(),n.somethingSelected()||(r.value=e.prevInput=" "),e.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),s&&a>=9&&m(),S){wt(t);var g=function(){xt(window,"mouseup",g),setTimeout(v,20)};Et(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=r.selectionStart){var t=n.somethingSelected(),o=""+(t?r.value:"");r.value="⇚",r.value=o,e.prevInput=t?"":"",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,r.style.cssText=h,s&&a<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=r.selectionStart)){(!s||s&&a<9)&&m();var t=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&""==e.prevInput?Gr(n,es)(n):t++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},cl.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},cl.prototype.setUneditable=function(){},cl.prototype.needsContentAttribute=!1,ja(Ha),tl(Ha);var dl="iter insert remove copy getEditor constructor".split(" ");for(var fl in Ns.prototype)Ns.prototype.hasOwnProperty(fl)&&V(dl,fl)<0&&(Ha.prototype[fl]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ns.prototype[fl]));return Lt(Ns),Ha.inputStyles={textarea:cl,contenteditable:il},Ha.defineMode=function(t){Ha.defaults.mode||"null"==t||(Ha.defaults.mode=t),Wt.apply(this,arguments)},Ha.defineMIME=Zt,Ha.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Ha.defineMIME("text/plain","null"),Ha.defineExtension=function(t,e){Ha.prototype[t]=e},Ha.defineDocExtension=function(t,e){Ns.prototype[t]=e},Ha.fromTextArea=hl,pl(Ha),Ha.version="5.65.20",Ha}()},1779:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}},1850:(t,e,n)=>{var i=n(7589).Global;function r(){return i.sessionStorage}function o(t){return r().getItem(t)}t.exports={name:"sessionStorage",read:o,write:function(t,e){return r().setItem(t,e)},each:function(t){for(var e=r().length-1;e>=0;e--){var n=r().key(e);t(o(n),n)}},remove:function(t){return r().removeItem(t)},clearAll:function(){return r().clear()}}},1907:(t,e,n)=>{var i=n(8696),r=n(6918);t.exports=function t(e,n){function o(t,r,s,a){try{var l=e[t](r),u=l.value;return u instanceof i?n.resolve(u.v).then(function(t){o("next",t,s,a)},function(t){o("throw",t,s,a)}):n.resolve(u).then(function(t){l.value=t,s(l)},function(t){return o("throw",t,s,a)})}catch(t){a(t)}}var s;this.next||(r(t.prototype),r(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(t,e,i){function r(){return new n(function(e,n){o(t,i,e,n)})}return s=s?s.then(r,r):r()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},2020:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}},2078:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(2977),r=n(8214);const o=function(t){return(0,r.A)(t)&&"[object Arguments]"==(0,i.A)(t)};var s=Object.prototype,a=s.hasOwnProperty,l=s.propertyIsEnumerable;const u=o(function(){return arguments}())?o:function(t){return(0,r.A)(t)&&a.call(t,"callee")&&!l.call(t,"callee")}},2144:(t,e,n)=>{"use strict";n.r(e)},2276:(t,e,n)=>{"use strict";n.r(e)},2313:(t,e,n)=>{"use strict";const i=n(2504),r=n(9029),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=l,e.IS=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return u(t,e,n)}function u(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|g(t,e);let i=a(n);const r=i.write(t,e);r!==n&&(i=i.slice(0,r));return i}(t,e);if(ArrayBuffer.isView(t))return function(t){if(X(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(X(t,ArrayBuffer)||t&&X(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(X(t,SharedArrayBuffer)||t&&X(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return l.from(i,e,n);const r=function(t){if(l.isBuffer(t)){const e=0|f(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||Y(t.length)?a(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(t.data)}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return c(t),a(t<0?0:0|f(t))}function p(t){const e=t.length<0?0:0|f(t.length),n=a(e);for(let i=0;i<e;i+=1)n[i]=255&t[i];return n}function d(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let i;return i=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(i,l.prototype),i}function f(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||X(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(t).length;default:if(r)return i?-1:W(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return w(this,e,n);case"utf8":case"utf-8":return L(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return I(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function v(t,e,n){const i=t[e];t[e]=t[n],t[n]=i}function y(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:E(t,e,n,i,r);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):E(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function E(t,e,n,i,r){let o,s=1,a=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){let i=-1;for(o=n;o<a;o++)if(u(t,o)===u(e,-1===i?0:o-i)){if(-1===i&&(i=o),o-i+1===l)return i*s}else-1!==i&&(o-=o-i),i=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){let n=!0;for(let i=0;i<l;i++)if(u(t,o+i)!==u(e,i)){n=!1;break}if(n)return o}return-1}function _(t,e,n,i){n=Number(n)||0;const r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;const o=e.length;let s;for(i>o/2&&(i=o/2),s=0;s<i;++s){const i=parseInt(e.substr(2*s,2),16);if(Y(i))return s;t[n+s]=i}return s}function x(t,e,n,i){return Q(W(e,t.length-n),t,n,i)}function b(t,e,n,i){return Q(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function T(t,e,n,i){return Q(Z(e),t,n,i)}function S(t,e,n,i){return Q(function(t,e){let n,i,r;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function A(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function L(t,e,n){n=Math.min(t.length,n);const i=[];let r=e;for(;r<n;){const e=t[r];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(r+s<=n){let n,i,a,l;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[r+1],128==(192&n)&&(l=(31&e)<<6|63&n,l>127&&(o=l));break;case 3:n=t[r+1],i=t[r+2],128==(192&n)&&128==(192&i)&&(l=(15&e)<<12|(63&n)<<6|63&i,l>2047&&(l<55296||l>57343)&&(o=l));break;case 4:n=t[r+1],i=t[r+2],a=t[r+3],128==(192&n)&&128==(192&i)&&128==(192&a)&&(l=(15&e)<<18|(63&n)<<12|(63&i)<<6|63&a,l>65535&&l<1114112&&(o=l))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,i.push(o>>>10&1023|55296),o=56320|1023&o),i.push(o),r+=s}return function(t){const e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);let n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=C));return n}(i)}l.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,n){return u(t,e,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,n){return function(t,e,n){return c(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},l.allocUnsafe=function(t){return h(t)},l.allocUnsafeSlow=function(t){return h(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(X(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),X(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,i=e.length;for(let r=0,o=Math.min(n,i);r<o;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const i=l.allocUnsafe(e);let r=0;for(n=0;n<t.length;++n){let e=t[n];if(X(e,Uint8Array))r+e.length>i.length?(l.isBuffer(e)||(e=l.from(e)),e.copy(i,r)):Uint8Array.prototype.set.call(i,e,r);else{if(!l.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(i,r)}r+=e.length}return i},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)v(this,e,e+1);return this},l.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},l.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},l.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?L(this,0,t):m.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){let t="";const n=e.IS;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(t,e,n,i,r){if(X(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(o,s),u=this.slice(i,r),c=t.slice(e,n);for(let t=0;t<a;++t)if(u[t]!==c[t]){o=u[t],s=c[t];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},l.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":case"latin1":case"binary":return b(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function N(t,e,n){let i="";n=Math.min(t.length,n);for(let r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function I(t,e,n){let i="";n=Math.min(t.length,n);for(let r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function w(t,e,n){const i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);let r="";for(let i=e;i<n;++i)r+=$[t[i]];return r}function R(t,e,n){const i=t.slice(e,n);let r="";for(let t=0;t<i.length-1;t+=2)r+=String.fromCharCode(i[t]+256*i[t+1]);return r}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function M(t,e,n,i,r,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function O(t,e,n,i,r){H(e,i,r,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function k(t,e,n,i,r){H(e,i,r,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function D(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(t,e,n,i,o){return e=+e,n>>>=0,o||D(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function B(t,e,n,i,o){return e=+e,n>>>=0,o||D(t,0,n,8),r.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const i=this.subarray(t,e);return Object.setPrototypeOf(i,l.prototype),i},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let i=this[t],r=1,o=0;for(;++o<e&&(r*=256);)i+=this[t+o]*r;return i},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let i=this[t+--e],r=1;for(;e>0&&(r*=256);)i+=this[t+--e]*r;return i},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=K(function(t){q(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,r=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(i)+(BigInt(r)<<BigInt(32))}),l.prototype.readBigUInt64BE=K(function(t){q(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],r=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(i)<<BigInt(32))+BigInt(r)}),l.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let i=this[t],r=1,o=0;for(;++o<e&&(r*=256);)i+=this[t+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||P(t,e,this.length);let i=e,r=1,o=this[t+--i];for(;i>0&&(r*=256);)o+=this[t+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=K(function(t){q(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const i=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),l.prototype.readBigInt64BE=K(function(t){q(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)}),l.prototype.readFloatLE=function(t,e){return t>>>=0,e||P(t,4,this.length),r.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),r.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),r.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),r.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e>>>=0,n>>>=0,!i){M(this,t,e,n,Math.pow(2,8*n)-1,0)}let r=1,o=0;for(this[e]=255&t;++o<n&&(r*=256);)this[e+o]=t/r&255;return e+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,n,i){if(t=+t,e>>>=0,n>>>=0,!i){M(this,t,e,n,Math.pow(2,8*n)-1,0)}let r=n-1,o=1;for(this[e+r]=255&t;--r>=0&&(o*=256);)this[e+r]=t/o&255;return e+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigUInt64LE=K(function(t,e=0){return O(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=K(function(t,e=0){return k(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*n-1);M(this,t,e,n,i-1,-i)}let r=0,o=1,s=0;for(this[e]=255&t;++r<n&&(o*=256);)t<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(t/o|0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e>>>=0,!i){const i=Math.pow(2,8*n-1);M(this,t,e,n,i-1,-i)}let r=n-1,o=1,s=0;for(this[e+r]=255&t;--r>=0&&(o*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/o|0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||M(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigInt64LE=K(function(t,e=0){return O(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=K(function(t,e=0){return k(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(t,e,n){return G(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return G(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);const r=i-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),e),r},l.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===t.length){const e=t.charCodeAt(0);("utf8"===i&&e<128||"latin1"===i)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let r;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r<n;++r)this[r]=t;else{const o=l.isBuffer(t)?t:l.from(t,i),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(r=0;r<n-e;++r)this[r+e]=o[r%s]}return this};const j={};function F(t,e,n){j[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function U(t){let e="",n=t.length;const i="-"===t[0]?1:0;for(;n>=i+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function H(t,e,n,i,r,o){if(t>n||t<e){const i="bigint"==typeof e?"n":"";let r;throw r=o>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${8*(o+1)}${i}`:`>= -(2${i} ** ${8*(o+1)-1}${i}) and < 2 ** ${8*(o+1)-1}${i}`:`>= ${e}${i} and <= ${n}${i}`,new j.ERR_OUT_OF_RANGE("value",r,t)}!function(t,e,n){q(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||z(e,t.length-(n+1))}(i,r,o)}function q(t,e){if("number"!=typeof t)throw new j.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,n){if(Math.floor(t)!==t)throw q(t,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),F("ERR_OUT_OF_RANGE",function(t,e,n){let i=`The value of "${t}" is out of range.`,r=n;return Number.isInteger(n)&&Math.abs(n)>2**32?r=U(String(n)):"bigint"==typeof n&&(r=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(r=U(r)),r+="n"),i+=` It must be ${e}. Received ${r}`,i},RangeError);const V=/[^+/0-9A-Za-z-_]/g;function W(t,e){let n;e=e||1/0;const i=t.length;let r=null;const o=[];for(let s=0;s<i;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(t){return i.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Q(t,e,n,i){let r;for(r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}function X(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}const $=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const i=16*n;for(let r=0;r<16;++r)e[i+r]=t[n]+t[r]}return e}();function K(t){return"undefined"==typeof BigInt?J:t}function J(){throw new Error("BigInt not supported")}},2357:(t,e,n)=>{"use strict";n.r(e)},2448:(t,e,n)=>{!function(t){"use strict";t.defineOption("foldGutter",!1,function(e,r,o){o&&o!=t.Init&&(e.clearGutter(e.state.foldGutter.options.gutter),e.state.foldGutter=null,e.off("gutterClick",u),e.off("changes",h),e.off("viewportChange",p),e.off("fold",d),e.off("unfold",d),e.off("swapDoc",h),e.off("optionChange",c)),r&&(e.state.foldGutter=new n(i(r)),l(e),e.on("gutterClick",u),e.on("changes",h),e.on("viewportChange",p),e.on("fold",d),e.on("unfold",d),e.on("swapDoc",h),e.on("optionChange",c))});var e=t.Pos;function n(t){this.options=t,this.from=this.to=0}function i(t){return!0===t&&(t={}),null==t.gutter&&(t.gutter="CodeMirror-foldgutter"),null==t.indicatorOpen&&(t.indicatorOpen="CodeMirror-foldgutter-open"),null==t.indicatorFolded&&(t.indicatorFolded="CodeMirror-foldgutter-folded"),t}function r(t,n){for(var i=t.findMarks(e(n,0),e(n+1,0)),r=0;r<i.length;++r)if(i[r].__isFold){var o=i[r].find(-1);if(o&&o.line===n)return i[r]}}function o(t){if("string"==typeof t){var e=document.createElement("div");return e.className=t+" CodeMirror-guttermarker-subtle",e}return t.cloneNode(!0)}function s(t,n,i){var s=t.state.foldGutter.options,l=n-1,u=t.foldOption(s,"minFoldSize"),c=t.foldOption(s,"rangeFinder"),h="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),p="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);t.eachLine(n,i,function(n){++l;var i=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(t,l)){if(h&&a&&h.test(a.className))return;i=o(s.indicatorFolded)}else{var d=e(l,0),f=c&&c(t,d);if(f&&f.to.line-f.from.line>=u){if(p&&a&&p.test(a.className))return;i=o(s.indicatorOpen)}}(i||a)&&t.setGutterMarker(n,s.gutter,i)})}function a(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function l(t){var e=t.getViewport(),n=t.state.foldGutter;n&&(t.operation(function(){s(t,e.from,e.to)}),n.from=e.from,n.to=e.to)}function u(t,n,i){var o=t.state.foldGutter;if(o){var s=o.options;if(i==s.gutter){var a=r(t,n);a?a.clear():t.foldCode(e(n,0),s)}}}function c(t,e){"mode"==e&&h(t)}function h(t){var e=t.state.foldGutter;if(e){var n=e.options;e.from=e.to=0,clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout(function(){l(t)},n.foldOnChangeTimeSpan||600)}}function p(t){var e=t.state.foldGutter;if(e){var n=e.options;clearTimeout(e.changeUpdate),e.changeUpdate=setTimeout(function(){var n=t.getViewport();e.from==e.to||n.from-e.to>20||e.from-n.to>20?l(t):t.operation(function(){n.from<e.from&&(s(t,n.from,e.from),e.from=n.from),n.to>e.to&&(s(t,e.to,n.to),e.to=n.to)})},n.updateViewportTimeSpan||400)}}function d(t,e){var n=t.state.foldGutter;if(n){var i=e.line;i>=n.from&&i<n.to&&s(t,i,i+1)}}}(n(1719),n(9754))},2504:(t,e)=>{"use strict";e.byteLength=function(t){var e=a(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,o=a(t),s=o[0],l=o[1],u=new r(function(t,e,n){return 3*(e+n)/4-n}(0,s,l)),c=0,h=l>0?s-4:s;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===l&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===l&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,o=[],s=16383,a=0,l=i-r;a<l;a+=s)o.push(u(t,a,a+s>l?l:a+s));1===r?(e=t[i-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===r&&(e=(t[i-2]<<8)+t[i-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function u(t,e,n){for(var i,r=[],o=e;o<n;o+=3)i=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),r.push(l(i));return r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2700:(t,e,n)=>{"use strict";n.r(e)},2829:t=>{"use strict";t.exports=function(t,e){for(var n={},i=Object.keys(t),r=Array.isArray(e),o=0;o<i.length;o++){var s=i[o],a=t[s];(r?-1!==e.indexOf(s):e(s,a,t))&&(n[s]=a)}return n}},2928:(t,e,n)=>{"use strict";function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=n(7781),u=n(160),c=n(8723),h=n(2829);function p(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function d(t,e){return e.encode?e.strict?l(t):encodeURIComponent(t):t}function f(t,e){return e.decode?u(t):t}function g(t){return Array.isArray(t)?t.sort():"object"===r(t)?g(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}function m(t){var e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function v(t){var e=(t=m(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function y(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function E(t,e){p((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);var n=function(t){var e;switch(t.arrayFormat){case"index":return function(t,n,i){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===i[t]&&(i[t]={}),i[t][e[1]]=n):i[t]=n};case"bracket":return function(t,n,i){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==i[t]?i[t]=[].concat(i[t],n):i[t]=[n]:i[t]=n};case"comma":case"separator":return function(e,n,i){var r="string"==typeof n&&n.includes(t.arrayFormatSeparator),o="string"==typeof n&&!r&&f(n,t).includes(t.arrayFormatSeparator);n=o?f(n,t):n;var s=r||o?n.split(t.arrayFormatSeparator).map(function(e){return f(e,t)}):null===n?n:f(n,t);i[e]=s};default:return function(t,e,n){void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e),o=Object.create(null);if("string"!=typeof t)return o;if(!(t=t.trim().replace(/^[?#&]/,"")))return o;var a,l=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}(t.split("&"));try{for(l.s();!(a=l.n()).done;){var u=a.value;if(""!==u){var h=i(c(e.decode?u.replace(/\+/g," "):u,"="),2),d=h[0],m=h[1];m=void 0===m?null:["comma","separator"].includes(e.arrayFormat)?m:f(m,e),n(f(d,e),m,o)}}}catch(t){l.e(t)}finally{l.f()}for(var v=0,E=Object.keys(o);v<E.length;v++){var _=E[v],x=o[_];if("object"===r(x)&&null!==x)for(var b=0,T=Object.keys(x);b<T.length;b++){var S=T[b];x[S]=y(x[S],e)}else o[_]=y(x,e)}return!1===e.sort?o:(!0===e.sort?Object.keys(o).sort():Object.keys(o).sort(e.sort)).reduce(function(t,e){var n=o[e];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?t[e]=g(n):t[e]=n,t},Object.create(null))}e.extract=v,e.parse=E,e.stringify=function(t,e){if(!t)return"";p((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);for(var n=function(n){return e.skipNull&&null==t[n]||e.skipEmptyString&&""===t[n]},i=function(t){switch(t.arrayFormat){case"index":return function(e){return function(n,i){var r=n.length;return void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:[].concat(o(n),null===i?[[d(e,t),"[",r,"]"].join("")]:[[d(e,t),"[",d(r,t),"]=",d(i,t)].join("")])}};case"bracket":return function(e){return function(n,i){return void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:[].concat(o(n),null===i?[[d(e,t),"[]"].join("")]:[[d(e,t),"[]=",d(i,t)].join("")])}};case"comma":case"separator":return function(e){return function(n,i){return null==i||0===i.length?n:0===n.length?[[d(e,t),"=",d(i,t)].join("")]:[[n,d(i,t)].join(t.arrayFormatSeparator)]}};default:return function(e){return function(n,i){return void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?n:[].concat(o(n),null===i?[d(e,t)]:[[d(e,t),"=",d(i,t)].join("")])}}}}(e),r={},s=0,a=Object.keys(t);s<a.length;s++){var l=a[s];n(l)||(r[l]=t[l])}var u=Object.keys(r);return!1!==e.sort&&u.sort(e.sort),u.map(function(n){var r=t[n];return void 0===r?"":null===r?d(n,e):Array.isArray(r)?r.reduce(i(n),[]).join("&"):d(n,e)+"="+d(r,e)}).filter(function(t){return t.length>0}).join("&")},e.parseUrl=function(t,e){e=Object.assign({decode:!0},e);var n=i(c(t,"#"),2),r=n[0],o=n[1];return Object.assign({url:r.split("?")[0]||"",query:E(v(t),e)},e&&e.parseFragmentIdentifier&&o?{fragmentIdentifier:f(o,e)}:{})},e.stringifyUrl=function(t,n){n=Object.assign({encode:!0,strict:!0},n);var i=m(t.url).split("?")[0]||"",r=e.extract(t.url),o=e.parse(r,{sort:!1}),s=Object.assign(o,t.query),a=e.stringify(s,n);a&&(a="?".concat(a));var l=function(t){var e="",n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url);return t.fragmentIdentifier&&(l="#".concat(d(t.fragmentIdentifier,n))),"".concat(i).concat(a).concat(l)},e.pick=function(t,n,i){i=Object.assign({parseFragmentIdentifier:!0},i);var r=e.parseUrl(t,i),o=r.url,s=r.query,a=r.fragmentIdentifier;return e.stringifyUrl({url:o,query:h(s,n),fragmentIdentifier:a},i)},e.exclude=function(t,n,i){var r=Array.isArray(n)?function(t){return!n.includes(t)}:function(t,e){return!n(t,e)};return e.pick(t,r,i)}},2965:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(7181),r=n(8272),o=n(8285),s=n(8086),a=i.A?i.A.prototype:void 0,l=a?a.toString:void 0;const u=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,r.A)(e,t)+"";if((0,s.A)(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const c=function(t){return null==t?"":u(t)}},2977:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(7181),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i.A?i.A.toStringTag:void 0;const l=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(t){}var r=s.call(t);return i&&(e?t[a]=n:delete t[a]),r};var u=Object.prototype.toString;const c=function(t){return u.call(t)};var h=i.A?i.A.toStringTag:void 0;const p=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?l(t):c(t)}},2980:function(t){var e;e=function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function e(t){return t.innerHTML=""}function n(t,n,i,o,a,l){o({event:t,query:n instanceof HTMLInputElement?n.value:n.innerHTML,matches:a.matches,results:a.list.map(function(t){return t.value}),selection:a.list.find(function(e){return t.keyCode===s?e.index===Number(l.getAttribute(r)):"mousedown"===t.type?e.index===Number(t.currentTarget.getAttribute(r)):void 0})}),e(i)}function i(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}var r="data-id",o="autoComplete_selected",s=13,a=function(t){return"string"==typeof t?document.querySelector(t):t()},l=function(t){var e=document.createElement(t.element);return e.setAttribute("id","autoComplete_list"),t.container&&t.container(e),t.destination.insertAdjacentElement(t.position,e),e},u=function(t){return"<span class=".concat("autoComplete_highlighted",">").concat(t,"</span>")},c=function(t,e,n){var i=document.createDocumentFragment();e.forEach(function(t,o){var s=document.createElement(n.element),a=e[o].index;s.setAttribute(r,a),s.setAttribute("class","autoComplete_result"),n.content?n.content(t,s):s.innerHTML=t.match||t,i.appendChild(s)}),t.appendChild(i)},h=e;i.prototype=window.Event.prototype;var p={CustomEventWrapper:"function"==typeof window.CustomEvent&&window.CustomEvent||i,initElementClosestPolyfill:function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null})}};return function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t.selector,i=void 0===n?"#autoComplete":n,r=t.data,o=r.key,s=r.src,u=r.cache,c=void 0===u||u,h=t.query,p=t.trigger,d=(p=void 0===p?{}:p).event,f=void 0===d?["input"]:d,g=p.condition,m=void 0!==g&&g,v=t.searchEngine,y=void 0===v?"strict":v,E=t.threshold,_=void 0===E?0:E,x=t.debounce,b=void 0===x?0:x,T=t.resultsList,S=(T=void 0===T?{}:T).render,A=void 0!==S&&S,L=T.container,C=void 0!==L&&L,N=T.destination,I=T.position,w=void 0===I?"afterend":I,R=T.element,P=void 0===R?"ul":R,M=T.navigation,O=void 0!==M&&M,k=t.sort,D=void 0!==k&&k,G=t.placeHolder,B=t.maxResults,j=void 0===B?5:B,F=t.resultItem,U=(F=void 0===F?{}:F).content,H=void 0!==U&&U,q=F.element,z=void 0===q?"li":q,V=t.noResults,W=t.highlight,Z=void 0!==W&&W,Q=t.onSelection,X=A?l({container:C,destination:N||a(i),position:w,element:P}):null;this.selector=i,this.data={src:function(){return"function"==typeof s?s():s},key:o,cache:c},this.query=h,this.trigger={event:f,condition:m},this.searchEngine="loose"===y?"loose":"function"==typeof y?y:"strict",this.threshold=_,this.debounce=b,this.resultsList={render:A,view:X,navigation:O},this.sort=D,this.placeHolder=G,this.maxResults=j,this.resultItem={content:H,element:z},this.noResults=V,this.highlight=Z,this.onSelection=Q,this.init()}return function(e,n){n&&t(e.prototype,n)}(e,[{key:"search",value:function(t,e){var n=e.toLowerCase();if("loose"===this.searchEngine){t=t.replace(/ /g,"");for(var i=[],r=0,o=0;o<n.length;o++){var s=e[o];r<t.length&&n[o]===t[r]&&(s=this.highlight?u(s):s,r++),i.push(s)}return r===t.length&&i.join("")}if(n.includes(t))return t=new RegExp("".concat(t),"i").exec(e),this.highlight?e.replace(t,u(t)):e}},{key:"listMatchedResults",value:function(t){var e=this;return new Promise(function(n){var i=[];t.filter(function(t,n){function r(r){var o=r?t[r]:t;if(o){var s="function"==typeof e.searchEngine?e.searchEngine(e.queryValue,o):e.search(e.queryValue,o);s&&r?i.push({key:r,index:n,match:s,value:t}):s&&!r&&i.push({index:n,match:s,value:t})}}if(e.data.key){var o=!0,s=!1,a=void 0;try{for(var l,u=e.data.key[Symbol.iterator]();!(o=(l=u.next()).done);o=!0)r(l.value)}catch(r){s=!0,a=r}finally{try{o||null==u.return||u.return()}finally{if(s)throw a}}}else r()});var r=e.sort?i.sort(e.sort).slice(0,e.maxResults):i.slice(0,e.maxResults);return n({matches:i.length,list:r})})}},{key:"ignite",value:function(){var t=this,e=a(this.selector);function i(i){Promise.resolve(t.data.cache?t.dataStream:t.data.src()).then(function(r){t.dataStream=r,function(i){function r(t,n){e.dispatchEvent(new p.CustomEventWrapper("autoComplete",{bubbles:!0,detail:{event:t,input:a,query:l,matches:n?n.matches:null,results:n?n.list:null},cancelable:!0}))}var a=e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e.value.toLowerCase():e.innerHTML.toLowerCase(),l=t.queryValue=t.query&&t.query.manipulate?t.query.manipulate(a):a,u=t.resultsList.render,d=t.trigger.condition?t.trigger.condition(l):l.length>t.threshold&&l.replace(/ /g,"").length;if(u){var f=t.resultsList.view;h(f),d?t.listMatchedResults(t.dataStream,i).then(function(a){r(i,a),t.resultsList.render&&(0===a.list.length&&t.noResults?t.noResults():(c(f,a.list,t.resultItem),t.onSelection&&(t.resultsList.navigation?t.resultsList.navigation(i,e,f,t.onSelection,a):function(t,e,i,r){function a(t){p.classList.remove(o),u=1===t?p.nextSibling:p.previousSibling}function l(t){(p=t).classList.add(o)}var u,c=e.childNodes,h=c.length-1,p=void 0;t.onkeydown=function(o){if(0<c.length)switch(o.keyCode){case 38:p?(a(0),l(u||c[h])):l(c[h]);break;case 40:p?(a(1),l(u||c[0])):l(c[0]);break;case s:p&&n(o,t,e,i,r,p)}},c.forEach(function(o){o.onmousedown=function(o){return n(o,t,e,i,r)}})}(e,f,t.onSelection,a))))}):r(i)}else!u&&d&&t.listMatchedResults(t.dataStream,i).then(function(t){r(i,t)})}(i)})}this.placeHolder&&e.setAttribute("placeholder",this.placeHolder),this.trigger.event.forEach(function(n){e.addEventListener(n,function(t,e){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){return t.apply(i,r)},e)}}(function(t){return i(t)},t.debounce))})}},{key:"init",value:function(){var t=this;this.data.cache?Promise.resolve(this.data.src()).then(function(e){t.dataStream=e,t.ignite()}):this.ignite(),p.initElementClosestPolyfill()}}]),e}()},t.exports=e()},2984:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t){return function(e,n,i){for(var r=-1,o=Object(e),s=i(e),a=s.length;a--;){var l=s[t?a:++r];if(!1===n(o[l],l,o))break}return e}}()},2990:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},3001:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(4603);const r=(0,n(5067).A)(Object.keys,Object);var o=Object.prototype.hasOwnProperty;const s=function(t){if(!(0,i.A)(t))return r(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},3074:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(3653),r=n(7242);const o=function(t,e){return function(n,i){if(null==n)return n;if(!(0,r.A)(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}(i.A)},3111:(t,e,n)=>{"use strict";n.d(e,{wc:()=>a,iQ:()=>p,uZ:()=>c,Mg:()=>u,_A:()=>f,nB:()=>h,vy:()=>d});var i=n(9418),r=n(9121),o=n(4758),s=n(5043),a=function(){return(0,o.A)(function t(e){(0,r.A)(this,t),this.namespace=e},[{key:"set",value:function(t,e,n,i){if(s.enabled&&(this.removeExpiredKeys(),t&&void 0!==e)){e.documentElement&&(e=(new XMLSerializer).serializeToString(e.documentElement));try{s.set(t,{namespace:this.namespace,val:e,exp:n,time:(new Date).getTime()/1e3})}catch(t){if(t instanceof Error){var r=t;if(r.quotaExceeded=function(t){var e=!1;if(t)if(t.code)switch(t.code){case 22:e=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===t.name&&(e=!0)}else-2147024882===t.number&&(e=!0);return e}(t),!r.quotaExceeded||!i)throw r;i(t)}throw t}}}},{key:"remove",value:function(t){s.enabled&&t&&s.remove(t)}},{key:"removeExpiredKeys",value:function(){var t=this;s.enabled&&s.each(function(e,n){e&&e.exp&&(new Date).getTime()/1e3-e.time>e.exp&&t.remove(n)})}},{key:"removeAll",value:function(){s.enabled}},{key:"removeNamespace",value:function(){var t=this;s.each(function(e,n){e.namespace&&e.namespace===t.namespace&&t.remove(n)})}},{key:"get",value:function(t){if(s.enabled&&t&&(this.removeExpiredKeys(),t)){var e=s.get(t);if(!e)return;return e.val}}}])}();var l=i.A.sanitize;function u(t){if(t&&0==t.trim().indexOf("<svg")){var e=(new DOMParser).parseFromString(t,"text/xml").documentElement;e.setAttribute("aria-hidden","true");var n=document.createElement("div");return n.className="svgImg",n.appendChild(e),n}throw new Error("No svg string given. Cannot draw")}function c(t){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.concat(t.width," ").concat(t.height,'" aria-hidden="true"><path fill="currentColor" d="').concat(t.svgPathData,'"></path></svg>')}function h(t,e){if(t)return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function p(t){if(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var s=o[r];t.classList?t.classList.add(s):h(t,s)||(t.className+=" "+s)}}}function d(t,e){if(t)if(t.classList)t.classList.remove(e);else if(h(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}function f(t,e){return"function"==typeof t?t(e):"string"==typeof t?l(t):t}},3142:(t,e,n)=>{"use strict";n.d(e,{default:()=>St});var i={};n.r(i),n.d(i,{executeQuery:()=>I,getAcceptHeader:()=>R,getAjaxConfig:()=>N,getAsCurlString:()=>P,getUrlArguments:()=>w});var r=n(9121),o=n(4758),s=n(365),a=n(8782),l=n(9604),u=n(1719),c=n.n(u);function h(t,e,n){return n||(n=t.getDoc().getCursor()),e||(e=t.getTokenAt(n)),d(t,p(t,e,n),n)}function p(t,e,n){var i=t.getTokenAt({line:n.line,ch:e.start});return"punc"!==e.type&&"error"!==e.type||e.state.possibleFullIri||e.state.inPrefixDecl?"punc"!==i.type||i.state.possibleFullIri||i.state.inPrefixDecl?null!=i.type&&"ws"!=i.type&&null!=e.type&&"ws"!=e.type?(e.start=i.start,e.string=i.string+e.string,p(t,e,{line:n.line,ch:i.start})):null!=e.type&&"ws"==e.type?(e.start=e.start+1,e.string=e.string.substring(1),e):e:e:(e.state.possibleCurrent=e.state.possibleNext,e)}function d(t,e,n){if(e.string.indexOf(" ")>=0){var i=e.string.indexOf(" ");return e.string=e.string.substr(0,i),e.end=e.start+e.string.length,e}if(!e.type)return e;var r=t.getTokenAt({line:n.line,ch:e.end+1});return"ws"!==r.type&&e.state.possibleFullIri&&null!==e.type&&"ws"!==e.type&&r.end!==e.end?(e.end=r.end,e.string=e.string+r.string,d(t,e,{line:n.line,ch:r.end})):"ws"===e.type?(e.end=e.end+1,e.string=e.string.substring(e.string.length-1),e):e}function f(t,e,n){var i=t.getTokenAt({line:e,ch:n.start});return null!=i&&"ws"==i.type&&(i=f(t,e,i)),i}function g(t,e,n){null==n&&(n=1);var i=t.getTokenAt({line:e,ch:n});if(!(null==i||null==i||i.end<n))return"ws"==i.type?g(t,e,i.end+1):i}var m="PREFIX ";function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0;i||(i=t.getDoc().getLine(e));var r=(i=i.toUpperCase()).indexOf(m,n);if(r>=0&&"keyword"===t.getTokenTypeAt(c().Pos(e,r+1)))return r}function y(t,e){t.getDoc().replaceRange("PREFIX "+e+"\n",{line:0,ch:0}),t.collapsePrefixes(!1)}var E=n(3111),_=n(2928);function x(t,e,n){var i;e.onmouseover=function(){i||((i=document.createElement("div")).className="yasqe_tooltip"),i.style.display="block",i.innerHTML=n,e.appendChild(i)},e.onmouseout=function(){i&&(i.style.display="none"),i.innerHTML=n}}var b=n(232),T=n.n(b),S=n(9790),A=n(7440),L=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}l((i=i.apply(t,e||[])).next())})};function C(t,e){return(0,S.A)(e)?e(t):null!=e?e:{}}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,A.A)({},C(t,t.config.requestConfig),C(t,e));if(n.endpoint&&0!=n.endpoint.length){var i=t.getQueryMode(),r=(0,S.A)(n.endpoint)?n.endpoint(t):n.endpoint,o="update"==i?"POST":(0,S.A)(n.method)?n.method(t):n.method,s=(0,S.A)(n.headers)?n.headers(t):n.headers,a=(0,S.A)(n.withCredentials)?n.withCredentials(t):n.withCredentials;return{reqMethod:o,url:r,args:w(t,n),headers:s,accept:R(t,n),withCredentials:a}}}function I(t,e){return L(this,void 0,void 0,T().mark(function n(){var i,r,o,s,a,l,u,c,h,p,d,f,g,m,v,y,E,_,x,b,S,A;return T().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i=Date.now(),n.prev=1,t.emit("queryBefore",t,e),r=N(t,e)){n.next=2;break}return n.abrupt("return");case 2:o=new AbortController,(null==(s={method:r.reqMethod,headers:Object.assign({Accept:r.accept},r.headers||{}),credentials:r.withCredentials?"include":"same-origin",signal:o.signal})?void 0:s.headers)&&"POST"===r.reqMethod&&(s.headers["Content-Type"]="application/x-www-form-urlencoded"),a=new URLSearchParams,l=T().mark(function t(e){var n;return T().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=r.args[e],Array.isArray(n)?n.forEach(function(t){return a.append(e,t)}):a.append(e,n);case 1:case"end":return t.stop()}},t)}),f=T().keys(r.args);case 3:if((g=f()).done){n.next=5;break}return u=g.value,n.delegateYield(l(u),"t0",4);case 4:n.next=3;break;case 5:return"POST"===r.reqMethod?s.body=a.toString():(c=new URL(r.url),a.forEach(function(t,e){c.searchParams.append(e,t)}),r.url=c.toString()),h=new Request(r.url,s),t.emit("query",h,o),n.next=6,fetch(h);case 6:if((p=n.sent).ok){n.next=9;break}return m=Error,n.next=7,p.text();case 7:if(v=n.sent){n.next=8;break}v=p.statusText;case 8:throw new m(v);case 9:return y=p.ok,E=p.status,_=p.statusText,x=p.headers,b=p.type,n.next=10,p.text();case 10:return S=n.sent,d={ok:y,status:E,statusText:_,headers:x,type:b,content:S},t.emit("queryResponse",d,Date.now()-i),t.emit("queryResults",d.content,Date.now()-i),n.abrupt("return",d);case 11:throw n.prev=11,(A=n.catch(1))instanceof Error&&"Aborted"===A.message||t.emit("queryResponse",A,Date.now()-i),t.emit("error",A),A;case 12:case"end":return n.stop()}},n,null,[[1,11]])}))}function w(t,e){var n=t.getQueryMode(),i={},r=C(t,e),o=(0,S.A)(r.queryArgument)?r.queryArgument(t):r.queryArgument;o||(o=t.getQueryMode()),i[o]=r.adjustQueryBeforeRequest?r.adjustQueryBeforeRequest(t):t.getValue();var s=(0,S.A)(r.namedGraphs)?r.namedGraphs(t):r.namedGraphs;s&&s.length>0&&(i["query"===n?"named-graph-uri":"using-named-graph-uri "]=s);var a=(0,S.A)(r.defaultGraphs)?r.defaultGraphs(t):r.defaultGraphs;a&&a.length>0&&(i["query"==n?"default-graph-uri":"using-graph-uri "]=s);var l=(0,S.A)(r.args)?r.args(t):r.args;return l&&l.length>0&&(0,A.A)(i,l.reduce(function(t,e){return t[e.name]?t[e.name].push(e.value):t[e.name]=[e.value],t},{})),i}function R(t,e){var n=C(t,e),i=null;if("update"==t.getQueryMode())i=(0,S.A)(n.acceptHeaderUpdate)?n.acceptHeaderUpdate(t):n.acceptHeaderUpdate;else{var r=t.getQueryType();i="DESCRIBE"==r||"CONSTRUCT"==r?(0,S.A)(n.acceptHeaderGraph)?n.acceptHeaderGraph(t):n.acceptHeaderGraph:(0,S.A)(n.acceptHeaderSelect)?n.acceptHeaderSelect(t):n.acceptHeaderSelect}return i}function P(t,e){var n=N(t,C(t,e));if(!n)return"";var i=n.url;0!==n.url.indexOf("http")&&(i="".concat(window.location.protocol,"//").concat(window.location.host),0===n.url.indexOf("/")?i+=n.url:i+=window.location.pathname+n.url);var r=["curl"];for(var o in"GET"===n.reqMethod?(i+="?".concat(_.stringify(n.args)),r.push(i)):"POST"===n.reqMethod?(r.push(i),r.push("--data",_.stringify(n.args))):(console.warn("Unexpected request-method",n.reqMethod),r.push(i)),r.push("-X",n.reqMethod),n.headers)r.push("-H '".concat(o,": ").concat(n.headers[o],"'"));return r.join(" ")}var M='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',O=function(){function t(){(0,r.A)(this,t),this.words=0,this.prefixes=0,this.children={}}return(0,o.A)(t,[{key:"insert",value:function(e,n){if(0!=e.length){var i,r=this;void 0===n&&(n=0),n!==e.length?(r.prefixes++,i=e[n],void 0===r.children[i]&&(r.children[i]=new t),r.children[i].insert(e,n+1)):r.words++}}},{key:"remove",value:function(t,e){if(0!=t.length){var n,i=this;void 0===e&&(e=0),void 0!==i&&(e!==t.length?(i.prefixes--,n=t[e],i.children[n].remove(t,e+1)):i.words--)}}},{key:"update",value:function(t,e){0!=t.length&&0!=e.length&&(this.remove(t),this.insert(e))}},{key:"countWord",value:function(t,e){if(0==t.length)return 0;var n,i,r=0;return void 0===e&&(e=0),e===t.length?this.words:(n=t[e],void 0!==(i=this.children[n])&&(r=i.countWord(t,e+1)),r)}},{key:"countPrefix",value:function(t,e){if(0==t.length)return 0;var n,i=0;if(void 0===e&&(e=0),e===t.length)return this.prefixes;var r=t[e];return void 0!==(n=this.children[r])&&(i=n.countPrefix(t,e+1)),i}},{key:"find",value:function(t){return 0!=t.length&&this.countWord(t)>0}},{key:"getAllWords",value:function(t){var e,n,i=this,r=[];if(void 0===t&&(t=""),void 0===i)return[];for(e in i.words>0&&r.push(t),i.children)i.children.hasOwnProperty(e)&&(n=i.children[e],r=r.concat(n.getAllWords(t+e)));return r}},{key:"autoComplete",value:function(t,e){var n,i;return 0==t.length?void 0===e?this.getAllWords(t):[]:(void 0===e&&(e=0),n=t[e],void 0===(i=this.children[n])?[]:e===t.length-1?i.getAllWords(t):i.autoComplete(t,e+1))}}])}(),k=n(4785);const D=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};var G=n(4801);const B=function(t,e,n){return t&&t.length?(e=n||void 0===e?1:(0,G.A)(e),D(t,0,e<0?0:e)):[]};const j={name:"variables",isValidCompletionPosition:function(t){var e=t.getTokenAt(t.getDoc().getCursor());return!("ws"==e.type||!(e=t.getCompleteToken(e))||"?"!==e.string[0]&&"$"!==e.string[0])},get:function(t,e){if(!e||0==e.string.length)return[];for(var n={},i=[],r=t.getWrapperElement().querySelectorAll(".cm-atom"),o=0;o<r.length;o++){var s=r[o],a=s.innerHTML;if("?"===a[0]||"$"===a[0]){var l=s.nextSibling;if(l&&l.className&&l.className.indexOf("cm-atom")>=0&&(a+=l.innerText),n[a])continue;if(a.length<=1)continue;if(0!==a.indexOf(e.string))continue;if(a===e.string)continue;n[a]=!0,i.push(a)}}return i.sort()},bulk:!1,autoShow:!0};var F=n(4560),U=n(8272),H=n(6074),q=n(5955),z=n(3074),V=n(7242);const W=function(t,e){var n=-1,i=(0,V.A)(t)?Array(t.length):[];return(0,z.A)(t,function(t,r,o){i[++n]=e(t,r,o)}),i};const Z=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t};var Q=n(9161),X=n(8086);const Y=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,r=t==t,o=(0,X.A)(t),s=void 0!==e,a=null===e,l=e==e,u=(0,X.A)(e);if(!a&&!u&&!o&&t>e||o&&s&&l&&!a&&!u||i&&s&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&t<e||u&&n&&r&&!i&&!o||a&&n&&r||!s&&r||!l)return-1}return 0};const $=function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,s=r.length,a=n.length;++i<s;){var l=Y(r[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return t.index-e.index};var K=n(1100),J=n(8285);const tt=function(t,e,n){e=e.length?(0,U.A)(e,function(t){return(0,J.A)(t)?function(e){return(0,H.A)(e,1===t.length?t[0]:t)}:t}):[K.A];var i=-1;e=(0,U.A)(e,(0,Q.A)(q.A));var r=W(t,function(t,n,r){return{criteria:(0,U.A)(e,function(e){return e(t)}),index:++i,value:t}});return Z(r,function(t,e){return $(t,e,n)})};var et=n(5186),nt=n(6988);const it=(0,et.A)(function(t,e){if(null==t)return[];var n=e.length;return n>1&&(0,nt.A)(t,e[0],e[1])?e=[]:n>2&&(0,nt.A)(e[0],e[1],e[2])&&(e=[e[0]]),tt(t,(0,F.A)(e,1),[])});var rt={"string-2":"prefixed",atom:"var"};const ot={postprocessHints:function(t,e){return it(e,function(t){return t.text.split(":")[0]})},onInitialize:function(t){var e=this;t.on("change",function(){var n;if(t.config.autocompleters&&-1!=t.config.autocompleters.indexOf(e.name)){var i=t.getDoc().getCursor(),r=t.getTokenAt(i);if(r.type&&"prefixed"==rt[r.type]){var o=r.string.indexOf(":");if(-1!==o){var s=t.getPreviousNonWsToken(i.line,r).string.toUpperCase(),a=t.getTokenAt({line:i.line,ch:r.start});if("PREFIX"!==s&&("ws"==a.type||null==a.type||"punc"===a.type&&("|"===a.string||"/"===a.string||"^^"==a.string||"{"==a.string||"("===a.string))){var l=r.string.substring(0,o+1);null==t.getPrefixesFromQuery()[l.slice(0,-1)]&&(r.autocompletionString=l,null===(n=t.autocompleters[e.name])||void 0===n||n.getCompletions(r).then(function(e){e.length&&(t.addPrefixes(e[0]),t.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(t){var e=t.getDoc().getCursor(),n=t.getTokenAt(e);if(t.getDoc().getLine(e.line).length>e.ch)return!1;if("ws"!=n.type&&(n=t.getCompleteToken()),0!==n.string.indexOf("a")&&n.state.possibleCurrent.indexOf("PNAME_NS")<0)return!1;var i=t.getPreviousNonWsToken(e.line,n);return!(!i||"PREFIX"!=i.string.toUpperCase())},get:function(t){return fetch(t.config.prefixCcApi).then(function(t){if(!t.ok)throw new Error("Failed to fetch prefixes");return t.json()}).then(function(t){var e=[];for(var n in t){var i="".concat(n,": <").concat(t[n],">");e.push(i)}return e.sort()})},preProcessToken:function(t,e){var n=t.getPreviousNonWsToken(t.getDoc().getCursor().line,e);return n&&n.string&&":"==n.string.slice(-1)&&(e={start:n.start,end:e.end,string:n.string+" "+e.string,state:e.state,type:e.type}),e},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"};const st={onInitialize:function(t){},get:function(t,e){return gt(t,"property",e)},isValidCompletionPosition:function(t){var e=t.getCompleteToken();return 0!=e.string.length&&("?"!==e.string[0]&&"$"!==e.string[0]&&e.state.possibleCurrent.indexOf("a")>=0)},preProcessToken:function(t,e){return dt(t,e)},postProcessSuggestion:function(t,e,n){return ft(t,e,n)},bulk:!1,name:"property"};const at={onInitialize:function(t){},get:function(t,e){return gt(t,"class",e)},isValidCompletionPosition:function(t){var e=t.getCompleteToken();if("?"===e.string[0]||"$"===e.string[0])return!1;var n=t.getDoc().getCursor(),i=t.getPreviousNonWsToken(n.line,e);return"a"===i.state.lastProperty||("rdf:type"===i.state.lastProperty||("rdfs:domain"===i.state.lastProperty||"rdfs:range"===i.state.lastProperty))},preProcessToken:function(t,e){return dt(t,e)},postProcessSuggestion:function(t,e,n){return ft(t,e,n)},bulk:!1,name:"class"};function lt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ut(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function ct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ct=function(){return!!t})()}var ht=n(1719);n(991);var pt=function(t){function e(t,n){var i,o,l,u;return(0,r.A)(this,e),o=this,l=e,l=(0,a.A)(l),(i=(0,s.A)(o,ct()?Reflect.construct(l,u||[],(0,a.A)(o).constructor):l.apply(o,u))).yasqe=t,i.config=n,i}return(0,l.A)(e,t),(0,o.A)(e,[{key:"getStorageId",value:function(){return this.yasqe.getStorageId(this.config.persistenceId)}},{key:"storeBulkCompletions",value:function(t){if(t&&t instanceof Array){this.trie=new O;var e,n=lt(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.trie.insert(i)}}catch(t){n.e(t)}finally{n.f()}var r=this.getStorageId();r&&this.yasqe.storage.set(r,t,2592e3,this.yasqe.handleLocalStorageQuotaFull)}}},{key:"getCompletions",value:function(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(function(t){return t instanceof Array?t:[]});var e=t.autocompletionString||t.string;return this.trie?Promise.resolve(B(this.trie.autoComplete(e),100)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(function(t){return 0===t.indexOf(e)})):Promise.resolve(this.config.get(this.yasqe,t)).then(function(t){return t instanceof Array?t:[]})}},{key:"initialize",value:function(){var t=this;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 e,n=this.getStorageId();return n&&(e=this.yasqe.storage.get(n)),e&&e.length>0?(this.storeBulkCompletions(e),Promise.resolve()):this.getCompletions().then(function(e){return t.storeBulkCompletions(e)})}return Promise.resolve()}},{key:"isValidPosition",value:function(){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))}},{key:"getHint",value:function(t,e){var n,i;this.config.postProcessSuggestion&&(e=this.config.postProcessSuggestion(this.yasqe,t,e));var r=this.yasqe.getDoc().getCursor();t.from&&(i=Object.assign(Object.assign({},r),t.from));var o=this.yasqe.getDoc().getCursor().line;return{text:e,displayText:e,from:i,to:t.to?{ch:(null===(n=null==t?void 0:t.to)||void 0===n?void 0:n.ch)||this.yasqe.getCompleteToken().end,line:o}:t.string.length>0?{ch:this.yasqe.getCompleteToken().end,line:o}:t.from}}},{key:"getHints",value:function(t){var e=this;return this.config.preProcessToken&&(t=this.config.preProcessToken(this.yasqe,t)),t?this.getCompletions(t).then(function(n){return n.map(function(n){return e.getHint(t,n)})}).then(function(t){return e.config.postprocessHints?e.config.postprocessHints(e.yasqe,t):t}):Promise.resolve([])}},{key:"autocomplete",value:function(t){var e=this;if(!this.isValidPosition())return!1;var n=this.yasqe.state.completionActive,i=this.yasqe.getDoc().getCursor();if(n&&i.sticky&&i.ch!==n.startPos.ch?this.yasqe.state.completionActive.startPos=i:n&&!i.sticky&&i.ch<n.startPos.ch&&(i.sticky=n.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=i.ch,this.yasqe.state.completionActive.startLen--),t&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;var r=function(){return e.getHints(e.yasqe.getCompleteToken()).then(function(t){var n=e.yasqe.getDoc().getCursor(),i=e.yasqe.getCompleteToken(),r={list:t,from:{line:n.line,ch:i.start},to:{line:n.line,ch:i.end}};return ht.on(r,"shown",function(){e.yasqe.emit("autocompletionShown",e.yasqe.state.completionActive.widget)}),ht.on(r,"close",function(){e.yasqe.emit("autocompletionClose")}),r})};r.async=!1;var o=Object.assign({closeCharacters:/[\s>"]/,completeSingle:!1,hint:r,container:this.yasqe.rootEl,extraKeys:{Home:function(t,e){t.getDoc().setCursor({ch:0,line:e.data.from.line})},End:function(t,e){t.getDoc().setCursor({ch:t.getLine(e.data.to.line).length,line:e.data.to.line})}}},this.yasqe.config.hintConfig);return this.yasqe.showHint(o),!0}}])}(k.EventEmitter);function dt(t,e){var n=t.getPrefixesFromQuery(),i=e.string;if(i.indexOf("<")<0&&(e.tokenPrefix=i.substring(0,i.indexOf(":")+1),null!=n[e.tokenPrefix.slice(0,-1)]&&(e.tokenPrefixUri=n[e.tokenPrefix.slice(0,-1)])),e.autocompletionString=i.trim(),i.indexOf("<")<0&&i.indexOf(":")>-1)for(var r in n)if(e.tokenPrefix===r+":"){e.autocompletionString=n[r],e.autocompletionString+=i.substring(r.length+1);break}return 0==e.autocompletionString.indexOf("<")&&(e.autocompletionString=e.autocompletionString.substring(1)),e.autocompletionString.indexOf(">",e.autocompletionString.length-1)>0&&(e.autocompletionString=e.autocompletionString.substring(0,e.autocompletionString.length-1)),e}function ft(t,e,n){return n=e.tokenPrefix&&e.autocompletionString&&e.tokenPrefixUri?e.tokenPrefix+n.substring(e.tokenPrefixUri.length):"<"+n+">"}var gt=function(t,e,n){var i=0===window.location.protocol.indexOf("http")?"https://":"http://",r="autocomplete_"+e;if(!n||!n.string||0==n.string.trim().length)return t.showNotification(r,"Nothing to autocomplete yet!"),Promise.resolve([]);var o=new URLSearchParams;n.autocompletionString&&o.append("q",n.autocompletionString),o.append("page_size","50"),o.append("type",e);var s="".concat(i,"lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?").concat(o.toString());return fetch(s).then(function(t){if(!t.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return t.json()}).then(function(t){return t.results?t.results.map(function(t){return t.uri[0]}):[]}).catch(function(e){t.showNotification(r,"Failed fetching suggestions")})},mt=[j,ot,st,at],vt=n(6691);var yt=n(1719);n(9754),n(2448),n(7623),n(666),n(5397),n(8023),n(9082),n(8709),n(7899),n(3475),n(4182),n(6824),yt.registerHelper("fold","prefix",function(t,e){var n=e.line,i=t.getDoc().getLine(n),r=function(e,n){var i=t.getTokenAt(c().Pos(e,n+1));if(!i||"keyword"!=i.type)return-1;var r=g(t,e,i.end+1);if(!r||"string-2"!=r.type)return-1;var o=g(t,e,r.end+1);return o&&"variable-3"==o.type?o.end:-1};if(!function(){for(var e=!1,i=n-1;i>=0;i--)if(t.getDoc().getLine(i).toUpperCase().indexOf(m)>=0){e=!0;break}return e}()){var o=v(t,n,e.ch,i);if(null!=o){for(var s,a=!1,l=t.getDoc().lastLine(),u=r(n,o),h=n,p=n;p<=l&&!a;++p)for(var d=t.getDoc().getLine(p),f=p==n?o+1:0;;){!a&&d.indexOf("{")>=0&&(a=!0);var y=d.toUpperCase().indexOf(m,f);if(!(y>=0))break;(s=r(p,y))>0&&(h=p,f=u=s),f++}return{from:c().Pos(n,o+7),to:c().Pos(h,u)}}}}),yt.defineMode("sparql11",function(t){var e=n(5406),i=e.table,r="[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]",o=r+"|_",s="("+o+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",a="("+o+"|[0-9])("+o+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",l="\\?"+a,u="\\$"+a,c="[0-9A-Fa-f]",h="("+("(%"+c+c+")")+"|(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%]))",p="_:("+o+"|[0-9])(("+s+"|\\.)*"+s+")?",d="("+("("+r+")((("+s+")|\\.)*("+s+"))?")+")?:",f=d+("("+o+"|:|[0-9]|"+h+")(("+s+"|\\.|:|"+h+")*("+s+"|:|"+h+"))?"),g="[eE][\\+-]?[0-9]+",m="[0-9]+",v="[0-9]*\\.[0-9]+",y="(([0-9]+\\.[0-9]*"+g+")|(\\.[0-9]+"+g+")|([0-9]+"+g+"))",E="\\+"+m,_="\\+"+v,x="\\+"+y,b="-"+m,T="-"+v,S="-"+y,A="\\\\[tbnrf\\\\\"']",L=c+"{4}",C="(\\\\u"+L+"|\\\\U00(10|0"+c+")"+L+")",N="'(([^\\x27\\x5C\\x0A\\x0D])|"+A+"|"+C+")*'",I='"(([^\\x22\\x5C\\x0A\\x0D])|'+A+"|"+C+')*"',w={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+A+"|"+C+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+A+"|"+C+"))*"}};for(var R in w)w[R].COMPLETE=w[R].QUOTES+w[R].CONTENTS+w[R].QUOTES;var P={};for(var M in w)P[M]={complete:{name:"STRING_LITERAL_LONG_"+M,regex:new RegExp("^"+w[M].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+M,regex:new RegExp("^"+w[M].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+M,regex:new RegExp("^"+w[M].CONTENTS+w[M].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+M,regex:new RegExp("^"+w[M].QUOTES),style:"string"}};var O="[\\x20\\x09\\x0D\\x0A]",k="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",D="("+O+"|("+k+"))*",G="\\("+D+"\\)",B="\\["+D+"\\]",j=[{name:"WS",regex:new RegExp("^"+O+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+k),style:"comment"},{name:"IRI_REF",regex:new RegExp('^<[^<>"`|{}^\\\0- ]*>'),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+l),style:"atom"},{name:"VAR2",regex:new RegExp("^"+u),style:"atom"},{name:"LANGTAG",regex:new RegExp("^@[a-zA-Z]+(-[a-zA-Z0-9]+)*"),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+y),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+v),style:"number"},{name:"INTEGER",regex:new RegExp("^"+m),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+x),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+_),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+E),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+S),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+T),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+b),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+N),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+I),style:"string"},{name:"NIL",regex:new RegExp("^"+G),style:"punc"},{name:"ANON",regex:new RegExp("^"+B),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+f),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+d),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+p),style:"string-2"}];function F(t){var e=[],n=i[t];if(null!=n)for(var r in n)e.push(r.toString());else e.push(t);return e}function U(t,n){function r(){var e=t.column();n.errorStartPos=e,n.errorEndPos=e+l.string.length}function o(t){if(null==n.queryType)switch(t){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":n.queryType=t}}function s(t){switch(n.inPrefixDecl="prefixDecl"===t,t){case"disallowVars":n.allowVars=!1;break;case"allowVars":n.allowVars=!0;break;case"disallowBnodes":n.allowBnodes=!1;break;case"allowBnodes":n.allowBnodes=!0;break;case"storeProperty":n.storeProperty=!0}}function a(t){return(n.allowVars||"var"!=t)&&(n.allowBnodes||"blankNode"!=t&&"blankNodePropertyList"!=t&&"blankNodePropertyListPath"!=t)}0==t.pos&&(n.possibleCurrent=n.possibleNext);var l=function(){var i;if(n.inLiteral){var r=!1;if((i=t.match(P[n.inLiteral].contents.regex,!0,!1))&&0==i[0].length&&(i=t.match(P[n.inLiteral].closing.regex,!0,!1),r=!0),i&&i[0].length>0){var o={quotePos:r?"end":"content",cat:w[n.inLiteral].CAT,style:P[n.inLiteral].complete.style,string:i[0],start:t.start};return r&&(n.inLiteral=void 0),o}}for(var s in P){var a;if(i=t.match(P[s].quotes.regex,!0,!1))return n.inLiteral?(n.inLiteral=void 0,a="end"):(n.inLiteral=s,a="start"),{cat:w[s].CAT,style:P[s].quotes.style,string:i[0],quotePos:a,start:t.start}}for(var l=0;l<j.length;++l)if(i=t.match(j[l].regex,!0,!1))return{cat:j[l].name,style:j[l].style,string:i[0],start:t.start,quotePos:void 0};return(i=t.match(e.keywords,!0,!1))?{cat:t.current().toUpperCase(),style:"keyword",string:i[0],start:t.start,quotePos:void 0}:(i=t.match(e.punct,!0,!1))?{cat:t.current(),style:"punc",string:i[0],start:t.start,quotePos:void 0}:{cat:"<invalid_token>",style:"error",string:(i=t.match(/^.[A-Za-z0-9]*/,!0,!1))[0],start:t.start,quotePos:void 0}}();if("<invalid_token>"==l.cat)return 1==n.OK&&(n.OK=!1,r()),n.complete=!1,l.style;if("WS"===l.cat||"COMMENT"===l.cat||l.quotePos&&"end"!=l.quotePos)return n.possibleCurrent=n.possibleNext,n.possibleFullIri=!1,l.style;var u,c=!1,h=l.cat;if(n.possibleFullIri&&">"===l.string&&(n.possibleFullIri=!1),n.possibleFullIri||"<"!==l.string||(n.possibleFullIri=!0),!l.quotePos||"end"==l.quotePos)for(;n.stack.length>0&&h&&n.OK&&!c;)if("var"===(u=n.stack.pop())&&l.string&&(n.variables[l.string]=l.string),i[u]){var p=i[u][h];if(null!=p&&a(u)){for(var d=p.length-1;d>=0;--d)n.stack.push(p[d]);s(u)}else n.OK=!1,n.complete=!1,r(),n.stack.push(u)}else if(u==h){n.inPrefixDecl&&("PNAME_NS"===u&&l.string.length>0?n.currentPnameNs=l.string.slice(0,-1):"string"==typeof n.currentPnameNs&&l.string.length>1&&(n.prefixes[n.currentPnameNs]=l.string.slice(1,-1),n.currentPnameNs=void 0)),c=!0,o(u);for(var f=!0,g=n.stack.length;g>0;--g){var m=i[n.stack[g-1]];m&&m.$||(f=!1)}if(n.complete=f,n.storeProperty&&"punc"!=h?(n.lastProperty=l.string,n.lastPropertyIndex=l.start,n.storeProperty=!1):"."!==h&&";"!==h||(n.lastProperty="",n.lastPropertyIndex=0),!n.inPrefixDecl&&("PNAME_NS"===h||"PNAME_LN"===h)){var v=l.string.indexOf(":");if(v>=0){var y=l.string.slice(0,v);void 0===n.prefixes[y]&&(n.OK=!1,r(),n.errorMsg="Prefix '"+y+"' is not defined")}}}else n.OK=!1,n.complete=!1,r();if(!c&&n.OK&&(n.OK=!1,n.complete=!1,r()),n.possibleNext.indexOf("a")>=0)for(var E=t.string,_=l.start;_>=0;_--)if(" "!==E[_-1]){"|"===E[_-1]||"/"===E[_-1]||"punc"===l.style||(n.lastPredicateOffset=l.start);break}return n.possibleCurrent=n.possibleNext,n.possibleNext=F(n.stack[n.stack.length-1]),l.style}var H={"*[,, 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},q={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};return{token:U,startState:function(){return{tokenize:U,OK:!0,complete:e.acceptEmpty,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:F(e.startSymbol),possibleNext:F(e.startSymbol),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[e.startSymbol],lastPredicateOffset:t.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:function(e,n){var i;if(e.inLiteral)return 0;if(void 0!==e.lastPredicateOffset&&e.stack.length&&"?[or([verbPath,verbSimple]),objectListPath]"==e.stack[e.stack.length-1])return e.lastPredicateOffset;var r=0,o=e.stack.length-1;if(/^[\}\]\)]/.test(n)){for(var s=n.substr(0,1);o>=0;--o)if(e.stack[o]==s){--o;break}}else{var a=H[e.stack[o]];a&&(r+=a,--o)}for(;o>=0;--o){var l=q[e.stack[o]];l&&(r+=l)}return r*(null!==(i=t.indentUnit)&&void 0!==i?i:2)},electricChars:"}])"}});const Et=yt;function _t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return xt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function bt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(bt=function(){return!!t})()}n(2700),n(3380);var Tt=function(t){function e(t){var n,i,o,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,r.A)(this,e),i=this,o=e,o=(0,a.A)(o),(n=(0,s.A)(i,bt()?Reflect.construct(o,l||[],(0,a.A)(i).constructor):o.apply(i,l))).autocompleters={},n.prevQueryValid=!1,n.queryValid=!0,n.isFullscreen=!1,n.handleHashChange=function(){var t,e;null===(e=(t=n.config).consumeShareLink)||void 0===e||e.call(t,n)},n.notificationEls={},!t)throw new Error("No parent passed as argument. Dont know where to draw YASQE");n.rootEl=document.createElement("div"),n.rootEl.className="yasqe",t.appendChild(n.rootEl),n.config=(0,A.A)({},e.defaults,u);var c,h=Et(n.rootEl,n.config),p=_t(Object.getOwnPropertyNames(e.prototype));try{for(p.s();!(c=p.n()).done;){var d=c.value;h[d]=e.prototype[d].bind(n)}}catch(t){p.e(t)}finally{p.f()}Object.assign(n,Et.prototype,h),n.storage=new E.wc(e.storageNamespace),n.drawButtons();var f=n.getStorageId();if(f){var g=n.storage.get(f);n.persistentConfig=g&&"string"==typeof g?{query:g,editorHeight:n.config.editorHeight}:g,n.persistentConfig||(n.persistentConfig={query:n.getValue(),editorHeight:n.config.editorHeight}),n.persistentConfig&&n.persistentConfig.query&&n.setValue(n.persistentConfig.query)}return n.config.autocompleters.forEach(function(t){return n.enableCompleter(t).then(function(){},console.warn)}),n.config.consumeShareLink&&(n.config.consumeShareLink(n),window.addEventListener("hashchange",n.handleHashChange)),n.checkSyntax(),n.persistentConfig&&n.persistentConfig.editorHeight?n.getWrapperElement().style.height=n.persistentConfig.editorHeight:n.config.editorHeight&&(n.getWrapperElement().style.height=n.config.editorHeight),n.config.resizeable&&n.drawResizer(),n.config.collapsePrefixesOnLoad&&n.collapsePrefixes(!0),n.registerEventListeners(),n}return(0,l.A)(e,t),(0,o.A)(e,[{key:"handleChange",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleBlur",value:function(){this.saveQuery()}},{key:"handleChanges",value:function(){this.checkSyntax(),this.updateQueryButton()}},{key:"handleCursorActivity",value:function(){this.autocomplete(!0)}},{key:"handleQuery",value:function(t,e,n){this.req=e,this.abortController=n,this.updateQueryButton()}},{key:"handleQueryResponse",value:function(t,e,n){this.lastQueryDuration=n,this.req=void 0,this.updateQueryButton()}},{key:"handleQueryAbort",value:function(t,e){this.req=void 0,this.updateQueryButton()}},{key:"registerEventListeners",value:function(){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)}},{key:"unregisterEventListeners",value:function(){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)}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];Et.signal.apply(Et,[this,t,this].concat(n))}},{key:"getStorageId",value:function(t){var e=t||this.config.persistenceId;if(e)return"string"==typeof e?e:e(this)}},{key:"drawButtons",value:function(){var t=this,e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){var n=this.config.pluginButtons();if(!n)return;if(Array.isArray(n)){var i,r=_t(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;e.append(o)}}catch(t){r.e(t)}finally{r.f()}}else e.appendChild(n)}if(this.config.createShareableLink){var s=(0,E.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>'),a=document.createElement("button");a.className="yasqe_share",a.title="Share query",a.setAttribute("aria-label","Share query"),a.appendChild(s),e.appendChild(a),a.addEventListener("click",function(t){return l(t)}),a.addEventListener("keydown",function(t){"Enter"===t.code&&l(t)});var l=function(n){n.stopPropagation();var i=document.createElement("div");i.className="yasqe_sharePopup",e.appendChild(i),document.body.addEventListener("click",function(t){i&&t.target!==i&&!i.contains(t.target)&&(i.remove(),i=void 0)},!0);var r=document.createElement("input");r.type="text",r.value=t.config.createShareableLink(t),r.onfocus=function(){r.select()},r.onmouseup=function(){return!1},i.innerHTML="";var o=document.createElement("div");o.className="inputWrapper",o.appendChild(r),i.appendChild(o);var a=[],l=t.config.createShortLink;if(l){i.className=i.className+=" enableShort";var u=document.createElement("button");a.push(u),u.innerHTML="Shorten",u.className="yasqe_btn yasqe_btn-sm shorten",i.appendChild(u),u.onclick=function(){a.forEach(function(t){return t.disabled=!0}),l(t,r.value).then(function(t){r.value=t,r.focus()},function(t){var e=document.createElement("span");e.className="shortlinkErr";var n="An error has occurred";"string"==typeof t&&0!==t.length?n=t:t.message&&0!==t.message.length&&(n=t.message),e.textContent=n,r.replaceWith(e)})}}var c=document.createElement("button");a.push(c),c.innerText="cURL",c.className="yasqe_btn yasqe_btn-sm curl",i.appendChild(c),c.onclick=function(){a.forEach(function(t){return t.disabled=!0}),r.value=t.getAsCurlString(),r.focus(),null==i||i.appendChild(c)};var h=s.getBoundingClientRect();i.style.top=s.offsetTop+h.height+"px",i.style.left=s.offsetLeft+s.clientWidth-i.clientWidth+"px",r.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),(0,E.iQ)(this.queryBtn,"yasqe_queryButton");var u=(0,E.Mg)('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>');(0,E.iQ)(u,"queryIcon"),this.queryBtn.appendChild(u);var c=(0,E.Mg)(M);(0,E.iQ)(c,"warningIcon"),this.queryBtn.appendChild(c),this.queryBtn.onclick=function(){t.config.queryingDisabled||(t.req?t.abortQuery():t.query().catch(function(){}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),e.appendChild(this.queryBtn),this.updateQueryButton()}this.fullscreenBtn=document.createElement("button"),(0,E.iQ)(this.fullscreenBtn,"yasqe_fullscreenButton");var h=(0,E.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>');(0,E.iQ)(h,"fullscreenIcon"),this.fullscreenBtn.appendChild(h);var p=(0,E.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>');(0,E.iQ)(p,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(p),this.fullscreenBtn.onclick=function(){t.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),e.appendChild(this.fullscreenBtn)}},{key:"toggleFullscreen",value:function(){var t,e;this.isFullscreen=!this.isFullscreen,this.isFullscreen?((0,E.iQ)(this.rootEl,"fullscreen"),null===(t=this.fullscreenBtn)||void 0===t||t.setAttribute("title","Exit fullscreen (F11)")):((0,E.vy)(this.rootEl,"fullscreen"),null===(e=this.fullscreenBtn)||void 0===e||e.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}},{key:"getIsFullscreen",value:function(){return this.isFullscreen}},{key:"drawResizer",value:function(){if(!this.resizeWrapper){this.resizeWrapper=document.createElement("div"),(0,E.iQ)(this.resizeWrapper,"resizeWrapper");var t=document.createElement("div");(0,E.iQ)(t,"resizeChip"),this.resizeWrapper.appendChild(t),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}}},{key:"initDrag",value:function(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}},{key:"calculateDragOffset",value:function(t,e){var n=0;e.offsetParent&&(n=e.offsetParent.offsetTop);for(var i=0,r=e.parentElement;r;)i+=r.scrollTop,r=r.parentElement;return t.clientY-n-this.rootEl.offsetTop+i}},{key:"doDrag",value:function(t){this.getWrapperElement().style.height=this.calculateDragOffset(t,this.rootEl)+"px"}},{key:"stopDrag",value:function(){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()}},{key:"duplicateLine",value:function(){var t=this.getDoc().getCursor();if(t){var e=this.getDoc().getLine(t.line);this.getDoc().replaceRange(e+"\n"+e,{ch:0,line:t.line},{ch:e.length,line:t.line})}}},{key:"updateQueryButton",value:function(t){this.queryBtn&&(this.config.queryingDisabled?((0,E.iQ)(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):((0,E.vy)(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),t||(t=this.queryValid?"valid":"error"),t!=this.queryStatus&&((0,E.vy)(this.queryBtn,"query_"+this.queryStatus),(0,E.iQ)(this.queryBtn,"query_"+t),this.queryStatus=t),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}},{key:"handleLocalStorageQuotaFull",value:function(t){console.warn("Localstorage quota exceeded. Clearing all queries"),e.clearStorage()}},{key:"saveQuery",value:function(){var t=this.getStorageId();t&&this.persistentConfig&&(this.persistentConfig.query=this.getValue(),this.storage.set(t,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}},{key:"getQueryType",value:function(){return this.getOption("queryType")}},{key:"getQueryMode",value:function(){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"}}},{key:"getVariablesFromQuery",value:function(){var t=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),e=[];for(var n in t.state.variables)e.push(n);return e.sort()}},{key:"autoformatSelection",value:function(t,n){var i=this.getValue();return i=i.substring(t,n),e.autoformatString(i)}},{key:"commentLines",value:function(){for(var t=this.getDoc().getCursor("start").line,e=this.getDoc().getCursor("end").line,n=Math.min(t,e),i=Math.max(t,e),r=!0,o=n;o<=i;o++){var s=this.getDoc().getLine(o);if(0==s.length||"#"!=s.substring(0,1)){r=!1;break}}for(o=n;o<=i;o++)r?this.getDoc().replaceRange("",{line:o,ch:0},{line:o,ch:1}):this.getDoc().replaceRange("#",{line:o,ch:0})}},{key:"autoformat",value:function(){var t=this;this.getDoc().somethingSelected()||this.execCommand("selectAll");var e=this.getDoc().getCursor("start"),n={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},i=this.getDoc().indexFromPos(e),r=this.getDoc().indexFromPos(n),o=this.autoformatSelection(i,r);this.operation(function(){t.getDoc().replaceRange(o,e,n);for(var r=t.getDoc().posFromIndex(i).line,s=t.getDoc().posFromIndex(i+o.length).line,a=r;a<=s;a++)t.indentLine(a,"smart")})}},{key:"getQueryWithValues",value:function(t){if(!t)return this.getValue();var n;if("string"==typeof t)n=t;else{t instanceof Array||(t=[t]);var i=t.reduce(function(t,e){for(var n in e)t[n]=n;return t},{}),r=[];for(var o in i)r.push(o);if(!r.length)return this.getValue();n="VALUES ("+r.join(" ")+") {\n",t.forEach(function(t){n+="( ",r.forEach(function(e){n+=t[e]||"UNDEF"}),n+=" )\n"}),n+="}\n"}if(!n)return this.getValue();var s="",a=!1,l=!1;return e.runMode(this.getValue(),"sparql11",function(t,e,i,r,o){"keyword"===e&&"select"===t.toLowerCase()&&(l=!0),s+=t,l&&!a&&"punc"===e&&"{"===t&&(a=!0,s+="\n"+n)}),s}},{key:"getValueWithoutComments",value:function(){var t="";return e.runMode(this.getValue(),"sparql11",function(e,n){"comment"!=n&&(t+=e)}),t}},{key:"setCheckSyntaxErrors",value:function(t){this.config.syntaxErrorCheck=t,this.checkSyntax()}},{key:"checkSyntax",value:function(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var t=0;t<this.getDoc().lineCount();++t){var e=!1;this.prevQueryValid||(e=!0);var n=this.getTokenAt({line:t,ch:this.getDoc().getLine(t).length},e),i=n.state;if(this.setOption("queryType",i.queryType),0==i.OK){if(!this.config.syntaxErrorCheck){for(var r=this.getWrapperElement().querySelectorAll(".sp-error"),o=0;o<r.length;o++){var s=r[o];s.style&&(s.style.color="black")}return}var a=(0,E.Mg)(M);if(i.errorMsg)x(0,a,(0,vt.A)(n.state.errorMsg));else if(i.possibleCurrent&&i.possibleCurrent.length>0){var l=[];i.possibleCurrent.forEach(function(t){l.push("<strong style='text-decoration:underline'>"+(0,vt.A)(t)+"</strong>")}),x(0,a,"This line is invalid. Expected: "+l.join(", "))}a.className="parseErrorIcon",this.setGutterMarker(t,"gutterErrorBar",a),this.queryValid=!1;break}}}},{key:"getCompleteToken",value:function(t,e){return h(this,t,e)}},{key:"getPreviousNonWsToken",value:function(t,e){return f(this,t,e)}},{key:"getNextNonWsToken",value:function(t,e){return g(this,t,e)}},{key:"showNotification",value:function(t,e){if(!this.notificationEls[t]){var n=document.createElement("div");(0,E.iQ)(n,"notificationContainer"),this.getWrapperElement().appendChild(n),this.notificationEls[t]=document.createElement("div"),(0,E.iQ)(this.notificationEls[t],"notification","notif_"+t),n.appendChild(this.notificationEls[t])}for(var i in this.notificationEls)i!==t&&this.hideNotification(i);var r=this.notificationEls[t];(0,E.iQ)(r,"active"),r.innerText=e}},{key:"hideNotification",value:function(t){this.notificationEls[t]&&(0,E.vy)(this.notificationEls[t],"active")}},{key:"enableCompleter",value:function(t){return e.Autocompleters[t]?(this.config.autocompleters.indexOf(t)<0&&this.config.autocompleters.push(t),(this.autocompleters[t]=new pt(this,e.Autocompleters[t])).initialize()):Promise.reject(new Error("Autocompleter "+t+" is not a registered autocompleter"))}},{key:"disableCompleter",value:function(t){this.config.autocompleters=this.config.autocompleters.filter(function(e){return e!==t}),this.autocompleters[t]=void 0}},{key:"autocomplete",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.getDoc().somethingSelected())for(var e in this.config.autocompleters){var n=this.autocompleters[this.config.autocompleters[e]];n&&n.autocomplete(t)}}},{key:"collapsePrefixes",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=function(t){for(var e=t.getDoc().lastLine(),n=0;n<=e;++n){var i=v(t,n);if(null!=i&&i>=0)return n}}(this);void 0!==e&&this.foldCode(e,Et.fold.prefix,t?"fold":"unfold")}},{key:"getPrefixesFromQuery",value:function(){return(t=this).getTokenAt({line:t.getDoc().lastLine(),ch:t.getDoc().getLine(t.getDoc().lastLine()).length},!0).state.prefixes;var t}},{key:"addPrefixes",value:function(t){return function(t,e){var n=t.getPrefixesFromQuery();if("string"==typeof e)y(t,e);else for(var i in e)i in n||y(t,i+": <"+e[i]+">");t.collapsePrefixes(!1)}(this,t)}},{key:"removePrefixes",value:function(t){return function(t,e){var n=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var i in e)t.setValue(t.getValue().replace(new RegExp("PREFIX\\s*"+i+":\\s*"+n("<"+e[i]+">")+"\\s*","ig"),""));t.collapsePrefixes(!1)}(this,t)}},{key:"updateWidget",value:function(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){var t=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=t+"px"}}},{key:"query",value:function(t){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.abortQuery(),I(this,t))}},{key:"getUrlParams",value:function(){var t={};return window.location.hash.length>1&&(t=_.parse(location.hash)),t&&"query"in t||!(window.location.search.length>1)||(t=_.parse(window.location.search)),t}},{key:"configToQueryParams",value:function(){var t={};return window.location.hash.length>1&&(t=_.parse(window.location.hash)),t.query=this.getValue(),t}},{key:"queryParamsToConfig",value:function(t){t&&t.query&&"string"==typeof t.query&&this.setValue(t.query)}},{key:"getAsCurlString",value:function(t){return P(this,t)}},{key:"abortQuery",value:function(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}},{key:"expandEditor",value:function(){this.setSize(null,"100%")}},{key:"destroy",value:function(){var t,e;for(var n in this.abortQuery(),this.unregisterEventListeners(),null===(t=this.resizeWrapper)||void 0===t||t.removeEventListener("mousedown",this.initDrag,!1),null===(e=this.resizeWrapper)||void 0===e||e.removeEventListener("dblclick",this.expandEditor),this.autocompleters)this.disableCompleter(n);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}}],[{key:"autoformatString",value:function(t){var n=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],i=["}"],r="",o="",s=[];return e.runMode(t,"sparql11",function(t,e){s.push(e);var a=function(t){if("{"===t)return 1;if("."===t)return 1;if(";"===t)return s.length>2&&"punc"===s[s.length-2]?0:1;for(var e=0;e<n.length;e++)if(s.valueOf().toString()===n[e].valueOf().toString())return 1;for(e=0;e<i.length;e++)if(""!==o.trim()&&t==i[e])return-1;return 0}(t);0!=a?(1==a?(r+=t+"\n",o=""):(r+="\n"+t,o=t),s=[]):(o+=t,r+=t),1==s.length&&"sp-ws"==s[0]&&(s=[])}),r.replace(/\n\s*\n/g,"\n").trim()}},{key:"clearStorage",value:function(){new E.wc(e.storageNamespace).removeNamespace()}},{key:"registerAutocompleter",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.name;e.Autocompleters[i]=t,n&&e.defaults.autocompleters.indexOf(i)<0&&e.defaults.autocompleters.push(i)}},{key:"forkAutocompleter",value:function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e.Autocompleters[t])throw new Error("Autocompleter "+t+" does not exist");if(!(null==n?void 0:n.name))throw new Error("Expected a name for newly registered autocompleter");var r=n.name;e.Autocompleters[r]=Object.assign(Object.assign({},e.Autocompleters[t]),n),i&&e.defaults.autocompleters.indexOf(r)<0&&e.defaults.autocompleters.push(r)}}])}(Et);Tt.storageNamespace="triply",Tt.Sparql=i,Tt.runMode=Et.runMode,Tt.Autocompleters={},Tt.defaults=function(){var t=n(1719),e={mode:"sparql11",value:"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nSELECT * WHERE {\n ?sub ?pred ?obj .\n} LIMIT 10",highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new t.fold.combine(t.fold.brace,t.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(t){t.autocomplete()},"Shift-Ctrl-K":function(t){var e=t,n=e.getDoc().getCursor().line;return n===e.getDoc().lastLine()&&n>1?e.getDoc().replaceRange("",{ch:e.getDoc().getLine(n-1).length,line:n-1},{ch:e.getDoc().getLine(n).length,line:n}):e.getDoc().replaceRange("",{ch:0,line:n},{ch:0,line:n+1})},"Ctrl-/":function(t){t.commentLines()},"Shift-Ctrl-D":function(t){t.duplicateLine()},"Shift-Ctrl-F":function(t){t.autoformat()},"Ctrl-S":function(t){t.saveQuery()},"Cmd-Enter":function(t){t.query().catch(function(){})},"Ctrl-Enter":function(t){t.query().catch(function(){})},Esc:function(t){t.getInputField().blur()}},createShareableLink:function(t){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+_.stringify(t.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(t){t.queryParamsToConfig(t.getUrlParams())},persistenceId:function(t){var e="",n=t.rootEl;for(n.id&&(e=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(e=n.id);break}return"yasqe_"+e+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json"},i={queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"application/n-triples,*/*;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};return Object.assign(Object.assign({},e),{requestConfig:i})}(),Object.assign(Et.prototype,Tt.prototype),mt.forEach(function(t){Tt.registerAutocompleter(t)});const St=Tt},3322:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(5413);var r=n(5209),o=n(3564);function s(t){return function(t){if(Array.isArray(t))return(0,i.A)(t)}(t)||(0,r.A)(t)||(0,o.A)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},3380:(t,e,n)=>{"use strict";n.r(e)},3382:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(8377),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===r?i.A.Buffer:void 0,a=s?s.allocUnsafe:void 0;const l=function(t,e){if(e)return t.slice();var n=t.length,i=a?a(n):new t.constructor(n);return t.copy(i),i}},3475:(t,e,n)=>{"use strict";n.r(e)},3564:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(5413);function r(t,e){if(t){if("string"==typeof t)return(0,i.A)(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,i.A)(t,e):void 0}}},3594:(t,e,n)=>{"use strict";n.r(e)},3614:(t,e,n)=>{"use strict";n.r(e)},3653:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(2984),r=n(6826);const o=function(t,e){return t&&(0,i.A)(t,e,r.A)}},3779:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(5826);const r=function(){this.__data__=new i.A,this.size=0};const o=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const s=function(t){return this.__data__.get(t)};const a=function(t){return this.__data__.has(t)};var l=n(6787),u=n(8412);const c=function(t,e){var n=this.__data__;if(n instanceof i.A){var r=n.__data__;if(!l.A||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new u.A(r)}return n.set(t,e),this.size=n.size,this};function h(t){var e=this.__data__=new i.A(t);this.size=e.size}h.prototype.clear=r,h.prototype.delete=o,h.prototype.get=s,h.prototype.has=a,h.prototype.set=c;const p=h},3869:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=/^(?:0|[1-9]\d*)$/;const r=function(t,e){var n=typeof t;return!!(e=e??9007199254740991)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t<e}},3886:(t,e,n)=>{"use strict";function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(e,{A:()=>i})},4043:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(5186),r=n(6988);const o=function(t){return(0,i.A)(function(e,n){var i=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&(0,r.A)(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++i<o;){var l=n[i];l&&t(e,l,i,s)}return e})}},4067:function(t,e){!function(t){"use strict";var e="1.9.4";function n(t){var e,n,i,r;for(n=1,i=arguments.length;n<i;n++)for(e in r=arguments[n])t[e]=r[e];return t}var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function r(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var o=0;function s(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function a(t,e,n){var i,r,o,s;return s=function(){i=!1,r&&(o.apply(n,r),r=!1)},o=function(){i?r=arguments:(t.apply(n,arguments),setTimeout(s,e),i=!0)},o}function l(t,e,n){var i=e[1],r=e[0],o=i-r;return t===i&&n?t:((t-r)%o+o)%o+r}function u(){return!1}function c(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function p(t){return h(t).split(/\s+/)}function d(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function f(t,e,n){var i=[];for(var r in t)i.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(t[r]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var g=/\{ *([\w_ -]+) *\}/g;function m(t,e){return t.replace(g,function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i})}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var E="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function b(t){var e=+new Date,n=Math.max(0,16-(e-x));return x=e+n,window.setTimeout(t,n)}var T=window.requestAnimationFrame||_("RequestAnimationFrame")||b,S=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function A(t,e,n){if(!n||T!==b)return T.call(window,r(t,e));t.call(e)}function C(t){t&&S.call(window,t)}var N={__proto__:null,extend:n,create:i,bind:r,get lastId(){return o},stamp:s,throttle:a,wrapNum:l,falseFn:u,formatNum:c,trim:h,splitWords:p,setOptions:d,getParamString:f,template:m,isArray:v,indexOf:y,emptyImageUrl:E,requestFn:T,cancelFn:S,requestAnimFrame:A,cancelAnimFrame:C};function I(){}function w(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===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)}}I.extend=function(t){var e=function(){d(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=e.__super__=this.prototype,o=i(r);for(var s in o.constructor=e,e.prototype=o,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(e[s]=this[s]);return t.statics&&n(e,t.statics),t.includes&&(w(t.includes),n.apply(null,[o].concat(t.includes))),n(o,t),delete o.statics,delete o.includes,o.options&&(o.options=r.options?i(r.options):{},n(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},I.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},I.mergeOptions=function(t){return n(this.prototype.options,t),this},I.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var R={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var r=0,o=(t=p(t)).length;r<o;r++)this._on(t[r],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=p(t);for(var r=1===arguments.length,o=0,s=t.length;o<s;o++)r?this._off(t[o]):this._off(t[o],e,n)}else delete this._events;return this},_on:function(t,e,n,i){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var r={fn:e,ctx:n};i&&(r.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(r)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var i,r,o;if(this._events&&(i=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var s=this._listens(t,e,n);if(!1!==s){var a=i[s];this._firingCount&&(a.fn=u,this._events[t]=i=i.slice()),i.splice(s,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(r=0,o=i.length;r<o;r++)i[r].fn=u;delete this._events[t]}},fire:function(t,e,i){if(!this.listens(t,i))return this;var r=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,a=o.length;s<a;s++){var l=o[s],u=l.fn;l.once&&this.off(t,u,l.ctx),u.call(l.ctx||this,r)}this._firingCount--}}return i&&this._propagateEvent(r),this},listens:function(t,e,n,i){"string"!=typeof t&&console.warn('"string" type argument expected');var r=e;"function"!=typeof e&&(i=!!e,r=void 0,n=void 0);var o=this._events&&this._events[t];if(o&&o.length&&!1!==this._listens(t,r,n))return!0;if(i)for(var s in this._eventParents)if(this._eventParents[s].listens(t,e,n,i))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var i=this._events[t]||[];if(!e)return!!i.length;n===this&&(n=void 0);for(var r=0,o=i.length;r<o;r++)if(i[r].fn===e&&i[r].ctx===n)return r;return!1},once:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e,!0);else for(var r=0,o=(t=p(t)).length;r<o;r++)this._on(t[r],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[s(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[s(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};R.addEventListener=R.on,R.removeEventListener=R.clearAllEventListeners=R.off,R.addOneTimeEventListener=R.once,R.fireEvent=R.fire,R.hasEventListeners=R.listens;var P=I.extend(R);function M(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var O=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function k(t,e,n){return t instanceof M?t:v(t)?new M(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new M(t.x,t.y):new M(t,e,n)}function D(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i<r;i++)this.extend(n[i])}function G(t,e){return!t||t instanceof D?t:new D(t,e)}function B(t,e){if(t)for(var n=e?[t,e]:t,i=0,r=n.length;i<r;i++)this.extend(n[i])}function j(t,e){return t instanceof B?t:new B(t,e)}function F(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function U(t,e,n){return t instanceof F?t:v(t)&&"object"!=typeof t[0]?3===t.length?new F(t[0],t[1],t[2]):2===t.length?new F(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new F(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new F(t,e,n)}M.prototype={clone:function(){return new M(this.x,this.y)},add:function(t){return this.clone()._add(k(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(k(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new M(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new M(this.x/t.x,this.y/t.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=O(this.x),this.y=O(this.y),this},distanceTo:function(t){var e=(t=k(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=k(t)).x===this.x&&t.y===this.y},contains:function(t){return t=k(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},D.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof M||"number"==typeof t[0]||"x"in t)e=n=k(t);else if(e=(t=G(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return k((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return k(this.min.x,this.max.y)},getTopRight:function(){return k(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(t){var e,n;return(t="number"==typeof t[0]||t instanceof M?k(t):G(t))instanceof D?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=G(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>=e.x&&i.x<=n.x,s=r.y>=e.y&&i.y<=n.y;return o&&s},overlaps:function(t){t=G(t);var e=this.min,n=this.max,i=t.min,r=t.max,o=r.x>e.x&&i.x<n.x,s=r.y>e.y&&i.y<n.y;return o&&s},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,i=Math.abs(e.x-n.x)*t,r=Math.abs(e.y-n.y)*t;return G(k(e.x-i,e.y-r),k(n.x+i,n.y+r))},equals:function(t){return!!t&&(t=G(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},B.prototype={extend:function(t){var e,n,i=this._southWest,r=this._northEast;if(t instanceof F)e=t,n=t;else{if(!(t instanceof B))return t?this.extend(U(t)||j(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||r?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new F(e.lat,e.lng),this._northEast=new F(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,r=Math.abs(e.lng-n.lng)*t;return new B(new F(e.lat-i,e.lng-r),new F(n.lat+i,n.lng+r))},getCenter:function(){return new F((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 F(this.getNorth(),this.getWest())},getSouthEast:function(){return new F(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(t){t="number"==typeof t[0]||t instanceof F||"lat"in t?U(t):j(t);var e,n,i=this._southWest,r=this._northEast;return t instanceof B?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=r.lat&&e.lng>=i.lng&&n.lng<=r.lng},intersects:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>=e.lat&&i.lat<=n.lat,s=r.lng>=e.lng&&i.lng<=n.lng;return o&&s},overlaps:function(t){t=j(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),r=t.getNorthEast(),o=r.lat>e.lat&&i.lat<n.lat,s=r.lng>e.lng&&i.lng<n.lng;return o&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=j(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},F.prototype={equals:function(t,e){return!!t&&(t=U(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return z.distance(this,U(t))},wrap:function(){return z.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return j([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new F(this.lat,this.lng,this.alt)}};var H,q={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new D(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new F(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,r=e.lng-n.lng;if(0===i&&0===r)return t;var o=t.getSouthWest(),s=t.getNorthEast();return new B(new F(o.lat-i,o.lng-r),new F(s.lat-i,s.lng-r))}},z=n({},q,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,r=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),s=Math.sin((e.lng-t.lng)*n/2),a=o*o+Math.cos(i)*Math.cos(r)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),V=6378137,W={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),r=Math.sin(i*e);return new M(this.R*t.lng*e,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(t){var e=180/Math.PI;return new F((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(H=V*Math.PI,new D([-H,-H],[H,H]))};function Z(t,e,n,i){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function Q(t,e,n,i){return new Z(t,e,n,i)}Z.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new M((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var X=n({},z,{code:"EPSG:3857",projection:W,transformation:function(){var t=.5/(Math.PI*W.R);return Q(t,.5,-t,.5)}()}),Y=n({},X,{code:"EPSG:900913"});function $(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function K(t,e){var n,i,r,o,s,a,l="";for(n=0,r=t.length;n<r;n++){for(i=0,o=(s=t[n]).length;i<o;i++)l+=(i?"L":"M")+(a=s[i]).x+" "+a.y;l+=e?Bt.svg?"z":"x":""}return l||"M0 0"}var J,tt=document.documentElement.style,et="ActiveXObject"in window,nt=et&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),rt=Gt("webkit"),ot=Gt("android"),st=Gt("android 2")||Gt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),lt=ot&&Gt("Google")&&at<537&&!("AudioNode"in window),ut=!!window.opera,ct=!it&&Gt("chrome"),ht=Gt("gecko")&&!rt&&!ut&&!et,pt=!ct&&Gt("safari"),dt=Gt("phantom"),ft="OTransition"in tt,gt=0===navigator.platform.indexOf("Win"),mt=et&&"transition"in tt,vt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!st,yt="MozPerspective"in tt,Et=!window.L_DISABLE_3D&&(mt||vt||yt)&&!ft&&!dt,_t="undefined"!=typeof orientation||Gt("mobile"),xt=_t&&rt,bt=_t&&vt,Tt=!window.PointerEvent&&window.MSPointerEvent,St=!(!window.PointerEvent&&!Tt),At="ontouchstart"in window||!!window.TouchEvent,Lt=!window.L_NO_TOUCH&&(At||St),Ct=_t&&ut,Nt=_t&&ht,It=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,wt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,e),window.removeEventListener("testPassiveEventSupport",u,e)}catch(t){}return t}(),Rt=!!document.createElement("canvas").getContext,Pt=!(!document.createElementNS||!$("svg").createSVGRect),Mt=!!Pt&&((J=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(J.firstChild&&J.firstChild.namespaceURI)),Ot=!Pt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),kt=0===navigator.platform.indexOf("Mac"),Dt=0===navigator.platform.indexOf("Linux");function Gt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Bt={ie:et,ielt9:nt,edge:it,webkit:rt,android:ot,android23:st,androidStock:lt,opera:ut,chrome:ct,gecko:ht,safari:pt,phantom:dt,opera12:ft,win:gt,ie3d:mt,webkit3d:vt,gecko3d:yt,any3d:Et,mobile:_t,mobileWebkit:xt,mobileWebkit3d:bt,msPointer:Tt,pointer:St,touch:Lt,touchNative:At,mobileOpera:Ct,mobileGecko:Nt,retina:It,passiveEvents:wt,canvas:Rt,svg:Pt,vml:Ot,inlineSvg:Mt,mac:kt,linux:Dt},jt=Bt.msPointer?"MSPointerDown":"pointerdown",Ft=Bt.msPointer?"MSPointerMove":"pointermove",Ut=Bt.msPointer?"MSPointerUp":"pointerup",Ht=Bt.msPointer?"MSPointerCancel":"pointercancel",qt={touchstart:jt,touchmove:Ft,touchend:Ut,touchcancel:Ht},zt={touchstart:te,touchmove:Jt,touchend:Jt,touchcancel:Jt},Vt={},Wt=!1;function Zt(t,e,n){return"touchstart"===e&&Kt(),zt[e]?(n=zt[e].bind(this,n),t.addEventListener(qt[e],n,!1),n):(console.warn("wrong event specified:",e),u)}function Qt(t,e,n){qt[e]?t.removeEventListener(qt[e],n,!1):console.warn("wrong event specified:",e)}function Xt(t){Vt[t.pointerId]=t}function Yt(t){Vt[t.pointerId]&&(Vt[t.pointerId]=t)}function $t(t){delete Vt[t.pointerId]}function Kt(){Wt||(document.addEventListener(jt,Xt,!0),document.addEventListener(Ft,Yt,!0),document.addEventListener(Ut,$t,!0),document.addEventListener(Ht,$t,!0),Wt=!0)}function Jt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Vt)e.touches.push(Vt[n]);e.changedTouches=[e],t(e)}}function te(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Xe(e),Jt(t,e)}function ee(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var ne=200;function ie(t,e){t.addEventListener("dblclick",e);var n,i=0;function r(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var r=$e(t);if(!r.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||r.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})){var o=Date.now();o-i<=ne?2===++n&&e(ee(t)):n=1,i=o}}}else n=t.detail}return t.addEventListener("click",r),{dblclick:e,simDblclick:r}}function re(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var oe,se,ae,le,ue,ce=Ce(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),he=Ce(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),pe="webkitTransition"===he||"OTransition"===he?he+"End":"transitionend";function de(t){return"string"==typeof t?document.getElementById(t):t}function fe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function ge(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function me(t){var e=t.parentNode;e&&e.removeChild(t)}function ve(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ye(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Ee(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function _e(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=Se(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function xe(t,e){if(void 0!==t.classList)for(var n=p(e),i=0,r=n.length;i<r;i++)t.classList.add(n[i]);else if(!_e(t,e)){var o=Se(t);Te(t,(o?o+" ":"")+e)}}function be(t,e){void 0!==t.classList?t.classList.remove(e):Te(t,h((" "+Se(t)+" ").replace(" "+e+" "," ")))}function Te(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Se(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function Ae(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Le(t,e)}function Le(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}function Ce(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Ne(t,e,n){var i=e||new M(0,0);t.style[ce]=(Bt.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function Ie(t,e){t._leaflet_pos=e,Bt.any3d?Ne(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function we(t){return t._leaflet_pos||new M(0,0)}if("onselectstart"in document)oe=function(){je(window,"selectstart",Xe)},se=function(){Ue(window,"selectstart",Xe)};else{var Re=Ce(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);oe=function(){if(Re){var t=document.documentElement.style;ae=t[Re],t[Re]="none"}},se=function(){Re&&(document.documentElement.style[Re]=ae,ae=void 0)}}function Pe(){je(window,"dragstart",Xe)}function Me(){Ue(window,"dragstart",Xe)}function Oe(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(ke(),le=t,ue=t.style.outlineStyle,t.style.outlineStyle="none",je(window,"keydown",ke))}function ke(){le&&(le.style.outlineStyle=ue,le=void 0,ue=void 0,Ue(window,"keydown",ke))}function De(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ge(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Be={__proto__:null,TRANSFORM:ce,TRANSITION:he,TRANSITION_END:pe,get:de,getStyle:fe,create:ge,remove:me,empty:ve,toFront:ye,toBack:Ee,hasClass:_e,addClass:xe,removeClass:be,setClass:Te,getClass:Se,setOpacity:Ae,testProp:Ce,setTransform:Ne,setPosition:Ie,getPosition:we,get disableTextSelection(){return oe},get enableTextSelection(){return se},disableImageDrag:Pe,enableImageDrag:Me,preventOutline:Oe,restoreOutline:ke,getSizedParentNode:De,getScale:Ge};function je(t,e,n,i){if(e&&"object"==typeof e)for(var r in e)ze(t,r,e[r],n);else for(var o=0,s=(e=p(e)).length;o<s;o++)ze(t,e[o],n,i);return this}var Fe="_leaflet_events";function Ue(t,e,n,i){if(1===arguments.length)He(t),delete t[Fe];else if(e&&"object"==typeof e)for(var r in e)Ve(t,r,e[r],n);else if(e=p(e),2===arguments.length)He(t,function(t){return-1!==y(e,t)});else for(var o=0,s=e.length;o<s;o++)Ve(t,e[o],n,i);return this}function He(t,e){for(var n in t[Fe]){var i=n.split(/\d/)[0];e&&!e(i)||Ve(t,i,null,null,n)}}var qe={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ze(t,e,n,i){var r=e+s(n)+(i?"_"+s(i):"");if(t[Fe]&&t[Fe][r])return this;var o=function(e){return n.call(i||t,e||window.event)},a=o;!Bt.touchNative&&Bt.pointer&&0===e.indexOf("touch")?o=Zt(t,e,o):Bt.touch&&"dblclick"===e?o=ie(t,o):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(qe[e]||e,o,!!Bt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,en(t,e)&&a(e)},t.addEventListener(qe[e],o,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,o),t[Fe]=t[Fe]||{},t[Fe][r]=o}function Ve(t,e,n,i,r){r=r||e+s(n)+(i?"_"+s(i):"");var o=t[Fe]&&t[Fe][r];if(!o)return this;!Bt.touchNative&&Bt.pointer&&0===e.indexOf("touch")?Qt(t,e,o):Bt.touch&&"dblclick"===e?re(t,o):"removeEventListener"in t?t.removeEventListener(qe[e]||e,o,!1):t.detachEvent("on"+e,o),t[Fe][r]=null}function We(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ze(t){return ze(t,"wheel",We),this}function Qe(t){return je(t,"mousedown touchstart dblclick contextmenu",We),t._leaflet_disable_click=!0,this}function Xe(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ye(t){return Xe(t),We(t),this}function $e(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Ke(t,e){if(!e)return new M(t.clientX,t.clientY);var n=Ge(e),i=n.boundingClientRect;return new M((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Je=Bt.linux&&Bt.chrome?window.devicePixelRatio:Bt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function tn(t){return Bt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function en(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var nn={__proto__:null,on:je,off:Ue,stopPropagation:We,disableScrollPropagation:Ze,disableClickPropagation:Qe,preventDefault:Xe,stop:Ye,getPropagationPath:$e,getMousePosition:Ke,getWheelDelta:tn,isExternalTarget:en,addListener:je,removeListener:Ue},rn=P.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=we(t),this._offset=e.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=A(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),Ie(this._el,n),this.fire("step")},_complete:function(){C(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),on=P.extend({options:{crs:X,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(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(U(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=he&&Bt.any3d&&!Bt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),je(this._proxy,pe,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(U(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,i.pan&&i.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Bt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Bt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),r=this.getSize().divideBy(2),o=(t instanceof M?t:this.latLngToContainerPoint(t)).subtract(r).multiplyBy(1-1/i),s=this.containerPointToLatLng(r.add(o));return this.setView(s,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var n=k(e.paddingTopLeft||e.padding||[0,0]),i=k(e.paddingBottomRight||e.padding||[0,0]),r=this.getBoundsZoom(t,!1,n.add(i));if((r="number"==typeof e.maxZoom?Math.min(e.maxZoom,r):r)===1/0)return{center:t.getCenter(),zoom:r};var o=i.subtract(n).divideBy(2),s=this.project(t.getSouthWest(),r),a=this.project(t.getNorthEast(),r);return{center:this.unproject(s.add(a).divideBy(2).add(o),r),zoom:r}},fitBounds:function(t,e){if(!(t=j(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=k(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new rn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){xe(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Bt.any3d)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),r=this.project(t),o=this.getSize(),s=this._zoom;t=U(t),e=void 0===e?s:e;var a=Math.max(o.x,o.y),l=a*this.getZoomScale(s,e),u=r.distanceTo(i)||1,c=1.42,h=c*c;function p(t){var e=(l*l-a*a+(t?-1:1)*h*h*u*u)/(2*(t?l:a)*h*u),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function g(t){return d(t)/f(t)}var m=p(0);function v(t){return a*(f(m)/f(m+c*t))}function y(t){return a*(f(m)*g(m+c*t)-d(m))/h}function E(t){return 1-Math.pow(1-t,1.5)}var _=Date.now(),x=(p(1)-m)/c,b=n.duration?1e3*n.duration:1e3*x*.8;function T(){var n=(Date.now()-_)/b,o=E(n)*x;n<=1?(this._flyToFrame=A(T,this),this._move(this.unproject(i.add(r.subtract(i).multiplyBy(y(o)/u)),s),this.getScaleZoom(a/v(o),s),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),T.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=j(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,j(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=k((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=k(e.paddingBottomRight||e.padding||[0,0]),r=this.project(this.getCenter()),o=this.project(t),s=this.getPixelBounds(),a=G([s.min.add(n),s.max.subtract(i)]),l=a.getSize();if(!a.contains(o)){this._enforcingBounds=!0;var u=o.subtract(a.getCenter()),c=a.extend(o).getSize().subtract(l);r.x+=u.x<0?-c.x:c.x,r.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(r),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=e.divideBy(2).round(),s=i.divideBy(2).round(),a=o.subtract(s);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=r(this._handleGeolocationResponse,this),i=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new F(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var r=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(r,i.maxZoom):r)}var o={latlng:e,bounds:n,timestamp:t.timestamp};for(var s in t.coords)"number"==typeof t.coords[s]&&(o[s]=t.coords[s]);this.fire("locationfound",o)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&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(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),me(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(C(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)me(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=ge("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new B(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=j(t),n=k(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(n),u=G(this.project(a,i),this.project(s,i)).getSize(),c=Bt.any3d?this.options.zoomSnap:1,h=l.x/u.x,p=l.y/u.y,d=e?Math.max(h,p):Math.min(h,p);return i=this.getScaleZoom(d,i),c&&(i=Math.round(i/(c/100))*(c/100),i=e?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(r,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new D(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(U(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(k(t),e)},layerPointToLatLng:function(t){var e=k(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(U(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(U(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(U(t),U(e))},containerPointToLayerPoint:function(t){return k(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return k(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(k(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(U(t)))},mouseEventToContainerPoint:function(t){return Ke(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=de(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");je(e,"scroll",this._onScroll,this),this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Bt.any3d,xe(t,"leaflet-container"+(Bt.touch?" leaflet-touch":"")+(Bt.retina?" leaflet-retina":"")+(Bt.ielt9?" leaflet-oldie":"")+(Bt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=fe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ie(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(xe(t.markerPane,"leaflet-zoom-hide"),xe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){Ie(this._mapPane,new M(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var r=this._zoom!==e;this._moveStart(r,n)._move(t,e)._moveEnd(r),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var r=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return C(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ie(this._mapPane,this._getMapPanePos().subtract(t))},_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(t){this._targets={},this._targets[s(this._container)]=this;var e=t?Ue:je;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Bt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){C(this._resizeRequest),this._resizeRequest=A(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],r="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,a=!1;o;){if((n=this._targets[s(o)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)){if(r&&!en(o,t))break;if(i.push(n),r)break}if(o===this._container)break;o=o.parentNode}return i.length||a||r||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Oe(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if("click"===t.type){var r=n({},t);r.type="preclick",this._fireDOMEvent(r,r.type,i)}var o=this._findEventTargets(t,e);if(i){for(var s=[],a=0;a<i.length;a++)i[a].listens(e,!0)&&s.push(i[a]);o=s.concat(o)}if(o.length){"contextmenu"===e&&Xe(t);var l=o[0],u={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(a=0;a<o.length;a++)if(o[a].fire(e,u,!0),u.originalEvent._stopped||!1===o[a].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return we(this._mapPane)||new M(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return G([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),r=this.getSize().divideBy(2),o=new D(i.subtract(r),i.add(r)),s=this._getBoundsOffset(o,n,e);return Math.abs(s.x)<=1&&Math.abs(s.y)<=1?t:this.unproject(i.add(s),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new D(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=G(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),r=i.min.subtract(t.min),o=i.max.subtract(t.max);return new M(this._rebound(r.x,-o.x),this._rebound(r.y,-o.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=Bt.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){be(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=ge("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=ce,n=this._proxy.style[e];Ne(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){me(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Ne(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),r=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(r)||(A(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&be(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 sn(t,e){return new on(t,e)}var an=I.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return xe(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(me(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ln=function(t){return new an(t)};on.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=ge("div",e+"control-container",this._container);function i(i,r){var o=e+i+" "+e+r;t[i+r]=ge("div",o,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)me(this._controlCorners[t]);me(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var un=an.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return an.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(s(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){xe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(xe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):be(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return be(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=ge("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Qe(e),Ze(e);var i=this._section=ge("section",t+"-list");n&&(this._map.on("click",this.collapse,this),je(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var r=this._layersLink=ge("a",t+"-toggle",e);r.href="#",r.title="Layers",r.setAttribute("role","button"),je(r,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Xe(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=ge("div",t+"-base",i),this._separator=ge("div",t+"-separator",i),this._overlaysList=ge("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&s(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(r(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ve(this._baseLayersList),ve(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,r=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,r+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&r>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(s(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+s(this),i),this._layerControlInputs.push(e),e.layerId=s(t.layer),je(e,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+t.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(e),o.appendChild(r),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,i=[],r=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||r.push(e);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])&&this._map.removeLayer(r[o]);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])||this._map.addLayer(i[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,je(t,"click",Xe),this.expand();var e=this;setTimeout(function(){Ue(t,"click",Xe),e._preventClick=!1})}}),cn=function(t,e,n){return new un(t,e,n)},hn=an.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=ge("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.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(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,r){var o=ge("a",n,i);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Qe(o),je(o,"click",Ye),je(o,"click",r,this),je(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";be(this._zoomInButton,e),be(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(xe(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(xe(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});on.mergeOptions({zoomControl:!0}),on.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new hn,this.addControl(this.zoomControl))});var pn=function(t){return new hn(t)},dn=an.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=ge("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=ge("div",e,n)),t.imperial&&(this._iScale=ge("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,r=3.2808399*t;r>5280?(e=r/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(r),this._updateScale(this._iScale,i+" ft",i/r))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),fn=function(t){return new dn(t)},gn='<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>',mn=an.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Bt.inlineSvg?gn+" ":"")+"Leaflet</a>"},initialize:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=ge("div","leaflet-control-attribution"),Qe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});on.mergeOptions({attributionControl:!0}),on.addInitHook(function(){this.options.attributionControl&&(new mn).addTo(this)});var vn=function(t){return new mn(t)};an.Layers=un,an.Zoom=hn,an.Scale=dn,an.Attribution=mn,ln.layers=cn,ln.zoom=pn,ln.scale=fn,ln.attribution=vn;var yn=I.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});yn.addTo=function(t,e){return t.addHandler(e,this),this};var En={Events:R},_n=Bt.touch?"touchstart mousedown":"mousedown",xn=P.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){d(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(je(this._dragStartTarget,_n,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(xn._dragging===this&&this.finishDrag(!0),Ue(this._dragStartTarget,_n,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!_e(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)xn._dragging===this&&this.finishDrag();else if(!(xn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(xn._dragging=this,this._preventOutline&&Oe(this._element),Pe(),oe(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=De(this._element);this._startPoint=new M(e.clientX,e.clientY),this._startPos=we(this._element),this._parentScale=Ge(n);var i="mousedown"===t.type;je(document,i?"mousemove":"touchmove",this._onMove,this),je(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new M(e.clientX,e.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,Xe(t),this._moved||(this.fire("dragstart"),this._moved=!0,xe(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),xe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Ie(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){be(document.body,"leaflet-dragging"),this._lastTarget&&(be(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ue(document,"mousemove touchmove",this._onMove,this),Ue(document,"mouseup touchend touchcancel",this._onUp,this),Me(),se();var e=this._moved&&this._moving;this._moving=!1,xn._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function bn(t,e,n){var i,r,o,s,a,l,u,c,h,p=[1,4,2,8];for(r=0,u=t.length;r<u;r++)t[r]._code=kn(t[r],e);for(s=0;s<4;s++){for(c=p[s],i=[],r=0,o=(u=t.length)-1;r<u;o=r++)a=t[r],l=t[o],a._code&c?l._code&c||((h=On(l,a,c,e,n))._code=kn(h,e),i.push(h)):(l._code&c&&((h=On(l,a,c,e,n))._code=kn(h,e),i.push(h)),i.push(a));t=i}return t}function Tn(t,e){var n,i,r,o,s,a,l,u,c;if(!t||0===t.length)throw new Error("latlngs not passed");Bn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var h=U([0,0]),p=j(t);p.getNorthWest().distanceTo(p.getSouthWest())*p.getNorthEast().distanceTo(p.getNorthWest())<1700&&(h=Sn(t));var d=t.length,f=[];for(n=0;n<d;n++){var g=U(t[n]);f.push(e.project(U([g.lat-h.lat,g.lng-h.lng])))}for(a=l=u=0,n=0,i=d-1;n<d;i=n++)r=f[n],o=f[i],s=r.y*o.x-o.y*r.x,l+=(r.x+o.x)*s,u+=(r.y+o.y)*s,a+=3*s;c=0===a?f[0]:[l/a,u/a];var m=e.unproject(k(c));return U([m.lat+h.lat,m.lng+h.lng])}function Sn(t){for(var e=0,n=0,i=0,r=0;r<t.length;r++){var o=U(t[r]);e+=o.lat,n+=o.lng,i++}return U([e/i,n/i])}var An,Ln={__proto__:null,clipPolygon:bn,polygonCenter:Tn,centroid:Sn};function Cn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=wn(t=Pn(t,n),n)}function Nn(t,e,n){return Math.sqrt(Gn(t,e,n,!0))}function In(t,e,n){return Gn(t,e,n)}function wn(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,Rn(t,i,e,0,n-1);var r,o=[];for(r=0;r<n;r++)i[r]&&o.push(t[r]);return o}function Rn(t,e,n,i,r){var o,s,a,l=0;for(s=i+1;s<=r-1;s++)(a=Gn(t[s],t[i],t[r],!0))>l&&(o=s,l=a);l>n&&(e[o]=1,Rn(t,e,n,i,o),Rn(t,e,n,o,r))}function Pn(t,e){for(var n=[t[0]],i=1,r=0,o=t.length;i<o;i++)Dn(t[i],t[r])>e&&(n.push(t[i]),r=i);return r<o-1&&n.push(t[o-1]),n}function Mn(t,e,n,i,r){var o,s,a,l=i?An:kn(t,n),u=kn(e,n);for(An=u;;){if(!(l|u))return[t,e];if(l&u)return!1;a=kn(s=On(t,e,o=l||u,n,r),n),o===l?(t=s,l=a):(e=s,u=a)}}function On(t,e,n,i,r){var o,s,a=e.x-t.x,l=e.y-t.y,u=i.min,c=i.max;return 8&n?(o=t.x+a*(c.y-t.y)/l,s=c.y):4&n?(o=t.x+a*(u.y-t.y)/l,s=u.y):2&n?(o=c.x,s=t.y+l*(c.x-t.x)/a):1&n&&(o=u.x,s=t.y+l*(u.x-t.x)/a),new M(o,s,r)}function kn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function Dn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function Gn(t,e,n,i){var r,o=e.x,s=e.y,a=n.x-o,l=n.y-s,u=a*a+l*l;return u>0&&((r=((t.x-o)*a+(t.y-s)*l)/u)>1?(o=n.x,s=n.y):r>0&&(o+=a*r,s+=l*r)),a=t.x-o,l=t.y-s,i?a*a+l*l:new M(o,s)}function Bn(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function jn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Bn(t)}function Fn(t,e){var n,i,r,o,s,a,l,u;if(!t||0===t.length)throw new Error("latlngs not passed");Bn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=U([0,0]),h=j(t);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(c=Sn(t));var p=t.length,d=[];for(n=0;n<p;n++){var f=U(t[n]);d.push(e.project(U([f.lat-c.lat,f.lng-c.lng])))}for(n=0,i=0;n<p-1;n++)i+=d[n].distanceTo(d[n+1])/2;if(0===i)u=d[0];else for(n=0,o=0;n<p-1;n++)if(s=d[n],a=d[n+1],(o+=r=s.distanceTo(a))>i){l=(o-i)/r,u=[a.x-l*(a.x-s.x),a.y-l*(a.y-s.y)];break}var g=e.unproject(k(u));return U([g.lat+c.lat,g.lng+c.lng])}var Un={__proto__:null,simplify:Cn,pointToSegmentDistance:Nn,closestPointOnSegment:In,clipSegment:Mn,_getEdgeIntersection:On,_getBitCode:kn,_sqClosestPointOnSegment:Gn,isFlat:Bn,_flat:jn,polylineCenter:Fn},Hn={project:function(t){return new M(t.lng,t.lat)},unproject:function(t){return new F(t.y,t.x)},bounds:new D([-180,-90],[180,90])},qn={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),s=o*Math.sin(i),a=Math.tan(Math.PI/4-i/2)/Math.pow((1-s)/(1+s),o/2);return i=-n*Math.log(Math.max(a,1e-10)),new M(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),s=Math.exp(-t.y/i),a=Math.PI/2-2*Math.atan(s),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)e=o*Math.sin(a),e=Math.pow((1-e)/(1+e),o/2),a+=u=Math.PI/2-2*Math.atan(s*e)-a;return new F(a*n,t.x*n/i)}},zn={__proto__:null,LonLat:Hn,Mercator:qn,SphericalMercator:W},Vn=n({},z,{code:"EPSG:3395",projection:qn,transformation:function(){var t=.5/(Math.PI*qn.R);return Q(t,.5,-t,.5)}()}),Wn=n({},z,{code:"EPSG:4326",projection:Hn,transformation:Q(1/180,1,-1/180,.5)}),Zn=n({},q,{projection:Hn,transformation:Q(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});q.Earth=z,q.EPSG3395=Vn,q.EPSG3857=X,q.EPSG900913=Y,q.EPSG4326=Wn,q.Simple=Zn;var Qn=P.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[s(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[s(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});on.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=s(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=s(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return s(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?v(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[s(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=s(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var r=this._zoomBoundLayers[i].options;t=void 0===r.minZoom?t:Math.min(t,r.minZoom),e=void 0===r.maxZoom?e:Math.max(e,r.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Xn=Qn.extend({initialize:function(t,e){var n,i;if(d(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return s(t)}}),Yn=function(t,e){return new Xn(t,e)},$n=Xn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Xn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Xn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new B;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Kn=function(t,e){return new $n(t,e)},Jn=I.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var r=k(i),o=k("shadow"===e&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),r&&(t.style.width=r.x+"px",t.style.height=r.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Bt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function ti(t){return new Jn(t)}var ei=Jn.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(t){return"string"!=typeof ei.imagePath&&(ei.imagePath=this._detectIconPath()),(this.options.imagePath||ei.imagePath)+Jn.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var i=e.exec(t);return i&&i[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ge("div","leaflet-default-icon-path",document.body),e=fe(t,"background-image")||fe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),ni=yn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new xn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),xe(t,"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&&be(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=we(e._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=G(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r));if(!l.contains(o)){var u=k((Math.max(l.max.x,o.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(i);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),Ie(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=A(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(C(this._panRequest),this._panRequest=A(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=we(e._icon),r=e._map.layerPointToLatLng(i);n&&Ie(n,i),e._latlng=r,t.latlng=r,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){C(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ii=Qn.extend({options:{icon:new ei,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(t,e){d(this,e),this._latlng=U(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.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(t){var e=this._latlng;return this._latlng=U(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,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 t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),xe(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(n,"focus",this._panOnFocus,this);var r=t.icon.createShadow(this._shadow),o=!1;r!==this._shadow&&(this._removeShadow(),o=!0),r&&(xe(r,e),r.alt=""),this._shadow=r,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ue(this._icon,"focus",this._panOnFocus,this),me(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&me(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Ie(this._icon,t),this._shadow&&Ie(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(xe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ni)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ni(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Ae(this._icon,t),this._shadow&&Ae(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?k(e.iconSize):k(0,0),i=e.iconAnchor?k(e.iconAnchor):k(0,0);t.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ri(t,e){return new ii(t,e)}var oi=Qn.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(t){this._renderer=t.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(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"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)}}),si=oi.extend({options:{fill:!0,radius:10},initialize:function(t,e){d(this,e),this._latlng=U(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=U(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return oi.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new D(this._point.subtract(i),this._point.add(i))},_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(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ai(t,e){return new si(t,e)}var li=si.extend({initialize:function(t,e,i){if("number"==typeof e&&(e=n({},i,{radius:e})),d(this,e),this._latlng=U(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new B(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:oi.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===z.distance){var r=Math.PI/180,o=this._mRadius/z.R/r,s=n.project([e+o,t]),a=n.project([e-o,t]),l=s.add(a).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(o*r)-Math.sin(e*r)*Math.sin(u*r))/(Math.cos(e*r)*Math.cos(u*r)))/r;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,t-c]).x,this._radiusY=l.y-s.y}else{var h=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}});function ui(t,e,n){return new li(t,e,n)}var ci=oi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){d(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,r=null,o=Gn,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],u=1,c=l.length;u<c;u++){var h=o(t,e=l[u-1],n=l[u],!0);h<i&&(i=h,r=o(t,e,n))}return r&&(r.distance=Math.sqrt(i)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=U(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new B,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Bn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Bn(t),i=0,r=t.length;i<r;i++)n?(e[i]=U(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new D;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new M(t,t);this._rawPxBounds&&(this._pxBounds=new D([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var i,r,o=t[0]instanceof F,s=t.length;if(o){for(r=[],i=0;i<s;i++)r[i]=this._map.latLngToLayerPoint(t[i]),n.extend(r[i]);e.push(r)}else for(i=0;i<s;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,r,o,s,a,l=this._parts;for(e=0,i=0,r=this._rings.length;e<r;e++)for(n=0,o=(a=this._rings[e]).length;n<o-1;n++)(s=Mn(a[n],a[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(s[0]),s[1]===a[n+1]&&n!==o-2||(l[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=Cn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,r,o,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(i=0,r=(s=(a=this._parts[n]).length)-1;i<s;r=i++)if((e||0!==i)&&Nn(t,a[r],a[i])<=l)return!0;return!1}});function hi(t,e){return new ci(t,e)}ci._flat=jn;var pi=ci.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 Tn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=ci.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof F&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){ci.prototype._setLatLngs.call(this,t),Bn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Bn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new M(e,e);if(t=new D(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,r=0,o=this._rings.length;r<o;r++)(i=bn(this._rings[r],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,r,o,s,a,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,a=this._parts.length;r<a;r++)for(o=0,s=(l=(e=this._parts[r]).length)-1;o<l;s=o++)n=e[o],i=e[s],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u||ci.prototype._containsPoint.call(this,t,!0)}});function di(t,e){return new pi(t,e)}var fi=$n.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,r=v(t)?t:t.features;if(r){for(e=0,n=r.length;e<n;e++)((i=r[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var s=gi(t,o);return s?(s.feature=bi(t),s.defaultOptions=s.options,this.resetStyle(s),o.onEachFeature&&o.onEachFeature(t,s),this.addLayer(s)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function gi(t,e){var n,i,r,o,s="Feature"===t.type?t.geometry:t,a=s?s.coordinates:null,l=[],u=e&&e.pointToLayer,c=e&&e.coordsToLatLng||vi;if(!a&&!s)return null;switch(s.type){case"Point":return mi(u,t,n=c(a),e);case"MultiPoint":for(r=0,o=a.length;r<o;r++)n=c(a[r]),l.push(mi(u,t,n,e));return new $n(l);case"LineString":case"MultiLineString":return i=yi(a,"LineString"===s.type?0:1,c),new ci(i,e);case"Polygon":case"MultiPolygon":return i=yi(a,"Polygon"===s.type?1:2,c),new pi(i,e);case"GeometryCollection":for(r=0,o=s.geometries.length;r<o;r++){var h=gi({geometry:s.geometries[r],type:"Feature",properties:t.properties},e);h&&l.push(h)}return new $n(l);case"FeatureCollection":for(r=0,o=s.features.length;r<o;r++){var p=gi(s.features[r],e);p&&l.push(p)}return new $n(l);default:throw new Error("Invalid GeoJSON object.")}}function mi(t,e,n,i){return t?t(e,n):new ii(n,i&&i.markersInheritOptions&&i)}function vi(t){return new F(t[1],t[0],t[2])}function yi(t,e,n){for(var i,r=[],o=0,s=t.length;o<s;o++)i=e?yi(t[o],e-1,n):(n||vi)(t[o]),r.push(i);return r}function Ei(t,e){return void 0!==(t=U(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function _i(t,e,n,i){for(var r=[],o=0,s=t.length;o<s;o++)r.push(e?_i(t[o],Bn(t[o])?0:e-1,n,i):Ei(t[o],i));return!e&&n&&r.length>0&&r.push(r[0].slice()),r}function xi(t,e){return t.feature?n({},t.feature,{geometry:e}):bi(e)}function bi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Ti={toGeoJSON:function(t){return xi(this,{type:"Point",coordinates:Ei(this.getLatLng(),t)})}};function Si(t,e){return new fi(t,e)}ii.include(Ti),li.include(Ti),si.include(Ti),ci.include({toGeoJSON:function(t){var e=!Bn(this._latlngs);return xi(this,{type:(e?"Multi":"")+"LineString",coordinates:_i(this._latlngs,e?1:0,!1,t)})}}),pi.include({toGeoJSON:function(t){var e=!Bn(this._latlngs),n=e&&!Bn(this._latlngs[0]),i=_i(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),xi(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Xn.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),xi(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer(function(e){if(e.toGeoJSON){var r=e.toGeoJSON(t);if(n)i.push(r.geometry);else{var o=bi(r);"FeatureCollection"===o.type?i.push.apply(i,o.features):i.push(o)}}}),n?xi(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Ai=Si,Li=Qn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=j(e),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(xe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){me(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ye(this._image),this},bringToBack:function(){return this._map&&Ee(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=j(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:ge("img");xe(e,"leaflet-image-layer"),this._zoomAnimated&&xe(e,"leaflet-zoom-animated"),this.options.className&&xe(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onload=r(this.fire,this,"load"),e.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Ne(this._image,n,e)},_reset:function(){var t=this._image,e=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Ie(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){Ae(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Ci=function(t,e,n){return new Li(t,e,n)},Ni=Li.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:ge("video");if(xe(e,"leaflet-image-layer"),this._zoomAnimated&&xe(e,"leaflet-zoom-animated"),this.options.className&&xe(e,this.options.className),e.onselectstart=u,e.onmousemove=u,e.onloadeddata=r(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],o=0;o<n.length;o++)i.push(n[o].src);this._url=n.length>0?i:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=ge("source");a.src=this._url[s],e.appendChild(a)}}}});function Ii(t,e,n){return new Ni(t,e,n)}var wi=Li.extend({_initImage:function(){var t=this._image=this._url;xe(t,"leaflet-image-layer"),this._zoomAnimated&&xe(t,"leaflet-zoom-animated"),this.options.className&&xe(t,this.options.className),t.onselectstart=u,t.onmousemove=u}});function Ri(t,e,n){return new wi(t,e,n)}var Pi=Qn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof F||v(t))?(this._latlng=U(t),d(this,e)):(d(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Ae(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Ae(this._container,1),this.bringToFront(),this.options.interactive&&(xe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Ae(this._container,0),this._removeTimeout=setTimeout(r(me,void 0,this._container),200)):me(this._container),this.options.interactive&&(be(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=U(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,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 t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ye(this._container),this},bringToBack:function(){return this._map&&Ee(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof $n){e=null;var n=this._source._layers;for(var i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=k(this.options.offset),n=this._getAnchor();this._zoomAnimated?Ie(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}});on.include({_initOverlay:function(t,e,n,i){var r=e;return r instanceof t||(r=new t(i).setContent(e)),n&&r.setLatLng(n),r}}),Qn.include({_initOverlay:function(t,e,n,i){var r=n;return r instanceof t?(d(r,i),r._source=this):(r=e&&!i?e:new t(i,this)).setContent(n),r}});var Mi=Pi.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(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Pi.prototype.openOn.call(this,t)},onAdd:function(t){Pi.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof oi||this._source.on("preclick",We))},onRemove:function(t){Pi.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof oi||this._source.off("preclick",We))},getEvents:function(){var t=Pi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=ge("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ge("div",t+"-content-wrapper",e);if(this._contentNode=ge("div",t+"-content",n),Qe(e),Ze(this._contentNode),je(e,"contextmenu",We),this._tipContainer=ge("div",t+"-tip-container",e),this._tip=ge("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=ge("a",t+"-close-button",e);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">×</span>',je(i,"click",function(t){Xe(t),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";r&&i>r?(e.height=r+"px",xe(t,o)):be(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Ie(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(fe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,r=new M(this._containerLeft,-n-this._containerBottom);r._add(we(this._container));var o=t.layerPointToContainerPoint(r),s=k(this.options.autoPanPadding),a=k(this.options.autoPanPaddingTopLeft||s),l=k(this.options.autoPanPaddingBottomRight||s),u=t.getSize(),c=0,h=0;o.x+i+l.x>u.x&&(c=o.x+i-u.x+l.x),o.x-c-a.x<0&&(c=o.x-a.x),o.y+n+l.y>u.y&&(h=o.y+n-u.y+l.y),o.y-h-a.y<0&&(h=o.y-a.y),(c||h)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,h]))}},_getAnchor:function(){return k(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Oi=function(t,e){return new Mi(t,e)};on.mergeOptions({closePopupOnClick:!0}),on.include({openPopup:function(t,e,n){return this._initOverlay(Mi,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Qn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Mi,this._popup,t,e),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(t){return this._popup&&(this instanceof $n||(this._popup._source=this),this._popup._prepareOpen(t||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()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ye(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof oi?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ki=Pi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Pi.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Pi.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Pi.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ge("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+s(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,r=this._container,o=i.latLngToContainerPoint(i.getCenter()),s=i.layerPointToContainerPoint(t),a=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,c=k(this.options.offset),h=this._getAnchor();"top"===a?(e=l/2,n=u):"bottom"===a?(e=l/2,n=0):"center"===a?(e=l/2,n=u/2):"right"===a?(e=0,n=u/2):"left"===a?(e=l,n=u/2):s.x<o.x?(a="right",e=0,n=u/2):(a="left",e=l+2*(c.x+h.x),n=u/2),t=t.subtract(k(e,n,!0)).add(c).add(h),be(r,"leaflet-tooltip-right"),be(r,"leaflet-tooltip-left"),be(r,"leaflet-tooltip-top"),be(r,"leaflet-tooltip-bottom"),xe(r,"leaflet-tooltip-"+a),Ie(r,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Ae(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return k(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Di=function(t,e){return new ki(t,e)};on.include({openTooltip:function(t,e,n){return this._initOverlay(ki,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Qn.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ki,this._tooltip,t,e),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(t){if(t||!this._tooltipHandlersAdded){var e=t?"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[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof $n||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(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(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(je(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),je(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var Gi=Jn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ve(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=k(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Bi(t){return new Gi(t)}Jn.Default=ei;var ji=Qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Bt.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(t){d(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),me(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ye(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ee(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof M?t:new M(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),r=0,o=n.length;r<o;r++)e=n[r].style.zIndex,n[r]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Bt.ielt9){Ae(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var r=this._tiles[i];if(r.current&&r.loaded){var o=Math.min(1,(t-r.loaded)/200);Ae(r.el,o),o<1?e=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(C(this._fadeFrame),this._fadeFrame=A(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=ge("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(me(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],r=this._map;return i||((i=this._levels[t]={}).el=ge("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=r.project(r.unproject(r.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,r.getCenter(),r.getZoom()),u(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)me(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var r=Math.floor(t/2),o=Math.floor(e/2),s=n-1,a=new M(+r,+o);a.z=+s;var l=this._tileCoordsToKey(a),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),s>i&&this._retainParent(r,o,s,i))},_retainChildren:function(t,e,n,i){for(var r=2*t;r<2*t+2;r++)for(var o=2*e;o<2*e+2;o++){var s=new M(r,o);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(r,o,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var r=Math.round(e);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var o=this.options.updateWhenZooming&&r!==this._tileZoom;i&&!o||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),r=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();Bt.any3d?Ne(t.el,r,i):Ie(t.el,r)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),r=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*i);return new D(r.subtract(o),r.add(o))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),r=this._pxBoundsToTileRange(i),o=r.getCenter(),s=[],a=this.options.keepBuffer,l=new D(r.getBottomLeft().subtract([a,-a]),r.getTopRight().add([a,-a]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new M(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var h=r.min.y;h<=r.max.y;h++)for(var p=r.min.x;p<=r.max.x;p++){var d=new M(p,h);if(d.z=this._tileZoom,this._isValidTile(d)){var f=this._tiles[this._tileCoordsToKey(d)];f?f.current=!0:s.push(d)}}if(s.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)}),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(p=0;p<s.length;p++)this._addTile(s[p],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),r=i.add(n);return[e.unproject(i,t.z),e.unproject(r,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new B(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new M(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(me(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){xe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,Bt.ielt9&&this.options.opacity<1&&Ae(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&A(r(this._tileReady,this,t,null,o)),Ie(o,n),this._tiles[i]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(Ae(n.el,0),C(this._fadeFrame),this._fadeFrame=A(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(xe(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Bt.ielt9||!this._map._fadeAnimated?A(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Fi(t){return new ji(t)}var Ui=ji.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&Bt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return je(n,"load",r(this._tileOnLoad,this,e,n)),je(n,"error",r(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Bt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return m(this._url,n(e,this.options))},_tileOnLoad:function(t,e){Bt.ielt9?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=u,e.onerror=u,!e.complete)){e.src=E;var n=this._tiles[t].coords;me(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",E),ji.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==E))return ji.prototype._tileReady.call(this,t,e,n)}});function Hi(t,e){return new Ui(t,e)}var qi=Ui.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=n({},this.defaultWmsParams);for(var r in e)r in this.options||(i[r]=e[r]);var o=(e=d(this,e)).detectRetina&&Bt.retina?2:1,s=this.getTileSize();i.width=s.x*o,i.height=s.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Ui.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=G(n.project(e[0]),n.project(e[1])),r=i.min,o=i.max,s=(this._wmsVersion>=1.3&&this._crs===Wn?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),a=Ui.prototype.getTileUrl.call(this,t);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function zi(t,e){return new qi(t,e)}Ui.WMS=qi,Hi.wms=zi;var Vi=Qn.extend({options:{padding:.1},initialize:function(t){d(this,t),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),xe(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 t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),o=i.multiplyBy(-n).add(r).subtract(this._map._getNewPixelOrigin(t,e));Bt.any3d?Ne(this._container,o,n):Ie(this._container,o)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Wi=Vi.extend({options:{tolerance:0},getEvents:function(){var t=Vi.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this),je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),je(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){C(this._redrawRequest),delete this._ctx,me(this._container),Ue(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vi.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=Bt.retina?2:1;Ie(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Bt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Vi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[s(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;r.push(e)}t.options._dashArray=r}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||A(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_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 t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.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 t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,r,o,s=t._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(i=0,r=s[n].length;i<r;i++)o=s[n][i],l[i?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),r=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(e.x,e.y/r,i,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),r=this._drawFirst;r;r=r.next)(e=r.layer).options.interactive&&e._containsPoint(i)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(be(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,i,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(xe(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(r(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Zi(t){return Bt.canvas?new Wi(t):null}var Qi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Xi={_initContainer:function(){this._container=ge("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Qi("shape");xe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Qi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;me(e),t.removeInteractiveTarget(e),delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,r=t._container;r.stroked=!!i.stroke,r.filled=!!i.fill,i.stroke?(e||(e=t._stroke=Qi("stroke")),r.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=v(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(r.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=Qi("fill")),r.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(r.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ye(t._container)},_bringToBack:function(t){Ee(t._container)}},Yi=Bt.vml?Qi:$,$i=Vi.extend({_initContainer:function(){this._container=Yi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Yi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){me(this._container),Ue(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vi.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Ie(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Yi("path");t.options.className&&xe(e,t.options.className),t.options.interactive&&xe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){me(t._path),t.removeInteractiveTarget(t._path),delete this._layers[s(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,K(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",r=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ye(t._path)},_bringToBack:function(t){Ee(t._path)}});function Ki(t){return Bt.svg||Bt.vml?new $i(t):null}Bt.vml&&$i.include(Xi),on.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Zi(t)||Ki(t)}});var Ji=pi.extend({initialize:function(t,e){pi.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function tr(t,e){return new Ji(t,e)}$i.create=Yi,$i.pointsToPath=K,fi.geometryToLayer=gi,fi.coordsToLatLng=vi,fi.coordsToLatLngs=yi,fi.latLngToCoords=Ei,fi.latLngsToCoords=_i,fi.getFeature=xi,fi.asFeature=bi,on.mergeOptions({boxZoom:!0});var er=yn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ue(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){me(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),oe(),Pe(),this._startPoint=this._map.mouseEventToContainerPoint(t),je(document,{contextmenu:Ye,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ge("div","leaflet-zoom-box",this._container),xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),n=e.getSize();Ie(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(me(this._box),be(this._container,"leaflet-crosshair")),se(),Me(),Ue(document,{contextmenu:Ye,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new B(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});on.addInitHook("addHandler","boxZoom",er),on.mergeOptions({doubleClickZoom:!0});var nr=yn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,r=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(r):e.setZoomAround(t.containerPoint,r)}});on.addInitHook("addHandler","doubleClickZoom",nr),on.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ir=yn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new xn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}xe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){be(this._map._container,"leaflet-grab"),be(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 t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=G(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-e+n)%t+e-n,o=(i+e+n)%t-e-n,s=Math.abs(r+n)<Math.abs(o+n)?r:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=r.multiplyBy(s/o),l=a.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=a.multiplyBy(u/l),h=u/(n.inertiaDeceleration*s),p=c.multiplyBy(-h/2).round();p.x||p.y?(p=e._limitOffset(p,e.options.maxBounds),A(function(){e.panBy(p,{duration:h,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}});on.addInitHook("addHandler","dragging",ir),on.mergeOptions({keyboard:!0,keyboardPanDelta:80});var rr=yn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),je(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ue(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 t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},r=this.keyCodes;for(e=0,n=r.left.length;e<n;e++)i[r.left[e]]=[-1*t,0];for(e=0,n=r.right.length;e<n;e++)i[r.right[e]]=[t,0];for(e=0,n=r.down.length;e<n;e++)i[r.down[e]]=[0,t];for(e=0,n=r.up.length;e<n;e++)i[r.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},r=this.keyCodes;for(e=0,n=r.zoomIn.length;e<n;e++)i[r.zoomIn[e]]=t;for(e=0,n=r.zoomOut.length;e<n;e++)i[r.zoomOut[e]]=-t},_addHooks:function(){je(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ue(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=k(e).multiplyBy(3)),i.options.maxBounds&&(e=i._limitOffset(k(e),i.options.maxBounds)),i.options.worldCopyJump){var r=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(e)));i.panTo(r)}else i.panBy(e)}else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Ye(t)}}});on.addInitHook("addHandler","keyboard",rr),on.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var or=yn.extend({addHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ue(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=tn(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),i),Ye(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,o=n?Math.ceil(r/n)*n:r,s=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,s&&("center"===t.options.scrollWheelZoom?t.setZoom(e+s):t.setZoomAround(this._lastMousePos,e+s))}});on.addInitHook("addHandler","scrollWheelZoom",or);var sr=600;on.mergeOptions({tapHold:Bt.touchNative&&Bt.safari&&Bt.mobile,tapTolerance:15});var ar=yn.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ue(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new M(e.clientX,e.clientY),this._holdTimeout=setTimeout(r(function(){this._cancel(),this._isTapValid()&&(je(document,"touchend",Xe),je(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),sr),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Ue(document,"touchend",Xe),Ue(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Ue(document,"touchend touchcancel contextmenu",this._cancel,this),Ue(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new M(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});on.addInitHook("addHandler","tapHold",ar),on.mergeOptions({touchZoom:Bt.touch,bounceAtZoomLimits:!0});var lr=yn.extend({addHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){be(this._map._container,"leaflet-touch-zoom"),Ue(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),Xe(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var s=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===s.x&&0===s.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),C(this._animRequest);var a=r(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=A(a,this,!0),Xe(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,C(this._animRequest),Ue(document,"touchmove",this._onTouchMove,this),Ue(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))):this._zooming=!1}});on.addInitHook("addHandler","touchZoom",lr),on.BoxZoom=er,on.DoubleClickZoom=nr,on.Drag=ir,on.Keyboard=rr,on.ScrollWheelZoom=or,on.TapHold=ar,on.TouchZoom=lr,t.Bounds=D,t.Browser=Bt,t.CRS=q,t.Canvas=Wi,t.Circle=li,t.CircleMarker=si,t.Class=I,t.Control=an,t.DivIcon=Gi,t.DivOverlay=Pi,t.DomEvent=nn,t.DomUtil=Be,t.Draggable=xn,t.Evented=P,t.FeatureGroup=$n,t.GeoJSON=fi,t.GridLayer=ji,t.Handler=yn,t.Icon=Jn,t.ImageOverlay=Li,t.LatLng=F,t.LatLngBounds=B,t.Layer=Qn,t.LayerGroup=Xn,t.LineUtil=Un,t.Map=on,t.Marker=ii,t.Mixin=En,t.Path=oi,t.Point=M,t.PolyUtil=Ln,t.Polygon=pi,t.Polyline=ci,t.Popup=Mi,t.PosAnimation=rn,t.Projection=zn,t.Rectangle=Ji,t.Renderer=Vi,t.SVG=$i,t.SVGOverlay=wi,t.TileLayer=Ui,t.Tooltip=ki,t.Transformation=Z,t.Util=N,t.VideoOverlay=Ni,t.bind=r,t.bounds=G,t.canvas=Zi,t.circle=ui,t.circleMarker=ai,t.control=ln,t.divIcon=Bi,t.extend=n,t.featureGroup=Kn,t.geoJSON=Si,t.geoJson=Ai,t.gridLayer=Fi,t.icon=ti,t.imageOverlay=Ci,t.latLng=U,t.latLngBounds=j,t.layerGroup=Yn,t.map=sn,t.marker=ri,t.point=k,t.polygon=di,t.polyline=hi,t.popup=Oi,t.rectangle=tr,t.setOptions=d,t.stamp=s,t.svg=Ki,t.svgOverlay=Ri,t.tileLayer=Hi,t.tooltip=Di,t.transformation=Q,t.version=e,t.videoOverlay=Ii;var ur=window.L;t.noConflict=function(){return window.L=ur,this},window.L=t}(e)},4175:(t,e,n)=>{"use strict";n.d(e,{default:()=>Ve});var i=n(4360),r=n(9121),o=n(4758),s=n(365),a=n(8782),l=n(9604),u=n(232),c=n.n(u),h=n(4785),p=n(7440),d=n(2965),f=0;const g=function(t){var e=++f;return(0,d.A)(t)+e};var m=n(6422),v=n(3074);const y=function(t,e){var n=[];return(0,v.A)(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n};var E=n(5955),_=n(8285);const x=function(t,e){return((0,_.A)(t)?m.A:y)(t,(0,E.A)(e,3))};var b=n(5200);var T=n(3111);function S(t,e){if("string"==typeof t){var n=JSON.parse(t);if(e)for(var r in n.results.bindings)n.results.bindings[r]=e(n.results.bindings[r]);return n}if("object"==(0,i.A)(t)&&t.constructor==={}.constructor){if(e&&t.results)for(var o in t.results.bindings)t.results.bindings[o]=e(t.results.bindings[o]);return t}throw new Error("Could not parse json")}var A=n(2313),L="http://www.w3.org/1999/02/22-rdf-syntax-ns#",C="http://www.w3.org/2001/XMLSchema#",N="http://www.w3.org/2000/10/swap/";const I={xsd:{decimal:"".concat(C,"decimal"),boolean:"".concat(C,"boolean"),double:"".concat(C,"double"),integer:"".concat(C,"integer"),string:"".concat(C,"string")},rdf:{type:"".concat(L,"type"),nil:"".concat(L,"nil"),first:"".concat(L,"first"),rest:"".concat(L,"rest"),langString:"".concat(L,"langString")},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:"".concat(N,"reify#forSome"),forAll:"".concat(N,"reify#forAll")},log:{implies:"".concat(N,"log#implies"),isImpliedBy:"".concat(N,"log#isImpliedBy")}};function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function R(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,P(i.key),i)}}function P(t){var e=function(t,e){if("object"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==w(e)?e:e+""}var M=I.xsd,O=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,k={"\\":"\\","'":"'",'"':'"',n:"\n",r:"\r",t:"\t",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},D=/[\x00-\x20<>\\"\{\}\|\^\`]/,G={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},B=/$0^/,j=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._isImpliedBy=e.isImpliedBy,this._lineMode=!!e.lineMode)for(var n in this._n3Mode=!1,this)!(n in G)&&this[n]instanceof RegExp&&(this[n]=B);else this._n3Mode=!1!==e.n3;this.comments=!!e.comments,this._literalClosingPos=0},e=[{key:"_tokenizeToEnd",value:function(t,e){for(var n=this._input,i=n.length;;){for(var r=void 0,o=void 0;r=this._newline.exec(n);)this.comments&&(o=this._comment.exec(r[0]))&&y("comment",o[1],"",this._line,r[0].length),n=n.substr(r[0].length,n.length),i=n.length,this._line++;if(!r&&(r=this._whitespace.exec(n))&&(n=n.substr(r[0].length,n.length)),this._endOfFile.test(n))return e&&(this.comments&&(o=this._comment.exec(n))&&y("comment",o[1],"",this._line,n.length),n=null,y("eof","","",this._line,0)),this._input=n;var s=this._line,a=n[0],l="",u="",c="",h=null,p=0,d=!1;switch(a){case"^":if(n.length<3)break;if("^"!==n[1]){this._n3Mode&&(p=1,l="^");break}if(this._previousMarker="^^","<"!==(n=n.substr(2))[0]){d=!0;break}case"<":if(h=this._unescapedIri.exec(n))l="IRI",u=h[1];else if(h=this._iri.exec(n)){if(null===(u=this._unescape(h[1]))||D.test(u))return E(this);l="IRI"}else n.length>1&&"<"===n[1]?(l="<<",p=2):this._n3Mode&&n.length>1&&"="===n[1]&&(p=2,this._isImpliedBy?(l="abbreviation",u="<"):(l="inverse",u=">"));break;case">":n.length>1&&">"===n[1]&&(l=">>",p=2);break;case"_":((h=this._blank.exec(n))||e&&(h=this._blank.exec("".concat(n," "))))&&(l="blank",c="_",u=h[1]);break;case'"':if(h=this._simpleQuotedString.exec(n))u=h[1];else{var f=this._parseLiteral(n);if(u=f.value,p=f.matchLength,null===u)return E(this)}null===h&&0===p||(l="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(h=this._simpleApostropheString.exec(n))u=h[1];else{var g=this._parseLiteral(n);if(u=g.value,p=g.matchLength,null===u)return E(this)}null===h&&0===p||(l="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(h=this._variable.exec(n))&&(l="var",u=h[0]);break;case"@":"literal"===this._previousMarker&&(h=this._langcode.exec(n))?(l="langcode",u=h[1]):(h=this._keyword.exec(n))&&(l=h[0]);break;case".":if(1===n.length?e:n[1]<"0"||n[1]>"9"){l=".",p=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(h=this._number.exec(n)||e&&(h=this._number.exec("".concat(n," "))))&&(l="literal",u=h[0],c="string"==typeof h[1]?M.double:"string"==typeof h[2]?M.decimal:M.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(h=this._sparqlKeyword.exec(n))?l=h[0].toUpperCase():d=!0;break;case"f":case"t":(h=this._boolean.exec(n))?(l="literal",u=h[0],c=M.boolean):d=!0;break;case"a":(h=this._shortPredicates.exec(n))?(l="abbreviation",u="a"):d=!0;break;case"=":this._n3Mode&&n.length>1&&(l="abbreviation",">"!==n[1]?(p=1,u="="):(p=2,u=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(p=1,l=a);break;case"{":!this._lineMode&&n.length>=2&&("|"===n[1]?(l="{|",p=2):(l=a,p=1));break;case"|":n.length>=2&&"}"===n[1]&&(l="|}",p=2);break;default:d=!0}if(d&&("@prefix"!==this._previousMarker&&"PREFIX"!==this._previousMarker||!(h=this._prefix.exec(n))?((h=this._prefixed.exec(n))||e&&(h=this._prefixed.exec("".concat(n," "))))&&(l="prefixed",c=h[1]||"",u=this._unescape(h[2])):(l="prefix",u=h[1]||"")),"^^"===this._previousMarker)switch(l){case"prefixed":l="type";break;case"IRI":l="typeIRI";break;default:l=""}if(!l)return e||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?E(this):this._input=n;var m=p||h[0].length,v=y(l,u,c,s,m);this.previousToken=v,this._previousMarker=l,n=n.substr(m,n.length)}function y(e,r,o,s,a){var l=n?i-n.length:i,u={type:e,value:r,prefix:o,line:s,start:l,end:l+a};return t(null,u),u}function E(e){t(e._syntaxError(/^\S*/.exec(n)[0]))}}},{key:"_unescape",value:function(t){var e=!1,n=t.replace(O,function(t,n,i,r){if("string"==typeof n)return String.fromCharCode(Number.parseInt(n,16));if("string"==typeof i){var o=Number.parseInt(i,16);return o<=65535?String.fromCharCode(Number.parseInt(i,16)):String.fromCharCode(55296+((o-=65536)>>10),56320+(1023&o))}return r in k?k[r]:(e=!0,"")});return e?null:n}},{key:"_parseLiteral",value:function(t){if(t.length>=3){for(var e=t.match(/^(?:"""|"|'''|'|)/)[0],n=e.length,i=Math.max(this._literalClosingPos,n);(i=t.indexOf(e,i))>0;){for(var r=0;"\\"===t[i-r-1];)r++;if(r%2==0){var o=t.substring(n,i),s=o.split(/\r\n|\r|\n/).length-1,a=i+n;if(1===n&&0!==s||3===n&&this._lineMode)break;return this._line+=s,{value:this._unescape(o),matchLength:a}}i++}this._literalClosingPos=t.length-n+1}return{value:"",matchLength:0}}},{key:"_syntaxError",value:function(t){this._input=null;var e=new Error('Unexpected "'.concat(t,'" on line ').concat(this._line,"."));return e.context={token:void 0,line:this._line,previousToken:this.previousToken},e}},{key:"_readStartingBom",value:function(t){return t.startsWith("\ufeff")?t.substr(1):t}},{key:"tokenize",value:function(t,e){var n=this;if(this._line=1,"string"==typeof t){if(this._input=this._readStartingBom(t),"function"!=typeof e){var i,r=[];if(this._tokenizeToEnd(function(t,e){return t?i=t:r.push(e)},!0),i)throw i;return r}queueMicrotask(function(){return n._tokenizeToEnd(e,!0)})}else this._pendingBuffer=null,"function"==typeof t.setEncoding&&t.setEncoding("utf8"),t.on("data",function(t){null!==n._input&&0!==t.length&&(n._pendingBuffer&&(t=A.hp.concat([n._pendingBuffer,t]),n._pendingBuffer=null),128&t[t.length-1]?n._pendingBuffer=t:(void 0===n._input?n._input=n._readStartingBom("string"==typeof t?t:t.toString()):n._input+=t,n._tokenizeToEnd(e,!1)))}),t.on("end",function(){"string"==typeof n._input&&n._tokenizeToEnd(e,!0)}),t.on("error",e)}}],e&&R(t.prototype,e),n&&R(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function F(t){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(t)}function U(t,e,n){return e=z(e),H(t,q()?Reflect.construct(e,n||[],z(t).constructor):e.apply(t,n))}function H(t,e){if(e&&("object"==F(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(q=function(){return!!t})()}function z(t){return z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},z(t)}function V(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W(t,e)}function W(t,e){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},W(t,e)}function Z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Y(i.key),i)}}function X(t,e,n){return e&&Q(t.prototype,e),n&&Q(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Y(t){var e=function(t,e){if("object"!=F(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==F(e)?e:e+""}var $,K=I.rdf,J=I.xsd,tt=0,et={namedNode:ut,blankNode:ct,variable:pt,literal:ht,defaultGraph:function(){return $},quad:dt,triple:dt,fromTerm:ft,fromQuad:gt};const nt=et;var it=function(){function t(e){Z(this,t),this.id=e}return X(t,[{key:"value",get:function(){return this.id}},{key:"equals",value:function(e){return e instanceof t?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}},{key:"hashCode",value:function(){return 0}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value}}}])}(),rt=function(t){function e(){return Z(this,e),U(this,e,arguments)}return V(e,t),X(e,[{key:"termType",get:function(){return"NamedNode"}}])}(it),ot=function(t){function e(){return Z(this,e),U(this,e,arguments)}return V(e,t),X(e,[{key:"termType",get:function(){return"Literal"}},{key:"value",get:function(){return this.id.substring(1,this.id.lastIndexOf('"'))}},{key:"language",get:function(){var t=this.id,e=t.lastIndexOf('"')+1;return e<t.length&&"@"===t[e++]?t.substr(e).toLowerCase():""}},{key:"datatype",get:function(){return new rt(this.datatypeString)}},{key:"datatypeString",get:function(){var t=this.id,e=t.lastIndexOf('"')+1,n=e<t.length?t[e]:"";return"^"===n?t.substr(e+2):"@"!==n?J.string:K.langString}},{key:"equals",value:function(t){return t instanceof e?this.id===t.id:!!t&&!!t.datatype&&this.termType===t.termType&&this.value===t.value&&this.language===t.language&&this.datatype.value===t.datatype.value}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}}])}(it),st=function(t){function e(t){return Z(this,e),U(this,e,["_:".concat(t)])}return V(e,t),X(e,[{key:"termType",get:function(){return"BlankNode"}},{key:"value",get:function(){return this.id.substr(2)}}])}(it),at=function(t){function e(t){return Z(this,e),U(this,e,["?".concat(t)])}return V(e,t),X(e,[{key:"termType",get:function(){return"Variable"}},{key:"value",get:function(){return this.id.substr(1)}}])}(it);$=new(function(t){function e(){var t;return Z(this,e),H(t=U(this,e,[""]),$||t)}return V(e,t),X(e,[{key:"termType",get:function(){return"DefaultGraph"}},{key:"equals",value:function(t){return this===t||!!t&&this.termType===t.termType}}])}(it));var lt=function(t){function e(t,n,i,r){var o;return Z(this,e),(o=U(this,e,[""]))._subject=t,o._predicate=n,o._object=i,o._graph=r||$,o}return V(e,t),X(e,[{key:"termType",get:function(){return"Quad"}},{key:"subject",get:function(){return this._subject}},{key:"predicate",get:function(){return this._predicate}},{key:"object",get:function(){return this._object}},{key:"graph",get:function(){return this._graph}},{key:"toJSON",value:function(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}},{key:"equals",value:function(t){return!!t&&this._subject.equals(t.subject)&&this._predicate.equals(t.predicate)&&this._object.equals(t.object)&&this._graph.equals(t.graph)}}])}(it);function ut(t){return new rt(t)}function ct(t){return new st(t||"n3-".concat(tt++))}function ht(t,e){if("string"==typeof e)return new ot('"'.concat(t,'"@').concat(e.toLowerCase()));var n=e?e.value:"";return""===n&&("boolean"==typeof t?n=J.boolean:"number"==typeof t&&(Number.isFinite(t)?n=Number.isInteger(t)?J.integer:J.double:(n=J.double,Number.isNaN(t)||(t=t>0?"INF":"-INF")))),""===n||n===J.string?new ot('"'.concat(t,'"')):new ot('"'.concat(t,'"^^').concat(n))}function pt(t){return new at(t)}function dt(t,e,n,i){return new lt(t,e,n,i)}function ft(t){if(t instanceof it)return t;switch(t.termType){case"NamedNode":return ut(t.value);case"BlankNode":return ct(t.value);case"Variable":return pt(t.value);case"DefaultGraph":return $;case"Literal":return ht(t.value,t.language||t.datatype);case"Quad":return gt(t);default:throw new Error("Unexpected termType: ".concat(t.termType))}}function gt(t){if(t instanceof lt)return t;if("Quad"!==t.termType)throw new Error("Unexpected termType: ".concat(t.termType));return dt(ft(t.subject),ft(t.predicate),ft(t.object),ft(t.graph))}function mt(t){return mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mt(t)}function vt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,yt(i.key),i)}}function yt(t){var e=function(t,e){if("object"!=mt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=mt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==mt(e)?e:e+""}var Et=0,_t=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&bt(this,e.factory);var n="string"==typeof e.format?e.format.match(/\w*$/)[0].toLowerCase():"",i=/turtle/.test(n),r=/trig/.test(n),o=/triple/.test(n),s=/quad/.test(n),a=this._n3Mode=/n3/.test(n),l=o||s;(this._supportsNamedGraphs=!(i||a))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(i||r||o||a),this._isImpliedBy=e.isImpliedBy,this._supportsRDFStar=""===n||/star|\*$/.test(n),l&&(this._resolveRelativeIRI=function(t){return null}),this._blankNodePrefix="string"!=typeof e.blankNodePrefix?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new j({lineMode:l,n3:a,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!e.explicitQuantifiers},e=[{key:"_setBase",value:function(t){if(t){var e=t.indexOf("#");e>=0&&(t=t.substr(0,e)),this._base=t,this._basePath=t.indexOf("/")<0?t:t.replace(/[^\/?]*(?:\?.*)?$/,""),t=t.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=t[0],this._baseScheme=t[1]}else this._base="",this._basePath=""}},{key:"_saveContext",value:function(t,e,n,i,r){var o=this._n3Mode;this._contextStack.push({type:t,subject:n,predicate:i,object:r,graph:e,inverse:!!o&&this._inversePredicate,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?"".concat(this._graph.value,"."):".",this._quantified=Object.create(this._quantified))}},{key:"_restoreContext",value:function(t,e){var n=this._contextStack.pop();if(!n||n.type!==t)return this._error("Unexpected ".concat(e.type),e);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}},{key:"_readInTopContext",value:function(t){switch(t.type){case"eof":return null!==this._graph?this._error("Unclosed graph",t):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=!0;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=!0;case"@base":return this._readBaseIRI;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(t)}}},{key:"_readEntity",value:function(t,e){var n;switch(t.type){case"IRI":case"typeIRI":var i=this._resolveIRI(t.value);if(null===i)return this._error("Invalid IRI",t);n=this._factory.namedNode(i);break;case"type":case"prefixed":var r=this._prefixes[t.prefix];if(void 0===r)return this._error('Undefined prefix "'.concat(t.prefix,':"'),t);n=this._factory.namedNode(r+t.value);break;case"blank":n=this._factory.blankNode(this._prefixes[t.prefix]+t.value);break;case"var":n=this._factory.variable(t.value.substr(1));break;default:return this._error("Expected entity but got ".concat(t.type),t)}return!e&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}},{key:"_readSubject",value:function(t){switch(this._predicate=null,t.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._factory.blankNode(),null,null),this._readSubject):this._error("Unexpected graph",t);case"}":return this._readPunctuation(t);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',t);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',t);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",t);if(0===t.prefix.length)return this._literalValue=t.value,this._completeSubjectLiteral;this._subject=this._factory.literal(t.value,this._factory.namedNode(t.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",t);default:if(void 0===(this._subject=this._readEntity(t)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}},{key:"_readPredicate",value:function(t){var e=t.type;switch(e){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[t.value];break;case".":case"]":case"}":return null===this._predicate?this._error("Unexpected ".concat(e),t):(this._subject=null,"]"===e?this._readBlankNodeTail(t):this._readPunctuation(t));case";":return null!==this._predicate?this._readPredicate:this._error("Expected predicate but got ;",t);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",t);default:if(void 0===(this._predicate=this._readEntity(t)))return}return this._readObject}},{key:"_readObject",value:function(t){switch(t.type){case"literal":if(0===t.prefix.length)return this._literalValue=t.value,this._readDataTypeOrLang;this._object=this._factory.literal(t.value,this._factory.namedNode(t.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",t);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star syntax",t);default:if(void 0===(this._object=this._readEntity(t)))return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}},{key:"_readPredicateOrNamedGraph",value:function(t){return"{"===t.type?this._readGraph(t):this._readPredicate(t)}},{key:"_readGraph",value:function(t){return"{"!==t.type?this._error("Expected graph but got ".concat(t.type),t):(this._graph=this._subject,this._subject=null,this._readSubject)}},{key:"_readBlankNodeHead",value:function(t){return"]"===t.type?(this._subject=null,this._readBlankNodeTail(t)):(this._predicate=null,this._readPredicate(t))}},{key:"_readBlankNodeTail",value:function(t){if("]"!==t.type)return this._readBlankNodePunctuation(t);null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph);var e=null===this._predicate;return this._restoreContext("blank",t),null!==this._object?this._getContextEndReader():null!==this._predicate?this._readObject:e?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}},{key:"_readPredicateAfterBlank",value:function(t){switch(t.type){case".":case"}":return this._subject=null,this._readPunctuation(t);default:return this._readPredicate(t)}}},{key:"_readListItem",value:function(t){var e=null,n=null,i=this._readListItem,r=this._subject,o=this._contextStack,s=o[o.length-1];switch(t.type){case"[":this._saveContext("blank",this._graph,n=this._factory.blankNode(),this.RDF_FIRST,this._subject=e=this._factory.blankNode()),i=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",t),0!==o.length&&"list"===o[o.length-1].type&&this._emit(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(i=this._readPredicate,this._subject===this.RDF_NIL)return i}else if(i=this._getContextEndReader(),this._object===this.RDF_NIL)return i;n=this.RDF_NIL;break;case"literal":0===t.prefix.length?(this._literalValue=t.value,i=this._readListItemDataTypeOrLang):(e=this._factory.literal(t.value,this._factory.namedNode(t.prefix)),i=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",t);default:if(void 0===(e=this._readEntity(t)))return}if(null===n&&(this._subject=n=this._factory.blankNode()),null===r?null===s.predicate?s.subject=n:s.object=n:this._emit(r,this.RDF_REST,n,this._graph),null!==e){if(this._n3Mode&&("IRI"===t.type||"prefixed"===t.type))return this._saveContext("item",this._graph,n,this.RDF_FIRST,e),this._subject=e,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,e,this._graph)}return i}},{key:"_readDataTypeOrLang",value:function(t){return this._completeObjectLiteral(t,!1)}},{key:"_readListItemDataTypeOrLang",value:function(t){return this._completeObjectLiteral(t,!0)}},{key:"_completeLiteral",value:function(t){var e=this._factory.literal(this._literalValue);switch(t.type){case"type":case"typeIRI":var n=this._readEntity(t);if(void 0===n)return;e=this._factory.literal(this._literalValue,n),t=null;break;case"langcode":e=this._factory.literal(this._literalValue,t.value),t=null}return{token:t,literal:e}}},{key:"_completeSubjectLiteral",value:function(t){return this._subject=this._completeLiteral(t).literal,this._readPredicateOrNamedGraph}},{key:"_completeObjectLiteral",value:function(t,e){var n=this._completeLiteral(t);if(n)return this._object=n.literal,e&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),null===n.token?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}},{key:"_readFormulaTail",value:function(t){return"}"!==t.type?this._readPunctuation(t):(null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",t),null===this._object?this._readPredicate:this._getContextEndReader())}},{key:"_readPunctuation",value:function(t){var e,n=this._graph,i=this._subject,r=this._inversePredicate;switch(t.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",t);if(this._n3Mode)return this._readFormulaTail(t);this._graph=null;case".":this._subject=null,e=this._contextStack.length?this._readSubject:this._readInTopContext,r&&(this._inversePredicate=!1);break;case";":e=this._readPredicate;break;case",":e=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",t);var o=this._predicate,s=this._object;this._subject=this._factory.quad(i,o,s,this.DEFAULTGRAPH),e=this._readPredicate;break;case"|}":if("Quad"!==this._subject.termType)return this._error("Unexpected asserted triple closing",t);this._subject=null,e=this._readPunctuation;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(n=this._readEntity(t))){e=this._readQuadPunctuation;break}return this._error('Expected punctuation to follow "'.concat(this._object.id,'"'),t)}if(null!==i){var a=this._predicate,l=this._object;r?this._emit(l,a,i,n):this._emit(i,a,l,n)}return e}},{key:"_readBlankNodePunctuation",value:function(t){var e;switch(t.type){case";":e=this._readPredicate;break;case",":e=this._readObject;break;default:return this._error('Expected punctuation to follow "'.concat(this._object.id,'"'),t)}return this._emit(this._subject,this._predicate,this._object,this._graph),e}},{key:"_readQuadPunctuation",value:function(t){return"."!==t.type?this._error("Expected dot to follow quad",t):this._readInTopContext}},{key:"_readPrefix",value:function(t){return"prefix"!==t.type?this._error("Expected prefix to follow @prefix",t):(this._prefix=t.value,this._readPrefixIRI)}},{key:"_readPrefixIRI",value:function(t){if("IRI"!==t.type)return this._error('Expected IRI to follow prefix "'.concat(this._prefix,':"'),t);var e=this._readEntity(t);return this._prefixes[this._prefix]=e.value,this._prefixCallback(this._prefix,e),this._readDeclarationPunctuation}},{key:"_readBaseIRI",value:function(t){var e="IRI"===t.type&&this._resolveIRI(t.value);return e?(this._setBase(e),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",t)}},{key:"_readNamedGraphLabel",value:function(t){switch(t.type){case"IRI":case"blank":case"prefixed":return this._readSubject(t),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",t)}}},{key:"_readNamedGraphBlankLabel",value:function(t){return"]"!==t.type?this._error("Invalid graph label",t):(this._subject=this._factory.blankNode(),this._readGraph)}},{key:"_readDeclarationPunctuation",value:function(t){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(t)):"."!==t.type?this._error("Expected declaration to end with a dot",t):this._readInTopContext}},{key:"_readQuantifierList",value:function(t){var e;switch(t.type){case"IRI":case"prefixed":if(void 0!==(e=this._readEntity(t,!0)))break;default:return this._error("Unexpected ".concat(t.type),t)}return this._explicitQuantifiers?(null===this._subject?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,e,this.QUANTIFIERS_GRAPH)):this._quantified[e.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}},{key:"_readQuantifierPunctuation",value:function(t){return","===t.type?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(t))}},{key:"_getPathReader",value:function(t){return this._afterPath=t,this._readPath}},{key:"_readPath",value:function(t){switch(t.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:var e=this._contextStack,n=e.length&&e[e.length-1];if(n&&"item"===n.type){var i=this._subject;this._restoreContext("item",t),this._emit(this._subject,this.RDF_FIRST,i,this._graph)}return this._afterPath(t)}}},{key:"_readForwardPath",value:function(t){var e,n,i=this._factory.blankNode();if(void 0!==(n=this._readEntity(t)))return null===this._predicate?(e=this._subject,this._subject=i):(e=this._object,this._object=i),this._emit(e,n,i,this._graph),this._readPath}},{key:"_readBackwardPath",value:function(t){var e,n,i=this._factory.blankNode();if(void 0!==(e=this._readEntity(t)))return null===this._predicate?(n=this._subject,this._subject=i):(n=this._object,this._object=i),this._emit(i,e,n,this._graph),this._readPath}},{key:"_readRDFStarTailOrGraph",value:function(t){return">>"!==t.type?this._supportsQuads&&null===this._graph&&void 0!==(this._graph=this._readEntity(t))?this._readRDFStarTail:this._error('Expected >> to follow "'.concat(this._object.id,'"'),t):this._readRDFStarTail(t)}},{key:"_readRDFStarTail",value:function(t){if(">>"!==t.type)return this._error("Expected >> but got ".concat(t.type),t);var e=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",t),null===this._subject?(this._subject=e,this._readPredicate):(this._object=e,this._getContextEndReader())}},{key:"_getContextEndReader",value:function(){var t=this._contextStack;if(!t.length)return this._readPunctuation;switch(t[t.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}},{key:"_emit",value:function(t,e,n,i){this._callback(null,this._factory.quad(t,e,n,i||this.DEFAULTGRAPH))}},{key:"_error",value:function(t,e){var n=new Error("".concat(t," on line ").concat(e.line,"."));n.context={token:e,line:e.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=xt}},{key:"_resolveIRI",value:function(t){return/^[a-z][a-z0-9+.-]*:/i.test(t)?t:this._resolveRelativeIRI(t)}},{key:"_resolveRelativeIRI",value:function(t){if(!t.length)return this._base;switch(t[0]){case"#":return this._base+t;case"?":return this._base.replace(/(?:\?.*)?$/,t);case"/":return("/"===t[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(t);default:return/^[^/:]*:/.test(t)?null:this._removeDotSegments(this._basePath+t)}}},{key:"_removeDotSegments",value:function(t){if(!/(^|\/)\.\.?($|[/#?])/.test(t))return t;for(var e=t.length,n="",i=-1,r=-1,o=0,s="/";i<e;){switch(s){case":":if(r<0&&"/"===t[++i]&&"/"===t[++i])for(;(r=i+1)<e&&"/"!==t[r];)i=r;break;case"?":case"#":i=e;break;case"/":if("."===t[i+1])switch(s=t[1+ ++i]){case"/":n+=t.substring(o,i-1),o=i+1;break;case void 0:case"?":case"#":return n+t.substring(o,i)+t.substr(i+1);case".":if(void 0===(s=t[1+ ++i])||"/"===s||"?"===s||"#"===s){if((o=(n+=t.substring(o,i-2)).lastIndexOf("/"))>=r&&(n=n.substr(0,o)),"/"!==s)return"".concat(n,"/").concat(t.substr(i+1));o=i+1}}}s=t[++i]}return n+t.substring(o)}},{key:"parse",value:function(t,e,n){var i,r,o,s=this;if(e&&(e.onQuad||e.onPrefix||e.onComment)?(i=e.onQuad,r=e.onPrefix,o=e.onComment):(i=e,r=n),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):"b".concat(Et++,"_"),this._prefixCallback=r||xt,this._inversePredicate=!1,this._quantified=Object.create(null),!i){var a,l=[];if(this._callback=function(t,e){t?a=t:e&&l.push(e)},this._lexer.tokenize(t).every(function(t){return s._readCallback=s._readCallback(t)}),a)throw a;return l}var u=function(t,e){null!==t?(s._callback(t),s._callback=xt):s._readCallback&&(s._readCallback=s._readCallback(e))};o&&(this._lexer.comments=!0,u=function(t,e){null!==t?(s._callback(t),s._callback=xt):s._readCallback&&("comment"===e.type?o(e.value):s._readCallback=s._readCallback(e))}),this._callback=i,this._lexer.tokenize(t,u)}}],n=[{key:"_resetBlankNodePrefix",value:function(){Et=0}}],e&&vt(t.prototype,e),n&&vt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function xt(){}function bt(t,e){t._factory=e,t.DEFAULTGRAPH=e.defaultGraph(),t.RDF_FIRST=e.namedNode(I.rdf.first),t.RDF_REST=e.namedNode(I.rdf.rest),t.RDF_NIL=e.namedNode(I.rdf.nil),t.N3_FORALL=e.namedNode(I.r.forAll),t.N3_FORSOME=e.namedNode(I.r.forSome),t.ABBREVIATIONS={a:e.namedNode(I.rdf.type),"=":e.namedNode(I.owl.sameAs),">":e.namedNode(I.log.implies),"<":e.namedNode(I.log.isImpliedBy)},t.QUANTIFIERS_GRAPH=e.namedNode("urn:n3:quantifiers")}function Tt(t){if("NamedNode"===t.termType)return{value:t.value,type:"uri"};if("Literal"===t.termType){var e={value:t.value,type:"literal"},n=t.language;n&&(e["xml:lang"]=n);var i=t.datatypeString;return i&&(e.datatype=i),e}return"BlankNode"===t.termType?{value:t.value,type:"bnode"}:{value:t.value,type:"uri"}}function St(t){return(new _t).parse(t||"")}bt(_t.prototype,nt);const At=(0,n(4636).A)({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Lt=/&(?:amp|lt|gt|quot|#39);/g,Ct=RegExp(Lt.source);const Nt=function(t){return(t=(0,d.A)(t))&&Ct.test(t)?t.replace(Lt,At):t};var It=n(3001),wt=n(4889),Rt=n(2078),Pt=n(7242),Mt=n(6118),Ot=n(4603),kt=n(4249),Dt=Object.prototype.hasOwnProperty;const Gt=function(t){if(null==t)return!0;if((0,Pt.A)(t)&&((0,_.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,Mt.A)(t)||(0,kt.A)(t)||(0,Rt.A)(t)))return!t.length;var e=(0,wt.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,Ot.A)(t))return!(0,It.A)(t).length;for(var n in t)if(Dt.call(t,n))return!1;return!0};function Bt(t){for(var e={vars:[]},n=0;n<t.childNodes.length;n++){var i=t.childNodes[n];if("variable"==i.nodeName){var r=i.getAttribute("name");r&&e.vars.push(r)}}return e}var jt=["uri","literal","bnode","typed-literal"];function Ft(t,e){for(var n={bindings:[]},i=0;i<t.childNodes.length;i++){for(var r=t.childNodes[i],o={},s=0;s<r.childNodes.length;s++){var a=r.childNodes[s];if("binding"==a.nodeName){var l=a.getAttribute("name");if(l)for(var u=0;u<a.childNodes.length;u++){var c=a.childNodes[u];if("#text"!==c.nodeName&&!(jt.indexOf(c.nodeName)<0)){var h={type:c.nodeName,value:Nt(c.innerHTML)},p=c.getAttribute("datatype");p&&(h.datatype=p),o[l]=h}}}}Gt(o)||n.bindings.push(e(o))}return n}function Ut(t){return"true"===t.innerHTML}function Ht(t,e){if("string"==typeof t){var n=(new DOMParser).parseFromString(t,"text/xml");if(n.childNodes.length){for(var i=n.childNodes[0],r={},o=0;o<i.childNodes.length;o++){var s=i.childNodes[o];"head"==s.nodeName&&(r.head=Bt(s)),"results"==s.nodeName&&(r.results=Ft(s,e)),"boolean"==s.nodeName&&(r.boolean=Ut(s))}return r}}}var qt=n(4691);var zt=n(9736),Vt=n(1717),Wt=n(5209),Zt=n(3564),Qt=n(3886);function Xt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Yt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function $t(t){var e=t.split("\n");e.pop();var n,i=(n=e,(0,Vt.A)(n)||(0,Wt.A)(n)||(0,Zt.A)(n)||(0,Qt.A)()),r=i[0],o=Yt(i).slice(1),s=r.split("\t").map(function(t){return t.substring(1)}),a=o.map(function(t){var e,n={},i=Xt(t.split("\t").entries());try{for(i.s();!(e=i.n()).done;){var r=(0,zt.A)(e.value,2),o=r[0],a=r[1],l=s[o];if("<"===a[0])n[l]={value:a.substring(1,a.length-1),type:"uri"};else if('"'===a[0]){var u=a.lastIndexOf('"'),c=a.substring(1,u);if(u===a.length-1)n[l]={value:c,type:"literal"};else if(u<a.lastIndexOf("@")){var h=a.substring(a.lastIndexOf("@")+1);n[l]={value:c,type:"literal","xml:lang":h}}else if(u<a.lastIndexOf("^^")){var p=a.substring(a.lastIndexOf("^^")+2);n[l]={value:c,type:"typed-literal",datatype:p}}}}}catch(t){i.e(t)}finally{i.f()}return n});return{head:{vars:s},results:{bindings:a}}}function Kt(t){return null==t?"":`${t}`}function Jt(t={}){const{separator:e,decimals:n}=t;return e?n?t=>t.toFixed(n).replace(".",e):t=>`${t}`.replace(".",e):n?t=>t.toFixed(n):t=>`${t}`}function te(t={}){const e="string"==typeof t.quote?t.quote:'"',n="string"==typeof t.escapedQuote?t.escapedQuote:`${e}${e}`;if(!e||e===n)return t=>t;const i=new RegExp(e,"g");return t=>(t.includes(e)&&(t=t.replace(i,n)),`${e}${t}${e}`)}new RegExp('"',"g");function ee(t={stringFormatter:te()}){return e=>t.stringFormatter(e.toString().slice(7,-1))}const ne=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g");function ie(t,e,n){if(e in t){const i=t[e];return void 0===i?n:i}const i=Array.isArray(e)?e:function(t){var e,n,i;const r=[];let o;for(;o=ne.exec(t);)r.push(null!==(i=null!==(e=o[3])&&void 0!==e?e:null===(n=o[1])||void 0===n?void 0:n.trim())&&void 0!==i?i:o[0]);return r}(e);let r=t;for(const t of i)if(r=null==r?void 0:r[t],void 0===r)return n;return r}function re(t,e){try{return Array.isArray(e)?t.push(...e):t.push(e),t}catch(n){return t.concat(e)}}function oe(t,e){let n=!0;return t.reduce((t,i)=>(null==i&&(i=""),n?(n=!1,`${i}`):`${t}${e}${i}`),"")}var se,ae;!function(t){t.header="header",t[void 0]="undefined",t.boolean="boolean",t.number="number",t.bigint="bigint",t.string="string",t.symbol="symbol",t.function="function",t.object="object"}(se||(se={}));class le{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const e=Object.assign({},t);e.fields&&(e.fields=this.preprocessFieldsInfo(e.fields,e.defaultValue)),e.transforms=e.transforms||[];const n=e.formatters&&e.formatters.string||te(),i=function(t={stringFormatter:te()}){return e=>{if(null===e)return"";let n=JSON.stringify(e);return void 0===n?"":('"'===n[0]&&(n=n.replace(/^"(.+)"$/,"$1")),t.stringFormatter(n))}}({stringFormatter:n}),r={header:n,undefined:Kt,boolean:Kt,number:Jt(),bigint:Kt,string:n,symbol:ee({stringFormatter:n}),function:i,object:i};return e.formatters=Object.assign(Object.assign({},r),e.formatters),e.delimiter=e.delimiter||",",e.eol=e.eol||"\n",e.header=!1!==e.header,e.includeEmptyRows=e.includeEmptyRows||!1,e.withBOM=e.withBOM||!1,e}preprocessFieldsInfo(t,e){return t.map(t=>{if("string"==typeof t)return{label:t,value:n=>ie(n,t,e)};if("object"==typeof t){const n="default"in t?t.default:e;if("string"==typeof t.value){const e=t.value;return{label:t.label||t.value,value:t=>ie(t,e,n)}}if("function"==typeof t.value){const e=t.label||t.value.name||"",i={label:e,default:n},r=t.value;return{label:e,value(t){const e=r(t,i);return void 0===e?n:e}}}}throw new Error("Invalid field info option. "+JSON.stringify(t))})}getHeader(){return oe(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((t,e)=>t.map(t=>e(t)).reduce(re,[]),[t])}processRow(t){if(!t)return;const e=this.opts.fields.map(e=>this.processCell(t,e));return this.opts.includeEmptyRows||!e.every(t=>""===t)?oe(e,this.opts.delimiter):void 0}processCell(t,e){return this.processValue(e.value(t))}processValue(t){return(0,this.opts.formatters[typeof t])(t)}}class ue extends le{constructor(t){super(t)}parse(t){const e=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(e.reduce((t,e)=>(Object.keys(e).forEach(e=>{t.includes(e)||t.push(e)}),t),[]),this.opts.defaultValue);const n=this.opts.header?this.getHeader():"",i=this.processData(e);return(this.opts.withBOM?"\ufeff":"")+n+(n&&i?this.opts.eol:"")+i}preprocessData(t){const e=Array.isArray(t)?t:[t];if(!this.opts.fields){if(null==t||0===e.length)throw new Error('Data should not be empty or the "fields" option should be included');if("object"!=typeof e[0])throw new Error('Data items should be objects or the "fields" option should be included')}return 0===this.opts.transforms.length?e:e.map(t=>this.preprocessRow(t)).reduce(re,[])}processData(t){return oe(t.map(t=>this.processRow(t)).filter(t=>t),this.opts.eol)}}!function(t){t[t.BACKSPACE=8]="BACKSPACE",t[t.FORM_FEED=12]="FORM_FEED",t[t.NEWLINE=10]="NEWLINE",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.DOLLAR_SIGN=36]="DOLLAR_SIGN",t[t.PERCENT_SIGN=37]="PERCENT_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",t[t.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",t[t.ASTERISK=42]="ASTERISK",t[t.PLUS_SIGN=43]="PLUS_SIGN",t[t.COMMA=44]="COMMA",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.FULL_STOP=46]="FULL_STOP",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_ZERO=48]="DIGIT_ZERO",t[t.DIGIT_ONE=49]="DIGIT_ONE",t[t.DIGIT_TWO=50]="DIGIT_TWO",t[t.DIGIT_THREE=51]="DIGIT_THREE",t[t.DIGIT_FOUR=52]="DIGIT_FOUR",t[t.DIGIT_FIVE=53]="DIGIT_FIVE",t[t.DIGIT_SIX=54]="DIGIT_SIX",t[t.DIGIT_SEVEN=55]="DIGIT_SEVEN",t[t.DIGIT_EIGHT=56]="DIGIT_EIGHT",t[t.DIGIT_NINE=57]="DIGIT_NINE",t[t.COLON=58]="COLON",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.COMMERCIAL_AT=64]="COMMERCIAL_AT",t[t.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",t[t.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",t[t.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",t[t.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",t[t.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",t[t.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",t[t.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",t[t.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",t[t.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",t[t.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",t[t.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",t[t.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",t[t.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",t[t.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",t[t.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",t[t.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",t[t.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",t[t.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",t[t.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",t[t.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",t[t.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",t[t.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",t[t.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",t[t.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",t[t.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",t[t.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",t[t.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",t[t.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",t[t.LOW_LINE=95]="LOW_LINE",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",t[t.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",t[t.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",t[t.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",t[t.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",t[t.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",t[t.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",t[t.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",t[t.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",t[t.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",t[t.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",t[t.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",t[t.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",t[t.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",t[t.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",t[t.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",t[t.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",t[t.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",t[t.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",t[t.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",t[t.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",t[t.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",t[t.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",t[t.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",t[t.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",t[t.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",t[t.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",t[t.VERTICAL_LINE=124]="VERTICAL_LINE",t[t.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",t[t.TILDE=126]="TILDE"}(ae||(ae={}));ae.QUOTATION_MARK,ae.QUOTATION_MARK,ae.REVERSE_SOLIDUS,ae.REVERSE_SOLIDUS,ae.SOLIDUS,ae.SOLIDUS,ae.LATIN_SMALL_LETTER_B,ae.BACKSPACE,ae.LATIN_SMALL_LETTER_F,ae.FORM_FEED,ae.LATIN_SMALL_LETTER_N,ae.NEWLINE,ae.LATIN_SMALL_LETTER_R,ae.CARRIAGE_RETURN,ae.LATIN_SMALL_LETTER_T,ae.TAB;var ce;!function(t){t[t.LEFT_BRACE=0]="LEFT_BRACE",t[t.RIGHT_BRACE=1]="RIGHT_BRACE",t[t.LEFT_BRACKET=2]="LEFT_BRACKET",t[t.RIGHT_BRACKET=3]="RIGHT_BRACKET",t[t.COLON=4]="COLON",t[t.COMMA=5]="COMMA",t[t.TRUE=6]="TRUE",t[t.FALSE=7]="FALSE",t[t.NULL=8]="NULL",t[t.STRING=9]="STRING",t[t.NUMBER=10]="NUMBER",t[t.SEPARATOR=11]="SEPARATOR"}(ce||(ce={}));var he;!function(t){t[t.START=0]="START",t[t.ENDED=1]="ENDED",t[t.ERROR=2]="ERROR",t[t.TRUE1=3]="TRUE1",t[t.TRUE2=4]="TRUE2",t[t.TRUE3=5]="TRUE3",t[t.FALSE1=6]="FALSE1",t[t.FALSE2=7]="FALSE2",t[t.FALSE3=8]="FALSE3",t[t.FALSE4=9]="FALSE4",t[t.NULL1=10]="NULL1",t[t.NULL2=11]="NULL2",t[t.NULL3=12]="NULL3",t[t.STRING_DEFAULT=13]="STRING_DEFAULT",t[t.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",t[t.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",t[t.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",t[t.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",t[t.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",t[t.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",t[t.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",t[t.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",t[t.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",t[t.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",t[t.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",t[t.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",t[t.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",t[t.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",t[t.SEPARATOR=28]="SEPARATOR",t[t.BOM_OR_START=29]="BOM_OR_START",t[t.BOM=30]="BOM"}(he||(he={}));Error;var pe,de;!function(t){t[t.OBJECT=0]="OBJECT",t[t.ARRAY=1]="ARRAY"}(pe||(pe={})),function(t){t[t.VALUE=0]="VALUE",t[t.KEY=1]="KEY",t[t.COLON=2]="COLON",t[t.COMMA=3]="COMMA",t[t.ENDED=4]="ENDED",t[t.ERROR=5]="ERROR",t[t.SEPARATOR=6]="SEPARATOR"}(de||(de={}));Error;var fe=n(6425),ge=function(t){for(var e in t)"uri"!==t[e].type&&(t[e].value=t[e].value.replace(/{{(.*?)}}/g,function(e){return e=e.substring(2,e.length-2).trim(),t[e]?t[e].value:e}));return t},me=function(){return(0,o.A)(function t(e,n){(0,r.A)(this,t),e.executionTime&&(this.executionTime=e.executionTime),n&&(this.executionTime=n),e instanceof Error?this.error=e:e.content?this.setResponse(e):this.setSummary(e)},[{key:"setResponse",value:function(t){this.res=t}},{key:"setSummary",value:function(t){t.data||t.error?this.summary=t:this.summary={data:t}}},{key:"hasError",value:function(){return!!(this.res&&this.res.status>=400)||(!!this.errorSummary||(!!this.error||!(!this.summary||!this.summary.error)))}},{key:"getError",value:function(){return this.errorSummary||(this.res&&this.res.status>=400&&(this.errorSummary={text:this.res.statusText,status:this.res.status,statusText:this.res.ok?void 0:this.res.statusText}),this.summary&&this.summary.error&&(this.errorSummary=this.summary.error),this.error&&(this.errorSummary={text:this.error.message})),this.errorSummary}},{key:"getContentType",value:function(){return this.res?this.res.headers.get("content-type")||void 0:this.summary?this.summary.contentType:void 0}},{key:"getAsJson",value:function(){return this.json?this.json:!1===this.json||this.hasError()?void 0:(this.getParserFromContentType()||this.doLuckyGuess()||this.json||(this.json=!1),this.json)}},{key:"getData",value:function(){if(this.res){if(this.res.content)return this.res.content;if(this.res.body)return this.res.body;if(this.res.text)return this.res.text}if(this.summary)return this.summary.data}},{key:"getResponseTime",value:function(){return this.executionTime}},{key:"getParserFromContentType",value:function(){var t=this.getContentType();if(t){var e=(0,fe.A)(this.getData());try{if(t.indexOf("json")>-1){if(t.indexOf("sparql-results+json")>=0)return this.json=S(e,ge),this.type="json",!0;if(t.indexOf("application/rdf+json")>-1)return this.type="json",!0;this.type="json"}else{if(t.indexOf("xml")>-1)return this.json=Ht(e,ge),this.type="xml",!0;if(t.indexOf("csv")>-1)return this.json=function(t){var e=qt.parse(t,{header:!0,skipEmptyLines:!0});if(void 0===e.meta.fields)throw new Error("Could not parse CSV, no headers found!");var n=e.meta.fields,i=e.data.map(function(t){var e={};for(var n in t)e[n]={value:t[n],type:"literal"};return e});return{head:{vars:n},results:{bindings:i}}}(e),this.type="csv",!0;if(t.indexOf("tab-separated")>-1)return this.json=$t(e),this.type="tsv",!0;if(t.indexOf("turtle")>0||t.indexOf("trig")>0||t.indexOf("triple")>0||t.indexOf("quad")>0)return this.json={head:{vars:["subject","predicate","object"]},results:{bindings:St(e).map(function(t){return{subject:Tt(t.subject),predicate:Tt(t.predicate),object:Tt(t.object)}})}},this.type="ttl",!0}}catch(t){t instanceof Error?this.errorSummary={text:t.message}:this.errorSummary={text:t}}}return!1}},{key:"doLuckyGuess",value:function(){var t=(0,fe.A)(this.getData());try{return this.json=S(t,ge),this.type="json",!0}catch(t){}try{return this.json=Ht(t,ge),this.type="xml",!0}catch(t){}return!1}},{key:"getVariables",value:function(){var t=this.getAsJson();return t&&t.head?t.head.vars:[]}},{key:"getBoolean",value:function(){var t=this.getAsJson();if(t&&"boolean"in t)return t.boolean}},{key:"getBindings",value:function(){var t=this.getAsJson();return t&&t.results?t.results.bindings:null}},{key:"getStatements",value:function(){return this.statements||"ttl"!==this.type||(this.statements=St(this.getData())),this.statements?this.statements:null}},{key:"getOriginalResponseAsString",value:function(){var t=this.getData();return"string"==typeof t?t:"json"===this.type?JSON.stringify(t,void 0,2):t}},{key:"getType",value:function(){return this.type||this.getAsJson(),this.type}},{key:"getStatus",value:function(){return this.res?this.res.status:this.summary?this.summary.status:void 0}},{key:"getAsStoreObject",value:function(t){var e=this.summary;if(!e&&this.res&&(e={contentType:this.getContentType(),data:this.getOriginalResponseAsString(),error:this.getError(),status:this.getStatus(),executionTime:this.getResponseTime()}),e){if(e.data&&e.data.length>t)return;return e}if(this.error)return{error:this.getError(),executionTime:this.getResponseTime()}}},{key:"asCsv",value:function(){var t,e,n,i,r=this.getAsJson();return"csv"===this.type?this.getOriginalResponseAsString():r&&r.results?(n=(t=r).head.vars,i=null===(e=t.results)||void 0===e?void 0:e.bindings,new ue({fields:n}).parse(i?i.map(function(t){return(0,b.A)(t,function(t){return t.value})}):[])):void 0}}])}();const ve=me;function ye(t){var e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e)}function Ee(t,e){return new Promise(function(n,i){var r=document.createElement("script");r.setAttribute("type","text/javascript"),r.setAttribute("async",""),r.setAttribute("src",t),e&&(r.innerHTML=e),r.onload=function(){return n()},document.getElementsByTagName("head")[0].appendChild(r)})}var _e=n(9418);_e.A.addHook("afterSanitizeAttributes",function(t){t instanceof HTMLAnchorElement&&(t.target="_blank",t.rel="noopener noreferrer")});const xe=_e.A.sanitize;var be=n(1475),Te=n(4179),Se=n(3322),Ae=n(9602),Le=n.n(Ae),Ce=n(6691),Ne=n(6095);n(3614),n(3594),n(5668);var Ie=n(7570);function we(t){(0,T.iQ)(this,"expanded"),t.preventDefault()}var Re=function(){return(0,o.A)(function t(e){var n=this;(0,r.A)(this,t),this.persistentConfig={},this.helpReference="https://docs.triply.cc/yasgui/#table",this.label="Table",this.priority=10,this.setEllipsisHandlers=function(){var t;null===(t=n.dataTable)||void 0===t||t.cells({page:"current"}).every(function(t,e){var i,r,o=null===(i=n.dataTable)||void 0===i?void 0:i.cell(t,e);if(""!==(null==o?void 0:o.data())){var s=null==o?void 0:o.node();if(s){var a=s.firstChild;((null===(r=a.firstElementChild)||void 0===r?void 0:r.getBoundingClientRect().width)||0)>a.getBoundingClientRect().width?a.classList.contains("expandable")||((0,T.iQ)(a,"expandable"),a.addEventListener("click",we,{once:!0})):a.classList.contains("expandable")&&((0,T.vy)(a,"expandable"),a.removeEventListener("click",we))}}})},this.handleTableSearch=function(t){var e;null===(e=n.dataTable)||void 0===e||e.search(t.target.value).draw("page")},this.handleTableSizeSelect=function(t){var e,i=parseInt(t.target.value);null===(e=n.dataTable)||void 0===e||e.page.len(i).draw("page"),n.persistentConfig.pageSize=i,n.yasr.storePluginConfig("table",n.persistentConfig)},this.handleSetCompactToggle=function(t){n.persistentConfig.compact=t.target.checked,n.draw(n.persistentConfig),n.yasr.storePluginConfig("table",n.persistentConfig)},this.handleSetEllipsisToggle=function(t){n.persistentConfig.isEllipsed=t.target.checked,n.draw(n.persistentConfig),n.yasr.storePluginConfig("table",n.persistentConfig)},this.yasr=e,this.config=t.defaults},[{key:"getIcon",value:function(){return(0,T.Mg)((0,T.uZ)(Ne))}},{key:"getRows",value:function(){if(!this.yasr.results)return[];var t=this.yasr.results.getBindings();if(!t)return[];var e=this.yasr.results.getVariables();return t.map(function(t,n){return[n+1].concat((0,Se.A)(e.map(function(e){var n;return null!==(n=t[e])&&void 0!==n?n:""})))})}},{key:"getUriLinkFromBinding",value:function(t,e){var n=xe(t.value),i=n,r=!1;if(e)for(var o in e)if(0==i.indexOf(e[o])){i=o+":"+n.substring(e[o].length),r=!0;break}var s=r||this.persistentConfig.compact,a="".concat(s?"":"<","<a class='iri' target='").concat(this.config.openIriInNewWindow?"_blank":"_self","'").concat(this.config.openIriInNewWindow?" ref='noopener noreferrer'":""," href='").concat(n,"'>").concat(xe(i),"</a>").concat(s?"":">");return xe(a)}},{key:"getCellContent",value:function(t,e){var n;return n="uri"==t.type?"<span>".concat(this.getUriLinkFromBinding(t,e),"</span>"):"<span class='nonIri'>".concat(this.formatLiteral(t,e),"</span>"),"<div>".concat(n,"</div>")}},{key:"formatLiteral",value:function(t,e){var n=xe((0,Ce.A)(t.value));if(this.persistentConfig.compact)return n;if(t["xml:lang"])n='"'.concat(n,'"<sup>@').concat(t["xml:lang"],"</sup>");else if(t.datatype){var i=this.getUriLinkFromBinding({type:"uri",value:t.datatype},e);n='"'.concat(n,'"<sup>^^').concat(i,"</sup>")}return n}},{key:"getColumns",value:function(){var t,e=this;if(!this.yasr.results)return[];var n=this.yasr.getPrefixes();return[{name:"",searchable:!1,width:"".concat(this.getSizeFirstColumn(),"px"),type:"num",orderable:!1,visible:!0!==this.persistentConfig.compact,render:function(t,e){return"filter"!==e&&"sort"!==e&&e?'<div class="rowNumber">'.concat(t,"</div>"):t}}].concat((0,Se.A)(null===(t=this.yasr.results)||void 0===t?void 0:t.getVariables().map(function(t){return{name:t,title:xe(t),render:function(t,i,r,o){return""===t?t:"filter"!==i&&"sort"!==i&&i?e.getCellContent(t,n):xe(t.value)}}})))}},{key:"getSizeFirstColumn",value:function(){var t,e;return 8*((null===(e=null===(t=this.yasr.results)||void 0===t?void 0:t.getBindings())||void 0===e?void 0:e.length)||0).toString().length}},{key:"draw",value:function(t){var e,n,i=this;this.persistentConfig=Object.assign(Object.assign({},this.persistentConfig),t),this.tableEl=document.createElement("table");var r=this.getRows(),o=this.getColumns();r.length<=((null==t?void 0:t.pageSize)||50)?(this.yasr.pluginControls,(0,T.iQ)(this.yasr.rootEl,"isSinglePage")):(0,T.vy)(this.yasr.rootEl,"isSinglePage"),this.dataTable&&(this.destroyResizer(),this.dataTable.destroy(!0),this.dataTable=void 0),this.yasr.resultsEl.appendChild(this.tableEl);var s=Object.assign(Object.assign({},(0,fe.A)(this.config.tableConfig)),{pageLength:(null==t?void 0:t.pageSize)?t.pageSize:50,data:r,columns:o});this.dataTable=Le()(this.tableEl).DataTable(s),this.tableEl.style.removeProperty("width"),this.tableEl.style.width=this.tableEl.clientWidth+"px";var a=Array.from(this.tableEl.querySelectorAll("th")).map(function(t){return t.offsetWidth-26});this.tableResizer=new Ie.default(this.tableEl,{widths:!0===this.persistentConfig.compact?a:[this.getSizeFirstColumn()].concat((0,Se.A)(a.slice(1))),partialRefresh:!0,onResize:!1!==this.persistentConfig.isEllipsed&&this.setEllipsisHandlers,headerOnly:!0}),!1!==this.persistentConfig.isEllipsed&&(null===(e=this.dataTable)||void 0===e||e.on("preDraw",function(){var t,e,n;return null===(t=i.tableResizer)||void 0===t||t.reset({disable:!0}),(0,T.vy)(i.tableEl,"ellipseTable"),null===(e=i.tableEl)||void 0===e||e.style.removeProperty("width"),null===(n=i.tableEl)||void 0===n||n.style.setProperty("width",i.tableEl.clientWidth+"px"),!0}),null===(n=this.dataTable)||void 0===n||n.on("draw",function(){var t,e;if(i.tableEl){var n=i.tableEl.clientWidth;i.tableEl.style.removeProperty("width"),n>i.tableEl.clientWidth&&(n=i.tableEl.clientWidth),null===(t=i.tableEl)||void 0===t||t.style.setProperty("width","".concat(n,"px")),null===(e=i.tableResizer)||void 0===e||e.reset({disable:!1,partialRefresh:!0,onResize:i.setEllipsisHandlers,headerOnly:!0}),(0,T.iQ)(i.tableEl,"ellipseTable"),i.setEllipsisHandlers()}})),this.drawControls(),!1!==this.persistentConfig.isEllipsed&&((0,T.iQ)(this.tableEl,"ellipseTable"),this.setEllipsisHandlers())}},{key:"drawControls",value:function(){var t;this.removeControls(),this.tableControls=document.createElement("div"),this.tableControls.className="tableControls";var e=document.createElement("div"),n=document.createElement("label"),i=document.createElement("span");i.innerText="Simple view",(0,T.iQ)(i,"label"),n.appendChild(i),(0,T.iQ)(n,"switch"),e.appendChild(n),this.tableCompactSwitch=document.createElement("input"),n.addEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch.type="checkbox",n.appendChild(this.tableCompactSwitch),this.tableCompactSwitch.defaultChecked=!!this.persistentConfig.compact,this.tableControls.appendChild(e);var r=document.createElement("div"),o=document.createElement("label"),s=document.createElement("span");s.innerText="Ellipse",(0,T.iQ)(s,"label"),o.appendChild(s),(0,T.iQ)(o,"switch"),r.appendChild(o),this.tableEllipseSwitch=document.createElement("input"),o.addEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch.type="checkbox",o.appendChild(this.tableEllipseSwitch),this.tableEllipseSwitch.defaultChecked=!1!==this.persistentConfig.isEllipsed,this.tableControls.appendChild(r),this.tableFilterField=document.createElement("input"),this.tableFilterField.className="tableFilter",this.tableFilterField.placeholder="Filter query results",this.tableFilterField.setAttribute("aria-label","Filter query results"),this.tableControls.appendChild(this.tableFilterField),this.tableFilterField.addEventListener("keyup",this.handleTableSearch);var a=document.createElement("div");a.className="pageSizeWrapper";var l=document.createElement("span");l.textContent="Page size: ",l.className="pageSizerLabel",a.appendChild(l),this.tableSizeField=document.createElement("select"),this.tableSizeField.className="tableSizer";for(var u=0,c=[10,50,100,1e3,-1];u<c.length;u++){var h=c[u],p=document.createElement("option");p.value=h+"",p.innerText=h>0?h+"":"All",(null===(t=this.dataTable)||void 0===t?void 0:t.page.len())===h&&(p.selected=!0),this.tableSizeField.appendChild(p)}a.appendChild(this.tableSizeField),this.tableSizeField.addEventListener("change",this.handleTableSizeSelect),this.tableControls.appendChild(a),this.yasr.pluginControls.appendChild(this.tableControls)}},{key:"download",value:function(t){var e=this;return{getData:function(){var t;return(null===(t=e.yasr.results)||void 0===t?void 0:t.asCsv())||""},contentType:"text/csv",title:"Download result",filename:"".concat(t||"queryResults",".csv")}}},{key:"canHandleResults",value:function(){return!!this.yasr.results&&this.yasr.results.getVariables()&&this.yasr.results.getVariables().length>0}},{key:"removeControls",value:function(){var t,e,n,i,r,o;for(null===(t=this.tableFilterField)||void 0===t||t.removeEventListener("keyup",this.handleTableSearch),this.tableFilterField=void 0,null===(e=this.tableSizeField)||void 0===e||e.removeEventListener("change",this.handleTableSizeSelect),this.tableSizeField=void 0,null===(n=this.tableCompactSwitch)||void 0===n||n.removeEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch=void 0,null===(i=this.tableEllipseSwitch)||void 0===i||i.removeEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch=void 0;null===(r=this.tableControls)||void 0===r?void 0:r.firstChild;)this.tableControls.firstChild.remove();null===(o=this.tableControls)||void 0===o||o.remove()}},{key:"destroyResizer",value:function(){this.tableResizer&&(this.tableResizer.reset({disable:!0}),window.removeEventListener("resize",this.tableResizer.onResize),this.tableResizer=void 0)}},{key:"destroy",value:function(){var t;this.removeControls(),this.destroyResizer(),null===(t=this.dataTable)||void 0===t||t.destroy(!0),this.dataTable=void 0,(0,T.vy)(this.yasr.rootEl,"isSinglePage")}}])}();Re.defaults={openIriInNewWindow:!0,tableConfig:{layout:{top:null,topStart:null,topEnd:null},pageLength:50,lengthChange:!0,data:[],columns:[],order:[],deferRender:!0,orderClasses:!1,language:{paginate:{first:"<<",last:">>",next:">",previous:"<"}}}};const Pe=Re;n(1710);var Me=function(){return(0,o.A)(function t(e){(0,r.A)(this,t),this.priority=10,this.hideFromSelection=!0,this.yasr=e},[{key:"draw",value:function(){var t,e=document.createElement("div");e.className="booleanResult";var n=null===(t=this.yasr.results)||void 0===t?void 0:t.getBoolean();e.appendChild((0,T.Mg)(n?'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><path d="M14.301,49.982l22.606,17.047L84.361,4.903c2.614-3.733,7.76-4.64,11.493-2.026l0.627,0.462 c3.732,2.614,4.64,7.758,2.025,11.492l-51.783,79.77c-1.955,2.791-3.896,3.762-7.301,3.988c-3.405,0.225-5.464-1.039-7.508-3.084 L2.447,61.814c-3.263-3.262-3.263-8.553,0-11.814l0.041-0.019C5.75,46.718,11.039,46.718,14.301,49.982z"/></svg>':'<svg xmlns="http://www.w3.org/2000/svg" version="1.1" x="0" y="0" width="30" height="30" viewBox="0 0 100 100" enable-background="new 0 0 100 100" xml:space="preserve"><g><path d="M83.288,88.13c-2.114,2.112-5.575,2.112-7.689,0L53.659,66.188c-2.114-2.112-5.573-2.112-7.687,0L24.251,87.907 c-2.113,2.114-5.571,2.114-7.686,0l-4.693-4.691c-2.114-2.114-2.114-5.573,0-7.688l21.719-21.721c2.113-2.114,2.113-5.573,0-7.686 L11.872,24.4c-2.114-2.113-2.114-5.571,0-7.686l4.842-4.842c2.113-2.114,5.571-2.114,7.686,0L46.12,33.591 c2.114,2.114,5.572,2.114,7.688,0l21.721-21.719c2.114-2.114,5.573-2.114,7.687,0l4.695,4.695c2.111,2.113,2.111,5.571-0.003,7.686 L66.188,45.973c-2.112,2.114-2.112,5.573,0,7.686L88.13,75.602c2.112,2.111,2.112,5.572,0,7.687L83.288,88.13z"/></g></svg>'));var i=document.createElement("span");i.textContent=n?"True":"False",e.appendChild(i),this.yasr.resultsEl.appendChild(e)}},{key:"canHandleResults",value:function(){var t;return!!(null===(t=this.yasr.results)||void 0===t?void 0:t.getBoolean)&&(!0===this.yasr.results.getBoolean()||0==this.yasr.results.getBoolean())}},{key:"getIcon",value:function(){return document.createElement("")}}])}(),Oe=n(4779);n(9715);var ke=n(1719);n(9754),n(2448),n(7623),n(666),n(8709),n(1262),n(7518),n(3475);var De=function(){return(0,o.A)(function t(e){(0,r.A)(this,t),this.label="Response",this.priority=2,this.helpReference="https://docs.triply.cc/yasgui/#response",this.yasr=e,this.config=t.defaults,e.config.plugins.response&&e.config.plugins.response.dynamicConfig&&(this.config=Object.assign(Object.assign({},this.config),e.config.plugins.response.dynamicConfig))},[{key:"canHandleResults",value:function(){if(!this.yasr.results)return!1;if(!this.yasr.results.getOriginalResponseAsString)return!1;var t=this.yasr.results.getOriginalResponseAsString();return!((!t||0==t.length)&&this.yasr.results.getError())}},{key:"getIcon",value:function(){return(0,T.Mg)((0,T.uZ)(Oe))}},{key:"download",value:function(t){var e=this;if(this.yasr.results){var n=this.yasr.results.getContentType(),i=this.yasr.results.getType(),r="xml"===i?"rdf":i;return{getData:function(){var t;return(null===(t=e.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||""},filename:"".concat(t||"queryResults").concat(r?"."+r:""),contentType:n||"text/plain",title:"Download result"}}}},{key:"draw",value:function(t){var e,n,i=Object.assign(Object.assign({},this.config),t),r=(null===(e=this.yasr.results)||void 0===e?void 0:e.getOriginalResponseAsString())||"",o=r.split("\n");o.length>i.maxLines&&(r=o.slice(0,i.maxLines).join("\n"));var s={readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],value:r,extraKeys:{Tab:!1}};"json"===(null===(n=this.yasr.results)||void 0===n?void 0:n.getType())&&(s.mode={name:"javascript",json:!0}),this.cm=ke(this.yasr.resultsEl,s),o.length>i.maxLines&&this.showLess(!1)}},{key:"limitData",value:function(t){var e=t.split("\n");return e.length>this.config.maxLines&&(t=e.slice(0,this.config.maxLines).join("\n")),t}},{key:"showLess",value:function(){var t,e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.cm){(0,T.iQ)(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),(0,T.iQ)(this.overLay,"overlay");var i=document.createElement("div");(0,T.iQ)(i,"overlay_content");var r=document.createElement("button");r.title="Show all",(0,T.iQ)(r,"yasr_btn","overlay_btn"),r.textContent="Show all",r.addEventListener("click",function(){return e.showMore()}),i.append(r);var o=document.createElement("button");o.title="Download result",(0,T.iQ)(o,"yasr_btn","overlay_btn");var s=document.createElement("span");s.innerText="Download result",o.appendChild(s),o.appendChild((0,T.Mg)('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="tiny" x="0" y="0" width="100%" height="100%" viewBox="0 0 100 100" xml:space="preserve"><g id="Captions"/><g id="Your_Icon"><path d="M88,84v-2c0-2.961-0.859-4-4-4H16c-2.961,0-4,0.98-4,4v2c0,3.102,1.039,4,4,4h68 C87.02,88,88,87.039,88,84z M58,12H42c-5,0-6,0.941-6,6v22H16l34,34l34-34H64V18C64,12.941,62.939,12,58,12z"/></g></svg>')),o.addEventListener("click",function(){return e.yasr.download()}),o.addEventListener("keydown",function(t){"Space"!==t.code&&"Enter"!==t.code||e.yasr.download()}),i.appendChild(o),this.overLay.appendChild(i),this.cm.getWrapperElement().appendChild(this.overLay),n&&this.cm.setValue(this.limitData((null===(t=this.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||""))}}},{key:"showMore",value:function(){var t,e;this.cm&&((0,T.vy)(this.cm.getWrapperElement(),"overflow"),null===(t=this.overLay)||void 0===t||t.remove(),this.overLay=void 0,this.cm.setValue((null===(e=this.yasr.results)||void 0===e?void 0:e.getOriginalResponseAsString())||""),this.cm.refresh())}}])}();De.defaults={maxLines:30};const Ge=De;var Be=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}l((i=i.apply(t,e||[])).next())})};n(8956);var je=function(){return(0,o.A)(function t(e){(0,r.A)(this,t),this.priority=20,this.hideFromSelection=!0,this.yasr=e},[{key:"canHandleResults",value:function(){return!!this.yasr.results&&!!this.yasr.results.getError()}},{key:"getTryBtn",value:function(t){var e=document.createElement("a");return e.href=t,e.rel="noopener noreferrer",e.target="_blank",e.className="yasr_tryQuery",e.textContent="Try query in a new browser window",e}},{key:"getCorsMessage",value:function(){var t=document.createElement("div");t.className="redOutline";var e=document.createElement("p");e.textContent="Unable to get response from endpoint. Possible reasons:",t.appendChild(e);var n=document.createElement("ul"),i=document.createElement("li");i.textContent="Incorrect endpoint URL",n.appendChild(i);var r=document.createElement("li");r.textContent="Endpoint is down",n.appendChild(r);var o=document.createElement("li"),s=document.createElement("span");s.textContent="Endpoint is not accessible from the YASGUI server and website, and the endpoint is not ",o.appendChild(s);var a=document.createElement("a");return a.textContent="CORS-enabled",a.href="http://enable-cors.org/",a.target="_blank",a.rel="noopener noreferrer",o.appendChild(a),n.appendChild(o),t.appendChild(n),t}},{key:"draw",value:function(){return Be(this,void 0,void 0,c().mark(function t(){var e,n,i,r,o,s,a,l,u,h,p,d,f;return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((n=document.createElement("div")).className="errorResult",this.yasr.resultsEl.appendChild(n),i=null===(e=this.yasr.results)||void 0===e?void 0:e.getError()){t.next=1;break}return t.abrupt("return");case 1:return(r=document.createElement("div")).className="errorHeader",n.appendChild(r),t.next=2,this.yasr.renderError(i);case 2:if(!(o=t.sent)){t.next=3;break}return(s=document.createElement("div")).className="redOutline",s.appendChild(o),n.appendChild(s),t.abrupt("return");case 3:i.status?(a="Error",i.statusText&&i.statusText.length<100&&(a=i.statusText),a+=" (#".concat(i.status,")"),(l=document.createElement("span")).className="status",l.textContent=a,r.appendChild(l),this.yasr.config.getPlainQueryLinkToEndpoint&&(u=this.yasr.config.getPlainQueryLinkToEndpoint())&&r.appendChild(this.getTryBtn(u)),i.text&&(h=document.createElement("div"),(0,T.iQ)(h,"errorMessageContainer"),n.appendChild(h),p=document.createElement("pre"),(0,T.iQ)(p,"errorMessage"),p.textContent=i.text,h.appendChild(p))):(this.yasr.config.getPlainQueryLinkToEndpoint&&(d=this.yasr.config.getPlainQueryLinkToEndpoint())&&r.appendChild(this.getTryBtn(d)),!i.text||i.text.indexOf("Request has been terminated")>=0?n.appendChild(this.getCorsMessage()):((f=document.createElement("pre")).textContent=i.text,n.appendChild(f)));case 4:case"end":return t.stop()}},t,this)}))}},{key:"getIcon",value:function(){return document.createElement("")}}])}();function Fe(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ue(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ue(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Ue(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function He(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(He=function(){return!!t})()}var qe=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}l((i=i.apply(t,e||[])).next())})};n(8839);var ze=function(t){function e(t){var n,i,o,l,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0;if((0,r.A)(this,e),i=this,o=e,o=(0,a.A)(o),(n=(0,s.A)(i,He()?Reflect.construct(o,l||[],(0,a.A)(i).constructor):o.apply(i,l))).plugins={},n.helpDrawn=!1,n.isFullscreen=!1,n.isLoading=!1,n.utils={addScript:Ee,addCSS:ye,sanitize:xe},!t)throw new Error("No parent passed as argument. Dont know where to draw YASR");n.rootEl=document.createElement("div"),n.rootEl.className="yasr",t.appendChild(n.rootEl),n.config=(0,p.A)({},e.defaults,u),n.storage=new T.wc(e.storageNamespace),n.getConfigFromStorage(),n.headerEl=document.createElement("div"),n.headerEl.className="yasr_header",n.rootEl.appendChild(n.headerEl),n.fallbackInfoEl=document.createElement("div"),n.fallbackInfoEl.className="yasr_fallback_info",n.rootEl.appendChild(n.fallbackInfoEl),n.resultsEl=document.createElement("div"),n.resultsEl.className="yasr_results",n.resultsEl.id=g("resultsId"),n.rootEl.appendChild(n.resultsEl),n.createLoadingElement(),n.initializePlugins(),n.drawHeader();var h=c||n.getResponseFromStorage();return h&&n.setResponse(h),n}return(0,l.A)(e,t),(0,o.A)(e,[{key:"getConfigFromStorage",value:function(){var t=this.getStorageId(this.config.persistenceLabelConfig);if(t){var e=this.storage.get(t);if(e)for(var n in this.selectedPlugin=e.selectedPlugin,e.pluginsConfig){var i=e.pluginsConfig[n];i&&this.config.plugins[n]&&(this.config.plugins[n].dynamicConfig=i)}}}},{key:"renderError",value:function(t){return qe(this,void 0,void 0,c().mark(function e(){var n,i,r,o,s;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=void 0,void 0===this.config.errorRenderers){e.next=8;break}i=Fe(this.config.errorRenderers),e.prev=1,i.s();case 2:if((r=i.n()).done){e.next=5;break}return o=r.value,e.next=3,o(t);case 3:if(void 0===(n=e.sent)){e.next=4;break}return e.abrupt("continue",5);case 4:e.next=2;break;case 5:e.next=7;break;case 6:e.prev=6,s=e.catch(1),i.e(s);case 7:return e.prev=7,i.f(),e.finish(7);case 8:return e.abrupt("return",n);case 9:case"end":return e.stop()}},e,this,[[1,6,7,8]])}))}},{key:"getStorageId",value:function(t,e){var n=e||this.config.persistenceId;if(n)return"string"==typeof n?n+"_"+t:n(this)+"_"+t}},{key:"somethingDrawn",value:function(){return!!this.resultsEl.children.length}},{key:"emptyFallbackElement",value:function(){for(;this.fallbackInfoEl.firstChild;)this.fallbackInfoEl.removeChild(this.fallbackInfoEl.firstChild)}},{key:"getSelectedPluginName",value:function(){return this.selectedPlugin||this.config.defaultPlugin}},{key:"getSelectedPlugin",value:function(){if(this.plugins[this.getSelectedPluginName()])return this.plugins[this.getSelectedPluginName()];console.warn("Tried using plugin ".concat(this.getSelectedPluginName(),", but seems this plugin isnt registered in yasr."))}},{key:"updatePluginSelectors",value:function(t){if(this.pluginSelectorsEl)for(var e in this.config.plugins){var n=this.plugins[e];n&&!n.hideFromSelection&&(t&&(t.indexOf(e)>=0?(0,T.vy)(this.pluginSelectorsEl.querySelector(".select_"+e),"disabled"):(0,T.iQ)(this.pluginSelectorsEl.querySelector(".select_"+e),"disabled")),e===this.getSelectedPluginName()?(0,T.iQ)(this.pluginSelectorsEl.querySelector(".select_"+e),"selected"):(0,T.vy)(this.pluginSelectorsEl.querySelector(".select_"+e),"selected"))}}},{key:"getCompatiblePlugins",value:function(){if(!this.results)return Object.keys(x(this.config.plugins,function(t){return"object"===(0,i.A)(t)&&t.enabled||!0===t}));var t=[];for(var e in this.plugins)this.plugins[e].canHandleResults()&&t.push({name:e,priority:this.plugins[e].priority});return t.sort(function(t,e){return e.priority-t.priority}).map(function(t){return t.name})}},{key:"draw",value:function(){var t,e,n,i,r,o=this;if(this.updateHelpButton(),this.updateResponseInfo(),this.results){var s,a=this.getCompatiblePlugins();if(this.drawnPlugin&&this.getSelectedPluginName()!==this.drawnPlugin){for(;this.pluginControls.firstChild;)this.pluginControls.firstChild.remove();null===(e=(t=this.plugins[this.drawnPlugin]).destroy)||void 0===e||e.call(t)}if(this.getSelectedPlugin()&&(null===(n=this.getSelectedPlugin())||void 0===n?void 0:n.canHandleResults())?(s=this.getSelectedPluginName(),this.emptyFallbackElement()):a[0]&&(this.drawnPlugin&&(null===(r=(i=this.plugins[this.drawnPlugin]).destroy)||void 0===r||r.call(i)),s=a[0],this.fillFallbackBox(s)),s){this.drawnPlugin=s,this.emit("draw",this,this.plugins[s]);var l=this.plugins[s];(l.initialize?l.initialize():Promise.resolve()).then(function(){return qe(o,void 0,void 0,c().mark(function t(){return c().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!s){t.next=2;break}for(;this.resultsEl.firstChild;)this.resultsEl.firstChild.remove();return t.next=1,this.plugins[s].draw(this.config.plugins[s].dynamicConfig);case 1:this.emit("drawn",this,this.plugins[s]),this.updateExportHeaders(),this.updatePluginSelectors(a);case 2:case"end":return t.stop()}},t,this)}))},function(t){return console.error})}else this.resultsEl.textContent="cannot render result",this.updateExportHeaders(),this.updatePluginSelectors(a)}}},{key:"refresh",value:function(){this.draw()}},{key:"destroy",value:function(){var t,e;this.drawnPlugin&&(null===(e=null===(t=this.plugins[this.drawnPlugin])||void 0===t?void 0:t.destroy)||void 0===e||e.call(t)),this.removeAllListeners(),this.rootEl.remove()}},{key:"getPrefixes",value:function(){return this.config.prefixes?"function"==typeof this.config.prefixes?this.config.prefixes(this):this.config.prefixes:{}}},{key:"selectPlugin",value:function(t){this.selectedPlugin!==t&&(this.config.plugins[t]?this.selectedPlugin=t:(console.warn("Plugin ".concat(t," does not exist.")),this.selectedPlugin=this.config.defaultPlugin),this.storeConfig(),this.emit("change",this),this.updatePluginSelectors(),this.draw())}},{key:"drawPluginSelectors",value:function(){var t=this;this.pluginSelectorsEl=document.createElement("ul"),this.pluginSelectorsEl.className="yasr_btnGroup";var e=this.config.pluginOrder;Object.keys(this.config.plugins).sort().forEach(function(t){-1===e.indexOf(t)&&e.push(t)});var n,i=Fe(e);try{var r=function(){var e=n.value;if(!t.config.plugins[e]||!t.config.plugins[e].enabled)return 0;var i=t.plugins[e];if(!i)return 0;if(i.hideFromSelection)return 0;var r=i.label||e,o=document.createElement("button");if((0,T.iQ)(o,"yasr_btn","select_"+e),o.title=r,o.type="button",o.setAttribute("aria-label","Shows ".concat(r," view")),i.getIcon){var s=i.getIcon();s&&((0,T.iQ)(s,"plugin_icon"),o.appendChild(s))}var a=document.createElement("span");a.textContent=r,o.appendChild(a),o.addEventListener("click",function(){return t.selectPlugin(e)});var l=document.createElement("li");l.appendChild(o),t.pluginSelectorsEl.appendChild(l)};for(i.s();!(n=i.n()).done;)r()}catch(t){i.e(t)}finally{i.f()}this.pluginSelectorsEl.children.length>=1&&this.headerEl.appendChild(this.pluginSelectorsEl),this.updatePluginSelectors()}},{key:"fillFallbackBox",value:function(t){var e,n,i;if(this.emptyFallbackElement(),!(null===(e=this.plugins[t||this.drawnPlugin||""])||void 0===e?void 0:e.hideFromSelection)){var r=this.getSelectedPlugin(),o=(null===(n=this.plugins[t||this.drawnPlugin||""])||void 0===n?void 0:n.label)||t||this.drawnPlugin,s=(null==r?void 0:r.label)||this.getSelectedPluginName(),a=document.createElement("p");if(a.innerText="Could not render results with the ".concat(s," plugin, the results currently are rendered with the ").concat(o," plugin. ").concat((null===(i=this.getSelectedPlugin())||void 0===i?void 0:i.helpReference)?"See ":""),null==r?void 0:r.helpReference){var l=document.createElement("a");l.innerText="".concat(s," documentation"),l.href=r.helpReference,l.rel="noopener noreferrer",l.target="_blank",a.append(l),a.innerHTML+=" for more information."}this.fallbackInfoEl.appendChild(a)}}},{key:"drawPluginElement",value:function(){var t=document.createElement("div");(0,T.iQ)(t,"space_element"),this.headerEl.appendChild(t),this.pluginControls=document.createElement("div"),this.pluginControls.setAttribute("id","yasr_plugin_control"),(0,T.iQ)(this.pluginControls,"yasr_plugin_control"),this.pluginControls.setAttribute("aria-controls",this.resultsEl.id),this.headerEl.appendChild(this.pluginControls)}},{key:"drawHeader",value:function(){this.drawPluginSelectors(),this.drawResponseInfo(),this.drawPluginElement(),this.drawDownloadIcon(),this.drawFullscreenButton(),this.loadingEl&&this.headerEl.appendChild(this.loadingEl),this.drawDocumentationButton()}},{key:"drawDownloadIcon",value:function(){var t=this;this.downloadBtn=document.createElement("a"),(0,T.iQ)(this.downloadBtn,"yasr_btn","yasr_downloadIcon","btn_icon"),this.downloadBtn.download="",this.downloadBtn.setAttribute("aria-label","Download Results"),this.downloadBtn.setAttribute("tabindex","0"),this.downloadBtn.setAttribute("role","button");var e=(0,T.Mg)((0,T.uZ)(be));e.setAttribute("aria-hidden","true"),this.downloadBtn.appendChild(e),this.downloadBtn.addEventListener("click",function(){(0,T.nB)(t.downloadBtn,"disabled")||t.download()}),this.downloadBtn.addEventListener("keydown",function(e){if("Space"===e.code||"Enter"===e.code){if((0,T.nB)(t.downloadBtn,"disabled"))return;t.download()}}),this.headerEl.appendChild(this.downloadBtn)}},{key:"drawResponseInfo",value:function(){this.dataElement=document.createElement("div"),(0,T.iQ)(this.dataElement,"yasr_response_chip"),this.headerEl.appendChild(this.dataElement),this.updateResponseInfo()}},{key:"updateResponseInfo",value:function(){var t="";if(this.results){(0,T.vy)(this.dataElement,"empty");var e=this.results.getBindings();e&&(t+="".concat(e.length," result").concat(1===e.length?"":"s"));var n=this.results.getResponseTime();if(n){t||(t="Response");var i=n/1e3;t+=" in ".concat(i," second").concat(1===i?"":"s")}}else(0,T.iQ)(this.dataElement,"empty");this.dataElement.innerText=t}},{key:"updateHelpButton",value:function(){var t=this.getSelectedPlugin();if(null==t?void 0:t.helpReference){var e="View documentation of ".concat(t.label||this.getSelectedPluginName());this.documentationLink.href=t.helpReference,this.documentationLink.title=e,this.documentationLink.setAttribute("aria-label",e),(0,T.vy)(this.documentationLink,"disabled")}else(0,T.iQ)(this.documentationLink,"disabled"),this.documentationLink.title="This plugin doesn't have a help reference yet. Please contact the maintainer to fix this"}},{key:"updateExportHeaders",value:function(){var t,e;if(this.downloadBtn&&this.drawnPlugin){this.downloadBtn.title="";var n=this.plugins[this.drawnPlugin];if(n&&n.download){var i=n.download(null===(e=(t=this.config).getDownloadFileName)||void 0===e?void 0:e.call(t));if((0,T.vy)(this.downloadBtn,"disabled"),i)return void(i.title&&(this.downloadBtn.title=i.title))}this.downloadBtn.title="Download not supported",(0,T.iQ)(this.downloadBtn,"disabled")}}},{key:"drawFullscreenButton",value:function(){var t=this;this.fullscreenBtn=document.createElement("button"),(0,T.iQ)(this.fullscreenBtn,"yasr_btn","yasr_fullscreenButton","btn_icon"),this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),this.fullscreenBtn.setAttribute("tabindex","0"),this.fullscreenBtn.setAttribute("role","button");var e=(0,T.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>');(0,T.iQ)(e,"fullscreenIcon"),e.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(e);var n=(0,T.Mg)('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>');(0,T.iQ)(n,"fullscreenExitIcon"),n.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(n),this.fullscreenBtn.title="Toggle fullscreen (F10)",this.fullscreenBtn.addEventListener("click",function(){t.toggleFullscreen()}),this.fullscreenBtn.addEventListener("keydown",function(e){"Space"!==e.code&&"Enter"!==e.code||t.toggleFullscreen()}),this.headerEl.appendChild(this.fullscreenBtn)}},{key:"toggleFullscreen",value:function(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?((0,T.iQ)(this.rootEl,"fullscreen"),this.fullscreenBtn&&(this.fullscreenBtn.title="Exit fullscreen (F10)")):((0,T.vy)(this.rootEl,"fullscreen"),this.fullscreenBtn&&(this.fullscreenBtn.title="Toggle fullscreen (F10)"))}},{key:"getIsFullscreen",value:function(){return this.isFullscreen}},{key:"createLoadingElement",value:function(){this.loadingEl=document.createElement("div"),this.loadingEl.className="yasr_loading_indicator",this.loadingEl.title="Executing query...",this.loadingEl.innerHTML='<div class="yasr_loading_spinner"></div>',this.loadingEl.style.display="none"}},{key:"showLoading",value:function(){this.isLoading=!0,this.loadingEl&&(this.loadingEl.style.display="flex")}},{key:"hideLoading",value:function(){this.isLoading=!1,this.loadingEl&&(this.loadingEl.style.display="none")}},{key:"drawDocumentationButton",value:function(){this.documentationLink=document.createElement("a"),(0,T.iQ)(this.documentationLink,"yasr_btn","yasr_external_ref_btn"),this.documentationLink.appendChild((0,T.Mg)((0,T.uZ)(Te))),this.documentationLink.href="https://docs.triply.cc/yasgui/",this.documentationLink.target="_blank",this.documentationLink.rel="noopener noreferrer",this.headerEl.appendChild(this.documentationLink)}},{key:"download",value:function(){var t,e,n;if(this.drawnPlugin){var i=this.plugins[this.drawnPlugin];if(i&&i.download){var r=i.download(null===(e=(t=this.config).getDownloadFileName)||void 0===e?void 0:e.call(t));if(!r)return;var o,s=r.getData();if(s.startsWith("data:"))o=s;else{var a=new Blob([s],{type:null!==(n=r.contentType)&&void 0!==n?n:"text/plain"});o=window.URL.createObjectURL(a)}var l=document.createElement("a");l.href=o,l.download=r.filename,l.click()}}}},{key:"handleLocalStorageQuotaFull",value:function(t){console.warn("Localstorage quota exceeded. Clearing all queries"),e.clearStorage()}},{key:"getResponseFromStorage",value:function(){var t=this.getStorageId(this.config.persistenceLabelResponse);if(t)return this.storage.get(t)}},{key:"getPersistentConfig",value:function(){return{selectedPlugin:this.getSelectedPluginName(),pluginsConfig:(0,b.A)(this.config.plugins,function(t){return t.dynamicConfig})}}},{key:"storePluginConfig",value:function(t,e){this.config.plugins[t].dynamicConfig=e,this.storeConfig(),this.emit("change",this)}},{key:"storeConfig",value:function(){var t=this.getStorageId(this.config.persistenceLabelConfig);t&&this.storage.set(t,this.getPersistentConfig(),this.config.persistencyExpire,this.handleLocalStorageQuotaFull)}},{key:"storeResponse",value:function(){var t=this.getStorageId(this.config.persistenceLabelResponse);if(t&&this.results){var e=this.results.getAsStoreObject(this.config.maxPersistentResponseSize);e&&!e.error?this.storage.set(t,e,this.config.persistencyExpire,this.handleLocalStorageQuotaFull):this.storage.remove(t)}}},{key:"setResponse",value:function(t,e){t&&(this.hideLoading(),this.results=new ve(t,e),this.draw(),this.storeResponse())}},{key:"initializePlugins",value:function(){for(var t in this.config.plugins)this.config.plugins[t]&&(e.plugins[t]?this.plugins[t]=new e.plugins[t](this):console.warn("Wanted to initialize plugin "+t+" but could not find a matching registered plugin"))}}],[{key:"registerPlugin",value:function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.plugins[t]=n,e.defaults.plugins[t]=i?{enabled:!0}:{enabled:!1}}},{key:"clearStorage",value:function(){new T.wc(e.storageNamespace).removeNamespace()}}])}(h.EventEmitter);ze.defaults={persistenceId:function(t){var e="",n=t.rootEl;for(n.id&&(e=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(e=n.id);break}return"yasr_"+e},getPlainQueryLinkToEndpoint:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",maxPersistentResponseSize:1e5,prefixes:{},plugins:{},pluginOrder:["table","response"],defaultPlugin:"table"},ze.plugins={},ze.Dependencies={},ze.storageNamespace="triply",ze.registerPlugin("table",Pe),ze.registerPlugin("boolean",Me),ze.registerPlugin("response",Ge),ze.registerPlugin("error",je);const Ve=ze},4179:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="question-circle",i=[],r="f059",o="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z";e.definition={prefix:"fas",iconName:n,icon:[512,512,i,r,o]},e.faQuestionCircle=e.definition,e.prefix="fas",e.iconName=n,e.width=512,e.height=512,e.ligatures=i,e.unicode=r,e.svgPathData=o},4182:(t,e,n)=>{"use strict";n.r(e)},4249:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(2977),r=n(7554),o=n(8214),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(t){return(0,o.A)(t)&&(0,r.A)(t.length)&&!!s[(0,i.A)(t)]};var l=n(9161),u=n(6037),c=u.A&&u.A.isTypedArray;const h=c?(0,l.A)(c):a},4360:(t,e,n)=>{"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}n.d(e,{A:()=>i})},4479:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});const i=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};var r=n(2078),o=n(8285),s=n(6118),a=n(3869),l=n(4249),u=Object.prototype.hasOwnProperty;const c=function(t,e){var n=(0,o.A)(t),c=!n&&(0,r.A)(t),h=!n&&!c&&(0,s.A)(t),p=!n&&!c&&!h&&(0,l.A)(t),d=n||c||h||p,f=d?i(t.length,String):[],g=f.length;for(var m in t)!e&&!u.call(t,m)||d&&("length"==m||h&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,a.A)(m,g))||f.push(m);return f}},4508:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(6422),r=n(5757),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(t){return null==t?[]:(t=Object(t),(0,i.A)(s(t),function(e){return o.call(t,e)}))}:r.A},4560:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(2020),r=n(7181),o=n(2078),s=n(8285),a=r.A?r.A.isConcatSpreadable:void 0;const l=function(t){return(0,s.A)(t)||(0,o.A)(t)||!!(a&&t&&t[a])};const u=function t(e,n,r,o,s){var a=-1,u=e.length;for(r||(r=l),s||(s=[]);++a<u;){var c=e[a];n>0&&r(c)?n>1?t(c,n-1,r,o,s):(0,i.A)(s,c):o||(s[s.length]=c)}return s}},4603:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=Object.prototype;const r=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||i)}},4636:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t){return function(e){return null==t?void 0:t[e]}}},4691:function(t,e){var n,i,r;i=[],n=function t(){var e,n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{},i=!n.document&&!!n.postMessage,r=n.IS_PAPA_WORKER||!1,o={},s=0,a={};function l(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(t){var e=E(t);e.chunkSize=parseInt(e.chunkSize),t.step||t.chunk||(e.chunkSize=null),this._handle=new d(e),(this._handle.streamer=this)._config=e}.call(this,t),this.parseChunk=function(t,e){var i=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<i){let e=this._config.newline;e||(o=this._config.quoteChar||'"',e=this._handle.guessLineEndings(t,o)),t=[...t.split(e).slice(i)].join(e)}this.isFirstChunk&&x(this._config.beforeFirstChunk)&&void 0!==(o=this._config.beforeFirstChunk(t))&&(t=o),this.isFirstChunk=!1,this._halted=!1,i=this._partialLine+t;var o=(this._partialLine="",this._handle.parse(i,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(t=o.meta.cursor,this._finished||(this._partialLine=i.substring(t-this._baseIndex),this._baseIndex=t),o&&o.data&&(this._rowCount+=o.data.length),i=this._finished||this._config.preview&&this._rowCount>=this._config.preview,r)n.postMessage({results:o,workerId:a.WORKER_ID,finished:i});else if(x(this._config.chunk)&&!e){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=o=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!i||!x(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),i||o&&o.meta.paused||this._nextChunk(),o}this._halted=!0},this._sendError=function(t){x(this._config.error)?this._config.error(t):r&&this._config.error&&n.postMessage({workerId:a.WORKER_ID,error:t,finished:!1})}}function u(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),l.call(this,t),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),i||(e.onload=_(this._chunkLoaded,this),e.onerror=_(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var t,n=this._config.downloadRequestHeaders;for(t in n)e.setRequestHeader(t,n[t])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}i&&0===e.status&&this._chunkError()}},this._chunkLoaded=function(){4===e.readyState&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=(t=>null!==(t=t.getResponseHeader("Content-Range"))?parseInt(t.substring(t.lastIndexOf("/")+1)):-1)(e),this.parseChunk(e.responseText)))},this._chunkError=function(t){t=e.statusText||t,this._sendError(new Error(t))}}function c(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),l.call(this,t);var e,n,i="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,n=t.slice||t.webkitSlice||t.mozSlice,i?((e=new FileReader).onload=_(this._chunkLoaded,this),e.onerror=_(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input,r=(this._config.chunkSize&&(r=Math.min(this._start+this._config.chunkSize,this._input.size),t=n.call(t,this._start,r)),e.readAsText(t,this._config.encoding));i||this._chunkLoaded({target:{result:r}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(e.error)}}function h(t){var e;l.call(this,t=t||{}),this.stream=function(t){return e=t,this._nextChunk()},this._nextChunk=function(){var t,n;if(!this._finished)return t=this._config.chunkSize,e=t?(n=e.substring(0,t),e.substring(t)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function p(t){l.call(this,t=t||{});var e=[],n=!0,i=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===e.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):n=!0},this._streamData=_(function(t){try{e.push("string"==typeof t?t:t.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(t){this._streamError(t)}},this),this._streamError=_(function(t){this._streamCleanUp(),this._sendError(t)},this),this._streamEnd=_(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=_(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function d(t){var e,n,i,r,o=Math.pow(2,53),s=-o,l=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,c=this,h=0,p=0,d=!1,m=!1,v=[],y={data:[],errors:[],meta:{}};function _(e){return"greedy"===t.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function b(){if(y&&i&&(S("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),i=!1),t.skipEmptyLines&&(y.data=y.data.filter(function(t){return!_(t)})),T()){if(y)if(Array.isArray(y.data[0])){for(var e=0;T()&&e<y.data.length;e++)y.data[e].forEach(n);y.data.splice(0,1)}else y.data.forEach(n);function n(e,n){x(t.transformHeader)&&(e=t.transformHeader(e,n)),v.push(e)}}function r(e,n){for(var i=t.header?{}:[],r=0;r<e.length;r++){var a=r,c=e[r];c=((e,n)=>(e=>(t.dynamicTypingFunction&&void 0===t.dynamicTyping[e]&&(t.dynamicTyping[e]=t.dynamicTypingFunction(e)),!0===(t.dynamicTyping[e]||t.dynamicTyping)))(e)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&((t=>{if(l.test(t)&&(t=parseFloat(t),s<t&&t<o))return 1})(n)?parseFloat(n):u.test(n)?new Date(n):""===n?null:n):n)(a=t.header?r>=v.length?"__parsed_extra":v[r]:a,c=t.transform?t.transform(c,a):c),"__parsed_extra"===a?(i[a]=i[a]||[],i[a].push(c)):i[a]=c}return t.header&&(r>v.length?S("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+r,p+n):r<v.length&&S("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+r,p+n)),i}var c;y&&(t.header||t.dynamicTyping||t.transform)&&(c=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(r),c=y.data.length):y.data=r(y.data,0),t.header&&y.meta&&(y.meta.fields=v),p+=c)}function T(){return t.header&&0===v.length}function S(t,e,n,i){t={type:t,code:e,message:n},void 0!==i&&(t.row=i),y.errors.push(t)}x(t.step)&&(r=t.step,t.step=function(e){y=e,T()?b():(b(),0!==y.data.length&&(h+=e.data.length,t.preview&&h>t.preview?n.abort():(y.data=y.data[0],r(y,c))))}),this.parse=function(r,o,s){var l=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(r,l)),i=!1,t.delimiter?x(t.delimiter)&&(t.delimiter=t.delimiter(r),y.meta.delimiter=t.delimiter):((l=((e,n,i,r,o)=>{var s,l,u,c;o=o||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var h=0;h<o.length;h++){for(var p,d=o[h],f=0,m=0,v=0,y=(u=void 0,new g({comments:r,delimiter:d,newline:n,preview:10}).parse(e)),E=0;E<y.data.length;E++)i&&_(y.data[E])?v++:(m+=p=y.data[E].length,void 0===u?u=p:0<p&&(f+=Math.abs(p-u),u=p));0<y.data.length&&(m/=y.data.length-v),(void 0===l||f<=l)&&(void 0===c||c<m)&&1.99<m&&(l=f,s=d,c=m)}return{successful:!!(t.delimiter=s),bestDelimiter:s}})(r,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=l.bestDelimiter:(i=!0,t.delimiter=a.DefaultDelimiter),y.meta.delimiter=t.delimiter),l=E(t),t.preview&&t.header&&l.preview++,e=r,n=new g(l),y=n.parse(e,o,s),b(),d?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,n.abort(),e=x(t.chunk)?"":e.substring(n.getCharIndex())},this.resume=function(){c.streamer._halted?(d=!1,c.streamer.parseChunk(e,!0)):setTimeout(c.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,n.abort(),y.meta.aborted=!0,x(t.complete)&&t.complete(y),e=""},this.guessLineEndings=function(t,e){t=t.substring(0,1048576),e=new RegExp(f(e)+"([^]*?)"+f(e),"gm");var n=(t=t.replace(e,"")).split("\r");if(t=1<(e=t.split("\n")).length&&e[0].length<n[0].length,1===n.length||t)return"\n";for(var i=0,r=0;r<n.length;r++)"\n"===n[r][0]&&i++;return i>=n.length/2?"\r\n":"\r"}}function f(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(t){var e=(t=t||{}).delimiter,n=t.newline,i=t.comments,r=t.step,o=t.preview,s=t.fastMode,l=null,u=!1,c=null==t.quoteChar?'"':t.quoteChar,h=c;if(void 0!==t.escapeChar&&(h=t.escapeChar),("string"!=typeof e||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),i===e)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var p=0,d=!1;this.parse=function(a,g,m){if("string"!=typeof a)throw new Error("Input must be a string");var v=a.length,y=e.length,E=n.length,_=i.length,b=x(r),T=[],S=[],A=[],L=p=0;if(!a)return B();if(s||!1!==s&&-1===a.indexOf(c)){for(var C=a.split(n),N=0;N<C.length;N++){if(A=C[N],p+=A.length,N!==C.length-1)p+=n.length;else if(m)return B();if(!i||A.substring(0,_)!==i){if(b){if(T=[],O(A.split(e)),j(),d)return B()}else O(A.split(e));if(o&&o<=N)return T=T.slice(0,o),B(!0)}}return B()}for(var I=a.indexOf(e,p),w=a.indexOf(n,p),R=new RegExp(f(h)+f(c),"g"),P=a.indexOf(c,p);;)if(a[p]===c)for(P=p,p++;;){if(-1===(P=a.indexOf(c,P+1)))return m||S.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:T.length,index:p}),D();if(P===v-1)return D(a.substring(p,P).replace(R,c));if(c===h&&a[P+1]===h)P++;else if(c===h||0===P||a[P-1]!==h){-1!==I&&I<P+1&&(I=a.indexOf(e,P+1));var M=k(-1===(w=-1!==w&&w<P+1?a.indexOf(n,P+1):w)?I:Math.min(I,w));if(a.substr(P+1+M,y)===e){A.push(a.substring(p,P).replace(R,c)),a[p=P+1+M+y]!==c&&(P=a.indexOf(c,p)),I=a.indexOf(e,p),w=a.indexOf(n,p);break}if(M=k(w),a.substring(P+1+M,P+1+M+E)===n){if(A.push(a.substring(p,P).replace(R,c)),G(P+1+M+E),I=a.indexOf(e,p),P=a.indexOf(c,p),b&&(j(),d))return B();if(o&&T.length>=o)return B(!0);break}S.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:T.length,index:p}),P++}}else if(i&&0===A.length&&a.substring(p,p+_)===i){if(-1===w)return B();p=w+E,w=a.indexOf(n,p),I=a.indexOf(e,p)}else if(-1!==I&&(I<w||-1===w))A.push(a.substring(p,I)),p=I+y,I=a.indexOf(e,p);else{if(-1===w)break;if(A.push(a.substring(p,w)),G(w+E),b&&(j(),d))return B();if(o&&T.length>=o)return B(!0)}return D();function O(t){T.push(t),L=p}function k(t){var e=0;return-1!==t&&(t=a.substring(P+1,t))&&""===t.trim()?t.length:e}function D(t){return m||(void 0===t&&(t=a.substring(p)),A.push(t),p=v,O(A),b&&j()),B()}function G(t){p=t,O(A),A=[],w=a.indexOf(n,p)}function B(i){if(t.header&&!g&&T.length&&!u){var r=T[0],o=Object.create(null),s=new Set(r);let e=!1;for(let n=0;n<r.length;n++){let i=r[n];if(o[i=x(t.transformHeader)?t.transformHeader(i,n):i]){let t,a=o[i];for(;t=i+"_"+a,a++,s.has(t););s.add(t),r[n]=t,o[i]++,e=!0,(l=null===l?{}:l)[t]=i}else o[i]=1,r[n]=i;s.add(i)}e&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:T,errors:S,meta:{delimiter:e,linebreak:n,aborted:d,truncated:!!i,cursor:L+(g||0),renamedHeaders:l}}}function j(){r(B()),T=[],S=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return p}}function m(t){var e=t.data,n=o[e.workerId],i=!1;if(e.error)n.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){i=!0,v(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(x(n.userStep)){for(var s=0;s<e.results.data.length&&(n.userStep({data:e.results.data[s],errors:e.results.errors,meta:e.results.meta},r),!i);s++);delete e.results}else x(n.userChunk)&&(n.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!i&&v(e.workerId,e.results)}function v(t,e){var n=o[t];x(n.userComplete)&&n.userComplete(e),n.terminate(),delete o[t]}function y(){throw new Error("Not implemented.")}function E(t){if("object"!=typeof t||null===t)return t;var e,n=Array.isArray(t)?[]:{};for(e in t)n[e]=E(t[e]);return n}function _(t,e){return function(){t.apply(e,arguments)}}function x(t){return"function"==typeof t}return a.parse=function(e,i){var r=(i=i||{}).dynamicTyping||!1;if(x(r)&&(i.dynamicTypingFunction=r,r={}),i.dynamicTyping=r,i.transform=!!x(i.transform)&&i.transform,!i.worker||!a.WORKERS_SUPPORTED)return r=null,a.NODE_STREAM_INPUT,"string"==typeof e?(e=(t=>65279!==t.charCodeAt(0)?t:t.slice(1))(e),r=new(i.download?u:h)(i)):!0===e.readable&&x(e.read)&&x(e.on)?r=new p(i):(n.File&&e instanceof File||e instanceof Object)&&(r=new c(i)),r.stream(e);(r=(()=>{var e;return!!a.WORKERS_SUPPORTED&&(e=(()=>{var e=n.URL||n.webkitURL||null,i=t.toString();return a.BLOB_URL||(a.BLOB_URL=e.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))})(),(e=new n.Worker(e)).onmessage=m,e.id=s++,o[e.id]=e)})()).userStep=i.step,r.userChunk=i.chunk,r.userComplete=i.complete,r.userError=i.error,i.step=x(i.step),i.chunk=x(i.chunk),i.complete=x(i.complete),i.error=x(i.error),delete i.worker,r.postMessage({input:e,config:i,workerId:r.id})},a.unparse=function(t,e){var n=!1,i=!0,r=",",o="\r\n",s='"',l=s+s,u=!1,c=null,h=!1,p=((()=>{if("object"==typeof e){if("string"!=typeof e.delimiter||a.BAD_DELIMITERS.filter(function(t){return-1!==e.delimiter.indexOf(t)}).length||(r=e.delimiter),"boolean"!=typeof e.quotes&&"function"!=typeof e.quotes&&!Array.isArray(e.quotes)||(n=e.quotes),"boolean"!=typeof e.skipEmptyLines&&"string"!=typeof e.skipEmptyLines||(u=e.skipEmptyLines),"string"==typeof e.newline&&(o=e.newline),"string"==typeof e.quoteChar&&(s=e.quoteChar),"boolean"==typeof e.header&&(i=e.header),Array.isArray(e.columns)){if(0===e.columns.length)throw new Error("Option columns is empty");c=e.columns}void 0!==e.escapeChar&&(l=e.escapeChar+s),e.escapeFormulae instanceof RegExp?h=e.escapeFormulae:"boolean"==typeof e.escapeFormulae&&e.escapeFormulae&&(h=/^[=+\-@\t\r].*$/)}})(),new RegExp(f(s),"g"));if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return d(null,t,u);if("object"==typeof t[0])return d(c||Object.keys(t[0]),t,u)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||c),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),d(t.fields||[],t.data||[],u);throw new Error("Unable to serialize unrecognized input");function d(t,e,n){var s="",a=("string"==typeof t&&(t=JSON.parse(t)),"string"==typeof e&&(e=JSON.parse(e)),Array.isArray(t)&&0<t.length),l=!Array.isArray(e[0]);if(a&&i){for(var u=0;u<t.length;u++)0<u&&(s+=r),s+=g(t[u],u);0<e.length&&(s+=o)}for(var c=0;c<e.length;c++){var h=(a?t:e[c]).length,p=!1,d=a?0===Object.keys(e[c]).length:0===e[c].length;if(n&&!a&&(p="greedy"===n?""===e[c].join("").trim():1===e[c].length&&0===e[c][0].length),"greedy"===n&&a){for(var f=[],m=0;m<h;m++){var v=l?t[m]:m;f.push(e[c][v])}p=""===f.join("").trim()}if(!p){for(var y=0;y<h;y++){0<y&&!d&&(s+=r);var E=a&&l?t[y]:y;s+=g(e[c][E],y)}c<e.length-1&&(!n||0<h&&!d)&&(s+=o)}}return s}function g(t,e){var i,o;return null==t?"":t.constructor===Date?JSON.stringify(t).slice(1,25):(o=!1,h&&"string"==typeof t&&h.test(t)&&(t="'"+t,o=!0),i=t.toString().replace(p,l),(o=o||!0===n||"function"==typeof n&&n(t,e)||Array.isArray(n)&&n[e]||((t,e)=>{for(var n=0;n<e.length;n++)if(-1<t.indexOf(e[n]))return!0;return!1})(i,a.BAD_DELIMITERS)||-1<i.indexOf(r)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i)}},a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!i&&!!n.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=g,a.ParserHandle=d,a.NetworkStreamer=u,a.FileStreamer=c,a.StringStreamer=h,a.ReadableStreamStreamer=p,n.jQuery&&((e=n.jQuery).fn.parse=function(t){var i=t.config||{},r=[];return this.each(function(t){if("INPUT"!==e(this).prop("tagName").toUpperCase()||"file"!==e(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var o=0;o<this.files.length;o++)r.push({file:this.files[o],inputElem:this,instanceConfig:e.extend({},i)})}),o(),this;function o(){if(0===r.length)x(t.complete)&&t.complete();else{var n,i,o,l,u=r[0];if(x(t.before)){var c=t.before(u.file,u.inputElem);if("object"==typeof c){if("abort"===c.action)return n="AbortError",i=u.file,o=u.inputElem,l=c.reason,void(x(t.error)&&t.error({name:n},i,o,l));if("skip"===c.action)return void s();"object"==typeof c.config&&(u.instanceConfig=e.extend(u.instanceConfig,c.config))}else if("skip"===c)return void s()}var h=u.instanceConfig.complete;u.instanceConfig.complete=function(t){x(h)&&h(t,u.file,u.inputElem),s()},a.parse(u.file,u.instanceConfig)}}function s(){r.splice(0,1),o()}}),r&&(n.onmessage=function(t){t=t.data,void 0===a.WORKER_ID&&t&&(a.WORKER_ID=t.workerId),"string"==typeof t.input?n.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(n.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&n.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(u.prototype=Object.create(l.prototype)).constructor=u,(c.prototype=Object.create(l.prototype)).constructor=c,(h.prototype=Object.create(h.prototype)).constructor=h,(p.prototype=Object.create(l.prototype)).constructor=p,a},void 0===(r="function"==typeof n?n.apply(e,i):n)||(t.exports=r)},4758:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(4360);function r(t){var e=function(t,e){if("object"!=(0,i.A)(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=(0,i.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==(0,i.A)(e)?e:e+""}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},4779:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="align-left",i=[],r="f036",o="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z";e.definition={prefix:"fas",iconName:n,icon:[448,512,i,r,o]},e.faAlignLeft=e.definition,e.prefix="fas",e.iconName=n,e.width=448,e.height=512,e.ligatures=i,e.unicode=r,e.svgPathData=o},4785:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var r=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise(function(n,i){function r(n){t.removeListener(e,o),i(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",r),n([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,n)}(t,r,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function u(t,e,n,i){var r,o,s,u;if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(r=l(t))>0&&s.length>r&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=s.length,u=c,console&&console.warn&&console.warn(u)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=c.bind(i);return r.listener=n,i.wrapFn=r,r}function p(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):f(r,r.length)}function d(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}function g(t,e,n,i){if("function"==typeof t.on)i.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function r(o){i.once&&t.removeEventListener(e,r),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||r(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||r(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},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[t];if(void 0===l)return!1;if("function"==typeof l)i(l,this,e);else{var u=l.length,c=f(l,u);for(n=0;n<u;++n)i(c[n],this,e)}return!0},o.prototype.addListener=function(t,e){return u(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return u(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,h(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,h(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,i,r,o,s;if(a(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,r),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},o.prototype.listeners=function(t){return p(this,t,!0)},o.prototype.rawListeners=function(t){return p(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},4801:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=/\s/;const r=function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e};var o=/^\s+/;const s=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t};var a=n(6809),l=n(8086),u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,p=parseInt;const d=function(t){if("number"==typeof t)return t;if((0,l.A)(t))return NaN;if((0,a.A)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,a.A)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=s(t);var n=c.test(t);return n||h.test(t)?p(t.slice(2),n?2:8):u.test(t)?NaN:+t};var f=1/0;const g=function(t){return t?(t=d(t))===f||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};const m=function(t){var e=g(t),n=e%1;return e==e?n?e-n:e:0}},4858:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});const i=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var r=Math.max;const o=function(t,e,n){return e=r(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=r(o.length-e,0),l=Array(a);++s<a;)l[s]=o[e+s];s=-1;for(var u=Array(e+1);++s<e;)u[s]=o[s];return u[e]=n(l),i(t,this,u)}}},4889:(t,e,n)=>{"use strict";n.d(e,{A:()=>T});var i=n(1671),r=n(8377);const o=(0,i.A)(r.A,"DataView");var s=n(6787);const a=(0,i.A)(r.A,"Promise");const l=(0,i.A)(r.A,"Set");const u=(0,i.A)(r.A,"WeakMap");var c=n(2977),h=n(5549),p="[object Map]",d="[object Promise]",f="[object Set]",g="[object WeakMap]",m="[object DataView]",v=(0,h.A)(o),y=(0,h.A)(s.A),E=(0,h.A)(a),_=(0,h.A)(l),x=(0,h.A)(u),b=c.A;(o&&b(new o(new ArrayBuffer(1)))!=m||s.A&&b(new s.A)!=p||a&&b(a.resolve())!=d||l&&b(new l)!=f||u&&b(new u)!=g)&&(b=function(t){var e=(0,c.A)(t),n="[object Object]"==e?t.constructor:void 0,i=n?(0,h.A)(n):"";if(i)switch(i){case v:return m;case y:return p;case E:return d;case _:return f;case x:return g}return e});const T=b},5043:(t,e,n)=>{var i=n(7459),r=n(5788),o=[n(5503)];t.exports=i.createStore(r,o)},5067:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t,e){return function(n){return t(e(n))}}},5168:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=n(8377).A.Uint8Array},5186:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(1100),r=n(4858),o=n(9430);const s=function(t,e){return(0,o.A)((0,r.A)(t,e,i.A),t+"")}},5200:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(8292),r=n(3653),o=n(5955);const s=function(t,e){var n={};return e=(0,o.A)(e,3),(0,r.A)(t,function(t,r,o){(0,i.A)(n,r,e(t,r,o))}),n}},5209:(t,e,n)=>{"use strict";function i(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,{A:()=>i})},5217:(t,e,n)=>{var i=n(1115);t.exports=function(t,e,n,r,o){var s=i(t,e,n,r,o);return s.next().then(function(t){return t.done?t.value:s.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},5355:(t,e,n)=>{var i=n(7589).Global;function r(){return i.localStorage}function o(t){return r().getItem(t)}t.exports={name:"localStorage",read:o,write:function(t,e){return r().setItem(t,e)},each:function(t){for(var e=r().length-1;e>=0;e--){var n=r().key(e);t(o(n),n)}},remove:function(t){return r().removeItem(t)},clearAll:function(){return r().clear()}}},5397:(t,e,n)=>{!function(t){"use strict";var e="CodeMirror-hint",n="CodeMirror-hint-active";function i(t,e){if(this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var i={hint:e};if(n)for(var r in n)i[r]=n[r];return t.showHint(i)},t.defineExtension("showHint",function(e){e=s(this,this.getCursor("start"),e);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!e.hint.supportsSelection)return;for(var r=0;r<n.length;r++)if(n[r].head.line!=n[r].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new i(this,e);o.options.hint&&(t.signal(this,"startCompletion",this),o.update(!0))}}),t.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var r=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function s(t,e,n){var i=t.options.hintOptions,r={};for(var o in f)r[o]=f[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(t,e)),r}function a(t){return"string"==typeof t?t:t.text}function l(t,e){var n={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){e.moveFocus(-1)},n["Ctrl-N"]=function(){e.moveFocus(1)});var i=t.options.customKeys,r=i?{}:n;function o(t,i){var o;o="string"!=typeof i?function(t){return i(t,e)}:n.hasOwnProperty(i)?n[i]:i,r[t]=o}if(i)for(var s in i)i.hasOwnProperty(s)&&o(s,i[s]);var a=t.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&o(s,a[s]);return r}function u(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function c(i,r){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=i,this.data=r,this.picked=!1;var o=this,s=i.cm,c=s.getInputField().ownerDocument,h=c.defaultView||c.parentWindow,p=this.hints=c.createElement("ul");p.setAttribute("role","listbox"),p.setAttribute("aria-expanded","true"),p.id=this.id;var d=i.cm.options.theme;p.className="CodeMirror-hints "+d,this.selectedHint=r.selectedHint||0;for(var f=r.list,g=0;g<f.length;++g){var m=p.appendChild(c.createElement("li")),v=f[g],y=e+(g!=this.selectedHint?"":" "+n);null!=v.className&&(y=v.className+" "+y),m.className=y,g==this.selectedHint&&m.setAttribute("aria-selected","true"),m.id=this.id+"-"+g,m.setAttribute("role","option"),v.render?v.render(m,r,v):m.appendChild(c.createTextNode(v.displayText||a(v))),m.hintId=g}var E=i.options.container||c.body,_=s.cursorCoords(i.options.alignWithWord?r.from:null),x=_.left,b=_.bottom,T=!0,S=0,A=0;if(E!==c.body){var L=-1!==["absolute","relative","fixed"].indexOf(h.getComputedStyle(E).position)?E:E.offsetParent,C=L.getBoundingClientRect(),N=c.body.getBoundingClientRect();S=C.left-N.left-L.scrollLeft,A=C.top-N.top-L.scrollTop}p.style.left=x-S+"px",p.style.top=b-A+"px";var I=h.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),w=h.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);E.appendChild(p),s.getInputField().setAttribute("aria-autocomplete","list"),s.getInputField().setAttribute("aria-owns",this.id),s.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var R,P=i.options.moveOnOverlap?p.getBoundingClientRect():new DOMRect,M=!!i.options.paddingForScrollbar&&p.scrollHeight>p.clientHeight+1;if(setTimeout(function(){R=s.getScrollInfo()}),P.bottom-w>0){var O=P.bottom-P.top,k=P.top-(_.bottom-_.top)-2;w-P.top<k?(O>k&&(p.style.height=(O=k)+"px"),p.style.top=(b=_.top-O)-A+"px",T=!1):p.style.height=w-P.top-2+"px"}var D,G=P.right-I;if(M&&(G+=s.display.nativeBarWidth),G>0&&(P.right-P.left>I&&(p.style.width=I-5+"px",G-=P.right-P.left-I),p.style.left=(x=Math.max(_.left-G-S,0))+"px"),M)for(var B=p.firstChild;B;B=B.nextSibling)B.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=l(i,{moveFocus:function(t,e){o.changeActive(o.selectedHint+t,e)},setFocus:function(t){o.changeActive(t)},menuSize:function(){return o.screenAmount()},length:f.length,close:function(){i.close()},pick:function(){o.pick()},data:r})),i.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){D=setTimeout(function(){i.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(D)})),s.on("scroll",this.onScroll=function(){var t=s.getScrollInfo(),e=s.getWrapperElement().getBoundingClientRect();R||(R=s.getScrollInfo());var n=b+R.top-t.top,r=n-(h.pageYOffset||(c.documentElement||c.body).scrollTop);if(T||(r+=p.offsetHeight),r<=e.top||r>=e.bottom)return i.close();p.style.top=n+"px",p.style.left=x+R.left-t.left+"px"}),t.on(p,"dblclick",function(t){var e=u(p,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),o.pick())}),t.on(p,"click",function(t){var e=u(p,t.target||t.srcElement);e&&null!=e.hintId&&(o.changeActive(e.hintId),i.options.completeOnSingleClick&&o.pick())}),t.on(p,"mousedown",function(){setTimeout(function(){s.focus()},20)});var j=this.getSelectedHintRange();return 0===j.from&&0===j.to||this.scrollToActive(),t.signal(r,"select",f[this.selectedHint],p.childNodes[this.selectedHint]),!0}function h(t,e){if(!t.somethingSelected())return e;for(var n=[],i=0;i<e.length;i++)e[i].supportsSelection&&n.push(e[i]);return n}function p(t,e,n,i){if(t.async)t(e,i,n);else{var r=t(e,n);r&&r.then?r.then(i):i(r)}}function d(e,n){var i,r=e.getHelpers(n,"hint");if(r.length){var o=function(t,e,n){var i=h(t,r);function o(r){if(r==i.length)return e(null);p(i[r],t,n,function(t){t&&t.list.length>0?e(t):o(r+1)})}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:i})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}i.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var i=e.list[n],r=this;this.cm.operation(function(){i.hint?i.hint(r.cm,e,i):r.cm.replaceRange(a(i),i.from||e.from,i.to||e.to,"complete"),t.signal(e,"pick",i),r.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var e=this.cm.getCursor(),n=this.cm.getLine(e.line);if(e.line!=this.startPos.line||n.length-e.ch!=this.startLen-this.startPos.ch||e.ch<t.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(n.charAt(e.ch-1)))this.close();else{var i=this;this.debounce=r(function(){i.update()}),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,n=++this.tick;p(this.options.hint,this.cm,this.options,function(i){e.tick==n&&e.finishUpdate(i,t)})}},finishUpdate:function(e,n){this.data&&t.signal(this.data,"update");var i=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(i&&1==e.list.length?this.pick(e,0):(this.widget=new c(this,e),t.signal(e,"shown")))}},c.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm.getInputField();t.removeAttribute("aria-activedescendant"),t.removeAttribute("aria-owns");var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,i){if(e>=this.data.list.length?e=i?this.data.list.length-1:0:e<0&&(e=i?0:this.data.list.length-1),this.selectedHint!=e){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" "+n,""),r.removeAttribute("aria-selected")),(r=this.hints.childNodes[this.selectedHint=e]).className+=" "+n,r.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",r.id),this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var t=this.getSelectedHintRange(),e=this.hints.childNodes[t.from],n=this.hints.childNodes[t.to],i=this.hints.firstChild;e.offsetTop<this.hints.scrollTop?this.hints.scrollTop=e.offsetTop-i.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+i.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var t=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-t),to:Math.min(this.data.list.length-1,this.selectedHint+t)}}},t.registerHelper("hint","auto",{resolve:d}),t.registerHelper("hint","fromList",function(e,n){var i,r=e.getCursor(),o=e.getTokenAt(r),s=t.Pos(r.line,o.start),a=r;o.start<r.ch&&/\w/.test(o.string.charAt(r.ch-o.start-1))?i=o.string.substr(0,r.ch-o.start):(i="",s=r);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,i.length)==i&&l.push(c)}if(l.length)return{list:l,from:s,to:a}}),t.commands.autocomplete=t.showHint;var f={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};t.defineOption("hintOptions",null)}(n(1719))},5406:t=>{t.exports={table:{"*[&&,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"]}},keywords:/^(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,punct:/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,startSymbol:"sparql11",acceptEmpty:!0}},5413:(t,e,n)=>{"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{A:()=>i})},5503:(t,e,n)=>{t.exports=function(){return n(815),{}}},5549:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=Function.prototype.toString;const r=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5668:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>rn});var i,r,o,s,a=n(9602),l=function(t,e){if(l.factory(t,e))return l;if(this instanceof l)return a(t).DataTable(e);var n=this,i=void 0===(e=t),o=this.length;return i&&(e={}),this.api=function(){return new r(this)},this.each(function(){var t,s=o>1?te({},e,!0):e,u=0,c=this.getAttribute("id"),h=l.defaults,p=a(this);if("table"==this.nodeName.toLowerCase()){s.on&&s.on.options&&ue(p,"options",s.on.options),p.trigger("options.dt",s),O(h),k(h.column),P(h,h,!0),P(h.column,h.column,!0),P(h,a.extend(s,ce(p.data())),!0);var d=l.settings;for(u=0,t=d.length;u<t;u++){var f=d[u];if(f.nTable==this||f.nTHead&&f.nTHead.parentNode==this||f.nTFoot&&f.nTFoot.parentNode==this){var g=void 0!==s.bRetrieve?s.bRetrieve:h.bRetrieve,m=void 0!==s.bDestroy?s.bDestroy:h.bDestroy;if(i||g)return f.oInstance;if(m){new l.Api(f).destroy();break}return void Kt(f,0,"Cannot reinitialise DataTable",3)}if(f.sTableId==this.id){d.splice(u,1);break}}null!==c&&""!==c||(c="DataTables_Table_"+l.ext._unique++,this.id=c),p.children("colgroup").remove();var v=a.extend(!0,{},l.models.oSettings,{sDestroyWidth:p[0].style.width,sInstance:c,sTableId:c,colgroup:a("<colgroup>").prependTo(this),fastData:function(t,e,n){return $(v,t,e,n)}});v.nTable=this,v.oInit=s,d.push(v),v.api=new r(v),v.oInstance=1===n.length?n:p.dataTable(),O(s),s.aLengthMenu&&!s.iDisplayLength&&(s.iDisplayLength=Array.isArray(s.aLengthMenu[0])?s.aLengthMenu[0][0]:a.isPlainObject(s.aLengthMenu[0])?s.aLengthMenu[0].value:s.aLengthMenu[0]),s=te(a.extend(!0,{},h),s),Jt(v.oFeatures,s,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Jt(v,s,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","orderIndicators","orderHandler","titleRow","typeDetect",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Jt(v.oScroll,s,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Jt(v.oLanguage,s,"fnInfoCallback"),ne(v,"aoDrawCallback",s.fnDrawCallback),ne(v,"aoStateSaveParams",s.fnStateSaveParams),ne(v,"aoStateLoadParams",s.fnStateLoadParams),ne(v,"aoStateLoaded",s.fnStateLoaded),ne(v,"aoRowCallback",s.fnRowCallback),ne(v,"aoRowCreatedCallback",s.fnCreatedRow),ne(v,"aoHeaderCallback",s.fnHeaderCallback),ne(v,"aoFooterCallback",s.fnFooterCallback),ne(v,"aoInitComplete",s.fnInitComplete),ne(v,"aoPreDrawCallback",s.fnPreDrawCallback),v.rowIdFn=nt(s.rowId),s.on&&Object.keys(s.on).forEach(function(t){ue(p,t,s.on[t])}),function(t){if(!l.__browser){var e={};l.__browser=e;var n=a("<div/>").css({position:"fixed",top:0,left:-1*window.pageXOffset,height:1,width:1,overflow:"hidden"}).append(a("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(a("<div/>").css({width:"100%",height:10}))).appendTo("body"),i=n.children(),r=i.children();e.barWidth=i[0].offsetWidth-i[0].clientWidth,e.bScrollbarLeft=1!==Math.round(r.offset().left),n.remove()}a.extend(t.oBrowser,l.__browser),t.oScroll.iBarWidth=l.__browser.barWidth}(v);var y=v.oClasses;a.extend(y,l.ext.classes,s.oClasses),p.addClass(y.table),v.oFeatures.bPaginate||(s.iDisplayStart=0),void 0===v.iInitDisplayStart&&(v.iInitDisplayStart=s.iDisplayStart,v._iDisplayStart=s.iDisplayStart);var E=s.iDeferLoading;if(null!==E){v.deferLoading=!0;var _=Array.isArray(E);v._iRecordsDisplay=_?E[0]:E,v._iRecordsTotal=_?E[1]:E}var x=[],b=this.getElementsByTagName("thead"),T=xt(v,b[0]);if(s.aoColumns)x=s.aoColumns;else if(T.length)for(u=0,t=T[0].length;u<t;u++)x.push(null);for(u=0,t=x.length;u<t;u++)D(v);!function(t,e,n,i,r){var o,s,l,u,c,h,p,d=t.aoColumns;if(n)for(o=0,s=n.length;o<s;o++)n[o]&&n[o].name&&(d[o].sName=n[o].name);if(e)for(o=e.length-1;o>=0;o--){var f=void 0!==(p=e[o]).target?p.target:void 0!==p.targets?p.targets:p.aTargets;for(Array.isArray(f)||(f=[f]),l=0,u=f.length;l<u;l++){var g=f[l];if("number"==typeof g&&g>=0){for(;d.length<=g;)D(t);r(g,p)}else if("number"==typeof g&&g<0)r(d.length+g,p);else if("string"==typeof g)for(c=0,h=d.length;c<h;c++)"_all"===g?r(c,p):-1!==g.indexOf(":name")?d[c].sName===g.replace(":name","")&&r(c,p):i.forEach(function(t){if(t[c]){var e=a(t[c].cell);g.match(/^[a-z][\w-]*$/i)&&(g="."+g),e.is(g)&&r(c,p)}})}}if(n)for(o=0,s=n.length;o<s;o++)r(o,n[o])}(v,s.aoColumnDefs,x,T,function(t,e){G(v,t,e)});var S=p.children("tbody").find("tr:first-child").eq(0);if(S.length){var A=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};a(S[0]).children("th, td").each(function(t,e){var n=v.aoColumns[t];if(n||Kt(v,0,"Incorrect column count",18),n.mData===t){var i=A(e,"sort")||A(e,"order"),r=A(e,"filter")||A(e,"search");null===i&&null===r||(n.mData={_:t+".display",sort:null!==i?t+".@data-"+i:void 0,type:null!==i?t+".@data-"+i:void 0,filter:null!==r?t+".@data-"+r:void 0},n._isArrayHost=!0,G(v,t))}})}ne(v,"aoDrawCallback",Yt);var L=v.oFeatures;if(s.bStateSave&&(L.bStateSave=!0),void 0===s.aaSorting){var C=v.aaSorting;for(u=0,t=C.length;u<t;u++)C[u][1]=v.aoColumns[u].asSorting[0]}Qt(v),ne(v,"aoDrawCallback",function(){(v.bSorted||"ssp"===se(v)||L.bDeferRender)&&Qt(v)});var N=p.children("caption");v.caption&&(0===N.length&&(N=a("<caption/>").appendTo(p)),N.html(v.caption)),N.length&&(N[0]._captionSide=N.css("caption-side"),v.captionNode=N[0]),0===b.length&&(b=a("<thead/>").appendTo(p)),v.nTHead=b[0];var I=p.children("tbody");0===I.length&&(I=a("<tbody/>").insertAfter(b)),v.nTBody=I[0];var w=p.children("tfoot");0===w.length&&(w=a("<tfoot/>").appendTo(p)),v.nTFoot=w[0],v.aiDisplay=v.aiDisplayMaster.slice(),v.bInitialised=!0;var R=v.oLanguage;a.extend(!0,R,s.oLanguage),R.sUrl?a.ajax({dataType:"json",url:R.sUrl,success:function(t){P(h.oLanguage,t),a.extend(!0,R,t,v.oInit.oLanguage),ie(v,null,"i18n",[v],!0),wt(v)},error:function(){Kt(v,0,"i18n file loading error",21),wt(v)}}):(ie(v,null,"i18n",[v],!0),wt(v))}else Kt(null,0,"Non-table node initialisation ("+this.nodeName+")",2)}),n=null,this};l.ext=i={builder:"-source-",buttons:{},ccContent:{},classes:{},errMode:"alert",escape:{attributes:!1},feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:l.fnVersionCheck,iApiIndex:0,sVersion:l.version},a.extend(i,{afnFiltering:i.search,aTypes:i.type.detect,ofnSearch:i.type.search,oSort:i.type.order,afnSortData:i.order,aoFeatures:i.feature,oStdClasses:i.classes,oPagination:i.pager}),a.extend(l.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}});var u={},c=/[\r\n\u2028]/g,h=/<([^>]*>)/g,p=Math.pow(2,28),d=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,f=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),g=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,m=function(t){return!t||!0===t||"-"===t},v=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},y=function(t,e){return u[e]||(u[e]=new RegExp(Ct(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(u[e],"."):t},E=function(t,e,n,i){var r=typeof t,o="string"===r;return"number"===r||"bigint"===r||(!(!i||!m(t))||(e&&o&&(t=y(t,e)),n&&o&&(t=t.replace(g,"")),!isNaN(parseFloat(t))&&isFinite(t)))},_=function(t,e,n,i){if(i&&m(t))return!0;if("string"==typeof t&&t.match(/<(input|select)/i))return null;var r=function(t){return m(t)||"string"==typeof t}(t);return r&&!!E(A(t),e,n,i)||null},x=function(t,e,n){var i=[],r=0,o=t.length;if(void 0!==n)for(;r<o;r++)t[r]&&t[r][e]&&i.push(t[r][e][n]);else for(;r<o;r++)t[r]&&i.push(t[r][e]);return i},b=function(t,e,n,i){var r=[],o=0,s=e.length;if(void 0!==i)for(;o<s;o++)t[e[o]]&&t[e[o]][n]&&r.push(t[e[o]][n][i]);else for(;o<s;o++)t[e[o]]&&r.push(t[e[o]][n]);return r},T=function(t,e){var n,i=[];void 0===e?(e=0,n=t):(n=e,e=t);for(var r=e;r<n;r++)i.push(r);return i},S=function(t){for(var e=[],n=0,i=t.length;n<i;n++)t[n]&&e.push(t[n]);return e},A=function(t){if(!t||"string"!=typeof t)return t;if(t.length>p)throw new Error("Exceeded max str len");var e;t=t.replace(h,"");do{e=t,t=t.replace(/<script/i,"")}while(t!==e);return e},L=function(t){return Array.isArray(t)&&(t=t.join(",")),"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t},C=function(t,e){if("string"!=typeof t)return t;var n=t.normalize?t.normalize("NFD"):t;return n.length!==t.length?(!0===e?t+" ":"")+n.replace(/[\u0300-\u036f]/g,""):n},N=function(t){if(Array.from&&Set)return Array.from(new Set(t));if(function(t){if(t.length<2)return!0;for(var e=t.slice().sort(),n=e[0],i=1,r=e.length;i<r;i++){if(e[i]===n)return!1;n=e[i]}return!0}(t))return t.slice();var e,n,i,r=[],o=t.length,s=0;t:for(n=0;n<o;n++){for(e=t[n],i=0;i<s;i++)if(r[i]===e)continue t;r.push(e),s++}return r},I=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)I(t,e[n]);else t.push(e);return t};function w(t,e){e&&e.split(" ").forEach(function(e){e&&t.classList.add(e)})}function R(t){var e,n,i={};a.each(t,function(r){(e=r.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(e[1]+" ")&&(n=r.replace(e[0],e[2].toLowerCase()),i[n]=r,"o"===e[1]&&R(t[r]))}),t._hungarianMap=i}function P(t,e,n){var i;t._hungarianMap||R(t),a.each(e,function(r){void 0===(i=t._hungarianMap[r])||!n&&void 0!==e[i]||("o"===i.charAt(0)?(e[i]||(e[i]={}),a.extend(!0,e[i],e[r]),P(t[i],e[i],n)):e[i]=e[r])})}l.util={diacritics:function(t,e){if("function"!==typeof t)return C(t,e);C=t},debounce:function(t,e){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(i,r)},e||250)}},throttle:function(t,e){var n,i,r=void 0!==e?e:200;return function(){var e=this,o=+new Date,s=arguments;n&&o<n+r?(clearTimeout(i),i=setTimeout(function(){n=void 0,t.apply(e,s)},r)):(n=o,t.apply(e,s))}},escapeRegex:function(t){return t.replace(f,"\\$1")},set:function(t){if(a.isPlainObject(t))return l.util.set(t._);if(null===t)return function(){};if("function"==typeof t)return function(e,n,i){t(e,"set",n,i)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e,n){e[t]=n};var e=function(t,n,i){for(var r,o,s,a,l,u=et(i),c=u[u.length-1],h=0,p=u.length-1;h<p;h++){if("__proto__"===u[h]||"constructor"===u[h])throw new Error("Cannot set prototype values");if(o=u[h].match(J),s=u[h].match(tt),o){if(u[h]=u[h].replace(J,""),t[u[h]]=[],(r=u.slice()).splice(0,h+1),l=r.join("."),Array.isArray(n))for(var d=0,f=n.length;d<f;d++)e(a={},n[d],l),t[u[h]].push(a);else t[u[h]]=n;return}s&&(u[h]=u[h].replace(tt,""),t=t[u[h]](n)),null!==t[u[h]]&&void 0!==t[u[h]]||(t[u[h]]={}),t=t[u[h]]}c.match(tt)?t=t[c.replace(tt,"")](n):t[c.replace(J,"")]=n};return function(n,i){return e(n,i,t)}},get:function(t){if(a.isPlainObject(t)){var e={};return a.each(t,function(t,n){n&&(e[t]=l.util.get(n))}),function(t,n,i,r){var o=e[n]||e._;return void 0!==o?o(t,n,i,r):t}}if(null===t)return function(t){return t};if("function"==typeof t)return function(e,n,i,r){return t(e,n,i,r)};if("string"!=typeof t||-1===t.indexOf(".")&&-1===t.indexOf("[")&&-1===t.indexOf("("))return function(e){return e[t]};var n=function(t,e,i){var r,o,s,a;if(""!==i)for(var l=et(i),u=0,c=l.length;u<c;u++){if(r=l[u].match(J),o=l[u].match(tt),r){if(l[u]=l[u].replace(J,""),""!==l[u]&&(t=t[l[u]]),s=[],l.splice(0,u+1),a=l.join("."),Array.isArray(t))for(var h=0,p=t.length;h<p;h++)s.push(n(t[h],e,a));var d=r[0].substring(1,r[0].length-1);t=""===d?s:s.join(d);break}if(o)l[u]=l[u].replace(tt,""),t=t[l[u]]();else{if(null===t||null===t[l[u]])return null;if(void 0===t||void 0===t[l[u]])return;t=t[l[u]]}}return t};return function(e,i){return n(e,i,t)}},stripHtml:function(t){var e=typeof t;if("function"!==e)return"string"===e?A(t):t;A=t},escapeHtml:function(t){var e=typeof t;if("function"!==e)return"string"===e||Array.isArray(t)?L(t):t;L=t},unique:N};var M=function(t,e,n){void 0!==t[e]&&(t[n]=t[e])};function O(t){M(t,"ordering","bSort"),M(t,"orderMulti","bSortMulti"),M(t,"orderClasses","bSortClasses"),M(t,"orderCellsTop","bSortCellsTop"),M(t,"order","aaSorting"),M(t,"orderFixed","aaSortingFixed"),M(t,"paging","bPaginate"),M(t,"pagingType","sPaginationType"),M(t,"pageLength","iDisplayLength"),M(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),"object"==typeof t.bSort?(t.orderIndicators=void 0===t.bSort.indicators||t.bSort.indicators,t.orderHandler=void 0===t.bSort.handler||t.bSort.handler,t.bSort=!0):!1===t.bSort?(t.orderIndicators=!1,t.orderHandler=!1):!0===t.bSort&&(t.orderIndicators=!0,t.orderHandler=!0),"boolean"==typeof t.bSortCellsTop&&(t.titleRow=t.bSortCellsTop);var e=t.aoSearchCols;if(e)for(var n=0,i=e.length;n<i;n++)e[n]&&P(l.models.oSearch,e[n]);t.serverSide&&!t.searchDelay&&(t.searchDelay=400)}function k(t){M(t,"orderable","bSortable"),M(t,"orderData","aDataSort"),M(t,"orderSequence","asSorting"),M(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"!=typeof e||Array.isArray(e)||(t.aDataSort=[e])}function D(t){var e=l.defaults.column,n=t.aoColumns.length,i=a.extend({},l.models.oColumn,e,{aDataSort:e.aDataSort?e.aDataSort:[n],mData:e.mData?e.mData:n,idx:n,searchFixed:{},colEl:a("<col>").attr("data-dt-column",n)});t.aoColumns.push(i);var r=t.aoPreSearchCols;r[n]=a.extend({},l.models.oSearch,r[n])}function G(t,e,n){var i=t.aoColumns[e];if(null!=n){k(n),P(l.defaults.column,n,!0),void 0===n.mDataProp||n.mData||(n.mData=n.mDataProp),n.sType&&(i._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className);var r=i.sClass;a.extend(i,n),Jt(i,n,"sWidth","sWidthOrig"),r!==i.sClass&&(i.sClass=r+" "+i.sClass),void 0!==n.iDataSort&&(i.aDataSort=[n.iDataSort]),Jt(i,n,"aDataSort")}var o=i.mData,s=nt(o);if(i.mRender&&Array.isArray(i.mRender)){var u=i.mRender.slice(),c=u.shift();i.mRender=l.render[c].apply(window,u)}i._render=i.mRender?nt(i.mRender):null;var h=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};i._bAttrSrc=a.isPlainObject(o)&&(h(o.sort)||h(o.type)||h(o.filter)),i._setter=null,i.fnGetData=function(t,e,n){var r=s(t,e,void 0,n);return i._render&&e?i._render(r,e,t,n):r},i.fnSetData=function(t,e,n){return it(o)(t,e,n)},"number"==typeof o||i._isArrayHost||(t._rowReadObject=!0),t.oFeatures.bSort||(i.bSortable=!1)}function B(t){!function(t){if(!t.oFeatures.bAutoWidth)return;var e,n,r,o=t.nTable,s=t.aoColumns,u=t.oScroll,c=u.sY,h=u.sX,p=u.sXInner,d=H(t,"bVisible"),f=o.getAttribute("width"),g=o.parentNode,m=o.style.width,v=Bt(t);if(v===t.containerWidth)return!1;t.containerWidth=v,m||f||(o.style.width="100%",m="100%");m&&-1!==m.indexOf("%")&&(f=m);ie(t,null,"column-calc",{visible:d},!1);var y=a(o.cloneNode()).css("visibility","hidden").css("margin",0).removeAttr("id");y.append("<tbody/>"),y.append(a(t.nTHead).clone()).append(a(t.nTFoot).clone()),y.find("tfoot th, tfoot td").css("width",""),y.find("thead th, thead td").each(function(){var e=Z(t,this,!0,!1);e?(this.style.width=e,h&&(this.style.minWidth=e,a(this).append(a("<div/>").css({width:e,margin:0,padding:0,border:0,height:1})))):this.style.width=""});var E=[];for(e=0;e<d.length;e++)E.push(jt(t,d[e]));if(E.length)for(e=0;e<E[0].length;e++){var _=a("<tr/>").appendTo(y.find("tbody"));for(n=0;n<d.length;n++){r=s[d[n]];var x=E[n][e]||"",b=i.type.className[r.sType],T=x+(r.sContentPadding||(h?"-":"")),S=-1===x.indexOf("<")?document.createTextNode(T):T;a("<td/>").addClass(b).addClass(r.sClass).append(S).appendTo(_)}}a("[name]",y).removeAttr("name");var A=a("<div/>").css(h||c?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(y).appendTo(g);h&&p?y.width(p):h?(y.css("width","auto"),y.removeAttr("width"),y.outerWidth()<g.clientWidth&&f&&y.outerWidth(g.clientWidth)):c?y.outerWidth(g.clientWidth):f&&y.outerWidth(f);var L=0,C=y.find("tbody tr").eq(0).children();for(e=0;e<d.length;e++){var N=C[e].getBoundingClientRect().width;L+=N,s[d[e]].sWidth=Ft(N)}o.style.width=Ft(L),A.remove(),f&&(o.style.width=Ft(f));if((f||h)&&!t._reszEvt){var I=l.util.throttle(function(){var e=Bt(t);t.bDestroying||0===e||B(t)});if(window.ResizeObserver){var w=a(t.nTableWrapper).is(":visible"),R=a("<div>").css({width:"100%",height:0}).addClass("dt-autosize").appendTo(t.nTableWrapper);t.resizeObserver=new ResizeObserver(function(t){w?w=!1:I()}),t.resizeObserver.observe(R[0])}else a(window).on("resize.DT-"+t.sInstance,I);t._reszEvt=!0}}(t),function(t){for(var e=t.aoColumns,n=0;n<e.length;n++){var i=Z(t,[n],!1,!1);e[n].colEl.css("width",i),t.oScroll.sX&&e[n].colEl.css("min-width",i)}}(t);var e=t.oScroll;""===e.sY&&""===e.sX||Gt(t),ie(t,null,"column-sizing",[t])}function j(t,e){var n=H(t,"bVisible");return"number"==typeof n[e]?n[e]:null}function F(t,e){var n=H(t,"bVisible").indexOf(e);return-1!==n?n:null}function U(t){var e=t.aoHeader,n=t.aoColumns,i=0;if(e.length)for(var r=0,o=e[0].length;r<o;r++)n[r].bVisible&&"none"!==a(e[0][r].cell).css("display")&&i++;return i}function H(t,e){var n=[];return t.aoColumns.map(function(t,i){t[e]&&n.push(i)}),n}function q(t,e){return!0===e?t._name:e}function z(t){var e,n,r,o,s,a,u,c,h,p=t.aoColumns,d=t.aoData,f=l.ext.type.detect;for(e=0,n=p.length;e<n;e++){if(h=[],!(u=p[e]).sType&&u._sManualType)u.sType=u._sManualType;else if(!u.sType){if(!t.typeDetect)return;for(r=0,o=f.length;r<o;r++){var g=f[r],v=g.oneOf,y=g.allOf||g,E=g.init,_=!1;if(c=null,E&&(c=q(g,E(t,u,e)))){u.sType=c;break}for(s=0,a=d.length;s<a;s++)if(d[s]){if(void 0===h[s]&&(h[s]=$(t,s,e,"type")),v&&!_&&(_=q(g,v(h[s],t))),!(c=q(g,y(h[s],t)))&&r!==f.length-3)break;if("html"===c&&!m(h[s]))break}if(v&&_&&c||!v&&c){u.sType=c;break}}u.sType||(u.sType="string")}var x=i.type.className[u.sType];x&&(W(t.aoHeader,e,x),W(t.aoFooter,e,x));var b=i.type.render[u.sType];b&&!u._render&&(u._render=l.util.get(b),V(t,e))}}function V(t,e){for(var n=t.aoData,i=0;i<n.length;i++)if(n[i].nTr){var r=$(t,i,e,"display");n[i].displayData[e]=r,K(n[i].anCells[e],r)}}function W(t,e,n){t.forEach(function(t){t[e]&&t[e].unique&&w(t[e].cell,n)})}function Z(t,e,n,i){Array.isArray(e)||(e=Q(e));for(var r,o=0,s=t.aoColumns,a=0,l=e.length;a<l;a++){var u=s[e[a]],c=n?u.sWidthOrig:u.sWidth;if(i||!1!==u.bVisible){if(null==c)return null;if("number"==typeof c)r="px",o+=c;else{var h=c.match(/([\d\.]+)([^\d]*)/);h&&(o+=1*h[1],r=3===h.length?h[2]:"px")}}}return o+r}function Q(t){var e=a(t).closest("[data-dt-column]").attr("data-dt-column");return e?e.split(",").map(function(t){return 1*t}):[]}function X(t,e,n,i){var r=t.aoData.length,o=a.extend(!0,{},l.models.oRow,{src:n?"dom":"data",idx:r});o._aData=e,t.aoData.push(o);for(var s=t.aoColumns,u=0,c=s.length;u<c;u++)s[u].sType=null;t.aiDisplayMaster.push(r);var h=t.rowIdFn(e);return void 0!==h&&(t.aIds[h]=o),!n&&t.oFeatures.bDeferRender||ut(t,r,n,i),r}function Y(t,e){var n;return e instanceof a||(e=a(e)),e.map(function(e,i){return n=at(t,i),X(t,n.data,i,n.cells)})}function $(t,e,n,i){"search"===i?i="filter":"order"===i&&(i="sort");var r=t.aoData[e];if(r){var o=t.iDraw,s=t.aoColumns[n],a=r._aData,u=s.sDefaultContent,c=s.fnGetData(a,i,{settings:t,row:e,col:n});if("display"!==i&&c&&"object"==typeof c&&c.nodeName&&(c=c.innerHTML),void 0===c)return t.iDrawError!=o&&null===u&&(Kt(t,0,"Requested unknown parameter "+("function"==typeof s.mData?"{function}":"'"+s.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=o),u;if(c!==a&&null!==c||null===u||void 0===i){if("function"==typeof c)return c.call(a)}else c=u;if(null===c&&"display"===i)return"";if("filter"===i){var h=l.ext.type.search;h[s.sType]&&(c=h[s.sType](c))}return c}}function K(t,e){e&&"object"==typeof e&&e.nodeName?a(t).empty().append(e):t.innerHTML=e}var J=/\[.*?\]$/,tt=/\(\)$/;function et(t){return(t.match(/(\\.|[^.])+/g)||[""]).map(function(t){return t.replace(/\\\./g,".")})}var nt=l.util.get,it=l.util.set;function rt(t){return x(t.aoData,"_aData")}function ot(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function st(t,e,n,i){var r,o,s=t.aoData[e];if(s._aSortData=null,s._aFilterData=null,s.displayData=null,"dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var a=s.anCells,l=lt(t,e);if(a)if(void 0!==i)K(a[i],l[i]);else for(r=0,o=a.length;r<o;r++)K(a[r],l[r])}else s._aData=at(t,s,i,void 0===i?void 0:s._aData).data;var u=t.aoColumns;if(void 0!==i)u[i].sType=null,u[i].wideStrings=null;else{for(r=0,o=u.length;r<o;r++)u[r].sType=null,u[r].wideStrings=null;ct(t,s)}}function at(t,e,n,i){var r,o,s,a=[],l=e.firstChild,u=0,c=t.aoColumns,h=t._rowReadObject;i=void 0!==i?i:h?{}:[];var p=function(t,e){if("string"==typeof t){var n=t.indexOf("@");if(-1!==n){var r=t.substring(n+1);it(t)(i,e.getAttribute(r))}}},d=function(t){void 0!==n&&n!==u||(o=c[u],s=t.innerHTML.trim(),o&&o._bAttrSrc?(it(o.mData._)(i,s),p(o.mData.sort,t),p(o.mData.type,t),p(o.mData.filter,t)):h?(o._setter||(o._setter=it(o.mData)),o._setter(i,s)):i[u]=s);u++};if(l)for(;l;)"TD"!=(r=l.nodeName.toUpperCase())&&"TH"!=r||(d(l),a.push(l)),l=l.nextSibling;else for(var f=0,g=(a=e.anCells).length;f<g;f++)d(a[f]);var m=e.firstChild?e:e.nTr;if(m){var v=m.getAttribute("id");v&&it(t.rowId)(i,v)}return{data:i,cells:a}}function lt(t,e){var n=t.aoData[e],i=t.aoColumns;if(!n.displayData){n.displayData=[];for(var r=0,o=i.length;r<o;r++)n.displayData.push($(t,e,r,"display"))}return n.displayData}function ut(t,e,n,i){var r,o,s,l,u,c,h=t.aoData[e],p=h._aData,d=[],f=t.oClasses.tbody.row;if(null===h.nTr){for(r=n||document.createElement("tr"),h.nTr=r,h.anCells=d,w(r,f),r._DT_RowIndex=e,ct(t,h),l=0,u=t.aoColumns.length;l<u;l++){s=t.aoColumns[l],(o=(c=!n||!i[l])?document.createElement(s.sCellType):i[l])||Kt(t,0,"Incorrect column count",18),o._DT_CellIndex={row:e,column:l},d.push(o);var g=lt(t,e);!c&&(!s.mRender&&s.mData===l||a.isPlainObject(s.mData)&&s.mData._===l+".display")||K(o,g[l]),w(o,s.sClass),s.bVisible&&c?r.appendChild(o):s.bVisible||c||o.parentNode.removeChild(o),s.fnCreatedCell&&s.fnCreatedCell.call(t.oInstance,o,$(t,e,l),p,e,l)}ie(t,"aoRowCreatedCallback","row-created",[r,p,e,d])}else w(h.nTr,f)}function ct(t,e){var n=e.nTr,i=e._aData;if(n){var r=t.rowIdFn(i);if(r&&(n.id=r),i.DT_RowClass){var o=i.DT_RowClass.split(" ");e.__rowc=e.__rowc?N(e.__rowc.concat(o)):o,a(n).removeClass(e.__rowc.join(" ")).addClass(i.DT_RowClass)}i.DT_RowAttr&&a(n).attr(i.DT_RowAttr),i.DT_RowData&&a(n).data(i.DT_RowData)}}function ht(t,e){var n,i,r,o=t.oClasses,s=t.aoColumns,l="header"===e?t.nTHead:t.nTFoot,u="header"===e?"sTitle":e;if(l){if(("header"===e||x(t.aoColumns,u).join(""))&&((r=a("tr",l)).length||(r=a("<tr/>").appendTo(l)),1===r.length)){var c=0;for(a("td, th",r).each(function(){c+=this.colSpan}),n=c,i=s.length;n<i;n++)a("<th/>").html(s[n][u]||"").appendTo(r)}var h=xt(t,l,!0);"header"===e?(t.aoHeader=h,a("tr",l).addClass(o.thead.row)):(t.aoFooter=h,a("tr",l).addClass(o.tfoot.row)),a(l).children("tr").children("th, td").each(function(){oe(t,e)(t,a(this),o)})}}function pt(t,e,n){var i,r,o,s,l,u=[],c=[],h=t.aoColumns,p=h.length;if(e){for(n||(n=T(p).filter(function(t){return h[t].bVisible})),i=0;i<e.length;i++)u[i]=e[i].slice().filter(function(t,e){return n.includes(e)}),c.push([]);for(i=0;i<u.length;i++)for(r=0;r<u[i].length;r++)if(s=1,l=1,void 0===c[i][r]){for(o=u[i][r].cell;void 0!==u[i+s]&&u[i][r].cell==u[i+s][r].cell;)c[i+s][r]=null,s++;for(;void 0!==u[i][r+l]&&u[i][r].cell==u[i][r+l].cell;){for(var d=0;d<s;d++)c[i+d][r+l]=null;l++}var f=a("span.dt-column-title",o);c[i][r]={cell:o,colspan:l,rowspan:s,title:f.length?f.html():a(o).html()}}return c}}function dt(t,e){for(var n,i,r=pt(t,e),o=0;o<e.length;o++){if(n=e[o].row)for(;i=n.firstChild;)n.removeChild(i);for(var s=0;s<r[o].length;s++){var l=r[o][s];l&&a(l.cell).appendTo(n).attr("rowspan",l.rowspan).attr("colspan",l.colspan)}}}function ft(t,e){if(function(t){var e="ssp"==se(t),n=t.iInitDisplayStart;void 0!==n&&-1!==n&&(t._iDisplayStart=e?n:n>=t.fnRecordsDisplay()?0:n,t.iInitDisplayStart=-1)}(t),-1===ie(t,"aoPreDrawCallback","preDraw",[t]).indexOf(!1)){var n,r=[],o=0,s="ssp"==se(t),l=t.aiDisplay,u=t._iDisplayStart,c=t.fnDisplayEnd(),h=t.aoColumns,p=a(t.nTBody);if(t.bDrawing=!0,t.deferLoading)t.deferLoading=!1,t.iDraw++,Ot(t,!1);else if(s){if(!t.bDestroying&&!e)return 0===t.iDraw&&p.empty().append(mt(t)),(n=t).iDraw++,Ot(n,!0),void bt(n,function(t){var e=t.aoColumns,n=t.oFeatures,i=t.oPreviousSearch,r=t.aoPreSearchCols,o=function(t,n){return"function"==typeof e[t][n]?"function":e[t][n]};return{draw:t.iDraw,columns:e.map(function(t,e){return{data:o(e,"mData"),name:t.sName,searchable:t.bSearchable,orderable:t.bSortable,search:{value:r[e].search,regex:r[e].regex,fixed:Object.keys(t.searchFixed).map(function(e){return{name:e,term:"function"!=typeof t.searchFixed[e]?t.searchFixed[e].toString():"function"}})}}}),order:Vt(t).map(function(t){return{column:t.col,dir:t.dir,name:o(t.col,"sName")}}),start:t._iDisplayStart,length:n.bPaginate?t._iDisplayLength:-1,search:{value:i.search,regex:i.regex,fixed:Object.keys(t.searchFixed).map(function(e){return{name:e,term:"function"!=typeof t.searchFixed[e]?t.searchFixed[e].toString():"function"}})}}}(n),function(t){!function(t,e){var n=Tt(t,e),i=St(t,"draw",e),r=St(t,"recordsTotal",e),o=St(t,"recordsFiltered",e);if(void 0!==i){if(1*i<t.iDraw)return;t.iDraw=1*i}n||(n=[]),ot(t),t._iRecordsTotal=parseInt(r,10),t._iRecordsDisplay=parseInt(o,10);for(var s=0,a=n.length;s<a;s++)X(t,n[s]);t.aiDisplay=t.aiDisplayMaster.slice(),z(t),ft(t,!0),Rt(t),Ot(t,!1)}(n,t)})}else t.iDraw++;if(0!==l.length)for(var d=s?0:u,f=s?t.aoData.length:c,g=d;g<f;g++){var m=l[g],v=t.aoData[m];if(null!==v){null===v.nTr&&ut(t,m);for(var y=v.nTr,E=0;E<h.length;E++){var _=h[E],x=v.anCells[E];w(x,i.type.className[_.sType]),w(x,t.oClasses.tbody.cell)}ie(t,"aoRowCallback",null,[y,v._aData,o,g,m]),r.push(y),o++}}else r[0]=mt(t);ie(t,"aoHeaderCallback","header",[a(t.nTHead).children("tr")[0],rt(t),u,c,l]),ie(t,"aoFooterCallback","footer",[a(t.nTFoot).children("tr")[0],rt(t),u,c,l]),p[0].replaceChildren?p[0].replaceChildren.apply(p[0],r):(p.children().detach(),p.append(a(r))),a(t.nTableWrapper).toggleClass("dt-empty-footer",0===a("tr",t.nTFoot).length),ie(t,"aoDrawCallback","draw",[t],!0),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}else Ot(t,!1)}function gt(t,e,n){var i=t.oFeatures,r=i.bSort,o=i.bFilter;void 0!==n&&!0!==n||(z(t),r&&Wt(t),o?At(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice()),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,ft(t),t.api.one("draw",function(){t._drawHold=!1})}function mt(t){var e=t.oLanguage,n=e.sZeroRecords,i=se(t);return"ssp"!==i&&"ajax"!==i||t.json?e.sEmptyTable&&0===t.fnRecordsTotal()&&(n=e.sEmptyTable):n=e.sLoadingRecords,a("<tr/>").append(a("<td />",{colSpan:U(t),class:t.oClasses.empty.row}).html(n))[0]}function vt(t,e,n){if(Array.isArray(n))for(var i=0;i<n.length;i++)vt(t,e,n[i]);else{var r=t[e];a.isPlainObject(n)?n.features?(n.rowId&&(t.id=n.rowId),n.rowClass&&(t.className=n.rowClass),r.id=n.id,r.className=n.className,vt(t,e,n.features)):Object.keys(n).map(function(t){r.contents.push({feature:t,opts:n[t]})}):r.contents.push(n)}}function yt(t,e,n){var i=[];a.each(e,function(t,e){if(null!==e){var r=t.match(/^([a-z]+)([0-9]*)([A-Za-z]*)$/),o=r[2]?1*r[2]:0,s=r[3]?r[3].toLowerCase():"full";if(r[1]===n){var a=function(t,e,n){for(var i,r=0;r<t.length;r++)if((i=t[r]).rowNum===e&&("full"===n&&i.full||("start"===n||"end"===n)&&(i.start||i.end)))return i[n]||(i[n]={contents:[]}),i;return(i={rowNum:e})[n]={contents:[]},t.push(i),i}(i,o,s);vt(a,s,e)}}}),i.sort(function(t,e){var i=t.rowNum,r=e.rowNum;if(i===r){var o=t.full&&!e.full?-1:1;return"bottom"===n?-1*o:o}return r-i}),"bottom"===n&&i.reverse();for(var r=0;r<i.length;r++)delete i[r].rowNum,Et(t,i[r]);return i}function Et(t,e){var n=function(e,n){return i.features[e]||Kt(t,0,"Unknown feature: "+e),i.features[e].apply(this,[t,n])},r=function(i){if(e[i])for(var r=e[i].contents,o=0,s=r.length;o<s;o++)if(r[o])if("string"==typeof r[o])r[o]=n(r[o],null);else if(a.isPlainObject(r[o]))r[o]=n(r[o].feature,r[o].opts);else if("function"==typeof r[o].node)r[o]=r[o].node(t);else if("function"==typeof r[o]){var l=r[o](t);r[o]="function"==typeof l.node?l.node():l}};r("start"),r("end"),r("full")}function _t(t){var e=t.oClasses,n=a(t.nTable),i=a("<div/>").attr({id:t.sTableId+"_wrapper",class:e.container}).insertBefore(n);if(t.nTableWrapper=i[0],t.sDom)!function(t,e,n){for(var i,r,o,s,u,c=e.match(/(".*?")|('.*?')|./g),h=0;h<c.length;h++){if(i=null,"<"==(r=c[h])){if(o=a("<div/>"),"'"==(s=c[h+1])[0]||'"'==s[0]){var p,d="";if(-1!=(u=s.replace(/['"]/g,"")).indexOf(".")){var f=u.split(".");d=f[0],p=f[1]}else"#"==u[0]?d=u:p=u;o.attr("id",d.substring(1)).addClass(p),h++}n.append(o),n=o}else">"==r?n=n.parent():"t"==r?i=Dt(t):l.ext.feature.forEach(function(e){r==e.cFeature&&(i=e.fnInit(t))});i&&n.append(i)}}(t,t.sDom,i);else{var r=yt(t,t.layout,"top"),o=yt(t,t.layout,"bottom"),s=oe(t,"layout");r.forEach(function(e){s(t,i,e)}),s(t,i,{full:{table:!0,contents:[Dt(t)]}}),o.forEach(function(e){s(t,i,e)})}!function(t){var e=t.nTable,n=""!==t.oScroll.sX||""!==t.oScroll.sY;if(t.oFeatures.bProcessing){var i=a("<div/>",{id:t.sTableId+"_processing",class:t.oClasses.processing.container,role:"status"}).html(t.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>");n?i.prependTo(a("div.dt-scroll",t.nTableWrapper)):i.insertBefore(e),a(e).on("processing.dt.DT",function(t,e,n){i.css("display",n?"block":"none")})}}(t)}function xt(t,e,n){var i,r,o,s,l,u,c,h,p,d,f=t.aoColumns,g=a(e).children("tr"),m=t.titleRow,v=e&&"thead"===e.nodeName.toLowerCase(),y=[],E=function(t,e,n){for(var i=t[e];i[n];)n++;return n};for(o=0,u=g.length;o<u;o++)y.push([]);for(o=0,u=g.length;o<u;o++)for(r=(i=g[o]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase()){var _=[],x=a(r);if(h=(h=1*r.getAttribute("colspan"))&&0!==h&&1!==h?h:1,p=(p=1*r.getAttribute("rowspan"))&&0!==p&&1!==p?p:1,c=E(y,o,0),d=1===h,n){if(d){G(t,c,ce(x.data()));var b=f[c],T=r.getAttribute("width")||null,S=r.style.width.match(/width:\s*(\d+[pxem%]+)/);S&&(T=S[1]),b.sWidthOrig=b.sWidth||T,v?(null===b.sTitle||b.autoTitle||(!0===m&&0===o||!1===m&&o===g.length-1||m===o||null===m)&&(r.innerHTML=b.sTitle),!b.sTitle&&d&&(b.sTitle=A(r.innerHTML),b.autoTitle=!0)):b.footer&&(r.innerHTML=b.footer),b.ariaTitle||(b.ariaTitle=x.attr("aria-label")||b.sTitle),b.className&&x.addClass(b.className)}0===a("span.dt-column-title",r).length&&a("<span>").addClass("dt-column-title").append(r.childNodes).appendTo(r),t.orderIndicators&&v&&0!==x.filter(":not([data-dt-order=disable])").length&&0!==x.parent(":not([data-dt-order=disable])").length&&0===a("span.dt-column-order",r).length&&a("<span>").addClass("dt-column-order").appendTo(r);var L=v?"header":"footer";0===a("span.dt-column-"+L,r).length&&a("<div>").addClass("dt-column-"+L).append(r.childNodes).appendTo(r)}for(l=0;l<h;l++){for(s=0;s<p;s++)y[o+s][c+l]={cell:r,unique:d},y[o+s].row=i;_.push(c+l)}r.setAttribute("data-dt-column",N(_).join(","))}r=r.nextSibling}return y}function bt(t,e,n){var i,r=t.ajax,o=t.oInstance,s=function(e){var i=t.jqXHR?t.jqXHR.status:null;(null===e||"number"==typeof i&&204==i)&&Tt(t,e={},[]);var r=e.error||e.sError;if(r&&Kt(t,0,r),e.d&&"string"==typeof e.d)try{e=JSON.parse(e.d)}catch(t){}t.json=e,ie(t,null,"xhr",[t,e,t.jqXHR],!0),n(e)};if(a.isPlainObject(r)&&r.data){var l="function"==typeof(i=r.data)?i(e,t):i;e="function"==typeof i&&l?l:a.extend(!0,e,l),delete r.data}var u={url:"string"==typeof r?r:"",data:e,success:s,dataType:"json",cache:!1,type:t.sServerMethod,error:function(e,n){-1===ie(t,null,"xhr",[t,null,t.jqXHR],!0).indexOf(!0)&&("parsererror"==n?Kt(t,0,"Invalid JSON response",1):4===e.readyState&&Kt(t,0,"Ajax error",7)),Ot(t,!1)}};if(a.isPlainObject(r)&&a.extend(u,r),t.oAjaxData=e,ie(t,null,"preXhr",[t,e,u],!0),"json"===u.submitAs&&"object"==typeof e&&(u.data=JSON.stringify(e)),"function"==typeof r)t.jqXHR=r.call(o,e,s,t);else if(""===r.url){var c={};Tt(t,c,[]),s(c)}else t.jqXHR=a.ajax(u);i&&(r.data=i)}function Tt(t,e,n){var i="data";if(a.isPlainObject(t.ajax)&&void 0!==t.ajax.dataSrc){var r=t.ajax.dataSrc;"string"==typeof r||"function"==typeof r?i=r:void 0!==r.data&&(i=r.data)}if(!n)return"data"===i?e.aaData||e[i]:""!==i?nt(i)(e):e;it(i)(e,n)}function St(t,e,n){var i=a.isPlainObject(t.ajax)?t.ajax.dataSrc:null;if(i&&i[e])return nt(i[e])(n);var r="";return"draw"===e?r="sEcho":"recordsTotal"===e?r="iTotalRecords":"recordsFiltered"===e&&(r="iTotalDisplayRecords"),void 0!==n[r]?n[r]:n[e]}function At(t,e){var n=t.aoPreSearchCols;if("ssp"!=se(t)){!function(t){for(var e,n,i,r,o,s=t.aoColumns,a=t.aoData,l=!1,u=0;u<a.length;u++)if(a[u]&&!(o=a[u])._aFilterData){for(i=[],e=0,n=s.length;e<n;e++)s[e].bSearchable?(null===(r=$(t,u,e,"filter"))&&(r=""),"string"!=typeof r&&r.toString&&(r=r.toString())):r="",r.indexOf&&-1!==r.indexOf("&")&&(Nt.innerHTML=r,r=It?Nt.textContent:Nt.innerText),r.replace&&(r=r.replace(/[\r\n\u2028]/g,"")),i.push(r);o._aFilterData=i,o._sFilterRow=i.join(" "),l=!0}}(t),t.aiDisplay=t.aiDisplayMaster.slice(),Lt(t.aiDisplay,t,e.search,e),a.each(t.searchFixed,function(e,n){Lt(t.aiDisplay,t,n,{})});for(var i=0;i<n.length;i++){var r=n[i];Lt(t.aiDisplay,t,r.search,r,i),a.each(t.aoColumns[i].searchFixed,function(e,n){Lt(t.aiDisplay,t,n,{},i)})}!function(t){for(var e,n,i=l.ext.search,r=t.aiDisplay,o=0,s=i.length;o<s;o++){for(var a=[],u=0,c=r.length;u<c;u++)n=r[u],e=t.aoData[n],i[o](t,e._aFilterData,n,e._aData,u)&&a.push(n);r.length=0,le(r,a)}}(t)}t.bFiltered=!0,ie(t,null,"search",[t])}function Lt(t,e,n,i,r){if(""!==n){var o=0,s=[],l="function"==typeof n?n:null,u=n instanceof RegExp?n:l?null:function(t,e){var n=[],i=a.extend({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},e);"string"!=typeof t&&(t=t.toString());if(t=C(t),i.exact)return new RegExp("^"+Ct(t)+"$",i.caseInsensitive?"i":"");if(t=i.regex?t:Ct(t),i.smart){var r=(t.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""]).map(function(t){var e,i=!1;return"!"===t.charAt(0)&&(i=!0,t=t.substring(1)),'"'===t.charAt(0)?(e=t.match(/^"(.*)"$/),t=e?e[1]:t):"“"===t.charAt(0)&&(e=t.match(/^\u201C(.*)\u201D$/),t=e?e[1]:t),i&&(t.length>1&&n.push("(?!"+t+")"),t=""),t.replace(/"/g,"")}),o=n.length?n.join(""):"",s=i.boundary?"\\b":"";t="^(?=.*?"+s+r.join(")(?=.*?"+s)+")("+o+".)*$"}return new RegExp(t,i.caseInsensitive?"i":"")}(n,i);for(o=0;o<t.length;o++){var c=e.aoData[t[o]],h=void 0===r?c._sFilterRow:c._aFilterData[r];(l&&l(h,c._aData,t[o],r)||u&&u.test(h))&&s.push(t[o])}for(t.length=s.length,o=0;o<s.length;o++)t[o]=s[o]}}var Ct=l.util.escapeRegex,Nt=a("<div>")[0],It=void 0!==Nt.textContent;function wt(t){var e,n=t.oInit,i=t.deferLoading,r=se(t);t.bInitialised?(ht(t,"header"),ht(t,"footer"),function(t,e,n){if(!t.oFeatures.bStateSave)return void n();var i=function(e){$t(t,e,n)},r=t.fnStateLoadCallback.call(t.oInstance,t,i);void 0!==r&&$t(t,r,n)}(t,0,function(){dt(t,t.aoHeader),dt(t,t.aoFooter);var o=t.iInitDisplayStart;if(n.aaData)for(e=0;e<n.aaData.length;e++)X(t,n.aaData[e]);else(i||"dom"==r)&&Y(t,a(t.nTBody).children("tr"));t.aiDisplay=t.aiDisplayMaster.slice(),_t(t),function(t){var e=t.nTHead,n=e.querySelectorAll("tr"),i=t.titleRow,r=':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])';!0===i?e=n[0]:!1===i?e=n[n.length-1]:null!==i&&(e=n[i]);t.orderHandler&&Ht(t,e,e===t.nTHead?"tr"+r+" th"+r+", tr"+r+" td"+r:"th"+r+", td"+r);var o=[];zt(t,o,t.aaSorting),t.aaSorting=o}(t),Ut(t),Ot(t,!0),ie(t,null,"preInit",[t],!0),gt(t),("ssp"!=r||i)&&("ajax"==r?bt(t,{},function(n){var i=Tt(t,n);for(e=0;e<i.length;e++)X(t,i[e]);t.iInitDisplayStart=o,gt(t),Ot(t,!1),Rt(t)}):(Rt(t),Ot(t,!1)))})):setTimeout(function(){wt(t)},200)}function Rt(t){if(!t._bInitComplete){var e=[t,t.json];t._bInitComplete=!0,B(t),ie(t,null,"plugin-init",e,!0),ie(t,"aoInitComplete","init",e,!0)}}function Pt(t,e){var n=parseInt(e,10);t._iDisplayLength=n,re(t),ie(t,null,"length",[t,n])}function Mt(t,e,n){var i=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay();if(0===o||-1===r)i=0;else if("number"==typeof e)(i=e*r)>o&&(i=0);else if("first"==e)i=0;else if("previous"==e)(i=r>=0?i-r:0)<0&&(i=0);else if("next"==e)i+r<o&&(i+=r);else if("last"==e)i=Math.floor((o-1)/r)*r;else{if("ellipsis"===e)return;Kt(t,0,"Unknown paging action: "+e,5)}var s=t._iDisplayStart!==i;return t._iDisplayStart=i,ie(t,null,s?"page":"page-nc",[t]),s&&n&&ft(t),s}function Ot(t,e){t.bDrawing&&!1===e||ie(t,null,"processing",[t,e])}function kt(t,e,n){e?(Ot(t,!0),setTimeout(function(){n(),Ot(t,!1)},0)):n()}function Dt(t){var e=a(t.nTable),n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var i=n.sX,r=n.sY,o=t.oClasses.scrolling,s=t.captionNode,l=s?s._captionSide:null,u=a(e[0].cloneNode(!1)),c=a(e[0].cloneNode(!1)),h=e.children("tfoot"),p="<div/>",d=function(t){return t?Ft(t):null};h.length||(h=null);var f=a(p,{class:o.container}).append(a(p,{class:o.header.self}).css({overflow:"hidden",position:"relative",border:0,width:i?d(i):"100%"}).append(a(p,{class:o.header.inner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(e.children("thead"))))).append(a(p,{class:o.body}).css({position:"relative",overflow:"auto",width:d(i)}).append(e));h&&f.append(a(p,{class:o.footer.self}).css({overflow:"hidden",border:0,width:i?d(i):"100%"}).append(a(p,{class:o.footer.inner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(e.children("tfoot")))));var g=f.children(),m=g[0],v=g[1],y=h?g[2]:null;return a(v).on("scroll.DT",function(){var t=this.scrollLeft;m.scrollLeft=t,h&&(y.scrollLeft=t)}),a("th, td",m).on("focus",function(){var t=m.scrollLeft;v.scrollLeft=t,h&&(v.scrollLeft=t)}),a(v).css("max-height",r),n.bCollapse||a(v).css("height",r),t.nScrollHead=m,t.nScrollBody=v,t.nScrollFoot=y,t.aoDrawCallback.push(Gt),f[0]}function Gt(t){var e,n,i=t.oScroll,r=i.iBarWidth,o=a(t.nScrollHead).children("div"),s=o.children("table"),l=t.nScrollBody,u=a(l),c=a(t.nScrollFoot).children("div"),h=c.children("table"),p=a(t.nTHead),d=a(t.nTable),f=t.nTFoot&&a("th, td",t.nTFoot).length?a(t.nTFoot):null,g=t.oBrowser,m=l.scrollHeight>l.clientHeight;if(t.scrollBarVis!==m&&void 0!==t.scrollBarVis)return t.scrollBarVis=m,void B(t);if(t.scrollBarVis=m,d.children("thead, tfoot").remove(),(e=p.clone().prependTo(d)).find("th, td").removeAttr("tabindex"),e.find("[id]").removeAttr("id"),f&&(n=f.clone().prependTo(d)).find("[id]").removeAttr("id"),t.aiDisplay.length){var v=null,y="ssp"!==se(t)?t._iDisplayStart:0;for(b=y;b<y+t.aiDisplay.length;b++){var E=t.aiDisplay[b],_=t.aoData[E].nTr;if(_){v=_;break}}if(v)for(var x=a(v).children("th, td").map(function(e){return{idx:j(t,e),width:a(this).outerWidth()}}),b=0;b<x.length;b++){var T=t.aoColumns[x[b].idx].colEl[0];T.style.width.replace("px","")!==x[b].width&&(T.style.width=x[b].width+"px",i.sX&&(T.style.minWidth=x[b].width+"px"))}}s.find("colgroup").remove(),s.append(t.colgroup.clone()),f&&(h.find("colgroup").remove(),h.append(t.colgroup.clone())),a("th, td",e).each(function(){a(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')}),f&&a("th, td",n).each(function(){a(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')});var S=Math.floor(d.height())>l.clientHeight||"scroll"==u.css("overflow-y"),A="padding"+(g.bScrollbarLeft?"Left":"Right"),L=d.outerWidth();s.css("width",Ft(L)),o.css("width",Ft(L)).css(A,S?r+"px":"0px"),f&&(h.css("width",Ft(L)),c.css("width",Ft(L)).css(A,S?r+"px":"0px")),d.children("colgroup").prependTo(d),u.trigger("scroll"),!t.bSorted&&!t.bFiltered||t._drawHold||(l.scrollTop=0)}function Bt(t){return a(t.nTableWrapper).is(":visible")?a(t.nTableWrapper).width():0}function jt(t,e){var n=t.aoColumns[e];if(!n.wideStrings){for(var i=[],r=[],o=0,s=t.aiDisplayMaster.length;o<s;o++){var a=lt(t,t.aiDisplayMaster[o])[e],l=a&&"object"==typeof a&&a.nodeType?a.innerHTML:a+"";l=l.replace(/id=".*?"/g,"").replace(/name=".*?"/g,"");var u=A(l).replace(/ /g," ");r.push({str:u,len:u.length}),i.push(u)}r.sort(function(t,e){return e.len-t.len}).splice(3),n.wideStrings=r.map(function(t){return t.str});let c=i.join(" ").split(" ");c.sort(function(t,e){return e.length-t.length}),c.length&&n.wideStrings.push(c[0]),c.length>1&&n.wideStrings.push(c[1]),c.length>2&&n.wideStrings.push(c[3])}return n.wideStrings}function Ft(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Ut(t){var e=t.aoColumns;for(t.colgroup.empty(),Ve=0;Ve<e.length;Ve++)e[Ve].bVisible&&t.colgroup.append(e[Ve].colEl)}function Ht(t,e,n,i,r){ee(e,n,function(e){var n=!1,o=void 0===i?Q(e.target):"function"==typeof i?i():Array.isArray(i)?i:[i];if(o.length){for(var s=0,a=o.length;s<a;s++){if(!1!==Zt(t,o[s],s,e.shiftKey)&&(n=!0),1===t.aaSorting.length&&""===t.aaSorting[0][1])break}n&&kt(t,!0,function(){Wt(t),qt(t,t.aiDisplay),gt(t,!1,!1),r&&r()})}})}function qt(t,e){if(!(e.length<2)){var n,i=t.aiDisplayMaster,r={},o={};for(n=0;n<i.length;n++)r[i[n]]=n;for(n=0;n<e.length;n++)o[e[n]]=r[e[n]];e.sort(function(t,e){return o[t]-o[e]})}}function zt(t,e,n){var i=function(n){if(a.isPlainObject(n)){if(void 0!==n.idx)e.push([n.idx,n.dir]);else if(n.name){var i=x(t.aoColumns,"sName").indexOf(n.name);-1!==i&&e.push([i,n.dir])}}else e.push(n)};if(a.isPlainObject(n))i(n);else if(n.length&&"number"==typeof n[0])i(n);else if(n.length)for(var r=0;r<n.length;r++)i(n[r])}function Vt(t){var e,n,i,r,o,s,u,c=[],h=l.ext.type.order,p=t.aoColumns,d=t.aaSortingFixed,f=a.isPlainObject(d),g=[];if(!t.oFeatures.bSort)return c;for(Array.isArray(d)&&zt(t,g,d),f&&d.pre&&zt(t,g,d.pre),zt(t,g,t.aaSorting),f&&d.post&&zt(t,g,d.post),e=0;e<g.length;e++)if(p[u=g[e][0]])for(n=0,i=(r=p[u].aDataSort).length;n<i;n++)s=p[o=r[n]].sType||"string",void 0===g[e]._idx&&(g[e]._idx=p[o].asSorting.indexOf(g[e][1])),g[e][1]&&c.push({src:u,col:o,dir:g[e][1],index:g[e]._idx,type:s,formatter:h[s+"-pre"],sorter:h[s+"-"+g[e][1]]});return c}function Wt(t,e,n){var i,r,o,s=[],a=l.ext.type.order,u=t.aoData,c=t.aiDisplayMaster;if(z(t),void 0!==e){var h=t.aoColumns[e];o=[{src:e,col:e,dir:n,index:0,type:h.sType,formatter:a[h.sType+"-pre"],sorter:a[h.sType+"-"+n]}],c=c.slice()}else o=Vt(t);for(i=0,r=o.length;i<r;i++)Xt(t,o[i].col);if("ssp"!=se(t)&&0!==o.length){for(i=0,r=c.length;i<r;i++)s[i]=i;o.length&&"desc"===o[0].dir&&t.orderDescReverse&&s.reverse(),c.sort(function(t,e){var n,i,r,a,l,c=o.length,h=u[t]._aSortData,p=u[e]._aSortData;for(r=0;r<c;r++)if(n=h[(l=o[r]).col],i=p[l.col],l.sorter){if(0!==(a=l.sorter(n,i)))return a}else if(0!==(a=n<i?-1:n>i?1:0))return"asc"===l.dir?a:-a;return(n=s[t])<(i=s[e])?-1:n>i?1:0})}else 0===o.length&&c.sort(function(t,e){return t<e?-1:t>e?1:0});return void 0===e&&(t.bSorted=!0,t.sortDetails=o,ie(t,null,"order",[t,o])),c}function Zt(t,e,n,i){var r,o=t.aoColumns[e],s=t.aaSorting,a=o.asSorting,l=function(t,e){var n=t._idx;return void 0===n&&(n=a.indexOf(t[1])),n+1<a.length?n+1:e?null:0};if(!o.bSortable)return!1;if("number"==typeof s[0]&&(s=t.aaSorting=[s]),(i||n)&&t.oFeatures.bSortMulti){var u=x(s,"0").indexOf(e);-1!==u?(null===(r=l(s[u],!0))&&1===s.length&&(r=0),null===r||""===a[r]?s.splice(u,1):(s[u][1]=a[r],s[u]._idx=r)):i?(s.push([e,a[0],0]),s[s.length-1]._idx=0):(s.push([e,s[0][1],0]),s[s.length-1]._idx=0)}else s.length&&s[0][0]==e?(r=l(s[0]),s.length=1,s[0][1]=a[r],s[0]._idx=r):(s.length=0,s.push([e,a[0]]),s[0]._idx=0)}function Qt(t){var e,n,i,r=t.aLastSort,o=t.oClasses.order.position,s=Vt(t),l=t.oFeatures;if(l.bSort&&l.bSortClasses){for(e=0,n=r.length;e<n;e++)i=r[e].src,a(x(t.aoData,"anCells",i)).removeClass(o+(e<2?e+1:3));for(e=0,n=s.length;e<n;e++)i=s[e].src,a(x(t.aoData,"anCells",i)).addClass(o+(e<2?e+1:3))}t.aLastSort=s}function Xt(t,e){var n,i,r,o=t.aoColumns[e],s=l.ext.order[o.sSortDataType];s&&(n=s.call(t.oInstance,t,e,F(t,e)));for(var a=l.ext.type.order[o.sType+"-pre"],u=t.aoData,c=0;c<u.length;c++)u[c]&&((i=u[c])._aSortData||(i._aSortData=[]),i._aSortData[e]&&!s||(r=s?n[c]:$(t,c,e,"sort"),i._aSortData[e]=a?a(r,t):r))}function Yt(t){if(!t._bLoadingState){var e=[];zt(t,e,t.aaSorting);var n=t.aoColumns,i={time:+new Date,start:t._iDisplayStart,length:t._iDisplayLength,order:e.map(function(t){return n[t[0]]&&n[t[0]].sName?[n[t[0]].sName,t[1]]:t.slice()}),search:a.extend({},t.oPreviousSearch),columns:t.aoColumns.map(function(e,n){return{name:e.sName,visible:e.bVisible,search:a.extend({},t.aoPreSearchCols[n])}})};t.oSavedState=i,ie(t,"aoStateSaveParams","stateSaveParams",[t,i]),t.oFeatures.bStateSave&&!t.bDestroying&&t.fnStateSaveCallback.call(t.oInstance,t,i)}}function $t(t,e,n){var i,r,o=t.aoColumns,s=x(t.aoColumns,"sName");t._bLoadingState=!0;var u=t._bInitComplete?new l.Api(t):null;if(!e||!e.time)return t._bLoadingState=!1,void n();var c=t.iStateDuration;if(c>0&&e.time<+new Date-1e3*c)return t._bLoadingState=!1,void n();if(-1!==ie(t,"aoStateLoadParams","stateLoadParams",[t,e]).indexOf(!1))return t._bLoadingState=!1,void n();if(t.oLoadedState=a.extend(!0,{},e),ie(t,null,"stateLoadInit",[t,e],!0),void 0!==e.length&&(u?u.page.len(e.length):t._iDisplayLength=e.length),void 0!==e.start&&(null===u?(t._iDisplayStart=e.start,t.iInitDisplayStart=e.start):Mt(t,e.start/t._iDisplayLength)),void 0!==e.order&&(t.aaSorting=[],a.each(e.order,function(e,n){var i=[n[0],n[1]];if("string"==typeof n[0]){var r=s.indexOf(n[0]);if(r<0)return;i[0]=r}else if(i[0]>=o.length)return;t.aaSorting.push(i)})),void 0!==e.search&&a.extend(t.oPreviousSearch,e.search),e.columns){var h=e.columns,p=x(e.columns,"name");if(p.join("").length&&p.join("")!==s.join(""))for(h=[],i=0;i<s.length;i++)if(""!=s[i]){var d=p.indexOf(s[i]);d>=0?h.push(e.columns[d]):h.push({})}else h.push({});if(h.length===o.length){for(i=0,r=h.length;i<r;i++){var f=h[i];void 0!==f.visible&&(u?u.column(i).visible(f.visible,!1):o[i].bVisible=f.visible),void 0!==f.search&&a.extend(t.aoPreSearchCols[i],f.search)}u&&u.one("draw",function(){u.columns.adjust()})}}t._bLoadingState=!1,ie(t,"aoStateLoaded","stateLoaded",[t,e]),n()}function Kt(t,e,n,i){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,i&&(n+=". For more information about this error, please see https://datatables.net/tn/"+i),e)window.console&&console.log&&console.log(n);else{var r=l.ext,o=r.sErrMode||r.errMode;if(t&&ie(t,null,"dt-error",[t,i,n],!0),"alert"==o)alert(n);else{if("throw"==o)throw new Error(n);"function"==typeof o&&o(t,i,n)}}}function Jt(t,e,n,i){Array.isArray(n)?a.each(n,function(n,i){Array.isArray(i)?Jt(t,e,i[0],i[1]):Jt(t,e,i)}):(void 0===i&&(i=n),void 0!==e[n]&&(t[i]=e[n]))}function te(t,e,n){var i;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i=e[r],a.isPlainObject(i)?(a.isPlainObject(t[r])||(t[r]={}),a.extend(!0,t[r],i)):n&&"data"!==r&&"aaData"!==r&&Array.isArray(i)?t[r]=i.slice():t[r]=i);return t}function ee(t,e,n){a(t).on("click.DT",e,function(t){n(t)}).on("keypress.DT",e,function(t){13===t.which&&(t.preventDefault(),n(t))}).on("selectstart.DT",e,function(){return!1})}function ne(t,e,n){n&&t[e].push(n)}function ie(t,e,n,i,r){var o=[];if(e&&(o=t[e].slice().reverse().map(function(e){return e.apply(t.oInstance,i)})),null!==n){var s=a.Event(n+".dt"),l=a(t.nTable);s.dt=t.api,l[r?"trigger":"triggerHandler"](s,i),r&&0===l.parents("body").length&&a("body").trigger(s,i),o.push(s.result)}return o}function re(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),i=t._iDisplayLength;e>=n&&(e=n-i),e-=e%i,(-1===i||e<0)&&(e=0),t._iDisplayStart=e}function oe(t,e){var n=t.renderer,i=l.ext.renderer[e];return a.isPlainObject(n)&&n[e]?i[n[e]]||i._:"string"==typeof n&&i[n]||i._}function se(t){return t.oFeatures.bServerSide?"ssp":t.ajax?"ajax":"dom"}function ae(t,e,n){var i=t.fnFormatNumber,r=t._iDisplayStart+1,o=t._iDisplayLength,s=t.fnRecordsDisplay(),a=t.fnRecordsTotal(),l=-1===o;return e.replace(/_START_/g,i.call(t,r)).replace(/_END_/g,i.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,i.call(t,a)).replace(/_TOTAL_/g,i.call(t,s)).replace(/_PAGE_/g,i.call(t,l?1:Math.ceil(r/o))).replace(/_PAGES_/g,i.call(t,l?1:Math.ceil(s/o))).replace(/_ENTRIES_/g,t.api.i18n("entries","",n)).replace(/_ENTRIES-MAX_/g,t.api.i18n("entries","",a)).replace(/_ENTRIES-TOTAL_/g,t.api.i18n("entries","",s))}function le(t,e){if(e)if(e.length<1e4)t.push.apply(t,e);else for(Ve=0;Ve<e.length;Ve++)t.push(e[Ve])}function ue(t,e,n){for(Array.isArray(n)||(n=[n]),Ve=0;Ve<n.length;Ve++)t.on(e+".dt",n[Ve])}function ce(t){return l.ext.escape.attributes&&a.each(t,function(e,n){t[e]=L(n)}),t}var he=[],pe=Array.prototype;function de(t,e,n){return function(){var i=e.apply(t||this,arguments);return r.extend(i,i,n.methodExt),i}}function fe(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n].name===e)return t[n];return null}r=function(t,e){if(!(this instanceof r))return new r(t,e);var n,i=[],o=function(t){var e=function(t){var e,n,i=l.settings,r=x(i,"nTable");return t?t.nTable&&t.oFeatures?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(e=r.indexOf(t))?[i[e]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?n=a(t).get():t instanceof a&&(n=t.get()),n?i.filter(function(t,e){return n.includes(r[e])}):void 0):[]}(t);e&&i.push.apply(i,e)};if(Array.isArray(t))for(n=0;n<t.length;n++)o(t[n]);else o(t);this.context=i.length>1?N(i):i,le(this,e),this.selector={rows:null,cols:null,opts:null},r.extend(this,this,he)},l.Api=r,a.extend(r.prototype,{any:function(){return 0!==this.count()},context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new r(e[t],this[t]):null},filter:function(t){var e=pe.filter.call(this,t,this);return new r(this.context,e)},flatten:function(){var t=[];return new r(this.context,t.concat.apply(t,this.toArray()))},get:function(t){return this[t]},join:pe.join,includes:function(t){return-1!==this.indexOf(t)},indexOf:pe.indexOf,iterator:function(t,e,n,i){var o,s,a,l,u,c,h,p,d=[],f=this.context,g=this.selector;for("string"==typeof t&&(i=n,n=e,e=t,t=!1),s=0,a=f.length;s<a;s++){var m=new r(f[s]);if("table"===e)void 0!==(o=n.call(m,f[s],s))&&d.push(o);else if("columns"===e||"rows"===e)void 0!==(o=n.call(m,f[s],this[s],s))&&d.push(o);else if("every"===e||"column"===e||"column-rows"===e||"row"===e||"cell"===e)for(h=this[s],"column-rows"===e&&(c=_e(f[s],g.opts)),l=0,u=h.length;l<u;l++)p=h[l],void 0!==(o="cell"===e?n.call(m,f[s],p.row,p.column,s,l):n.call(m,f[s],p,s,l,c))&&d.push(o)}if(d.length||i){var v=new r(f,t?d.concat.apply([],d):d),y=v.selector;return y.rows=g.rows,y.cols=g.cols,y.opts=g.opts,v}return this},lastIndexOf:pe.lastIndexOf,length:0,map:function(t){var e=pe.map.call(this,t,this);return new r(this.context,e)},pluck:function(t){var e=l.util.get(t);return this.map(function(t){return e(t)})},pop:pe.pop,push:pe.push,reduce:pe.reduce,reduceRight:pe.reduceRight,reverse:pe.reverse,selector:null,shift:pe.shift,slice:function(){return new r(this.context,this)},sort:pe.sort,splice:pe.splice,toArray:function(){return pe.slice.call(this)},to$:function(){return a(this)},toJQuery:function(){return a(this)},unique:function(){return new r(this.context,N(this.toArray()))},unshift:pe.unshift}),window.__apiStruct=he,r.extend=function(t,e,n){var i,o,s;if(n.length&&e&&(e instanceof r||e.__dt_wrapper))for(i=0,o=n.length;i<o;i++)"__proto__"!==(s=n[i]).name&&(e[s.name]="function"===s.type?de(t,s.val,s):"object"===s.type?{}:s.val,e[s.name].__dt_wrapper=!0,r.extend(t,e[s.name],s.propExt))},r.register=o=function(t,e){if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)r.register(t[n],e);else{var o,s,l,u,c=t.split("."),h=he;for(o=0,s=c.length;o<s;o++){var p=fe(h,l=(u=-1!==c[o].indexOf("()"))?c[o].replace("()",""):c[o]);p||(p={name:l,val:{},methodExt:[],propExt:[],type:"object"},h.push(p)),o===s-1?(p.val=e,p.type="function"==typeof e?"function":a.isPlainObject(e)?"object":"other"):h=u?p.methodExt:p.propExt}}},r.registerPlural=s=function(t,e,n){r.register(t,n),r.register(e,function(){var t=n.apply(this,arguments);return t===this?this:t instanceof r?t.length?Array.isArray(t[0])?new r(t.context,t[0]):t[0]:void 0:t})};var ge=function(t,e){if(Array.isArray(t)){var n=[];return t.forEach(function(t){var i=ge(t,e);le(n,i)}),n.filter(function(t){return t})}if("number"==typeof t)return[e[t]];var i=e.map(function(t){return t.nTable});return a(i).filter(t).map(function(){var t=i.indexOf(this);return e[t]}).toArray()};o("tables()",function(t){return null!=t?new r(ge(t,this.context)):this}),o("table()",function(t){var e=this.tables(t),n=e.context;return n.length?new r(n[0]):e}),[["nodes","node","nTable"],["body","body","nTBody"],["header","header","nTHead"],["footer","footer","nTFoot"]].forEach(function(t){s("tables()."+t[0]+"()","table()."+t[1]+"()",function(){return this.iterator("table",function(e){return e[t[2]]},1)})}),[["header","aoHeader"],["footer","aoFooter"]].forEach(function(t){o("table()."+t[0]+".structure()",function(e){var n=this.columns(e).indexes().flatten().toArray(),i=this.context[0],r=pt(i,i[t[1]],n),o=n.slice().sort(function(t,e){return t-e});return r.map(function(t){return n.map(function(e){return t[o.indexOf(e)]})})})}),s("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),o("tables().every()",function(t){var e=this;return this.iterator("table",function(n,i){t.call(e.table(i),i)})}),o("caption()",function(t,e){var n=this.context;if(void 0===t){var i=n[0].captionNode;return i&&n.length?i.innerHTML:null}return this.iterator("table",function(n){var i=a(n.nTable),r=a(n.captionNode),o=a(n.nTableWrapper);if(r.length||(r=a("<caption/>").html(t),n.captionNode=r[0],e||(i.prepend(r),e=r.css("caption-side"))),r.html(t),e&&(r.css("caption-side",e),r[0]._captionSide=e),o.find("div.dataTables_scroll").length){var s="top"===e?"Head":"Foot";o.find("div.dataTables_scroll"+s+" table").prepend(r)}else i.prepend(r)},1)}),o("caption.node()",function(){var t=this.context;return t.length?t[0].captionNode:null}),o("draw()",function(t){return this.iterator("table",function(e){"page"===t?ft(e):("string"==typeof t&&(t="full-hold"!==t),gt(e,!1===t))})}),o("page()",function(t){return void 0===t?this.page.info().page:this.iterator("table",function(e){Mt(e,t)})}),o("page.info()",function(){if(0!==this.context.length){var t=this.context[0],e=t._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,i=t.fnRecordsDisplay(),r=-1===n;return{page:r?0:Math.floor(e/n),pages:r?1:Math.ceil(i/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:i,serverSide:"ssp"===se(t)}}}),o("page.len()",function(t){return void 0===t?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",function(e){Pt(e,t)})});var me=function(t,e,n){if(n){var i=new r(t);i.one("draw",function(){n(i.ajax.json())})}if("ssp"==se(t))gt(t,e);else{Ot(t,!0);var o=t.jqXHR;o&&4!==o.readyState&&o.abort(),bt(t,{},function(n){ot(t);for(var i=Tt(t,n),r=0,o=i.length;r<o;r++)X(t,i[r]);gt(t,e),Rt(t),Ot(t,!1)})}};o("ajax.json()",function(){var t=this.context;if(t.length>0)return t[0].json}),o("ajax.params()",function(){var t=this.context;if(t.length>0)return t[0].oAjaxData}),o("ajax.reload()",function(t,e){return this.iterator("table",function(n){me(n,!1===e,t)})}),o("ajax.url()",function(t){var e=this.context;if(void 0===t){if(0===e.length)return;return e=e[0],a.isPlainObject(e.ajax)?e.ajax.url:e.ajax}return this.iterator("table",function(e){a.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t})}),o("ajax.url().load()",function(t,e){return this.iterator("table",function(n){me(n,!1===e,t)})});var ve=function(t,e,n,r,o){var s,a,l,u=[],c=typeof e;for(e&&"string"!==c&&"function"!==c&&void 0!==e.length||(e=[e]),a=0,l=e.length;a<l;a++)(s=(s=n("string"==typeof e[a]?e[a].trim():e[a])).filter(function(t){return null!=t}))&&s.length&&(u=u.concat(s));var h=i.selector[t];if(h.length)for(a=0,l=h.length;a<l;a++)u=h[a](r,o,u);return N(u)},ye=function(t){return t||(t={}),t.filter&&void 0===t.search&&(t.search=t.filter),a.extend({columnOrder:"implied",search:"none",order:"current",page:"all"},t)},Ee=function(t){var e=new r(t.context[0]);return t.length&&e.push(t[0]),e.selector=t.selector,e.length&&e[0].length>1&&e[0].splice(1),e},_e=function(t,e){var n,i,r,o=[],s=t.aiDisplay,a=t.aiDisplayMaster,l=e.search,u=e.order,c=e.page;if("ssp"==se(t))return"removed"===l?[]:T(0,a.length);if("current"==c)for(n=t._iDisplayStart,i=t.fnDisplayEnd();n<i;n++)o.push(s[n]);else if("current"==u||"applied"==u){if("none"==l)o=a.slice();else if("applied"==l)o=s.slice();else if("removed"==l){var h={};for(n=0,i=s.length;n<i;n++)h[s[n]]=null;a.forEach(function(t){Object.prototype.hasOwnProperty.call(h,t)||o.push(t)})}}else if("index"==u||"original"==u)for(n=0,i=t.aoData.length;n<i;n++)t.aoData[n]&&("none"==l||-1===(r=s.indexOf(n))&&"removed"==l||r>=0&&"applied"==l)&&o.push(n);else if("number"==typeof u){var p=Wt(t,u,"asc");if("none"===l)o=p;else for(n=0;n<p.length;n++)(-1===(r=s.indexOf(p[n]))&&"removed"==l||r>=0&&"applied"==l)&&o.push(p[n])}return o};o("rows()",function(t,e){void 0===t?t="":a.isPlainObject(t)&&(e=t,t=""),e=ye(e);var n=this.iterator("table",function(n){return function(t,e,n){var i,r=ve("row",e,function(e){var r=v(e),o=t.aoData;if(null!==r&&!n)return[r];if(i||(i=_e(t,n)),null!==r&&-1!==i.indexOf(r))return[r];if(null==e||""===e)return i;if("function"==typeof e)return i.map(function(t){var n=o[t];return e(t,n._aData,n.nTr)?t:null});if(e.nodeName){var s=e._DT_RowIndex,l=e._DT_CellIndex;if(void 0!==s)return o[s]&&o[s].nTr===e?[s]:[];if(l)return o[l.row]&&o[l.row].nTr===e.parentNode?[l.row]:[];var u=a(e).closest("*[data-dt-row]");return u.length?[u.data("dt-row")]:[]}if("string"==typeof e&&"#"===e.charAt(0)){var c=t.aIds[e.replace(/^#/,"")];if(void 0!==c)return[c.idx]}var h=S(b(t.aoData,i,"nTr"));return a(h).filter(e).map(function(){return this._DT_RowIndex}).toArray()},t,n);return"current"!==n.order&&"applied"!==n.order||qt(t,r),r}(n,t,e)},1);return n.selector.rows=t,n.selector.opts=e,n}),o("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||void 0},1)}),o("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return b(t.aoData,e,"_aData")},1)}),s("rows().cache()","row().cache()",function(t){return this.iterator("row",function(e,n){var i=e.aoData[n];return"search"===t?i._aFilterData:i._aSortData},1)}),s("rows().invalidate()","row().invalidate()",function(t){return this.iterator("row",function(e,n){st(e,n,t)})}),s("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),s("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,i=0,o=n.length;i<o;i++)for(var s=0,a=this[i].length;s<a;s++){var l=n[i].rowIdFn(n[i].aoData[this[i][s]]._aData);e.push((!0===t?"#":"")+l)}return new r(n,e)}),s("rows().remove()","row().remove()",function(){return this.iterator("row",function(t,e){var n=t.aoData,i=n[e],r=t.aiDisplayMaster.indexOf(e);-1!==r&&t.aiDisplayMaster.splice(r,1),t._iRecordsDisplay>0&&t._iRecordsDisplay--,re(t);var o=t.rowIdFn(i._aData);void 0!==o&&delete t.aIds[o],n[e]=null}),this}),o("rows.add()",function(t){var e=this.iterator("table",function(e){var n,i,r,o=[];for(i=0,r=t.length;i<r;i++)(n=t[i]).nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(Y(e,n)[0]):o.push(X(e,n));return o},1),n=this.rows(-1);return n.pop(),le(n,e),n}),o("row()",function(t,e){return Ee(this.rows(t,e))}),o("row().data()",function(t){var e=this.context;if(void 0===t)return e.length&&this.length&&this[0].length?e[0].aoData[this[0]]._aData:void 0;var n=e[0].aoData[this[0]];return n._aData=t,Array.isArray(t)&&n.nTr&&n.nTr.id&&it(e[0].rowId)(t,n.nTr.id),st(e[0],this[0],"data"),this}),o("row().node()",function(){var t=this.context;if(t.length&&this.length&&this[0].length){var e=t[0].aoData[this[0]];if(e&&e.nTr)return e.nTr}return null}),o("row.add()",function(t){t instanceof a&&t.length&&(t=t[0]);var e=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?Y(e,t)[0]:X(e,t)});return this.row(e[0])}),a(document).on("plugin-init.dt",function(t,e){var n=new r(e);n.on("stateSaveParams.DT",function(t,e,n){for(var i=e.rowIdFn,r=e.aiDisplayMaster,o=[],s=0;s<r.length;s++){var a=r[s],l=e.aoData[a];l._detailsShow&&o.push("#"+i(l._aData))}n.childRows=o}),n.on("stateLoaded.DT",function(t,e,i){xe(n,i)}),xe(n,n.state.loaded())});var xe=function(t,e){e&&e.childRows&&t.rows(e.childRows.map(function(t){return t.replace(/([^:\\]*(?:\\.[^:\\]*)*):/g,"$1\\:")})).every(function(){ie(t.settings()[0],null,"requestChild",[this])})},be=l.util.throttle(function(t){Yt(t[0])},500),Te=function(t,e){var n=t.context;if(n.length){var i=n[0].aoData[void 0!==e?e:t[0]];i&&i._details&&(i._details.detach(),i._detailsShow=void 0,i._details=void 0,a(i.nTr).removeClass("dt-hasChild"),be(n))}},Se=function(t,e){var n=t.context;if(n.length&&t.length){var i=n[0].aoData[t[0]];i._details&&(i._detailsShow=e,e?(i._details.insertAfter(i.nTr),a(i.nTr).addClass("dt-hasChild")):(i._details.detach(),a(i.nTr).removeClass("dt-hasChild")),ie(n[0],null,"childRow",[e,t.row(t[0])]),Ae(n[0]),be(n))}},Ae=function(t){var e=new r(t),n=".dt.DT_details",i="draw"+n,o="column-sizing"+n,s="destroy"+n,l=t.aoData;e.off(i+" "+o+" "+s),x(l,"_details").length>0&&(e.on(i,function(n,i){t===i&&e.rows({page:"current"}).eq(0).each(function(t){var e=l[t];e._detailsShow&&e._details.insertAfter(e.nTr)})}),e.on(o,function(e,n){if(t===n)for(var i,r=U(n),o=0,s=l.length;o<s;o++)(i=l[o])&&i._details&&i._details.each(function(){var t=a(this).children("td");1==t.length&&t.attr("colspan",r)})}),e.on(s,function(n,i){if(t===i)for(var r=0,o=l.length;r<o;r++)l[r]&&l[r]._details&&Te(e,r)}))},Le="row().child",Ce=Le+"()";o(Ce,function(t,e){var n=this.context;return void 0===t?n.length&&this.length&&n[0].aoData[this[0]]?n[0].aoData[this[0]]._details:void 0:(!0===t?this.child.show():!1===t?Te(this):n.length&&this.length&&function(t,e,n,i){var r=[],o=function(n,i){if(Array.isArray(n)||n instanceof a)for(var s=0,l=n.length;s<l;s++)o(n[s],i);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())n.setAttribute("data-dt-row",e.idx),r.push(n);else{var u=a("<tr><td></td></tr>").attr("data-dt-row",e.idx).addClass(i);a("td",u).addClass(i).html(n)[0].colSpan=U(t),r.push(u[0])}};o(n,i),e._details&&e._details.detach(),e._details=a(r),e._detailsShow&&e._details.insertAfter(e.nTr)}(n[0],n[0].aoData[this[0]],t,e),this)}),o([Le+".show()",Ce+".show()"],function(){return Se(this,!0),this}),o([Le+".hide()",Ce+".hide()"],function(){return Se(this,!1),this}),o([Le+".remove()",Ce+".remove()"],function(){return Te(this),this}),o(Le+".isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]&&t[0].aoData[this[0]]._detailsShow||!1});var Ne=/^([^:]+)?:(name|title|visIdx|visible)$/,Ie=function(t,e,n,i,r,o){for(var s=[],a=0,l=r.length;a<l;a++)s.push($(t,r[a],e,o));return s},we=function(t,e,n){var i=t.aoHeader,r=t.titleRow,o=null;if(void 0!==n)o=n;else if(!0===r)o=0;else if(!1===r)o=i.length-1;else if(null!==r)o=r;else{for(var s=0;s<i.length;s++)i[s][e].unique&&a("span.dt-column-title",i[s][e].cell).text()&&(o=s);null===o&&(o=0)}return i[o][e].cell};o("columns()",function(t,e){void 0===t?t="":a.isPlainObject(t)&&(e=t,t=""),e=ye(e);var n=this.iterator("table",function(n){return function(t,e,n){var i,r,o=t.aoColumns,s=function(t){for(var e=[],n=0;n<t.length;n++)for(var i=0;i<t[n].length;i++){var r=t[n][i].cell;e.includes(r)||e.push(r)}return e}(t.aoHeader),l=ve("column",e,function(e){var l=v(e);if(""===e)return T(o.length);if(null!==l)return[l>=0?l:o.length+l];if("function"==typeof e){var u=_e(t,n);return o.map(function(n,i){return e(i,Ie(t,i,0,0,u),we(t,i))?i:null})}var c="string"==typeof e?e.match(Ne):"";if(c)switch(c[2]){case"visIdx":case"visible":if(c[1]&&c[1].match(/^\d+$/)){var h=parseInt(c[1],10);if(h<0){var p=o.map(function(t,e){return t.bVisible?e:null});return[p[p.length+h]]}return[j(t,h)]}return o.map(function(t,e){return t.bVisible?c[1]?a(s[e]).filter(c[1]).length>0?e:null:e:null});case"name":return i||(i=x(o,"sName")),i.map(function(t,e){return t===c[1]?e:null});case"title":return r||(r=x(o,"sTitle")),r.map(function(t,e){return t===c[1]?e:null});default:return[]}if(e.nodeName&&e._DT_CellIndex)return[e._DT_CellIndex.column];var d=a(s).filter(e).map(function(){return Q(this)}).toArray().sort(function(t,e){return t-e});if(d.length||!e.nodeName)return d;var f=a(e).closest("*[data-dt-column]");return f.length?[f.data("dt-column")]:[]},t,n);return n.columnOrder&&"index"===n.columnOrder?l.sort(function(t,e){return t-e}):l}(n,t,e)},1);return n.selector.cols=t,n.selector.opts=e,n}),s("columns().header()","column().header()",function(t){return this.iterator("column",function(e,n){return we(e,n,t)},1)}),s("columns().footer()","column().footer()",function(t){return this.iterator("column",function(e,n){return e.aoFooter.length?e.aoFooter[void 0!==t?t:0][n].cell:null},1)}),s("columns().data()","column().data()",function(){return this.iterator("column-rows",Ie,1)}),s("columns().render()","column().render()",function(t){return this.iterator("column-rows",function(e,n,i,r,o){return Ie(e,n,0,0,o,t)},1)}),s("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),s("columns().cache()","column().cache()",function(t){return this.iterator("column-rows",function(e,n,i,r,o){return b(e.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)},1)}),s("columns().init()","column().init()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e]},1)}),s("columns().names()","column().name()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].sName},1)}),s("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,i,r){return b(t.aoData,r,"anCells",e)},1)}),s("columns().titles()","column().title()",function(t,e){return this.iterator("column",function(n,i){"number"==typeof t&&(e=t,t=void 0);var r=a("span.dt-column-title",this.column(i).header(e));return void 0!==t?(r.html(t),this):r.html()},1)}),s("columns().types()","column().type()",function(){return this.iterator("column",function(t,e){var n=t.aoColumns[e],i=n.sType;return i||(z(t),i=n.sType),i},1)}),s("columns().visible()","column().visible()",function(t,e){var n=this,i=[],r=this.iterator("column",function(e,n){if(void 0===t)return e.aoColumns[n].bVisible;(function(t,e,n){var i,r,o,s,l=t.aoColumns,u=l[e],c=t.aoData;if(void 0===n)return u.bVisible;if(u.bVisible===n)return!1;if(n){var h=x(l,"bVisible").indexOf(!0,e+1);for(r=0,o=c.length;r<o;r++)c[r]&&(s=c[r].nTr,i=c[r].anCells,s&&s.insertBefore(i[e],i[h]||null))}else a(x(t.aoData,"anCells",e)).detach();return u.bVisible=n,Ut(t),!0})(e,n,t)&&i.push(n)});return void 0!==t&&this.iterator("table",function(r){dt(r,r.aoHeader),dt(r,r.aoFooter),r.aiDisplay.length||a(r.nTBody).find("td[colspan]").attr("colspan",U(r)),Yt(r),n.iterator("column",function(n,r){i.includes(r)&&ie(n,null,"column-visibility",[n,r,t,e])}),i.length&&(void 0===e||e)&&n.columns.adjust()}),r}),s("columns().widths()","column().width()",function(){var t=this.columns(":visible").count(),e=a("<tr>").html("<td>"+Array(t).join("</td><td>")+"</td>");a(this.table().body()).append(e);var n=e.children().map(function(){return a(this).outerWidth()});return e.remove(),this.iterator("column",function(t,e){var i=F(t,e);return null!==i?n[i]:0},1)}),s("columns().indexes()","column().index()",function(t){return this.iterator("column",function(e,n){return"visible"===t?F(e,n):n},1)}),o("columns.adjust()",function(){return this.iterator("table",function(t){t.containerWidth=-1,B(t)},1)}),o("column.index()",function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return j(n,e);if("fromData"===t||"toVisible"===t)return F(n,e)}}),o("column()",function(t,e){return Ee(this.columns(t,e))});var Re,Pe;function Me(t,e){a(t).find("span.dt-column-order").remove(),a(t).find("span.dt-column-title").each(function(){var t=a(this).html();a(this).parent().parent().append(t),a(this).remove()}),a(t).find("div.dt-column-"+e).remove(),a("th, td",t).removeAttr("data-dt-column")}o("cells()",function(t,e,n){if(a.isPlainObject(t)&&(void 0===t.row?(n=t,t=null):(n=e,e=null)),a.isPlainObject(e)&&(n=e,e=null),null==e)return this.iterator("table",function(e){return function(t,e,n){var i,r,o,s,l,u,c,h=t.aoData,p=_e(t,n),d=S(b(h,p,"anCells")),f=a(I([],d)),g=t.aoColumns.length;return ve("cell",e,function(e){var n="function"==typeof e;if(null==e||n){for(r=[],o=0,s=p.length;o<s;o++)for(i=p[o],l=0;l<g;l++)u={row:i,column:l},n?(c=h[i],e(u,$(t,i,l),c.anCells?c.anCells[l]:null)&&r.push(u)):r.push(u);return r}if(a.isPlainObject(e))return void 0!==e.column&&void 0!==e.row&&-1!==p.indexOf(e.row)?[e]:[];var d=f.filter(e).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray();return d.length||!e.nodeName?d:(c=a(e).closest("*[data-dt-row]")).length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[]},t,n)}(e,t,ye(n))});var i,r,o,s,l=n?{page:n.page,order:n.order,search:n.search}:{},u=this.columns(e,l),c=this.rows(t,l),h=this.iterator("table",function(t,e){var n=[];for(i=0,r=c[e].length;i<r;i++)for(o=0,s=u[e].length;o<s;o++)n.push({row:c[e][i],column:u[e][o]});return n},1),p=n&&n.selected?this.cells(h,n):h;return a.extend(p.selector,{cols:e,rows:t,opts:n}),p}),s("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){var i=t.aoData[e];return i&&i.anCells?i.anCells[n]:void 0},1)}),o("cells().data()",function(){return this.iterator("cell",function(t,e,n){return $(t,e,n)},1)}),s("cells().cache()","cell().cache()",function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",function(e,n,i){return e.aoData[n][t][i]},1)}),s("cells().render()","cell().render()",function(t){return this.iterator("cell",function(e,n,i){return $(e,n,i,t)},1)}),s("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:F(t,n)}},1)}),s("cells().invalidate()","cell().invalidate()",function(t){return this.iterator("cell",function(e,n,i){st(e,n,t,i)})}),o("cell()",function(t,e,n){return Ee(this.cells(t,e,n))}),o("cell().data()",function(t){var e,n,i,r,o,s,a=this.context,l=this[0];return void 0===t?a.length&&l.length?$(a[0],l[0].row,l[0].column):void 0:(e=a[0],n=l[0].row,i=l[0].column,r=t,o=e.aoColumns[i],s=e.aoData[n]._aData,o.fnSetData(s,r,{settings:e,row:n,col:i}),st(a[0],l[0].row,"data",l[0].column),this)}),o("order()",function(t,e){var n=this.context,i=Array.prototype.slice.call(arguments);return void 0===t?0!==n.length?n[0].aaSorting:void 0:("number"==typeof t?t=[[t,e]]:i.length>1&&(t=i),this.iterator("table",function(e){var n=[];zt(e,n,t),e.aaSorting=n}))}),o("order.listener()",function(t,e,n){return this.iterator("table",function(i){Ht(i,t,{},e,n)})}),o("order.fixed()",function(t){if(!t){var e=this.context,n=e.length?e[0].aaSortingFixed:void 0;return Array.isArray(n)?{pre:n}:n}return this.iterator("table",function(e){e.aaSortingFixed=a.extend(!0,{},t)})}),o(["columns().order()","column().order()"],function(t){var e=this;return t?this.iterator("table",function(n,i){n.aaSorting=e[i].map(function(e){return[e,t]})}):this.iterator("column",function(t,e){for(var n=Vt(t),i=0,r=n.length;i<r;i++)if(n[i].col===e)return n[i].dir;return null},1)}),s("columns().orderable()","column().orderable()",function(t){return this.iterator("column",function(e,n){var i=e.aoColumns[n];return t?i.asSorting:i.bSortable},1)}),o("processing()",function(t){return this.iterator("table",function(e){Ot(e,t)})}),o("search()",function(t,e,n,i){var r=this.context;return void 0===t?0!==r.length?r[0].oPreviousSearch.search:void 0:this.iterator("table",function(r){r.oFeatures.bFilter&&At(r,"object"==typeof e?a.extend(r.oPreviousSearch,e,{search:t}):a.extend(r.oPreviousSearch,{search:t,regex:null!==e&&e,smart:null===n||n,caseInsensitive:null===i||i}))})}),o("search.fixed()",function(t,e){var n=this.iterator(!0,"table",function(n){var i=n.searchFixed;return t?void 0===e?i[t]:(null===e?delete i[t]:i[t]=e,this):Object.keys(i)});return void 0!==t&&void 0===e?n[0]:n}),s("columns().search()","column().search()",function(t,e,n,i){return this.iterator("column",function(r,o){var s=r.aoPreSearchCols;if(void 0===t)return s[o].search;r.oFeatures.bFilter&&("object"==typeof e?a.extend(s[o],e,{search:t}):a.extend(s[o],{search:t,regex:null!==e&&e,smart:null===n||n,caseInsensitive:null===i||i}),At(r,r.oPreviousSearch))})}),o(["columns().search.fixed()","column().search.fixed()"],function(t,e){var n=this.iterator(!0,"column",function(n,i){var r=n.aoColumns[i].searchFixed;return t?void 0===e?r[t]||null:(null===e?delete r[t]:r[t]=e,this):Object.keys(r)});return void 0!==t&&void 0===e?n[0]:n}),o("state()",function(t,e){if(!t)return this.context.length?this.context[0].oSavedState:null;var n=a.extend(!0,{},t);return this.iterator("table",function(t){!1!==e&&(n.time=+new Date+100),$t(t,n,function(){})})}),o("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),o("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),o("state.save()",function(){return this.iterator("table",function(t){Yt(t)})}),l.use=function(t,e){var n="string"==typeof t?e:t,i="string"==typeof e?e:t;if(void 0===n&&"string"==typeof i)switch(i){case"lib":case"jq":return a;case"win":return window;case"datetime":return l.DateTime;case"luxon":return Ge;case"moment":return Be;case"bootstrap":return Re||window.bootstrap;case"foundation":return Pe||window.Foundation;default:return null}"lib"===i||"jq"===i||n&&n.fn&&n.fn.jquery?a=n:"win"===i||n&&n.document?(window=n,document=n.document):"datetime"===i||n&&"DateTime"===n.type?l.DateTime=n:"luxon"===i||n&&n.FixedOffsetZone?Ge=n:"moment"===i||n&&n.isMoment?Be=n:"bootstrap"===i||n&&n.Modal&&"modal"===n.Modal.NAME?Re=n:("foundation"===i||n&&n.Reveal)&&(Pe=n)},l.factory=function(t,e){var n=!1;return t&&t.document&&(window=t,document=t.document),e&&e.fn&&e.fn.jquery&&(a=e,n=!0),n},l.versionCheck=function(t,e){for(var n,i,r=e?e.split("."):l.version.split("."),o=t.split("."),s=0,a=o.length;s<a;s++)if((n=parseInt(r[s],10)||0)!==(i=parseInt(o[s],10)||0))return n>i;return!0},l.isDataTable=function(t){var e=a(t).get(0),n=!1;return t instanceof l.Api||(a.each(l.settings,function(t,i){var r=i.nScrollHead?a("table",i.nScrollHead)[0]:null,o=i.nScrollFoot?a("table",i.nScrollFoot)[0]:null;i.nTable!==e&&r!==e&&o!==e||(n=!0)}),n)},l.tables=function(t){var e=!1;a.isPlainObject(t)&&(e=t.api,t=t.visible);var n=l.settings.filter(function(e){return!!(!t||t&&a(e.nTable).is(":visible"))}).map(function(t){return t.nTable});return e?new r(n):n},l.camelToHungarian=P,o("$()",function(t,e){var n=this.rows(e).nodes(),i=a(n);return a([].concat(i.filter(t).toArray(),i.find(t).toArray()))}),a.each(["on","one","off"],function(t,e){o(e+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=t[0].split(/\s/).map(function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" ");var n=a(this.tables().nodes());return n[e].apply(n,t),this})}),o("clear()",function(){return this.iterator("table",function(t){ot(t)})}),o("error()",function(t){return this.iterator("table",function(e){Kt(e,0,t)})}),o("settings()",function(){return new r(this.context,this.context)}),o("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),o("data()",function(){return this.iterator("table",function(t){return x(t.aoData,"_aData")}).flatten()}),o("trigger()",function(t,e,n){return this.iterator("table",function(i){return ie(i,null,t,e,n)}).flatten()}),o("ready()",function(t){var e=this.context;return t?this.tables().every(function(){var e=this;this.context[0]._bInitComplete?t.call(e):this.on("init.dt.DT",function(){t.call(e)})}):e.length?e[0]._bInitComplete||!1:null}),o("destroy()",function(t){return t=t||!1,this.iterator("table",function(e){var n=e.oClasses,i=e.nTable,o=e.nTBody,s=e.nTHead,u=e.nTFoot,c=a(i),h=a(o),p=a(e.nTableWrapper),d=e.aoData.map(function(t){return t?t.nTr:null}),f=n.order;e.bDestroying=!0,ie(e,"aoDestroyCallback","destroy",[e],!0),t||new r(e).columns().visible(!0),e.resizeObserver&&e.resizeObserver.disconnect(),p.off(".DT").find(":not(tbody *)").off(".DT"),a(window).off(".DT-"+e.sInstance),i!=s.parentNode&&(c.children("thead").detach(),c.append(s)),u&&i!=u.parentNode&&(c.children("tfoot").detach(),c.append(u)),Me(s,"header"),Me(u,"footer"),e.colgroup.remove(),e.aaSorting=[],e.aaSortingFixed=[],Qt(e),a(c).find("th, td").removeClass(a.map(l.ext.type.className,function(t){return t}).join(" ")),a("th, td",s).removeClass(f.none+" "+f.canAsc+" "+f.canDesc+" "+f.isAsc+" "+f.isDesc).css("width","").removeAttr("aria-sort"),h.children().detach(),h.append(d);var g=e.nTableWrapper.parentNode,m=e.nTableWrapper.nextSibling,v=t?"remove":"detach";c[v](),p[v](),!t&&g&&(g.insertBefore(i,m),c.css("width",e.sDestroyWidth).removeClass(n.table));var y=l.settings.indexOf(e);-1!==y&&l.settings.splice(y,1)})}),a.each(["column","row","cell"],function(t,e){o(e+"s().every()",function(t){var n,i=this.selector.opts,r=this,o=0;return this.iterator("every",function(s,a,l){n=r[e](a,i),"cell"===e?t.call(n,n[0][0].row,n[0][0].column,l,o):t.call(n,a,l,o),o++})})}),o("i18n()",function(t,e,n){var i=this.context[0],r=nt(t)(i.oLanguage);return void 0===r&&(r=e),a.isPlainObject(r)&&(r=void 0!==n&&void 0!==r[n]?r[n]:!1===n?r:r._),"string"==typeof r?r.replace("%d",n):r}),l.version="2.3.5",l.settings=[],l.models={},l.models.oSearch={caseInsensitive:!0,search:"",regex:!1,smart:!0,return:!1},l.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,src:null,idx:-1,displayData:null},l.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null,wideStrings:null,searchFixed:null},l.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],bAutoWidth:!0,bDeferRender:!0,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:null,titleRow:null,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{orderable:": Activate to sort",orderableReverse:": Activate to invert sorting",orderableRemove:": Activate to remove sorting",paginate:{first:"First",last:"Last",next:"Next",previous:"Previous",number:""}},oPaginate:{sFirst:"«",sLast:"»",sNext:"›",sPrevious:"‹"},entries:{_:"entries",1:"entry"},lengthLabels:{"-1":"All"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",sInfoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",sInfoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_ _ENTRIES_ per page",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},orderDescReverse:!0,oSearch:a.extend({},l.models.oSearch),layout:{topStart:"pageLength",topEnd:"search",bottomStart:"info",bottomEnd:"paging"},sDom:null,searchDelay:null,sPaginationType:"",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId",caption:null,iDeferLoading:null,on:null},R(l.defaults),l.defaults.column={aDataSort:null,iDataSort:-1,ariaTitle:"",asSorting:["asc","desc",""],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},R(l.defaults.column),l.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:!0,bLengthChange:!0,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollbarLeft:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},searchFixed:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",pagingControls:0,iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==se(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==se(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,i=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+i:Math.min(e+t,this._iRecordsDisplay):!o||n>i||-1===t?i:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null,caption:"",captionNode:null,colgroup:null,deferLoading:null,typeDetect:!0,resizeObserver:null,containerWidth:-1,orderDescReverse:null,orderIndicators:!0,orderHandler:!0,titleRow:null};var Oe=l.ext.pager;a.extend(Oe,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:en,numbers_length:7}),a.extend(!0,l.ext.renderer,{pagingButton:{_:function(t,e,n,i,r){var o,s=t.oClasses.paging,l=[s.button];return i&&l.push(s.active),r&&l.push(s.disabled),{display:o="ellipsis"===e?a('<span class="ellipsis"></span>').html(n)[0]:a("<button>",{class:l.join(" "),role:"link",type:"button"}).html(n),clicker:o}}},pagingContainer:{_:function(t,e){return e}}});var ke=function(t,e){return function(n){return m(n)||"string"!=typeof n||(n=n.replace(c," "),t&&(n=A(n)),e&&(n=C(n,!1))),n}};function De(t,e,n,i,r){return Be?t[e](r):Ge?t[n](r):i?t[i](r):t}var Ge,Be,je=!1;function Fe(t,e,n){var i;if(window.luxon&&!Ge&&(Ge=window.luxon),window.moment&&!Be&&(Be=window.moment),Be){if(!(i=Be.utc(t,e,n,!0)).isValid())return null}else if(Ge){if(!(i=e&&"string"==typeof t?Ge.DateTime.fromFormat(t,e):Ge.DateTime.fromISO(t)).isValid)return null;i=i.setLocale(n)}else e?(je||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),je=!0):i=new Date(t);return i}function Ue(t){return function(e,n,i,r){0===arguments.length?(i="en",n=null,e=null):1===arguments.length?(i="en",n=e,e=null):2===arguments.length&&(i=n,n=e,e=null);var o="datetime"+(n?"-"+n:"");return l.ext.type.order[o+"-pre"]||l.type(o,{detect:function(t){return t===o&&o},order:{pre:function(t){return t.valueOf()}},className:"dt-right"}),function(s,a){if(null==s)if("--now"===r){var l=new Date;s=new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds()))}else s="";if("type"===a)return o;if(""===s)return"sort"!==a?"":Fe("0000-01-01 00:00:00",null,i);if(null!==n&&e===n&&"sort"!==a&&"type"!==a&&!(s instanceof Date))return s;var u=Fe(s,e,i);if(null===u)return s;if("sort"===a)return u;var c=null===n?De(u,"toDate","toJSDate","")[t](navigator.language,{timeZone:"UTC"}):De(u,"format","toFormat","toISOString",n);return"display"===a?L(c):c}}}var He=",",qe=".";if(void 0!==window.Intl)try{for(var ze=(new Intl.NumberFormat).formatToParts(100000.1),Ve=0;Ve<ze.length;Ve++)"group"===ze[Ve].type?He=ze[Ve].value:"decimal"===ze[Ve].type&&(qe=ze[Ve].value)}catch(t){}l.datetime=function(t,e){var n="datetime-"+t;e||(e="en"),l.ext.type.order[n]||l.type(n,{detect:function(i){var r=Fe(i,t,e);return!(""!==i&&!r)&&n},order:{pre:function(n){return Fe(n,t,e)||0}},className:"dt-right"})},l.render={date:Ue("toLocaleDateString"),datetime:Ue("toLocaleString"),time:Ue("toLocaleTimeString"),number:function(t,e,n,i,r){return null==t&&(t=He),null==e&&(e=qe),{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;if(""===o||null===o)return o;var s=o<0?"-":"",a=parseFloat(o),l=Math.abs(a);if(l>=1e11||l<1e-4&&0!==l){var u=a.toExponential(n).split(/e\+?/);return u[0]+" x 10<sup>"+u[1]+"</sup>"}if(isNaN(a))return L(o);a=a.toFixed(n),o=Math.abs(a);var c=parseInt(o,10),h=n?e+(o-c).toFixed(n).substring(2):"";return 0===c&&0===parseFloat(h)&&(s=""),s+(i||"")+c.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+h+(r||"")}}},text:function(){return{display:L,filter:L}}};var We=l.ext.type;l.type=function(t,e,n){if(!e)return{className:We.className[t],detect:We.detect.find(function(e){return e._name===t}),order:{pre:We.order[t+"-pre"],asc:We.order[t+"-asc"],desc:We.order[t+"-desc"]},render:We.render[t],search:We.search[t]};var i=function(e,n){We[e][t]=n},r=function(e){Object.defineProperty(e,"_name",{value:t});var n=We.detect.findIndex(function(e){return e._name===t});-1===n?We.detect.unshift(e):We.detect.splice(n,1,e)},o=function(e){We.order[t+"-pre"]=e.pre,We.order[t+"-asc"]=e.asc,We.order[t+"-desc"]=e.desc};void 0===n&&(n=e,e=null),"className"===e?i("className",n):"detect"===e?r(n):"order"===e?o(n):"render"===e?i("render",n):"search"===e?i("search",n):e||(n.className&&i("className",n.className),void 0!==n.detect&&r(n.detect),n.order&&o(n.order),void 0!==n.render&&i("render",n.render),void 0!==n.search&&i("search",n.search))},l.types=function(){return We.detect.map(function(t){return t._name})};var Ze=function(t,e){return t=null!=t?t.toString().toLowerCase():"",e=null!=e?e.toString().toLowerCase():"",t.localeCompare(e,navigator.languages[0]||navigator.language,{numeric:!0,ignorePunctuation:!0})},Qe=function(t,e){return t=A(t),e=A(e),Ze(t,e)};l.type("string",{detect:function(){return"string"},order:{pre:function(t){return m(t)&&"boolean"!=typeof t?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""}},search:ke(!1,!0)}),l.type("string-utf8",{detect:{allOf:function(t){return!0},oneOf:function(t){return!m(t)&&navigator.languages&&"string"==typeof t&&t.match(/[^\x00-\x7F]/)}},order:{asc:Ze,desc:function(t,e){return-1*Ze(t,e)}},search:ke(!1,!0)}),l.type("html",{detect:{allOf:function(t){return m(t)||"string"==typeof t&&-1!==t.indexOf("<")},oneOf:function(t){return!m(t)&&"string"==typeof t&&-1!==t.indexOf("<")}},order:{pre:function(t){return m(t)?"":t.replace?A(t).trim().toLowerCase():t+""}},search:ke(!0,!0)}),l.type("html-utf8",{detect:{allOf:function(t){return m(t)||"string"==typeof t&&-1!==t.indexOf("<")},oneOf:function(t){return navigator.languages&&!m(t)&&"string"==typeof t&&-1!==t.indexOf("<")&&"string"==typeof t&&t.match(/[^\x00-\x7F]/)}},order:{asc:Qe,desc:function(t,e){return-1*Qe(t,e)}},search:ke(!0,!0)}),l.type("date",{className:"dt-type-date",detect:{allOf:function(t){if(t&&!(t instanceof Date)&&!d.test(t))return null;var e=Date.parse(t);return null!==e&&!isNaN(e)||m(t)},oneOf:function(t){return t instanceof Date||"string"==typeof t&&d.test(t)}},order:{pre:function(t){var e=Date.parse(t);return isNaN(e)?-1/0:e}}}),l.type("html-num-fmt",{className:"dt-type-numeric",detect:{allOf:function(t,e){var n=e.oLanguage.sDecimal;return _(t,n,!0,!1)},oneOf:function(t,e){var n=e.oLanguage.sDecimal;return _(t,n,!0,!1)}},order:{pre:function(t,e){var n=e.oLanguage.sDecimal;return Xe(t,n,h,g)}},search:ke(!0,!0)}),l.type("html-num",{className:"dt-type-numeric",detect:{allOf:function(t,e){var n=e.oLanguage.sDecimal;return _(t,n,!1,!0)},oneOf:function(t,e){var n=e.oLanguage.sDecimal;return _(t,n,!1,!1)}},order:{pre:function(t,e){var n=e.oLanguage.sDecimal;return Xe(t,n,h)}},search:ke(!0,!0)}),l.type("num-fmt",{className:"dt-type-numeric",detect:{allOf:function(t,e){var n=e.oLanguage.sDecimal;return E(t,n,!0,!0)},oneOf:function(t,e){var n=e.oLanguage.sDecimal;return E(t,n,!0,!1)}},order:{pre:function(t,e){var n=e.oLanguage.sDecimal;return Xe(t,n,g)}}}),l.type("num",{className:"dt-type-numeric",detect:{allOf:function(t,e){var n=e.oLanguage.sDecimal;return E(t,n,!1,!0)},oneOf:function(t,e){var n=e.oLanguage.sDecimal;return E(t,n,!1,!1)}},order:{pre:function(t,e){var n=e.oLanguage.sDecimal;return Xe(t,n)}}});var Xe=function(t,e,n,i){if(0!==t&&(!t||"-"===t))return-1/0;var r=typeof t;return"number"===r||"bigint"===r?t:(e&&(t=y(t,e)),t.replace&&(n&&(t=t.replace(n,"")),i&&(t=t.replace(i,""))),1*t)};function Ye(t,e,n){n&&(t[e]=n)}a.extend(!0,l.ext.renderer,{footer:{_:function(t,e,n){e.addClass(n.tfoot.cell)}},header:{_:function(t,e,n){e.addClass(n.thead.cell),t.oFeatures.bSort||e.addClass(n.order.none);var i=t.titleRow,r=e.closest("thead").find("tr"),o=e.parent().index();"disable"===e.attr("data-dt-order")||"disable"===e.parent().attr("data-dt-order")||!0===i&&0!==o||!1===i&&o!==r.length-1||"number"==typeof i&&o!==i||a(t.nTable).on("order.dt.DT column-visibility.dt.DT",function(i,r,o){if(t===r){var s=r.sortDetails;if(s){var a=x(s,"col");if("column-visibility"!==i.type||a.includes(o)){var l,u=n.order,c=r.api.columns(e),h=t.aoColumns[c.flatten()[0]],p=c.orderable().includes(!0),d="",f=c.indexes(),g=c.orderable(!0).flatten(),m=t.iTabIndex,v=r.orderHandler&&p;e.removeClass(u.isAsc+" "+u.isDesc).toggleClass(u.none,!p).toggleClass(u.canAsc,v&&g.includes("asc")).toggleClass(u.canDesc,v&&g.includes("desc"));var y=!0;for(l=0;l<f.length;l++)a.includes(f[l])||(y=!1);if(y){var E=c.order();e.addClass(E.includes("asc")?u.isAsc:""+E.includes("desc")?u.isDesc:"")}var _=-1;for(l=0;l<a.length;l++)if(t.aoColumns[a[l]].bVisible){_=a[l];break}if(f[0]==_){var b=s[0],T=h.asSorting;e.attr("aria-sort","asc"===b.dir?"ascending":"descending"),d=T[b.index+1]?"Reverse":"Remove"}else e.removeAttr("aria-sort");if(p){var S=e.find(".dt-column-order");S.attr("role","button").attr("aria-label",p?h.ariaTitle+r.api.i18n("oAria.orderable"+d):h.ariaTitle),-1!==m&&S.attr("tabindex",m)}}}}})}},layout:{_:function(t,e,n){var i=t.oClasses.layout,r=a("<div/>").attr("id",n.id||null).addClass(n.className||i.row).appendTo(e);l.ext.renderer.layout._forLayoutRow(n,function(t,e){if("id"!==t&&"className"!==t){var n="";e.table&&(r.addClass(i.tableRow),n+=i.tableCell+" "),n+="start"===t?i.start:"end"===t?i.end:i.full,a("<div/>").attr({id:e.id||null,class:e.className?e.className:i.cell+" "+n}).append(e.contents).appendTo(r)}})},_forLayoutRow:function(t,e){var n=function(t){switch(t){case"":return 0;case"start":return 1;case"end":return 2;default:return 3}};Object.keys(t).sort(function(t,e){return n(t)-n(e)}).forEach(function(n){e(n,t[n])})}}}),l.feature={},l.feature.register=function(t,e,n){l.ext.features[t]=e,n&&i.feature.push({cFeature:n,fnInit:e})},l.feature.register("div",function(t,e){var n=a("<div>")[0];return e&&(Ye(n,"className",e.className),Ye(n,"id",e.id),Ye(n,"innerHTML",e.html),Ye(n,"textContent",e.text)),n}),l.feature.register("info",function(t,e){if(!t.oFeatures.bInfo)return null;var n=t.oLanguage,i=t.sTableId,r=a("<div/>",{class:t.oClasses.info.container});return e=a.extend({callback:n.fnInfoCallback,empty:n.sInfoEmpty,postfix:n.sInfoPostFix,search:n.sInfoFiltered,text:n.sInfo},e),t.aoDrawCallback.push(function(t){!function(t,e,n){var i=t._iDisplayStart+1,r=t.fnDisplayEnd(),o=t.fnRecordsTotal(),s=t.fnRecordsDisplay(),a=s?e.text:e.empty;s!==o&&(a+=" "+e.search);a+=e.postfix,a=ae(t,a),e.callback&&(a=e.callback.call(t.oInstance,t,i,r,o,s,a));n.html(a),ie(t,null,"info",[t,n[0],a])}(t,e,r)}),t._infoEl||(r.attr({"aria-live":"polite",id:i+"_info",role:"status"}),a(t.nTable).attr("aria-describedby",i+"_info"),t._infoEl=r),r},"i");var $e=0;function Ke(t){var e=[];return t.numbers&&e.push("numbers"),t.previousNext&&(e.unshift("previous"),e.push("next")),t.firstLast&&(e.unshift("first"),e.push("last")),e}function Je(t,e,n){if(t._bInitComplete){var i=n.type?l.ext.pager[n.type]:Ke,r=t.oLanguage.oAria.paginate||{},o=t._iDisplayStart,s=t._iDisplayLength,u=t.fnRecordsDisplay(),c=-1===s,h=c?0:Math.ceil(o/s),p=c?1:Math.ceil(u/s),d=[],f=[],g=i(n).map(function(t){return"numbers"===t?en(h,p,n.buttons,n.boundaryNumbers):t});d=d.concat.apply(d,g);for(var m=0;m<d.length;m++){var v=d[m],y=tn(t,v,h,p),E=oe(t,"pagingButton")(t,v,y.display,y.active,y.disabled),_="string"==typeof v?r[v]:r.number?r.number+(v+1):null;a(E.clicker).attr({"aria-controls":t.sTableId,"aria-disabled":y.disabled?"true":null,"aria-current":y.active?"page":null,"aria-label":_,"data-dt-idx":v,tabIndex:y.disabled?-1:t.iTabIndex&&"span"!==E.clicker[0].nodeName.toLowerCase()?t.iTabIndex:null}),"number"!=typeof v&&a(E.clicker).addClass(v),ee(E.clicker,{action:v},function(e){e.preventDefault(),Mt(t,e.data.action,!0)}),f.push(E.display)}var x=oe(t,"pagingContainer")(t,f),b=e.find(document.activeElement).data("dt-idx");if(e.empty().append(x),void 0!==b&&e.find("[data-dt-idx="+b+"]").trigger("focus"),f.length){var T=a(f[0]).outerHeight();n.buttons>1&&T>0&&a(e).height()>=2*T-10&&Je(t,e,a.extend({},n,{buttons:n.buttons-2}))}}}function tn(t,e,n,i){var r=t.oLanguage.oPaginate,o={display:"",active:!1,disabled:!1};switch(e){case"ellipsis":o.display="…";break;case"first":o.display=r.sFirst,0===n&&(o.disabled=!0);break;case"previous":o.display=r.sPrevious,0===n&&(o.disabled=!0);break;case"next":o.display=r.sNext,0!==i&&n!==i-1||(o.disabled=!0);break;case"last":o.display=r.sLast,0!==i&&n!==i-1||(o.disabled=!0);break;default:"number"==typeof e&&(o.display=t.fnFormatNumber(e+1),n===e&&(o.active=!0))}return o}function en(t,e,n,i){var r=[],o=Math.floor(n/2),s=i?2:1,a=i?1:0;return e<=n?r=T(0,e):1===n?r=[t]:3===n?t<=1?r=[0,1,"ellipsis"]:t>=e-2?(r=T(e-2,e)).unshift("ellipsis"):r=["ellipsis",t,"ellipsis"]:t<=o?((r=T(0,n-s)).push("ellipsis"),i&&r.push(e-1)):t>=e-1-o?((r=T(e-(n-s),e)).unshift("ellipsis"),i&&r.unshift(0)):((r=T(t-o+s,t+o-a)).push("ellipsis"),r.unshift("ellipsis"),i&&(r.push(e-1),r.unshift(0))),r}l.feature.register("search",function(t,e){if(!t.oFeatures.bFilter)return null;var n=t.oClasses.search,i=t.sTableId,r=t.oLanguage,o=t.oPreviousSearch,s='<input type="search" class="'+n.input+'"/>';-1===(e=a.extend({placeholder:r.sSearchPlaceholder,processing:!1,text:r.sSearch},e)).text.indexOf("_INPUT_")&&(e.text+="_INPUT_"),e.text=ae(t,e.text);var u=e.text.match(/_INPUT_$/),c=e.text.match(/^_INPUT_/),h=e.text.replace(/_INPUT_/,""),p="<label>"+e.text+"</label>";c?p="_INPUT_<label>"+h+"</label>":u&&(p="<label>"+h+"</label>_INPUT_");var d=a("<div>").addClass(n.container).append(p.replace(/_INPUT_/,s));d.find("label").attr("for","dt-search-"+$e),d.find("input").attr("id","dt-search-"+$e),$e++;var f=function(n){var i=this.value;o.return&&"Enter"!==n.key||i!=o.search&&kt(t,e.processing,function(){o.search=i,At(t,o),t._iDisplayStart=0,ft(t)})},g=null!==t.searchDelay?t.searchDelay:0,m=a("input",d).val(o.search).attr("placeholder",e.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?l.util.debounce(f,g):f).on("mouseup.DT",function(t){setTimeout(function(){f.call(m[0],t)},10)}).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",i);return a(t.nTable).on("search.dt.DT",function(e,n){t===n&&m[0]!==document.activeElement&&m.val("function"!=typeof o.search?o.search:"")}),d},"f"),l.feature.register("paging",function(t,e){if(!t.oFeatures.bPaginate)return null;e=a.extend({buttons:l.ext.pager.numbers_length,type:t.sPaginationType,boundaryNumbers:!0,firstLast:!0,previousNext:!0,numbers:!0},e);var n=a("<div/>").addClass(t.oClasses.paging.container+(e.type?" paging_"+e.type:"")).append(a("<nav>").attr("aria-label","pagination").addClass(t.oClasses.paging.nav)),i=function(){Je(t,n.children(),e)};return t.aoDrawCallback.push(i),a(t.nTable).on("column-sizing.dt.DT",i),n},"p");var nn=0;l.feature.register("pageLength",function(t,e){var n=t.oFeatures;if(!n.bPaginate||!n.bLengthChange)return null;e=a.extend({menu:t.aLengthMenu,text:t.oLanguage.sLengthMenu},e);var i,r=t.oClasses.length,o=t.sTableId,s=e.menu,l=[],u=[];if(Array.isArray(s[0]))l=s[0],u=s[1];else for(i=0;i<s.length;i++)a.isPlainObject(s[i])?(l.push(s[i].value),u.push(s[i].label)):(l.push(s[i]),u.push(s[i]));var c=e.text.match(/_MENU_$/),h=e.text.match(/^_MENU_/),p=e.text.replace(/_MENU_/,""),d="<label>"+e.text+"</label>";h?d="_MENU_<label>"+p+"</label>":c&&(d="<label>"+p+"</label>_MENU_");var f="tmp-"+ +new Date,g=a("<div/>").addClass(r.container).append(d.replace("_MENU_",'<span id="'+f+'"></span>')),m=[];Array.prototype.slice.call(g.find("label")[0].childNodes).forEach(function(t){t.nodeType===Node.TEXT_NODE&&m.push({el:t,text:t.textContent})});var v=function(e){m.forEach(function(n){n.el.textContent=ae(t,n.text,e)})},y=a("<select/>",{"aria-controls":o,class:r.select});for(i=0;i<l.length;i++){var E=t.api.i18n("lengthLabels."+l[i],null);null===E&&(E="number"==typeof u[i]?t.fnFormatNumber(u[i]):u[i]),y[0][i]=new Option(E,l[i])}return g.find("label").attr("for","dt-length-"+nn),y.attr("id","dt-length-"+nn),nn++,g.find("#"+f).replaceWith(y),a("select",g).val(t._iDisplayLength).on("change.DT",function(){Pt(t,a(this).val()),ft(t)}),a(t.nTable).on("length.dt.DT",function(e,n,i){t===n&&(a("select",g).val(i),v(i))}),v(t._iDisplayLength),g},"l"),a.fn.dataTable=l,l.$=a,a.fn.dataTableSettings=l.settings,a.fn.dataTableExt=l.ext,a.fn.DataTable=function(t){return a(this).dataTable(t).api()},a.each(l,function(t,e){a.fn.DataTable[t]=e});const rn=l},5757:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(){return[]}},5764:(t,e,n)=>{"use strict";n.r(e)},5788:(t,e,n)=>{t.exports=[n(5355),n(8199),n(7837),n(732),n(1850),n(8883)]},5826:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});const i=function(){this.__data__=[],this.size=0};var r=n(7348);const o=function(t,e){for(var n=t.length;n--;)if((0,r.A)(t[n][0],e))return n;return-1};var s=Array.prototype.splice;const a=function(t){var e=this.__data__,n=o(e,t);return!(n<0)&&(n==e.length-1?e.pop():s.call(e,n,1),--this.size,!0)};const l=function(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]};const u=function(t){return o(this.__data__,t)>-1};const c=function(t,e){var n=this.__data__,i=o(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}h.prototype.clear=i,h.prototype.delete=a,h.prototype.get=l,h.prototype.has=u,h.prototype.set=c;const p=h},5955:(t,e,n)=>{"use strict";n.d(e,{A:()=>T});var i=n(3779),r=n(1408);const o=function(t,e,n,o){var s=n.length,a=s,l=!o;if(null==t)return!a;for(t=Object(t);s--;){var u=n[s];if(l&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var c=(u=n[s])[0],h=t[c],p=u[1];if(l&&u[2]){if(void 0===h&&!(c in t))return!1}else{var d=new i.A;if(o)var f=o(h,p,c,t,e,d);if(!(void 0===f?(0,r.A)(p,h,3,o,d):f))return!1}}return!0};var s=n(6809);const a=function(t){return t==t&&!(0,s.A)(t)};var l=n(6826);const u=function(t){for(var e=(0,l.A)(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,a(r)]}return e};const c=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}};const h=function(t){var e=u(t);return 1==e.length&&e[0][2]?c(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}};var p=n(6074);const d=function(t,e,n){var i=null==t?void 0:(0,p.A)(t,e);return void 0===i?n:i};var f=n(6928),g=n(9758),m=n(761);const v=function(t,e){return(0,g.A)(t)&&a(e)?c((0,m.A)(t),e):function(n){var i=d(n,t);return void 0===i&&i===e?(0,f.A)(n,t):(0,r.A)(e,i,3)}};var y=n(1100),E=n(8285);const _=function(t){return function(e){return null==e?void 0:e[t]}};const x=function(t){return function(e){return(0,p.A)(e,t)}};const b=function(t){return(0,g.A)(t)?_((0,m.A)(t)):x(t)};const T=function(t){return"function"==typeof t?t:null==t?y.A:"object"==typeof t?(0,E.A)(t)?v(t[0],t[1]):h(t):b(t)}},6037:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(7476),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=r&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===r&&i.A.process;const a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}()},6074:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(8563),r=n(761);const o=function(t,e){for(var n=0,o=(e=(0,i.A)(e,t)).length;null!=t&&n<o;)t=t[(0,r.A)(e[n++])];return n&&n==o?t:void 0}},6095:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="table",i=[],r="f0ce",o="M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z";e.definition={prefix:"fas",iconName:n,icon:[512,512,i,r,o]},e.faTable=e.definition,e.prefix="fas",e.iconName=n,e.width=512,e.height=512,e.ligatures=i,e.unicode=r,e.svgPathData=o},6118:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(8377);const r=function(){return!1};var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?i.A.Buffer:void 0;const l=(a?a.isBuffer:void 0)||r},6422:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}},6425:(t,e,n)=>{"use strict";n.d(e,{A:()=>tt});var i=n(3779);const r=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};var o=n(7903),s=n(6531),a=n(6826);const l=function(t,e){return t&&(0,s.A)(e,(0,a.A)(e),t)};var u=n(6962);const c=function(t,e){return t&&(0,s.A)(e,(0,u.A)(e),t)};var h=n(3382),p=n(1779),d=n(4508);const f=function(t,e){return(0,s.A)(t,(0,d.A)(t),e)};var g=n(2020),m=n(7827),v=n(5757);const y=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,g.A)(e,(0,d.A)(t)),t=(0,m.A)(t);return e}:v.A;const E=function(t,e){return(0,s.A)(t,y(t),e)};var _=n(6886),x=n(9091);const b=function(t){return(0,x.A)(t,u.A,y)};var T=n(4889),S=Object.prototype.hasOwnProperty;const A=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&S.call(t,"index")&&(n.index=t.index,n.input=t.input),n};var L=n(1273);const C=function(t,e){var n=e?(0,L.A)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var N=/\w*$/;const I=function(t){var e=new t.constructor(t.source,N.exec(t));return e.lastIndex=t.lastIndex,e};var w=n(7181),R=w.A?w.A.prototype:void 0,P=R?R.valueOf:void 0;const M=function(t){return P?Object(P.call(t)):{}};var O=n(9741);const k=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return(0,L.A)(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return C(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,O.A)(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return I(t);case"[object Symbol]":return M(t)}};var D=n(9557),G=n(8285),B=n(6118),j=n(8214);const F=function(t){return(0,j.A)(t)&&"[object Map]"==(0,T.A)(t)};var U=n(9161),H=n(6037),q=H.A&&H.A.isMap;const z=q?(0,U.A)(q):F;var V=n(6809);const W=function(t){return(0,j.A)(t)&&"[object Set]"==(0,T.A)(t)};var Z=H.A&&H.A.isSet;const Q=Z?(0,U.A)(Z):W;var X="[object Arguments]",Y="[object Function]",$="[object Object]",K={};K[X]=K["[object Array]"]=K["[object ArrayBuffer]"]=K["[object DataView]"]=K["[object Boolean]"]=K["[object Date]"]=K["[object Float32Array]"]=K["[object Float64Array]"]=K["[object Int8Array]"]=K["[object Int16Array]"]=K["[object Int32Array]"]=K["[object Map]"]=K["[object Number]"]=K[$]=K["[object RegExp]"]=K["[object Set]"]=K["[object String]"]=K["[object Symbol]"]=K["[object Uint8Array]"]=K["[object Uint8ClampedArray]"]=K["[object Uint16Array]"]=K["[object Uint32Array]"]=!0,K["[object Error]"]=K[Y]=K["[object WeakMap]"]=!1;const J=function t(e,n,s,d,g,m){var v,y=1&n,x=2&n,S=4&n;if(s&&(v=g?s(e,d,g,m):s(e)),void 0!==v)return v;if(!(0,V.A)(e))return e;var L=(0,G.A)(e);if(L){if(v=A(e),!y)return(0,p.A)(e,v)}else{var C=(0,T.A)(e),N=C==Y||"[object GeneratorFunction]"==C;if((0,B.A)(e))return(0,h.A)(e,y);if(C==$||C==X||N&&!g){if(v=x||N?{}:(0,D.A)(e),!y)return x?E(e,c(v,e)):f(e,l(v,e))}else{if(!K[C])return g?e:{};v=k(e,C,y)}}m||(m=new i.A);var I=m.get(e);if(I)return I;m.set(e,v),Q(e)?e.forEach(function(i){v.add(t(i,n,s,i,e,m))}):z(e)&&e.forEach(function(i,r){v.set(r,t(i,n,s,r,e,m))});var w=S?x?b:_.A:x?u.A:a.A,R=L?void 0:w(e);return r(R||e,function(i,r){R&&(i=e[r=i]),(0,o.A)(v,r,t(i,n,s,r,e,m))}),v};const tt=function(t){return J(t,5)}},6531:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(7903),r=n(8292);const o=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,l=e.length;++a<l;){var u=e[a],c=o?o(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),s?(0,r.A)(n,u,c):(0,i.A)(n,u,c)}return n}},6583:(t,e,n)=>{!function(t){"use strict";function e(t,e,n,i){this.cm=t,this.options=i;var r={listenForChanges:!1};for(var o in i)r[o]=i[o];r.className||(r.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(r),this.query=e,this.caseFold=n,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var s=this;t.on("change",this.changeHandler=function(t,e){s.onChange(e)})}t.defineExtension("showMatchesOnScrollbar",function(t,n,i){return"string"==typeof i&&(i={className:i}),i||(i={}),new e(this,t,n,i)});var n=1e3;function i(t,e,n){return t<=e?t:Math.max(e,t+n)}e.prototype.findMatches=function(){if(this.gap){for(var e=0;e<this.matches.length&&!((o=this.matches[e]).from.line>=this.gap.to);e++)o.to.line>=this.gap.from&&this.matches.splice(e--,1);for(var i=this.cm.getSearchCursor(this.query,t.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),r=this.options&&this.options.maxMatches||n;i.findNext();){var o;if((o={from:i.from(),to:i.to()}).from.line>=this.gap.to)break;if(this.matches.splice(e++,0,o),this.matches.length>r)break}this.gap=null}},e.prototype.onChange=function(e){var n=e.from.line,r=t.changeEnd(e).line,o=r-e.to.line;if(this.gap?(this.gap.from=Math.min(i(this.gap.from,n,o),e.from.line),this.gap.to=Math.max(i(this.gap.to,n,o),e.from.line)):this.gap={from:e.from.line,to:r+1},o)for(var s=0;s<this.matches.length;s++){var a=this.matches[s],l=i(a.from.line,n,o);l!=a.from.line&&(a.from=t.Pos(l,a.from.ch));var u=i(a.to.line,n,o);u!=a.to.line&&(a.to=t.Pos(u,a.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout(function(){c.updateAfterChange()},250)},e.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},e.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(n(1719),n(8023),n(9298))},6691:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});const i=(0,n(4636).A)({"&":"&","<":"<",">":">",'"':""","'":"'"});var r=n(2965),o=/[&<>"']/g,s=RegExp(o.source);const a=function(t){return(t=(0,r.A)(t))&&s.test(t)?t.replace(o,i):t}},6732:(t,e,n)=>{"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}function l(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,{MultiDrag:()=>Te,Sortable:()=>zt,Swap:()=>pe,default:()=>Le});function h(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var p=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=h(/Edge/i),f=h(/firefox/i),g=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),m=h(/iP(ad|od|hone)/i),v=h(/chrome/i)&&h(/android/i),y={capture:!1,passive:!1};function E(t,e,n){t.addEventListener(e,n,!p&&y)}function _(t,e,n){t.removeEventListener(e,n,!p&&y)}function x(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function b(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function T(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&x(t,e):x(t,e))||i&&t===n)return t;if(t===n)break}while(t=b(t))}return null}var S,A=/\s+/g;function L(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(A," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(A," ")}}function C(t,e,n){var i=t&&t.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"==typeof n?"":"px")}}function N(t,e){var n="";if("string"==typeof t)n=t;else do{var i=C(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function I(t,e,n){if(t){var i=t.getElementsByTagName(e),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function w(){var t=document.scrollingElement;return t||document.documentElement}function R(t,e,n,i,r){if(t.getBoundingClientRect||t===window){var o,s,a,l,u,c,h;if(t!==window&&t.parentNode&&t!==w()?(s=(o=t.getBoundingClientRect()).top,a=o.left,l=o.bottom,u=o.right,c=o.height,h=o.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,h=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!p))do{if(r&&r.getBoundingClientRect&&("none"!==C(r,"transform")||n&&"static"!==C(r,"position"))){var d=r.getBoundingClientRect();s-=d.top+parseInt(C(r,"border-top-width")),a-=d.left+parseInt(C(r,"border-left-width")),l=s+o.height,u=a+o.width;break}}while(r=r.parentNode);if(i&&t!==window){var f=N(r||t),g=f&&f.a,m=f&&f.d;f&&(l=(s/=m)+(c/=m),u=(a/=g)+(h/=g))}return{top:s,left:a,bottom:l,right:u,width:h,height:c}}}function P(t,e,n){for(var i=G(t,!0),r=R(t)[e];i;){var o=R(i)[n];if(!("top"===n||"left"===n?r>=o:r<=o))return i;if(i===w())break;i=G(i,!1)}return!1}function M(t,e,n,i){for(var r=0,o=0,s=t.children;o<s.length;){if("none"!==s[o].style.display&&s[o]!==zt.ghost&&(i||s[o]!==zt.dragged)&&T(s[o],n.draggable,t,!1)){if(r===e)return s[o];r++}o++}return null}function O(t,e){for(var n=t.lastElementChild;n&&(n===zt.ghost||"none"===C(n,"display")||e&&!x(n,e));)n=n.previousElementSibling;return n||null}function k(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===zt.clone||e&&!x(t,e)||n++;return n}function D(t){var e=0,n=0,i=w();if(t)do{var r=N(t),o=r.a,s=r.d;e+=t.scrollLeft*o,n+=t.scrollTop*s}while(t!==i&&(t=t.parentNode));return[e,n]}function G(t,e){if(!t||!t.getBoundingClientRect)return w();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=C(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return w();if(i||e)return n;i=!0}}}while(n=n.parentNode);return w()}function B(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function j(t,e){return function(){if(!S){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),S=setTimeout(function(){S=void 0},e)}}}function F(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function U(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function H(t,e){C(t,"position","absolute"),C(t,"top",e.top),C(t,"left",e.left),C(t,"width",e.width),C(t,"height",e.height)}function q(t){C(t,"position",""),C(t,"top",""),C(t,"left",""),C(t,"width",""),C(t,"height","")}function z(t,e,n){var i={};return Array.from(t.children).forEach(function(r){var o,s,a,l;if(T(r,e.draggable,t,!1)&&!r.animated&&r!==n){var u=R(r);i.left=Math.min(null!==(o=i.left)&&void 0!==o?o:1/0,u.left),i.top=Math.min(null!==(s=i.top)&&void 0!==s?s:1/0,u.top),i.right=Math.max(null!==(a=i.right)&&void 0!==a?a:-1/0,u.right),i.bottom=Math.max(null!==(l=i.bottom)&&void 0!==l?l:-1/0,u.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var V="Sortable"+(new Date).getTime();function W(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==C(t,"display")&&t!==zt.ghost){e.push({target:t,rect:R(t)});var n=r({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=N(t,!0);i&&(n.top-=i.f,n.left-=i.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var r=!1,o=0;e.forEach(function(t){var e=0,n=t.target,s=n.fromRect,a=R(n),l=n.prevFromRect,u=n.prevToRect,c=t.rect,h=N(n,!0);h&&(a.top-=h.f,a.left-=h.e),n.toRect=a,n.thisAnimationDuration&&B(l,a)&&!B(s,a)&&(c.top-a.top)/(c.left-a.left)===(s.top-a.top)/(s.left-a.left)&&(e=function(t,e,n,i){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*i.animation}(c,l,u,i.options)),B(a,s)||(n.prevFromRect=s,n.prevToRect=a,e||(e=i.options.animation),i.animate(n,c,a,e)),e&&(r=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),r?t=setTimeout(function(){"function"==typeof n&&n()},o):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){C(t,"transition",""),C(t,"transform","");var r=N(this.el),o=r&&r.a,s=r&&r.d,a=(e.left-n.left)/(o||1),l=(e.top-n.top)/(s||1);t.animatingX=!!a,t.animatingY=!!l,C(t,"transform","translate3d("+a+"px,"+l+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),C(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),C(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){C(t,"transition",""),C(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},i)}}}}var Z=[],Q={initializeByDefault:!0},X={mount:function(t){for(var e in Q)Q.hasOwnProperty(e)&&!(e in t)&&(t[e]=Q[e]);Z.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Z.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var o=t+"Global";Z.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][o]&&e[i.pluginName][o](r({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](r({sortable:e},n)))})},initializePlugins:function(t,e,n,i){for(var r in Z.forEach(function(i){var r=i.pluginName;if(t.options[r]||i.initializeByDefault){var o=new i(t,e,t.options);o.sortable=t,o.options=t.options,t[r]=o,a(n,o.defaults)}}),t.options)if(t.options.hasOwnProperty(r)){var o=this.modifyOption(t,r,t.options[r]);void 0!==o&&(t.options[r]=o)}},getEventProperties:function(t,e){var n={};return Z.forEach(function(i){"function"==typeof i.eventProperties&&a(n,i.eventProperties.call(e[i.pluginName],t))}),n},modifyOption:function(t,e,n){var i;return Z.forEach(function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(i=r.optionListeners[e].call(t[r.pluginName],n))}),i}};function Y(t){var e=t.sortable,n=t.rootEl,i=t.name,o=t.targetEl,s=t.cloneEl,a=t.toEl,l=t.fromEl,u=t.oldIndex,c=t.newIndex,h=t.oldDraggableIndex,f=t.newDraggableIndex,g=t.originalEvent,m=t.putSortable,v=t.extraEventProperties;if(e=e||n&&n[V]){var y,E=e.options,_="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||p||d?(y=document.createEvent("Event")).initEvent(i,!0,!0):y=new CustomEvent(i,{bubbles:!0,cancelable:!0}),y.to=a||n,y.from=l||n,y.item=o||n,y.clone=s,y.oldIndex=u,y.newIndex=c,y.oldDraggableIndex=h,y.newDraggableIndex=f,y.originalEvent=g,y.pullMode=m?m.lastPutMode:void 0;var x=r(r({},v),X.getEventProperties(i,e));for(var b in x)y[b]=x[b];n&&n.dispatchEvent(y),E[_]&&E[_].call(e,y)}}var $=["evt"],K=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,o=l(n,$);X.pluginEvent.bind(zt)(t,e,r({dragEl:tt,parentEl:et,ghostEl:nt,rootEl:it,nextEl:rt,lastDownEl:ot,cloneEl:st,cloneHidden:at,dragStarted:_t,putSortable:dt,activeSortable:zt.active,originalEvent:i,oldIndex:lt,oldDraggableIndex:ct,newIndex:ut,newDraggableIndex:ht,hideGhostForTarget:Ft,unhideGhostForTarget:Ut,cloneNowHidden:function(){at=!0},cloneNowShown:function(){at=!1},dispatchSortableEvent:function(t){J({sortable:e,name:t,originalEvent:i})}},o))};function J(t){Y(r({putSortable:dt,cloneEl:st,targetEl:tt,rootEl:it,oldIndex:lt,oldDraggableIndex:ct,newIndex:ut,newDraggableIndex:ht},t))}var tt,et,nt,it,rt,ot,st,at,lt,ut,ct,ht,pt,dt,ft,gt,mt,vt,yt,Et,_t,xt,bt,Tt,St,At=!1,Lt=!1,Ct=[],Nt=!1,It=!1,wt=[],Rt=!1,Pt=[],Mt="undefined"!=typeof document,Ot=m,kt=d||p?"cssFloat":"float",Dt=Mt&&!v&&!m&&"draggable"in document.createElement("div"),Gt=function(){if(Mt){if(p)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Bt=function(t,e){var n=C(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=M(t,0,e),o=M(t,1,e),s=r&&C(r),a=o&&C(o),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+R(r).width,u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+R(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&s.float&&"none"!==s.float){var c="left"===s.float?"left":"right";return!o||"both"!==a.clear&&a.clear!==c?"horizontal":"vertical"}return r&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=i&&"none"===n[kt]||o&&"none"===n[kt]&&l+u>i)?"vertical":"horizontal"},jt=function(t){function e(t,n){return function(i,r,o,s){var a=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==t&&(n||a))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(i,r,o,s),n)(i,r,o,s);var l=(n?i:r).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==o(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Ft=function(){!Gt&&nt&&C(nt,"display","none")},Ut=function(){!Gt&&nt&&C(nt,"display","")};Mt&&!v&&document.addEventListener("click",function(t){if(Lt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Lt=!1,!1},!0);var Ht=function(t){if(tt){t=t.touches?t.touches[0]:t;var e=(r=t.clientX,o=t.clientY,Ct.some(function(t){var e=t[V].options.emptyInsertThreshold;if(e&&!O(t)){var n=R(t),i=r>=n.left-e&&r<=n.right+e,a=o>=n.top-e&&o<=n.bottom+e;return i&&a?s=t:void 0}}),s);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[V]._onDragOver(n)}}var r,o,s},qt=function(t){tt&&tt.parentNode[V]._isOutsideThisEl(t.target)};function zt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=a({},e),t[V]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Bt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zt.supportPointer&&"PointerEvent"in window&&(!g||m),emptyInsertThreshold:5};for(var i in X.initializePlugins(this,t,n),n)!(i in e)&&(e[i]=n[i]);for(var r in jt(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Dt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?E(t,"pointerdown",this._onTapStart):(E(t,"mousedown",this._onTapStart),E(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(E(t,"dragover",this),E(t,"dragenter",this)),Ct.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),a(this,W())}function Vt(t,e,n,i,r,o,s,a){var l,u,c=t[V],h=c.options.onMove;return!window.CustomEvent||p||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=i,l.related=r||e,l.relatedRect=o||R(e),l.willInsertAfter=a,l.originalEvent=s,t.dispatchEvent(l),h&&(u=h.call(c,l,s)),u}function Wt(t){t.draggable=!1}function Zt(){Rt=!1}function Qt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;n--;)i+=e.charCodeAt(n);return i.toString(36)}function Xt(t){return setTimeout(t,0)}function Yt(t){return clearTimeout(t)}zt.prototype={constructor:zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(xt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,tt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,o=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(s||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,u=i.filter;if(function(t){Pt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var i=e[n];i.checked&&Pt.push(i)}}(n),!tt&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!g||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=T(a,i.draggable,n,!1))&&a.animated||ot===a)){if(lt=k(a),ct=k(a,i.draggable),"function"==typeof u){if(u.call(this,t,a,this))return J({sortable:e,rootEl:l,name:"filter",targetEl:a,toEl:n,fromEl:n}),K("filter",e,{evt:t}),void(r&&t.preventDefault())}else if(u&&(u=u.split(",").some(function(i){if(i=T(l,i.trim(),n,!1))return J({sortable:e,rootEl:i,name:"filter",targetEl:a,fromEl:n,toEl:n}),K("filter",e,{evt:t}),!0})))return void(r&&t.preventDefault());i.handle&&!T(l,i.handle,n,!1)||this._prepareDragStart(t,s,a)}}},_prepareDragStart:function(t,e,n){var i,r=this,o=r.el,s=r.options,a=o.ownerDocument;if(n&&!tt&&n.parentNode===o){var l=R(n);if(it=o,et=(tt=n).parentNode,rt=tt.nextSibling,ot=n,pt=s.group,zt.dragged=tt,ft={target:tt,clientX:(e||t).clientX,clientY:(e||t).clientY},yt=ft.clientX-l.left,Et=ft.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,tt.style["will-change"]="all",i=function(){K("delayEnded",r,{evt:t}),zt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!f&&r.nativeDraggable&&(tt.draggable=!0),r._triggerDragStart(t,e),J({sortable:r,name:"choose",originalEvent:t}),L(tt,s.chosenClass,!0))},s.ignore.split(",").forEach(function(t){I(tt,t.trim(),Wt)}),E(a,"dragover",Ht),E(a,"mousemove",Ht),E(a,"touchmove",Ht),s.supportPointer?(E(a,"pointerup",r._onDrop),!this.nativeDraggable&&E(a,"pointercancel",r._onDrop)):(E(a,"mouseup",r._onDrop),E(a,"touchend",r._onDrop),E(a,"touchcancel",r._onDrop)),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,tt.draggable=!0),K("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!e||this.nativeDraggable&&(d||p))i();else{if(zt.eventCanceled)return void this._onDrop();s.supportPointer?(E(a,"pointerup",r._disableDelayedDrag),E(a,"pointercancel",r._disableDelayedDrag)):(E(a,"mouseup",r._disableDelayedDrag),E(a,"touchend",r._disableDelayedDrag),E(a,"touchcancel",r._disableDelayedDrag)),E(a,"mousemove",r._delayedDragTouchMoveHandler),E(a,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&E(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){tt&&Wt(tt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._disableDelayedDrag),_(t,"touchend",this._disableDelayedDrag),_(t,"touchcancel",this._disableDelayedDrag),_(t,"pointerup",this._disableDelayedDrag),_(t,"pointercancel",this._disableDelayedDrag),_(t,"mousemove",this._delayedDragTouchMoveHandler),_(t,"touchmove",this._delayedDragTouchMoveHandler),_(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?E(document,"pointermove",this._onTouchMove):E(document,e?"touchmove":"mousemove",this._onTouchMove):(E(tt,"dragend",this),E(it,"dragstart",this._onDragStart));try{document.selection?Xt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(At=!1,it&&tt){K("dragStarted",this,{evt:e}),this.nativeDraggable&&E(document,"dragover",qt);var n=this.options;!t&&L(tt,n.dragClass,!1),L(tt,n.ghostClass,!0),zt.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(gt){this._lastX=gt.clientX,this._lastY=gt.clientY,Ft();for(var t=document.elementFromPoint(gt.clientX,gt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(gt.clientX,gt.clientY))!==e;)e=t;if(tt.parentNode[V]._isOutsideThisEl(t),e)do{if(e[V]){if(e[V]._onDragOver({clientX:gt.clientX,clientY:gt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=b(e));Ut()}},_onTouchMove:function(t){if(ft){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,o=nt&&N(nt,!0),s=nt&&o&&o.a,a=nt&&o&&o.d,l=Ot&&St&&D(St),u=(r.clientX-ft.clientX+i.x)/(s||1)+(l?l[0]-wt[0]:0)/(s||1),c=(r.clientY-ft.clientY+i.y)/(a||1)+(l?l[1]-wt[1]:0)/(a||1);if(!zt.active&&!At){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(nt){o?(o.e+=u-(mt||0),o.f+=c-(vt||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");C(nt,"webkitTransform",h),C(nt,"mozTransform",h),C(nt,"msTransform",h),C(nt,"transform",h),mt=u,vt=c,gt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!nt){var t=this.options.fallbackOnBody?document.body:it,e=R(tt,!0,Ot,!0,t),n=this.options;if(Ot){for(St=t;"static"===C(St,"position")&&"none"===C(St,"transform")&&St!==document;)St=St.parentNode;St!==document.body&&St!==document.documentElement?(St===document&&(St=w()),e.top+=St.scrollTop,e.left+=St.scrollLeft):St=w(),wt=D(St)}L(nt=tt.cloneNode(!0),n.ghostClass,!1),L(nt,n.fallbackClass,!0),L(nt,n.dragClass,!0),C(nt,"transition",""),C(nt,"transform",""),C(nt,"box-sizing","border-box"),C(nt,"margin",0),C(nt,"top",e.top),C(nt,"left",e.left),C(nt,"width",e.width),C(nt,"height",e.height),C(nt,"opacity","0.8"),C(nt,"position",Ot?"absolute":"fixed"),C(nt,"zIndex","100000"),C(nt,"pointerEvents","none"),zt.ghost=nt,t.appendChild(nt),C(nt,"transform-origin",yt/parseInt(nt.style.width)*100+"% "+Et/parseInt(nt.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,r=n.options;K("dragStart",this,{evt:t}),zt.eventCanceled?this._onDrop():(K("setupClone",this),zt.eventCanceled||((st=U(tt)).removeAttribute("id"),st.draggable=!1,st.style["will-change"]="",this._hideClone(),L(st,this.options.chosenClass,!1),zt.clone=st),n.cloneId=Xt(function(){K("clone",n),zt.eventCanceled||(n.options.removeCloneOnHide||it.insertBefore(st,tt),n._hideClone(),J({sortable:n,name:"clone"}))}),!e&&L(tt,r.dragClass,!0),e?(Lt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(_(document,"mouseup",n._onDrop),_(document,"touchend",n._onDrop),_(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,tt)),E(document,"drop",n),C(tt,"transform","translateZ(0)")),At=!0,n._dragStartId=Xt(n._dragStarted.bind(n,e,t)),E(document,"selectstart",n),_t=!0,window.getSelection().removeAllRanges(),g&&C(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,i,o,s=this.el,a=t.target,l=this.options,u=l.group,c=zt.active,h=pt===u,p=l.sort,d=dt||c,f=this,g=!1;if(!Rt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=T(a,l.draggable,s,!0),B("dragOver"),zt.eventCanceled)return g;if(tt.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||f._ignoreWhileAnimating===a)return U(!1);if(Lt=!1,c&&!l.disabled&&(h?p||(i=et!==it):dt===this||(this.lastPutMode=pt.checkPull(this,c,tt,t))&&u.checkPut(this,c,tt,t))){if(o="vertical"===this._getDirection(t,a),e=R(tt),B("dragOverValid"),zt.eventCanceled)return g;if(i)return et=it,j(),this._hideClone(),B("revert"),zt.eventCanceled||(rt?it.insertBefore(tt,rt):it.appendChild(tt)),U(!0);var m=O(s,l.draggable);if(!m||function(t,e,n){var i=R(O(n.el,n.options.draggable)),r=z(n.el,n.options,nt),o=10;return e?t.clientX>r.right+o||t.clientY>i.bottom&&t.clientX>i.left:t.clientY>r.bottom+o||t.clientX>i.right&&t.clientY>i.top}(t,o,this)&&!m.animated){if(m===tt)return U(!1);if(m&&s===t.target&&(a=m),a&&(n=R(a)),!1!==Vt(it,s,tt,e,a,n,t,!!a))return j(),m&&m.nextSibling?s.insertBefore(tt,m.nextSibling):s.appendChild(tt),et=s,H(),U(!0)}else if(m&&function(t,e,n){var i=R(M(n.el,0,n.options,!0)),r=z(n.el,n.options,nt),o=10;return e?t.clientX<r.left-o||t.clientY<i.top&&t.clientX<i.right:t.clientY<r.top-o||t.clientY<i.bottom&&t.clientX<i.left}(t,o,this)){var v=M(s,0,l,!0);if(v===tt)return U(!1);if(n=R(a=v),!1!==Vt(it,s,tt,e,a,n,t,!1))return j(),s.insertBefore(tt,v),et=s,H(),U(!0)}else if(a.parentNode===s){n=R(a);var y,E,_,x=tt.parentNode!==s,b=!function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,o=n?t.width:t.height,s=n?e.left:e.top,a=n?e.right:e.bottom,l=n?e.width:e.height;return i===s||r===a||i+o/2===s+l/2}(tt.animated&&tt.toRect||e,a.animated&&a.toRect||n,o),S=o?"top":"left",A=P(a,"top","top")||P(tt,"top","top"),N=A?A.scrollTop:void 0;if(xt!==a&&(E=n[S],Nt=!1,It=!b&&l.invertSwap||x),y=function(t,e,n,i,r,o,s,a){var l=i?t.clientY:t.clientX,u=i?n.height:n.width,c=i?n.top:n.left,h=i?n.bottom:n.right,p=!1;if(!s)if(a&&Tt<u*r){if(!Nt&&(1===bt?l>c+u*o/2:l<h-u*o/2)&&(Nt=!0),Nt)p=!0;else if(1===bt?l<c+Tt:l>h-Tt)return-bt}else if(l>c+u*(1-r)/2&&l<h-u*(1-r)/2)return function(t){return k(tt)<k(t)?1:-1}(e);if((p=p||s)&&(l<c+u*o/2||l>h-u*o/2))return l>c+u/2?1:-1;return 0}(t,a,n,o,b?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,It,xt===a),0!==y){var I=k(tt);do{I-=y,_=et.children[I]}while(_&&("none"===C(_,"display")||_===nt))}if(0===y||_===a)return U(!1);xt=a,bt=y;var w=a.nextElementSibling,D=!1,G=Vt(it,s,tt,e,a,n,t,D=1===y);if(!1!==G)return 1!==G&&-1!==G||(D=1===G),Rt=!0,setTimeout(Zt,30),j(),D&&!w?s.appendChild(tt):a.parentNode.insertBefore(tt,D?w:a),A&&F(A,0,N-A.scrollTop),et=tt.parentNode,void 0===E||It||(Tt=Math.abs(E-R(a)[S])),H(),U(!0)}if(s.contains(tt))return U(!1)}return!1}function B(l,u){K(l,f,r({evt:t,isOwner:h,axis:o?"vertical":"horizontal",revert:i,dragRect:e,targetRect:n,canSort:p,fromSortable:d,target:a,completed:U,onMove:function(n,i){return Vt(it,s,tt,e,n,R(n),t,i)},changed:H},u))}function j(){B("dragOverAnimationCapture"),f.captureAnimationState(),f!==d&&d.captureAnimationState()}function U(e){return B("dragOverCompleted",{insertion:e}),e&&(h?c._hideClone():c._showClone(f),f!==d&&(L(tt,dt?dt.options.ghostClass:c.options.ghostClass,!1),L(tt,l.ghostClass,!0)),dt!==f&&f!==zt.active?dt=f:f===zt.active&&dt&&(dt=null),d===f&&(f._ignoreWhileAnimating=a),f.animateAll(function(){B("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===tt&&!tt.animated||a===s&&!a.animated)&&(xt=null),l.dragoverBubble||t.rootEl||a===document||(tt.parentNode[V]._isOutsideThisEl(t.target),!e&&Ht(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function H(){ut=k(tt),ht=k(tt,l.draggable),J({sortable:f,name:"change",toEl:s,newIndex:ut,newDraggableIndex:ht,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",Ht),_(document,"mousemove",Ht),_(document,"touchmove",Ht)},_offUpEvents:function(){var t=this.el.ownerDocument;_(t,"mouseup",this._onDrop),_(t,"touchend",this._onDrop),_(t,"pointerup",this._onDrop),_(t,"pointercancel",this._onDrop),_(t,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ut=k(tt),ht=k(tt,n.draggable),K("drop",this,{evt:t}),et=tt&&tt.parentNode,ut=k(tt),ht=k(tt,n.draggable),zt.eventCanceled||(At=!1,It=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Yt(this.cloneId),Yt(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),g&&C(document.body,"user-select",""),C(tt,"transform",""),t&&(_t&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),nt&&nt.parentNode&&nt.parentNode.removeChild(nt),(it===et||dt&&"clone"!==dt.lastPutMode)&&st&&st.parentNode&&st.parentNode.removeChild(st),tt&&(this.nativeDraggable&&_(tt,"dragend",this),Wt(tt),tt.style["will-change"]="",_t&&!At&&L(tt,dt?dt.options.ghostClass:this.options.ghostClass,!1),L(tt,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:et,newIndex:null,newDraggableIndex:null,originalEvent:t}),it!==et?(ut>=0&&(J({rootEl:et,name:"add",toEl:et,fromEl:it,originalEvent:t}),J({sortable:this,name:"remove",toEl:et,originalEvent:t}),J({rootEl:et,name:"sort",toEl:et,fromEl:it,originalEvent:t}),J({sortable:this,name:"sort",toEl:et,originalEvent:t})),dt&&dt.save()):ut!==lt&&ut>=0&&(J({sortable:this,name:"update",toEl:et,originalEvent:t}),J({sortable:this,name:"sort",toEl:et,originalEvent:t})),zt.active&&(null!=ut&&-1!==ut||(ut=lt,ht=ct),J({sortable:this,name:"end",toEl:et,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){K("nulling",this),it=tt=et=nt=rt=st=ot=at=ft=gt=_t=ut=ht=lt=ct=xt=bt=dt=pt=zt.dragged=zt.ghost=zt.clone=zt.active=null,Pt.forEach(function(t){t.checked=!0}),Pt.length=mt=vt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":tt&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)T(t=n[i],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Qt(t));return e},sort:function(t,e){var n={},i=this.el;this.toArray().forEach(function(t,e){var r=i.children[e];T(r,this.options.draggable,i,!1)&&(n[t]=r)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(i.removeChild(n[t]),i.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return T(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=X.modifyOption(this,t,e);n[t]=void 0!==i?i:e,"group"===t&&jt(n)},destroy:function(){K("destroy",this);var t=this.el;t[V]=null,_(t,"mousedown",this._onTapStart),_(t,"touchstart",this._onTapStart),_(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(t,"dragover",this),_(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ct.splice(Ct.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!at){if(K("hideClone",this),zt.eventCanceled)return;C(st,"display","none"),this.options.removeCloneOnHide&&st.parentNode&&st.parentNode.removeChild(st),at=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(at){if(K("showClone",this),zt.eventCanceled)return;tt.parentNode!=it||this.options.group.revertClone?rt?it.insertBefore(st,rt):it.appendChild(st):it.insertBefore(st,tt),this.options.group.revertClone&&this.animate(tt,st),C(st,"display",""),at=!1}}else this._hideClone()}},Mt&&E(document,"touchmove",function(t){(zt.active||At)&&t.cancelable&&t.preventDefault()}),zt.utils={on:E,off:_,css:C,find:I,is:function(t,e){return!!T(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:j,closest:T,toggleClass:L,clone:U,index:k,nextTick:Xt,cancelNextTick:Yt,detectDirection:Bt,getChild:M,expando:V},zt.get=function(t){return t[V]},zt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(zt.utils=r(r({},zt.utils),t.utils)),X.mount(t)})},zt.create=function(t,e){return new zt(t,e)},zt.version="1.15.6";var $t,Kt,Jt,te,ee,ne,ie=[],re=!1;function oe(){ie.forEach(function(t){clearInterval(t.pid)}),ie=[]}function se(){clearInterval(ne)}var ae,le=j(function(t,e,n,i){if(e.scroll){var r,o=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,u=w(),c=!1;Kt!==n&&(Kt=n,oe(),$t=e.scroll,r=e.scrollFn,!0===$t&&($t=G(n,!0)));var h=0,p=$t;do{var d=p,f=R(d),g=f.top,m=f.bottom,v=f.left,y=f.right,E=f.width,_=f.height,x=void 0,b=void 0,T=d.scrollWidth,S=d.scrollHeight,A=C(d),L=d.scrollLeft,N=d.scrollTop;d===u?(x=E<T&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),b=_<S&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(x=E<T&&("auto"===A.overflowX||"scroll"===A.overflowX),b=_<S&&("auto"===A.overflowY||"scroll"===A.overflowY));var I=x&&(Math.abs(y-o)<=a&&L+E<T)-(Math.abs(v-o)<=a&&!!L),P=b&&(Math.abs(m-s)<=a&&N+_<S)-(Math.abs(g-s)<=a&&!!N);if(!ie[h])for(var M=0;M<=h;M++)ie[M]||(ie[M]={});ie[h].vx==I&&ie[h].vy==P&&ie[h].el===d||(ie[h].el=d,ie[h].vx=I,ie[h].vy=P,clearInterval(ie[h].pid),0==I&&0==P||(c=!0,ie[h].pid=setInterval(function(){i&&0===this.layer&&zt.active._onTouchMove(ee);var e=ie[this.layer].vy?ie[this.layer].vy*l:0,n=ie[this.layer].vx?ie[this.layer].vx*l:0;"function"==typeof r&&"continue"!==r.call(zt.dragged.parentNode[V],n,e,t,ee,ie[this.layer].el)||F(ie[this.layer].el,n,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&p!==u&&(p=G(p,!1)));re=c}},30),ue=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,r=t.activeSortable,o=t.dispatchSortableEvent,s=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var l=n||r;s();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(u.clientX,u.clientY);a(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function ce(){}function he(){}function pe(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;ae=e},dragOverValid:function(t){var e=t.completed,n=t.target,i=t.onMove,r=t.activeSortable,o=t.changed,s=t.cancel;if(r.options.swap){var a=this.sortable.el,l=this.options;if(n&&n!==a){var u=ae;!1!==i(n)?(L(n,l.swapClass,!0),ae=n):ae=null,u&&u!==ae&&L(u,l.swapClass,!1)}o(),e(!0),s()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,i=t.dragEl,r=n||this.sortable,o=this.options;ae&&L(ae,o.swapClass,!1),ae&&(o.swap||n&&n.options.swap)&&i!==ae&&(r.captureAnimationState(),r!==e&&e.captureAnimationState(),function(t,e){var n,i,r=t.parentNode,o=e.parentNode;if(!r||!o||r.isEqualNode(e)||o.isEqualNode(t))return;n=k(t),i=k(e),r.isEqualNode(o)&&n<i&&i++;r.insertBefore(e,r.children[n]),o.insertBefore(t,o.children[i])}(i,ae),r.animateAll(),r!==e&&e.animateAll())},nulling:function(){ae=null}},a(t,{pluginName:"swap",eventProperties:function(){return{swapItem:ae}}})}ce.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=M(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:ue},a(ce,{pluginName:"revertOnSpill"}),he.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:ue},a(he,{pluginName:"removeOnSpill"});var de,fe,ge,me,ve,ye=[],Ee=[],_e=!1,xe=!1,be=!1;function Te(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.avoidImplicitDeselect||(t.options.supportPointer?E(document,"pointerup",this._deselectMultiDrag):(E(document,"mouseup",this._deselectMultiDrag),E(document,"touchend",this._deselectMultiDrag))),E(document,"keydown",this._checkKeyDown),E(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(e,n){var i="";ye.length&&fe===t?ye.forEach(function(t,e){i+=(e?", ":"")+t.textContent}):i=n.textContent,e.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;ge=e},delayEnded:function(){this.isMultiDrag=~ye.indexOf(ge)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var i=0;i<ye.length;i++)Ee.push(U(ye[i])),Ee[i].sortableIndex=ye[i].sortableIndex,Ee[i].draggable=!1,Ee[i].style["will-change"]="",L(Ee[i],this.options.selectedClass,!1),ye[i]===ge&&L(Ee[i],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,i=t.dispatchSortableEvent,r=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ye.length&&fe===e&&(Se(!0,n),i("clone"),r()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,i=t.cancel;this.isMultiDrag&&(Se(!1,n),Ee.forEach(function(t){C(t,"display","")}),e(),ve=!1,i())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),i=t.cancel;this.isMultiDrag&&(Ee.forEach(function(t){C(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),ve=!0,i())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&fe&&fe.multiDrag._deselectMultiDrag(),ye.forEach(function(t){t.sortableIndex=k(t)}),ye=ye.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),be=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){ye.forEach(function(t){t!==ge&&C(t,"position","absolute")});var i=R(ge,!1,!0,!0);ye.forEach(function(t){t!==ge&&H(t,i)}),xe=!0,_e=!0}n.animateAll(function(){xe=!1,_e=!1,e.options.animation&&ye.forEach(function(t){q(t)}),e.options.sort&&Ae()})}},dragOver:function(t){var e=t.target,n=t.completed,i=t.cancel;xe&&~ye.indexOf(e)&&(n(!1),i())},revert:function(t){var e=t.fromSortable,n=t.rootEl,i=t.sortable,r=t.dragRect;ye.length>1&&(ye.forEach(function(t){i.addAnimationState({target:t,rect:xe?R(t):r}),q(t),t.fromRect=r,e.removeAnimationState(t)}),xe=!1,function(t,e){ye.forEach(function(n,i){var r=e.children[n.sortableIndex+(t?Number(i):0)];r?e.insertBefore(n,r):e.appendChild(n)})}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,i=t.insertion,r=t.activeSortable,o=t.parentEl,s=t.putSortable,a=this.options;if(i){if(n&&r._hideClone(),_e=!1,a.animation&&ye.length>1&&(xe||!n&&!r.options.sort&&!s)){var l=R(ge,!1,!0,!0);ye.forEach(function(t){t!==ge&&(H(t,l),o.appendChild(t))}),xe=!0}if(!n)if(xe||Ae(),ye.length>1){var u=ve;r._showClone(e),r.options.animation&&!ve&&u&&Ee.forEach(function(t){r.addAnimationState({target:t,rect:me}),t.fromRect=me,t.thisAnimationDuration=null})}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,i=t.activeSortable;if(ye.forEach(function(t){t.thisAnimationDuration=null}),i.options.animation&&!n&&i.multiDrag.isMultiDrag){me=a({},e);var r=N(ge,!0);me.top-=r.f,me.left-=r.e}},dragOverAnimationComplete:function(){xe&&(xe=!1,Ae())},drop:function(t){var e=t.originalEvent,n=t.rootEl,i=t.parentEl,r=t.sortable,o=t.dispatchSortableEvent,s=t.oldIndex,a=t.putSortable,l=a||this.sortable;if(e){var u=this.options,c=i.children;if(!be)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),L(ge,u.selectedClass,!~ye.indexOf(ge)),~ye.indexOf(ge))ye.splice(ye.indexOf(ge),1),de=null,Y({sortable:r,rootEl:n,name:"deselect",targetEl:ge,originalEvent:e});else{if(ye.push(ge),Y({sortable:r,rootEl:n,name:"select",targetEl:ge,originalEvent:e}),e.shiftKey&&de&&r.el.contains(de)){var h=k(de),p=k(ge);~h&&~p&&h!==p&&function(){var t,o;p>h?(o=h,t=p):(o=p,t=h+1);for(var s=u.filter;o<t;o++){if(!~ye.indexOf(c[o]))if(T(c[o],u.draggable,i,!1))s&&("function"==typeof s?s.call(r,e,c[o],r):s.split(",").some(function(t){return T(c[o],t.trim(),i,!1)}))||(L(c[o],u.selectedClass,!0),ye.push(c[o]),Y({sortable:r,rootEl:n,name:"select",targetEl:c[o],originalEvent:e}))}}()}else de=ge;fe=l}if(be&&this.isMultiDrag){if(xe=!1,(i[V].options.sort||i!==n)&&ye.length>1){var d=R(ge),f=k(ge,":not(."+this.options.selectedClass+")");if(!_e&&u.animation&&(ge.thisAnimationDuration=null),l.captureAnimationState(),!_e&&(u.animation&&(ge.fromRect=d,ye.forEach(function(t){if(t.thisAnimationDuration=null,t!==ge){var e=xe?R(t):d;t.fromRect=e,l.addAnimationState({target:t,rect:e})}})),Ae(),ye.forEach(function(t){c[f]?i.insertBefore(t,c[f]):i.appendChild(t),f++}),s===k(ge))){var g=!1;ye.forEach(function(t){t.sortableIndex===k(t)||(g=!0)}),g&&(o("update"),o("sort"))}ye.forEach(function(t){q(t)}),l.animateAll()}fe=l}(n===i||a&&"clone"!==a.lastPutMode)&&Ee.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=be=!1,Ee.length=0},destroyGlobal:function(){this._deselectMultiDrag(),_(document,"pointerup",this._deselectMultiDrag),_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==be&&be||fe!==this.sortable||t&&T(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;ye.length;){var e=ye[0];L(e,this.options.selectedClass,!1),ye.shift(),Y({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[V];e&&e.options.multiDrag&&!~ye.indexOf(t)&&(fe&&fe!==e&&(fe.multiDrag._deselectMultiDrag(),fe=e),L(t,e.options.selectedClass,!0),ye.push(t))},deselect:function(t){var e=t.parentNode[V],n=ye.indexOf(t);e&&e.options.multiDrag&&~n&&(L(t,e.options.selectedClass,!1),ye.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return ye.forEach(function(i){var r;e.push({multiDragElement:i,index:i.sortableIndex}),r=xe&&i!==ge?-1:xe?k(i,":not(."+t.options.selectedClass+")"):k(i),n.push({multiDragElement:i,index:r})}),{items:u(ye),clones:[].concat(Ee),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Se(t,e){Ee.forEach(function(n,i){var r=e.children[n.sortableIndex+(t?Number(i):0)];r?e.insertBefore(n,r):e.appendChild(n)})}function Ae(){ye.forEach(function(t){t!==ge&&t.parentNode&&t.parentNode.removeChild(t)})}zt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):this.options.supportPointer?E(document,"pointermove",this._handleFallbackAutoScroll):e.touches?E(document,"touchmove",this._handleFallbackAutoScroll):E(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),se(),oe(),clearTimeout(S),S=void 0},nulling:function(){ee=Kt=$t=re=ne=Jt=te=null,ie.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(i,r);if(ee=t,e||this.options.forceAutoScrollFallback||d||p||g){le(t,this.options,o,e);var s=G(o,!0);!re||ne&&i===Jt&&r===te||(ne&&se(),ne=setInterval(function(){var o=G(document.elementFromPoint(i,r),!0);o!==s&&(s=o,oe()),le(t,n.options,o,e)},10),Jt=i,te=r)}else{if(!this.options.bubbleScroll||G(o,!0)===w())return void oe();le(t,this.options,G(o,!1),!1)}}},a(t,{pluginName:"scroll",initializeByDefault:!0})}),zt.mount(he,ce);const Le=zt},6787:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(1671),r=n(8377);const o=(0,i.A)(r.A,"Map")},6809:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},6824:(t,e,n)=>{"use strict";n.r(e)},6826:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(4479),r=n(3001),o=n(7242);const s=function(t){return(0,o.A)(t)?(0,i.A)(t):(0,r.A)(t)}},6855:(t,e,n)=>{"use strict";n.r(e)},6886:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9091),r=n(4508),o=n(6826);const s=function(t){return(0,i.A)(t,o.A,r.A)}},6918:t=>{function e(n,i,r,o){var s=Object.defineProperty;try{s({},"",{})}catch(n){s=0}t.exports=e=function(t,n,i,r){function o(n,i){e(t,n,function(t){return this._invoke(n,i,t)})}n?s?s(t,n,{value:i,enumerable:!r,configurable:!r,writable:!r}):t[n]=i:(o("next",0),o("throw",1),o("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,i,r,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},6928:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});const i=function(t,e){return null!=t&&e in Object(t)};var r=n(8563),o=n(2078),s=n(8285),a=n(3869),l=n(7554),u=n(761);const c=function(t,e,n){for(var i=-1,c=(e=(0,r.A)(e,t)).length,h=!1;++i<c;){var p=(0,u.A)(e[i]);if(!(h=null!=t&&n(t,p)))break;t=t[p]}return h||++i!=c?h:!!(c=null==t?0:t.length)&&(0,l.A)(c)&&(0,a.A)(p,c)&&((0,s.A)(t)||(0,o.A)(t))};const h=function(t,e){return null!=t&&c(t,e,i)}},6962:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(4479),r=n(6809),o=n(4603);const s=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var a=Object.prototype.hasOwnProperty;const l=function(t){if(!(0,r.A)(t))return s(t);var e=(0,o.A)(t),n=[];for(var i in t)("constructor"!=i||!e&&a.call(t,i))&&n.push(i);return n};var u=n(7242);const c=function(t){return(0,u.A)(t)?(0,i.A)(t,!0):l(t)}},6988:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(7348),r=n(7242),o=n(3869),s=n(6809);const a=function(t,e,n){if(!(0,s.A)(n))return!1;var a=typeof e;return!!("number"==a?(0,r.A)(n)&&(0,o.A)(e,n.length):"string"==a&&e in n)&&(0,i.A)(n[e],t)}},7167:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(1671);const r=function(){try{var t=(0,i.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},7181:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=n(8377).A.Symbol},7204:(t,e,n)=>{"use strict";n.d(e,{A:()=>O});var i=n(3779),r=n(8292),o=n(7348);const s=function(t,e,n){(void 0!==n&&!(0,o.A)(t[e],n)||void 0===n&&!(e in t))&&(0,r.A)(t,e,n)};var a=n(2984),l=n(3382),u=n(9741),c=n(1779),h=n(9557),p=n(2078),d=n(8285),f=n(7242),g=n(8214);const m=function(t){return(0,g.A)(t)&&(0,f.A)(t)};var v=n(6118),y=n(9790),E=n(6809),_=n(2977),x=n(7827),b=Function.prototype,T=Object.prototype,S=b.toString,A=T.hasOwnProperty,L=S.call(Object);const C=function(t){if(!(0,g.A)(t)||"[object Object]"!=(0,_.A)(t))return!1;var e=(0,x.A)(t);if(null===e)return!0;var n=A.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&S.call(n)==L};var N=n(4249);const I=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var w=n(6531),R=n(6962);const P=function(t){return(0,w.A)(t,(0,R.A)(t))};const M=function(t,e,n,i,r,o,a){var f=I(t,n),g=I(e,n),_=a.get(g);if(_)s(t,n,_);else{var x=o?o(f,g,n+"",t,e,a):void 0,b=void 0===x;if(b){var T=(0,d.A)(g),S=!T&&(0,v.A)(g),A=!T&&!S&&(0,N.A)(g);x=g,T||S||A?(0,d.A)(f)?x=f:m(f)?x=(0,c.A)(f):S?(b=!1,x=(0,l.A)(g,!0)):A?(b=!1,x=(0,u.A)(g,!0)):x=[]:C(g)||(0,p.A)(g)?(x=f,(0,p.A)(f)?x=P(f):(0,E.A)(f)&&!(0,y.A)(f)||(x=(0,h.A)(g))):b=!1}b&&(a.set(g,x),r(x,g,i,o,a),a.delete(g)),s(t,n,x)}};const O=function t(e,n,r,o,l){e!==n&&(0,a.A)(n,function(a,u){if(l||(l=new i.A),(0,E.A)(a))M(e,n,u,r,t,o,l);else{var c=o?o(I(e,u),a,u+"",e,n,l):void 0;void 0===c&&(c=a),s(e,u,c)}},R.A)}},7242:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(9790),r=n(7554);const o=function(t){return null!=t&&(0,r.A)(t.length)&&!(0,i.A)(t)}},7348:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t,e){return t===e||t!=t&&e!=e}},7371:function(t){var e,n;t.exports=(e={705:t=>{t.exports=function(t,e){const n=[];return 0===e.length?n.push({text:t,highlight:!1}):e[0][0]>0&&n.push({text:t.slice(0,e[0][0]),highlight:!1}),e.forEach((i,r)=>{const o=i[0],s=i[1];n.push({text:t.slice(o,s),highlight:!0}),r===e.length-1?s<t.length&&n.push({text:t.slice(s,t.length),highlight:!1}):s<e[r+1][0]&&n.push({text:t.slice(s,e[r+1][0]),highlight:!1})}),n}}},n={},function t(i){var r=n[i];if(void 0!==r)return r.exports;var o=n[i]={exports:{}};return e[i](o,o.exports,t),o.exports}(705))},7392:(t,e,n)=>{"use strict";n.r(e)},7440:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(7204);const r=(0,n(4043).A)(function(t,e,n){(0,i.A)(t,e,n)})},7459:(t,e,n)=>{var i=n(7589),r=i.slice,o=i.pluck,s=i.each,a=i.bind,l=i.create,u=i.isList,c=i.isFunction,h=i.isObject;t.exports={createStore:d};var p={version:"2.0.12",enabled:!1,get:function(t,e){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,e)},set:function(t,e){return void 0===e?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(e)),e)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var e=this;this.storage.each(function(n,i){t.call(e,e._deserialize(n),(i||"").replace(e._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return d.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return d(this.storage,this.plugins,t)}};function d(t,e,n){n||(n=""),t&&!u(t)&&(t=[t]),e&&!u(e)&&(e=[e]);var i=n?"__storejs_"+n+"_":"",d=n?new RegExp("^"+i):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var f={_namespacePrefix:i,_namespaceRegexp:d,_testStorage:function(t){try{var e="__storejs__test__";t.write(e,e);var n=t.read(e)===e;return t.remove(e),n}catch(t){return!1}},_assignPluginFnProp:function(t,e){var n=this[e];this[e]=function(){var e=r(arguments,0),i=this;var o=[function(){if(n)return s(arguments,function(t,n){e[n]=t}),n.apply(i,e)}].concat(e);return t.apply(i,o)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,e){if(!t)return e;var n="";try{n=JSON.parse(t)}catch(e){n=t}return void 0!==n?n:e},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var e=this;if(u(t))s(t,function(t){e._addPlugin(t)});else if(!o(this.plugins,function(e){return t===e})){if(this.plugins.push(t),!c(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!h(n))throw new Error("Plugins must return an object of function properties");s(n,function(n,i){if(!c(n))throw new Error("Bad plugin property: "+i+" from plugin "+t.name+". Plugins should only return functions.");e._assignPluginFnProp(n,i)})}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;t&&(t.warn?t.warn:t.log).apply(t,arguments)}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},g=l(f,p,{plugins:[]});return g.raw={},s(g,function(t,e){c(t)&&(g.raw[e]=a(g,t))}),s(t,function(t){g._addStorage(t)}),s(e,function(t){g._addPlugin(t)}),g}},7476:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},7518:(t,e,n)=>{!function(t){"use strict";t.defineMode("javascript",function(e,n){var i,r,o=e.indentUnit,s=n.statementIndent,a=n.jsonld,l=n.json||a,u=!1!==n.trackScope,c=n.typescript,h=n.wordCharacters||/[\w$\xa1-\uffff]/,p=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),i=t("keyword c"),r=t("keyword d"),o=t("operator"),s={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:t("new"),delete:i,void:i,throw:i,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:t("this"),class:t("class"),super:t("atom"),yield:i,export:t("export"),import:t("import"),extends:i,await:i}}(),d=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(t){for(var e,n=!1,i=!1;null!=(e=t.next());){if(!n){if("/"==e&&!i)return;"["==e?i=!0:i&&"]"==e&&(i=!1)}n=!n&&"\\"==e}}function m(t,e,n){return i=t,r=n,e}function v(t,e){var n=t.next();if('"'==n||"'"==n)return e.tokenize=y(n),e.tokenize(t,e);if("."==n&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==n&&t.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&t.eat(">"))return m("=>","operator");if("0"==n&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(n))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==n)return t.eat("*")?(e.tokenize=E,E(t,e)):t.eat("/")?(t.skipToEnd(),m("comment","comment")):re(t,e,1)?(g(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(t.eat("="),m("operator","operator",t.current()));if("`"==n)return e.tokenize=_,_(t,e);if("#"==n&&"!"==t.peek())return t.skipToEnd(),m("meta","meta");if("#"==n&&t.eatWhile(h))return m("variable","property");if("<"==n&&t.match("!--")||"-"==n&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),m("comment","comment");if(d.test(n))return">"==n&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=n&&"="!=n||t.eat("="):/[<>*+\-|&?]/.test(n)&&(t.eat(n),">"==n&&t.eat(n))),"?"==n&&t.eat(".")?m("."):m("operator","operator",t.current());if(h.test(n)){t.eatWhile(h);var i=t.current();if("."!=e.lastType){if(p.propertyIsEnumerable(i)){var r=p[i];return m(r.type,r.style,i)}if("async"==i&&t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function y(t){return function(e,n){var i,r=!1;if(a&&"@"==e.peek()&&e.match(f))return n.tokenize=v,m("jsonld-keyword","meta");for(;null!=(i=e.next())&&(i!=t||r);)r=!r&&"\\"==i;return r||(n.tokenize=v),m("string","string")}}function E(t,e){for(var n,i=!1;n=t.next();){if("/"==n&&i){e.tokenize=v;break}i="*"==n}return m("comment","comment")}function _(t,e){for(var n,i=!1;null!=(n=t.next());){if(!i&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=v;break}i=!i&&"\\"==n}return m("quasi","string-2",t.current())}var x="([{}])";function b(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(c){var i=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));i&&(n=i.index)}for(var r=0,o=!1,s=n-1;s>=0;--s){var a=t.string.charAt(s),l=x.indexOf(a);if(l>=0&&l<3){if(!r){++s;break}if(0==--r){"("==a&&(o=!0);break}}else if(l>=3&&l<6)++r;else if(h.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--s){if(0==s)return;if(t.string.charAt(s-1)==a&&"\\"!=t.string.charAt(s-2)){s--;break}}else if(o&&!r){++s;break}}o&&!r&&(e.fatArrowAt=s)}}var T={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function S(t,e,n,i,r,o){this.indented=t,this.column=e,this.type=n,this.prev=r,this.info=o,null!=i&&(this.align=i)}function A(t,e){if(!u)return!1;for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var i=t.context;i;i=i.prev)for(n=i.vars;n;n=n.next)if(n.name==e)return!0}function L(t,e,n,i,r){var o=t.cc;for(C.state=t,C.stream=r,C.marked=null,C.cc=o,C.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():l?V:q)(n,i)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&A(t,i)?"variable-2":e}}var C={state:null,column:null,marked:null,cc:null};function N(){for(var t=arguments.length-1;t>=0;t--)C.cc.push(arguments[t])}function I(){return N.apply(null,arguments),!0}function w(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function R(t){var e=C.state;if(C.marked="def",u){if(e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var i=P(t,e.context);if(null!=i)return void(e.context=i)}else if(!w(t,e.localVars))return void(e.localVars=new k(t,e.localVars));n.globalVars&&!w(t,e.globalVars)&&(e.globalVars=new k(t,e.globalVars))}}function P(t,e){if(e){if(e.block){var n=P(t,e.prev);return n?n==e.prev?e:new O(n,e.vars,!0):null}return w(t,e.vars)?e:new O(e.prev,new k(t,e.vars),!1)}return null}function M(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function O(t,e,n){this.prev=t,this.vars=e,this.block=n}function k(t,e){this.name=t,this.next=e}var D=new k("this",new k("arguments",null));function G(){C.state.context=new O(C.state.context,C.state.localVars,!1),C.state.localVars=D}function B(){C.state.context=new O(C.state.context,C.state.localVars,!0),C.state.localVars=null}function j(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function F(t,e){var n=function(){var n=C.state,i=n.indented;if("stat"==n.lexical.type)i=n.lexical.indented;else for(var r=n.lexical;r&&")"==r.type&&r.align;r=r.prev)i=r.indented;n.lexical=new S(i,C.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function U(){var t=C.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function H(t){function e(n){return n==t?I():";"==t||"}"==n||")"==n||"]"==n?N():I(e)}return e}function q(t,e){return"var"==t?I(F("vardef",e),Nt,H(";"),U):"keyword a"==t?I(F("form"),Z,q,U):"keyword b"==t?I(F("form"),q,U):"keyword d"==t?C.stream.match(/^\s*$/,!1)?I():I(F("stat"),X,H(";"),U):"debugger"==t?I(H(";")):"{"==t?I(F("}"),B,pt,U,j):";"==t?I():"if"==t?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==U&&C.state.cc.pop()(),I(F("form"),Z,q,U,Ot)):"function"==t?I(Bt):"for"==t?I(F("form"),B,kt,q,j,U):"class"==t||c&&"interface"==e?(C.marked="keyword",I(F("form","class"==t?t:e),qt,U)):"variable"==t?c&&"declare"==e?(C.marked="keyword",I(q)):c&&("module"==e||"enum"==e||"type"==e)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==e?I(ee):"type"==e?I(Ft,H("operator"),vt,H(";")):I(F("form"),It,H("{"),F("}"),pt,U,U)):c&&"namespace"==e?(C.marked="keyword",I(F("form"),V,q,U)):c&&"abstract"==e?(C.marked="keyword",I(q)):I(F("stat"),ot):"switch"==t?I(F("form"),Z,H("{"),F("}","switch"),B,pt,U,U,j):"case"==t?I(V,H(":")):"default"==t?I(H(":")):"catch"==t?I(F("form"),G,z,q,U,j):"export"==t?I(F("stat"),Zt,U):"import"==t?I(F("stat"),Xt,U):"async"==t?I(q):"@"==e?I(V,q):N(F("stat"),V,H(";"),U)}function z(t){if("("==t)return I(Ut,H(")"))}function V(t,e){return Q(t,e,!1)}function W(t,e){return Q(t,e,!0)}function Z(t){return"("!=t?N():I(F(")"),X,H(")"),U)}function Q(t,e,n){if(C.state.fatArrowAt==C.stream.start){var i=n?et:tt;if("("==t)return I(G,F(")"),ct(Ut,")"),U,H("=>"),i,j);if("variable"==t)return N(G,It,H("=>"),i,j)}var r=n?$:Y;return T.hasOwnProperty(t)?I(r):"function"==t?I(Bt,r):"class"==t||c&&"interface"==e?(C.marked="keyword",I(F("form"),Ht,U)):"keyword c"==t||"async"==t?I(n?W:V):"("==t?I(F(")"),X,H(")"),U,r):"operator"==t||"spread"==t?I(n?W:V):"["==t?I(F("]"),te,U,r):"{"==t?ht(at,"}",null,r):"quasi"==t?N(K,r):"new"==t?I(nt(n)):I()}function X(t){return t.match(/[;\}\)\],]/)?N():N(V)}function Y(t,e){return","==t?I(X):$(t,e,!1)}function $(t,e,n){var i=0==n?Y:$,r=0==n?V:W;return"=>"==t?I(G,n?et:tt,j):"operator"==t?/\+\+|--/.test(e)||c&&"!"==e?I(i):c&&"<"==e&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?I(F(">"),ct(vt,">"),U,i):"?"==e?I(V,H(":"),r):I(r):"quasi"==t?N(K,i):";"!=t?"("==t?ht(W,")","call",i):"."==t?I(st,i):"["==t?I(F("]"),X,H("]"),U,i):c&&"as"==e?(C.marked="keyword",I(vt,i)):"regexp"==t?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),I(r)):void 0:void 0}function K(t,e){return"quasi"!=t?N():"${"!=e.slice(e.length-2)?I(K):I(X,J)}function J(t){if("}"==t)return C.marked="string-2",C.state.tokenize=_,I(K)}function tt(t){return b(C.stream,C.state),N("{"==t?q:V)}function et(t){return b(C.stream,C.state),N("{"==t?q:W)}function nt(t){return function(e){return"."==e?I(t?rt:it):"variable"==e&&c?I(At,t?$:Y):N(t?W:V)}}function it(t,e){if("target"==e)return C.marked="keyword",I(Y)}function rt(t,e){if("target"==e)return C.marked="keyword",I($)}function ot(t){return":"==t?I(U,q):N(Y,H(";"),U)}function st(t){if("variable"==t)return C.marked="property",I()}function at(t,e){return"async"==t?(C.marked="property",I(at)):"variable"==t||"keyword"==C.style?(C.marked="property","get"==e||"set"==e?I(lt):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),I(ut))):"number"==t||"string"==t?(C.marked=a?"property":C.style+" property",I(ut)):"jsonld-keyword"==t?I(ut):c&&M(e)?(C.marked="keyword",I(at)):"["==t?I(V,dt,H("]"),ut):"spread"==t?I(W,ut):"*"==e?(C.marked="keyword",I(at)):":"==t?N(ut):void 0;var n}function lt(t){return"variable"!=t?N(ut):(C.marked="property",I(Bt))}function ut(t){return":"==t?I(W):"("==t?N(Bt):void 0}function ct(t,e,n){function i(r,o){if(n?n.indexOf(r)>-1:","==r){var s=C.state.lexical;return"call"==s.info&&(s.pos=(s.pos||0)+1),I(function(n,i){return n==e||i==e?N():N(t)},i)}return r==e||o==e?I():n&&n.indexOf(";")>-1?N(t):I(H(e))}return function(n,r){return n==e||r==e?I():N(t,i)}}function ht(t,e,n){for(var i=3;i<arguments.length;i++)C.cc.push(arguments[i]);return I(F(e,n),ct(t,e),U)}function pt(t){return"}"==t?I():N(q,pt)}function dt(t,e){if(c){if(":"==t)return I(vt);if("?"==e)return I(dt)}}function ft(t,e){if(c&&(":"==t||"in"==e))return I(vt)}function gt(t){if(c&&":"==t)return C.stream.match(/^\s*\w+\s+is\b/,!1)?I(V,mt,vt):I(vt)}function mt(t,e){if("is"==e)return C.marked="keyword",I()}function vt(t,e){return"keyof"==e||"typeof"==e||"infer"==e||"readonly"==e?(C.marked="keyword",I("typeof"==e?W:vt)):"variable"==t||"void"==e?(C.marked="type",I(St)):"|"==e||"&"==e?I(vt):"string"==t||"number"==t||"atom"==t?I(St):"["==t?I(F("]"),ct(vt,"]",","),U,St):"{"==t?I(F("}"),Et,U,St):"("==t?I(ct(Tt,")"),yt,St):"<"==t?I(ct(vt,">"),vt):"quasi"==t?N(xt,St):void 0}function yt(t){if("=>"==t)return I(vt)}function Et(t){return t.match(/[\}\)\]]/)?I():","==t||";"==t?I(Et):N(_t,Et)}function _t(t,e){return"variable"==t||"keyword"==C.style?(C.marked="property",I(_t)):"?"==e||"number"==t||"string"==t?I(_t):":"==t?I(vt):"["==t?I(H("variable"),ft,H("]"),_t):"("==t?N(jt,_t):t.match(/[;\}\)\],]/)?void 0:I()}function xt(t,e){return"quasi"!=t?N():"${"!=e.slice(e.length-2)?I(xt):I(vt,bt)}function bt(t){if("}"==t)return C.marked="string-2",C.state.tokenize=_,I(xt)}function Tt(t,e){return"variable"==t&&C.stream.match(/^\s*[?:]/,!1)||"?"==e?I(Tt):":"==t?I(vt):"spread"==t?I(Tt):N(vt)}function St(t,e){return"<"==e?I(F(">"),ct(vt,">"),U,St):"|"==e||"."==t||"&"==e?I(vt):"["==t?I(vt,H("]"),St):"extends"==e||"implements"==e?(C.marked="keyword",I(vt)):"?"==e?I(vt,H(":"),vt):void 0}function At(t,e){if("<"==e)return I(F(">"),ct(vt,">"),U,St)}function Lt(){return N(vt,Ct)}function Ct(t,e){if("="==e)return I(vt)}function Nt(t,e){return"enum"==e?(C.marked="keyword",I(ee)):N(It,dt,Pt,Mt)}function It(t,e){return c&&M(e)?(C.marked="keyword",I(It)):"variable"==t?(R(e),I()):"spread"==t?I(It):"["==t?ht(Rt,"]"):"{"==t?ht(wt,"}"):void 0}function wt(t,e){return"variable"!=t||C.stream.match(/^\s*:/,!1)?("variable"==t&&(C.marked="property"),"spread"==t?I(It):"}"==t?N():"["==t?I(V,H("]"),H(":"),wt):I(H(":"),It,Pt)):(R(e),I(Pt))}function Rt(){return N(It,Pt)}function Pt(t,e){if("="==e)return I(W)}function Mt(t){if(","==t)return I(Nt)}function Ot(t,e){if("keyword b"==t&&"else"==e)return I(F("form","else"),q,U)}function kt(t,e){return"await"==e?I(kt):"("==t?I(F(")"),Dt,U):void 0}function Dt(t){return"var"==t?I(Nt,Gt):"variable"==t?I(Gt):N(Gt)}function Gt(t,e){return")"==t?I():";"==t?I(Gt):"in"==e||"of"==e?(C.marked="keyword",I(V,Gt)):N(V,Gt)}function Bt(t,e){return"*"==e?(C.marked="keyword",I(Bt)):"variable"==t?(R(e),I(Bt)):"("==t?I(G,F(")"),ct(Ut,")"),U,gt,q,j):c&&"<"==e?I(F(">"),ct(Lt,">"),U,Bt):void 0}function jt(t,e){return"*"==e?(C.marked="keyword",I(jt)):"variable"==t?(R(e),I(jt)):"("==t?I(G,F(")"),ct(Ut,")"),U,gt,j):c&&"<"==e?I(F(">"),ct(Lt,">"),U,jt):void 0}function Ft(t,e){return"keyword"==t||"variable"==t?(C.marked="type",I(Ft)):"<"==e?I(F(">"),ct(Lt,">"),U):void 0}function Ut(t,e){return"@"==e&&I(V,Ut),"spread"==t?I(Ut):c&&M(e)?(C.marked="keyword",I(Ut)):c&&"this"==t?I(dt,Pt):N(It,dt,Pt)}function Ht(t,e){return"variable"==t?qt(t,e):zt(t,e)}function qt(t,e){if("variable"==t)return R(e),I(zt)}function zt(t,e){return"<"==e?I(F(">"),ct(Lt,">"),U,zt):"extends"==e||"implements"==e||c&&","==t?("implements"==e&&(C.marked="keyword"),I(c?vt:V,zt)):"{"==t?I(F("}"),Vt,U):void 0}function Vt(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||c&&M(e))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",I(Vt)):"variable"==t||"keyword"==C.style?(C.marked="property",I(Wt,Vt)):"number"==t||"string"==t?I(Wt,Vt):"["==t?I(V,dt,H("]"),Wt,Vt):"*"==e?(C.marked="keyword",I(Vt)):c&&"("==t?N(jt,Vt):";"==t||","==t?I(Vt):"}"==t?I():"@"==e?I(V,Vt):void 0}function Wt(t,e){if("!"==e)return I(Wt);if("?"==e)return I(Wt);if(":"==t)return I(vt,Pt);if("="==e)return I(W);var n=C.state.lexical.prev;return N(n&&"interface"==n.info?jt:Bt)}function Zt(t,e){return"*"==e?(C.marked="keyword",I(Jt,H(";"))):"default"==e?(C.marked="keyword",I(V,H(";"))):"{"==t?I(ct(Qt,"}"),Jt,H(";")):N(q)}function Qt(t,e){return"as"==e?(C.marked="keyword",I(H("variable"))):"variable"==t?N(W,Qt):void 0}function Xt(t){return"string"==t?I():"("==t?N(V):"."==t?N(Y):N(Yt,$t,Jt)}function Yt(t,e){return"{"==t?ht(Yt,"}"):("variable"==t&&R(e),"*"==e&&(C.marked="keyword"),I(Kt))}function $t(t){if(","==t)return I(Yt,$t)}function Kt(t,e){if("as"==e)return C.marked="keyword",I(Yt)}function Jt(t,e){if("from"==e)return C.marked="keyword",I(V)}function te(t){return"]"==t?I():N(ct(W,"]"))}function ee(){return N(F("form"),It,H("{"),F("}"),ct(ne,"}"),U,U)}function ne(){return N(It,Pt)}function ie(t,e){return"operator"==t.lastType||","==t.lastType||d.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}function re(t,e,n){return e.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return G.lex=B.lex=!0,j.lex=!0,U.lex=!0,{startState:function(t){var e={tokenize:v,lastType:"sof",cc:[],lexical:new S((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new O(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),b(t,e)),e.tokenize!=E&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==i?n:(e.lastType="operator"!=i||"++"!=r&&"--"!=r?i:"incdec",L(e,n,i,r,t))},indent:function(e,i){if(e.tokenize==E||e.tokenize==_)return t.Pass;if(e.tokenize!=v)return 0;var r,a=i&&i.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(i))for(var u=e.cc.length-1;u>=0;--u){var c=e.cc[u];if(c==U)l=l.prev;else if(c!=Ot&&c!=j)break}for(;("stat"==l.type||"form"==l.type)&&("}"==a||(r=e.cc[e.cc.length-1])&&(r==Y||r==$)&&!/^[,\.=+\-*:?[\(]/.test(i));)l=l.prev;s&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var h=l.type,p=a==h;return"vardef"==h?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==h&&"{"==a?l.indented:"form"==h?l.indented+o:"stat"==h?l.indented+(ie(e,i)?s||o:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\b/.test(i)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:a,jsonMode:l,expressionAllowed:re,skipExpression:function(e){L(e,"atom","atom","true",new t.StringStream("",2,null))}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(1719))},7554:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7570:function(t){var e;e=()=>(()=>{"use strict";var t={887:t=>{t.exports=function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{default:()=>c});var t=n(887),e=n.n(t);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function s(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===r(e)?e:String(e)}var l,u=(l=0,function(){return l++}),c=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(function t(n){var i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),s(this,"ID","id"),s(this,"PX","px"),s(this,"RESIZABLE","grip-resizable"),s(this,"FLEX","grip-flex"),s(this,"legacyIE",navigator.userAgent.indexOf("Trident/4.0")>0),s(this,"reset",function(t){return i.init(t)}),s(this,"onResize",function(){var t=i.tb;if(t.classList.remove(i.RESIZABLE),t.opt.fixed){t.tableWidth=Number(window.getComputedStyle(t).width.replace(/px/,"")).valueOf();for(var e=0,n=0;n<t.columnCnt;n++)e+=t.columns[n].w;for(var r=0;r<t.columnCnt;r++)t.columns[r].style.width=Math.round(1e3*t.columns[r].w/e)/10+"%",t.columns[r].locked=!0,t.opt.currentWidths[r]=Number(window.getComputedStyle(t.columns[r]).width.replace(/px/,"")).valueOf()}else i.applyBounds(),"flex"===t.opt.resizeMode&&t.opt.serialize&&i.serializeStore();t.classList.add(i.RESIZABLE),i.syncGrips()}),s(this,"onGripMouseDown",function(t){var e=t.target.parentNode.data,n=i.tb,r=n.grips[e.i],o=t.touches;if(r.ox=o?o[0].pageX:t.pageX,r.l=r.offsetLeft,r.x=r.l,i.createStyle(document.querySelector("head"),"*{cursor:"+n.opt.dragCursor+"!important}"),document.addEventListener("touchmove",i.onGripDrag),document.addEventListener("mousemove",i.onGripDrag),document.addEventListener("touchend",i.onGripDragOver),document.addEventListener("mouseup",i.onGripDragOver),r.classList.add(n.opt.draggingClass),i.grip=r,n.columns[e.i].locked)for(var s,a=0;a<n.columnCnt;a++)(s=n.columns[a]).locked=!1,s.w=Number(window.getComputedStyle(s).width.replace(/px/,"")).valueOf();t.preventDefault()}),s(this,"onGripDrag",function(t){var e=i.grip;if(e){var n=e.t,r=t.touches,o=(r?r[0].pageX:t.pageX)-e.ox+e.l,s=n.opt.minWidth,a=e.i,l=1.5*n.cellSpace+s+n.borderSpace,u=a===n.columnCnt-1,c=a?n.grips[a-1].offsetLeft+n.cellSpace+s:l,h=n.opt.fixed?a===n.columnCnt-1?n.tableWidth-l:n.grips[a+1].offsetLeft-n.cellSpace-s:1/0;if(o=Math.max(c,Math.min(h,o)),e.x=o,e.style.left=o+i.PX,u&&(e.w=n.columns[a].w+o-e.l),n.opt.liveDrag){u?(n.columns[a].style.width=e.w+i.PX,!n.opt.fixed&&n.opt.overflow?n.style.minWidth=n.tableWidth+o-e.l+i.PX:n.tableWidth=Number(window.getComputedStyle(n).width.replace(/px/,"")).valueOf()):i.syncCols(n,a,!1,n.opt),i.syncGrips();var p=n.opt.onDrag;p&&p(t)}t.preventDefault()}}),s(this,"onGripDragOver",function(t){var e=i.grip;document.removeEventListener("touchend",i.onGripDragOver),document.removeEventListener("mouseup",i.onGripDragOver),document.removeEventListener("touchmove",i.onGripDrag),document.removeEventListener("mousemove",i.onGripDrag);var n=document.querySelector("head").lastChild;if(n.parentNode.removeChild(n),e){if(e.classList.remove(e.t.opt.draggingClass),e.x-e.l!=0){var r=e.t,o=r.opt.onResize,s=e.i;if(s===r.columnCnt-1){var a=r.columns[s];a.style.width=e.w+i.PX,a.w=e.w}else i.syncCols(r,s,!0,r.opt);r.opt.fixed||i.applyBounds(),i.syncGrips(),o&&o(t),r.opt.serialize&&i.serializeStore()}i.grip=null}}),s(this,"init",function(t){if(t.disable)return i.destroy();var e=i.tb,n=e.getAttribute(i.ID)||i.RESIZABLE+u();if(!e.matches("table")||e.extended&&!t.partialRefresh)return null;var r=document.querySelector("head");if(i.createStyle(r," .grip-resizable{table-layout:fixed;} .grip-resizable > tbody > tr > td, .grip-resizable > tbody > tr > th{overflow:hidden} .grip-padding > tbody > tr > td, .grip-padding > tbody > tr > th{padding-left:0!important; padding-right:0!important;} .grip-container{ height:0px; position:relative;} .grip-handle{margin-left:-5px; position:absolute; z-index:5; } .grip-handle .grip-resizable{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: col-resize;top:0px} .grip-lastgrip{position:absolute; width:1px; } .grip-drag{ border-left:1px dotted black;\t} .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),t.hoverCursor&&"col-resize"!==t.hoverCursor){var o=".grip-handle .grip-resizable:hover{cursor:"+t.hoverCursor+"!important}";i.createStyle(r,o)}e.setAttribute(i.ID,n);var s=e.opt;e.opt=i.extendOptions(t);var a=i.getTableHeaders(e);if(i.extendTable(a),t.remoteTable&&t.remoteTable.matches("table")){var l=i.getTableHeaders(e.opt.remoteTable);a.length===l.length?i.extendRemoteTable(e.opt.remoteTable,l,e):console.warn("column count for remote table did not match")}return s}),s(this,"applyBounds",function(){var t=i.tb,e=t.columns.map(function(t){return window.getComputedStyle(t).width});t.style.width=window.getComputedStyle(t).width,t.tableWidth=Number(t.style.width.replace(/px/,"")).valueOf(),t.classList.remove(i.FLEX),t.columns.forEach(function(n,i){n.style.width=e[i];var r=Number(e[i].replace(/px/,"")).valueOf();n.w=r,t.opt.currentWidths[i]=r}),t.classList.add(i.FLEX)}),s(this,"serializeStore",function(){var t=i.store,e=i.tb;t[e.getAttribute(i.ID)]="";for(var n=0,r=0;r<e.columns.length;r++){var o=window.getComputedStyle(e.columns[r]).width.replace(/px/,"");t[e.getAttribute(i.ID)]+=o+";",n+=Number(o).valueOf()}t[e.getAttribute(i.ID)]+=n.toString(),e.opt.fixed||(t[e.getAttribute(i.ID)]+=";"+window.getComputedStyle(e).width.replace(/px/,""))}),s(this,"syncGrips",function(){var t=i.tb;t.gripContainer.style.width=t.tableWidth+i.PX;for(var e=0;e<t.columnCnt;e++){var n=t.columns[e],r=n.getBoundingClientRect(),o=t.getBoundingClientRect();t.grips[e].style.left=r.left-o.left+n.offsetWidth+t.cellSpace/2+i.PX,t.grips[e].style.height=(t.opt.headerOnly?t.columns[0].offsetHeight:t.offsetHeight)+i.PX}}),s(this,"destroy",function(){var t=i.tb,e=t.getAttribute(i.ID);return e?(i.store[e]="",t.classList.remove(i.RESIZABLE),t.classList.remove(i.FLEX),t.remote&&(t.remote.classList.remove(i.RESIZABLE),t.remote.classList.remove(i.FLEX)),t.gripContainer&&t.gripContainer.parentNode&&t.gripContainer.parentNode.removeChild(t.gripContainer),delete t.extended,t.opt):null}),s(this,"createStyle",function(t,n){var i=e()(n).toString(),r=t.querySelectorAll("style"),o=Array.from(r).filter(function(t){return t.gripid===i});if(!o.length){var s=document.createElement("style");s.type="text/css",s.gripid=i,s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n)),t.appendChild(s)}}),s(this,"extendOptions",function(e){var n=Object.assign({},t.DEFAULTS,e);switch(n.fixed=!0,n.overflow=!1,n.resizeMode){case"flex":n.fixed=!1;break;case"overflow":n.fixed=!1,n.overflow=!0}return n}),s(this,"getTableHeaders",function(t){var e="#"+t.id,n=Array.from(t.querySelectorAll(e+">thead>tr:nth-of-type(1)>th"));return(n=n.concat(Array.from(t.querySelectorAll(e+">thead>tr:nth-of-type(1)>td")))).length||(n=(n=(n=(n=Array.from(t.querySelectorAll(e+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(t.querySelectorAll(e+">tr:nth-of-type(1)>th")))).concat(Array.from(t.querySelectorAll(e+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(t.querySelectorAll(e+">tr:nth-of-type(1)>td")))),i.filterInvisible(n,!1)}),s(this,"filterInvisible",function(t,e){return t.filter(function(t){var n=e?-1:t.offsetWidth,i=e?-1:t.offsetHeight;return!(0===n&&0===i||t.style&&t.style.display&&"none"===window.getComputedStyle(t).display)})}),s(this,"extendTable",function(t){var e=i.tb;e.opt.removePadding&&e.classList.add("grip-padding"),e.classList.add(i.RESIZABLE),e.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),e.grips=[],e.columns=[],e.tableWidth=Number(window.getComputedStyle(e).width.replace(/px/,"")).valueOf(),e.gripContainer=e.previousElementSibling,e.opt.marginLeft&&(e.gripContainer.style.marginLeft=e.opt.marginLeft),e.opt.marginRight&&(e.gripContainer.style.marginRight=e.opt.marginRight),e.cellSpace=parseInt(i.legacyIE?e.cellSpacing||e.currentStyle.borderSpacing:window.getComputedStyle(e).borderSpacing.split(" ")[0].replace(/px/,""))||2,e.borderSpace=parseInt(i.legacyIE?e.border||e.currentStyle.borderLeftWidth:window.getComputedStyle(e).borderLeftWidth.replace(/px/,""))||1,e.extended=!0,i.createGrips(t)}),s(this,"extendRemoteTable",function(t,e,n){n.opt.removePadding&&t.classList.add("grip-padding"),t.classList.add(i.RESIZABLE),t.getAttribute(i.ID)||t.setAttribute(i.ID,n.getAttribute(i.ID)+"remote"),t.columns=[],e.forEach(function(r,o){var s=e[o];s.w=n.columns[o].w,s.style.width=s.w+i.PX,s.removeAttribute("width"),t.columns.push(s)}),t.tableWidth=n.tableWidth,t.cellSpace=n.cellSpace,t.borderSpace=n.borderSpace;var r=Array.from(t.querySelectorAll("col"));t.columnGrp=i.filterInvisible(r,!0),t.columnGrp.forEach(function(t,e){t.removeAttribute("width"),t.style.width=n.columnGrp[e].style.width}),n.remote=t}),s(this,"createGrips",function(t){var e=i.tb;e.columnGrp=i.filterInvisible(Array.from(e.querySelectorAll("col")),!0),e.columnGrp.forEach(function(t){t.removeAttribute("width")}),e.columnCnt=t.length;var n=!1;i.store[e.getAttribute(i.ID)]&&(i.deserializeStore(t),n=!0),t.forEach(function(r,o){var s=t[o],a=-1!==e.opt.disabledColumns.indexOf(o);i.createDiv(e.gripContainer,"grip-handle");var l=e.gripContainer.lastChild;!a&&e.opt.gripInnerHtml&&(l.innerHTML=e.opt.gripInnerHtml),i.createDiv(l,i.RESIZABLE),o===e.columnCnt-1&&(l.classList.add("grip-lastgrip"),e.opt.fixed&&(l.innerHTML="")),l.addEventListener("touchstart",i.onGripMouseDown,{capture:!0,passive:!0}),l.addEventListener("mousedown",i.onGripMouseDown,!0),a?l.classList.add("grip-disabledgrip"):(l.classList.remove("grip-disabledgrip"),l.addEventListener("touchstart",i.onGripMouseDown,{capture:!0,passive:!0}),l.addEventListener("mousedown",i.onGripMouseDown,!0)),l.t=e,l.i=o,e.opt.widths[o]?s.w=e.opt.widths[o]:s.w=n?Number(s.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(s).width.replace(/px/,"")).valueOf(),e.opt.currentWidths[o]=s.w,s.style.width=s.w+i.PX,s.removeAttribute("width"),l.data={i:o,t:e.getAttribute(i.ID),last:o===e.columnCnt-1},e.grips.push(l),e.columns.push(s)});var r=Array.from(e.querySelectorAll("td"));r.concat(Array.from(e.querySelectorAll("th"))),(r=(r=r.filter(function(e){for(var n=0;n<t.length;n++)if(t[n]===e)return!1;return!0})).filter(function(t){return!(t.querySelectorAll("table th").length||t.querySelectorAll("table td").length)})).forEach(function(t){t.removeAttribute("width")}),e.opt.fixed||(e.removeAttribute("width"),e.classList.add(i.FLEX)),i.syncGrips()}),s(this,"deserializeStore",function(t){var e=i.tb;if(e.columnGrp.forEach(function(t){t.removeAttribute("width")}),e.opt.flush)i.store[e.getAttribute(i.ID)]="";else{var n=i.store[e.getAttribute(i.ID)].split(";"),r=n[e.columnCnt+1];!e.opt.fixed&&r&&(e.style.width=r+i.PX,e.opt.overflow&&(e.style.minWidth=r+i.PX,e.tableWidth=Number(r).valueOf()));for(var o=0;o<e.columnCnt;o++)t[o].style.width=n[o]+i.PX,e.columnGrp[o]&&(e.columnGrp[o].style.width=100*Number(n[o]).valueOf()/Number(n[e.columnCnt]).valueOf()+"%")}}),s(this,"createDiv",function(t,e,n){var i=document.createElement("div");i.classList.add(e),n&&(i.innerHTML=n),t.appendChild(i)}),s(this,"syncCols",function(t,e,n,r){var o=t.remote,s=i.grip.x-i.grip.l,a=t.columns[e],l=t.columns[e+1];if(a&&l){var u=a.w+s,c=l.w-s,h=u+i.PX;if(a.style.width=h,t.columnGrp[e]&&t.columnGrp[e].style.width&&(t.columnGrp[e].style.width=h),o&&(o.columns[e].style.width=h,o.columnGrp[e]&&o.columnGrp[e].style.width&&(o.columnGrp[e].style.width=h)),r.fixed){var p=c+i.PX;l.style.width=p,t.columnGrp[e+1]&&t.columnGrp[e+1].style.width&&(t.columnGrp[e+1].style.width=p),o&&(o.columns[e+1].style.width=p,o.columnGrp[e+1]&&o.columnGrp[e+1].style.width&&(o.columnGrp[e+1].style.width=p))}else r.overflow&&(t.style.minWidth=t.tableWidth+s+i.PX);n&&(a.w=u,l.w=r.fixed?c:l.w,o&&(o.columns[e].w=u,o.columns[e+1].w=r.fixed?c:l.w))}});try{this.store=sessionStorage}catch(n){this.store={}}this.grip=null,this.tb=n,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(r)});c.DEFAULTS={resizeMode:"fit",draggingClass:"grip-drag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"col-resize",dragCursor:"col-resize",flush:!1,marginLeft:null,marginRight:null,remoteTable:null,disable:!1,partialRefresh:!1,disabledColumns:[],removePadding:!0,widths:[],currentWidths:[],serialize:!0,onDrag:null,onResize:null}})(),i})(),t.exports=e()},7589:(t,e,n)=>{var i=Object.assign?Object.assign:function(t,e,n,i){for(var r=1;r<arguments.length;r++)l(Object(arguments[r]),function(e,n){t[n]=e});return t},r=function(){if(Object.create)return function(t,e,n,r){var o=a(arguments,1);return i.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(e,n,r,o){var s=a(arguments,1);return t.prototype=e,i.apply(this,[new t].concat(s))}}}(),o=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},s="undefined"!=typeof window?window:n.g;function a(t,e){return Array.prototype.slice.call(t,e||0)}function l(t,e){u(t,function(t,n){return e(t,n),!1})}function u(t,e){if(c(t)){for(var n=0;n<t.length;n++)if(e(t[n],n))return t[n]}else for(var i in t)if(t.hasOwnProperty(i)&&e(t[i],i))return t[i]}function c(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:i,create:r,trim:o,bind:function(t,e){return function(){return e.apply(t,Array.prototype.slice.call(arguments,0))}},slice:a,each:l,map:function(t,e){var n=c(t)?[]:{};return u(t,function(t,i){return n[i]=e(t,i),!1}),n},pluck:u,isList:c,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:s}},7623:(t,e,n)=>{!function(t){"use strict";var e=t.Pos;function n(t,e){return t.line-e.line||t.ch-e.ch}var i="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=new RegExp("<(/?)(["+i+"]["+i+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(t,e,n,i){this.line=e,this.ch=n,this.cm=t,this.text=t.getLine(e),this.min=i?Math.max(i.from,t.firstLine()):t.firstLine(),this.max=i?Math.min(i.to-1,t.lastLine()):t.lastLine()}function s(t,n){var i=t.cm.getTokenTypeAt(e(t.line,n));return i&&/\btag\b/.test(i)}function a(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function l(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function u(t){for(;;){var e=t.text.indexOf(">",t.ch);if(-1==e){if(a(t))continue;return}if(s(t,e+1)){var n=t.text.lastIndexOf("/",e),i=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,i?"selfClose":"regular"}t.ch=e+1}}function c(t){for(;;){var e=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==e){if(l(t))continue;return}if(s(t,e+1)){r.lastIndex=e,t.ch=e;var n=r.exec(t.text);if(n&&n.index==e)return n}else t.ch=e}}function h(t){for(;;){r.lastIndex=t.ch;var e=r.exec(t.text);if(!e){if(a(t))continue;return}if(s(t,e.index+1))return t.ch=e.index+e[0].length,e;t.ch=e.index+1}}function p(t){for(;;){var e=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==e){if(l(t))continue;return}if(s(t,e+1)){var n=t.text.lastIndexOf("/",e),i=n>-1&&!/\S/.test(t.text.slice(n+1,e));return t.ch=e+1,i?"selfClose":"regular"}t.ch=e}}function d(t,n){for(var i=[];;){var r,o=h(t),s=t.line,a=t.ch-(o?o[0].length:0);if(!o||!(r=u(t)))return;if("selfClose"!=r)if(o[1]){for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:e(s,a),to:e(t.line,t.ch)}}else i.push(o[2])}}function f(t,n){for(var i=[];;){var r=p(t);if(!r)return;if("selfClose"!=r){var o=t.line,s=t.ch,a=c(t);if(!a)return;if(a[1])i.push(a[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==a[2]){i.length=l;break}if(l<0&&(!n||n==a[2]))return{tag:a[2],from:e(t.line,t.ch),to:e(o,s)}}}else c(t)}}t.registerHelper("fold","xml",function(t,i){for(var r=new o(t,i.line,0);;){var s=h(r);if(!s||r.line!=i.line)return;var a=u(r);if(!a)return;if(!s[1]&&"selfClose"!=a){var l=e(r.line,r.ch),c=d(r,s[2]);return c&&n(c.from,l)>0?{from:l,to:c.from}:null}}}),t.findMatchingTag=function(t,i,r){var s=new o(t,i.line,i.ch,r);if(-1!=s.text.indexOf(">")||-1!=s.text.indexOf("<")){var a=u(s),l=a&&e(s.line,s.ch),h=a&&c(s);if(a&&h&&!(n(s,i)>0)){var p={from:e(s.line,s.ch),to:l,tag:h[2]};return"selfClose"==a?{open:p,close:null,at:"open"}:h[1]?{open:f(s,h[2]),close:p,at:"close"}:{open:p,close:d(s=new o(t,l.line,l.ch,r),h[2]),at:"open"}}}},t.findEnclosingTag=function(t,e,n,i){for(var r=new o(t,e.line,e.ch,n);;){var s=f(r,i);if(!s)break;var a=d(new o(t,e.line,e.ch,n),s.tag);if(a)return{open:s,close:a}}},t.scanForClosingTag=function(t,e,n,i){return d(new o(t,e.line,e.ch,i?{from:0,to:i}:null),n)}}(n(1719))},7735:(t,e,n)=>{var i=n(2990).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(i(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},7781:t=>{"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%".concat(t.charCodeAt(0).toString(16).toUpperCase())})}},7827:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=(0,n(5067).A)(Object.getPrototypeOf,Object)},7837:(t,e,n)=>{var i=n(7589).Global;t.exports={name:"oldIE-userDataStorage",write:function(t,e){if(a)return;var n=u(t);s(function(t){t.setAttribute(n,e),t.save(r)})},read:function(t){if(a)return;var e=u(t),n=null;return s(function(t){n=t.getAttribute(e)}),n},each:function(t){s(function(e){for(var n=e.XMLDocument.documentElement.attributes,i=n.length-1;i>=0;i--){var r=n[i];t(e.getAttribute(r.name),r.name)}})},remove:function(t){var e=u(t);s(function(t){t.removeAttribute(e),t.save(r)})},clearAll:function(){s(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(r);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(r)})}};var r="storejs",o=i.document,s=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var t,e,n,i="script";try{(e=new ActiveXObject("htmlfile")).open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),t=e.w.frames[0].document,n=t.createElement("div")}catch(e){n=o.createElement("div"),t=o.body}return function(e){var i=[].slice.call(arguments,0);i.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load(r),e.apply(this,i),t.removeChild(n)}}(),a=(i.navigator?i.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);var l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(t){return t.replace(/^\d/,"___$&").replace(l,"___")}},7899:(t,e,n)=>{!function(t){"use strict";t.runMode=function(e,n,i,r){var o=t.getMode(t.defaults,n),s=r&&r.tabSize||t.defaults.tabSize;if(i.appendChild){var a=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<9),l=i,u=0;l.textContent="",i=function(t,e){if("\n"==t)return l.appendChild(document.createTextNode(a?"\r":t)),void(u=0);for(var n="",i=0;;){var r=t.indexOf("\t",i);if(-1==r){n+=t.slice(i),u+=t.length-i;break}u+=r-i,n+=t.slice(i,r);var o=s-u%s;u+=o;for(var c=0;c<o;++c)n+=" ";i=r+1}if(e){var h=l.appendChild(document.createElement("span"));h.className="cm-"+e.replace(/ +/g," cm-"),h.appendChild(document.createTextNode(n))}else l.appendChild(document.createTextNode(n))}}for(var c=t.splitLines(e),h=r&&r.state||t.startState(o),p=0,d=c.length;p<d;++p){p&&i("\n");var f=new t.StringStream(c[p],null,{lookAhead:function(t){return c[p+t]},baseToken:function(){}});for(!f.string&&o.blankLine&&o.blankLine(h);!f.eol();){var g=o.token(f,h);i(f.current(),g,p,f.start,h,o),f.start=f.pos}}}}(n(1719))},7903:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(8292),r=n(7348),o=Object.prototype.hasOwnProperty;const s=function(t,e,n){var s=t[e];o.call(t,e)&&(0,r.A)(s,n)&&(void 0!==n||e in t)||(0,i.A)(t,e,n)}},8023:(t,e,n)=>{!function(t){"use strict";var e,n,i=t.Pos;function r(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}function o(t,e){for(var n=r(t),i=n,o=0;o<e.length;o++)-1==i.indexOf(e.charAt(o))&&(i+=e.charAt(o));return n==i?t:new RegExp(t.source,i)}function s(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function a(t,e,n){e=o(e,"g");for(var r=n.line,s=n.ch,a=t.lastLine();r<=a;r++,s=0){e.lastIndex=s;var l=t.getLine(r),u=e.exec(l);if(u)return{from:i(r,u.index),to:i(r,u.index+u[0].length),match:u}}}function l(t,e,n){if(!s(e))return a(t,e,n);e=o(e,"gm");for(var r,l=1,u=n.line,c=t.lastLine();u<=c;){for(var h=0;h<l&&!(u>c);h++){var p=t.getLine(u++);r=null==r?p:r+"\n"+p}l*=2,e.lastIndex=n.ch;var d=e.exec(r);if(d){var f=r.slice(0,d.index).split("\n"),g=d[0].split("\n"),m=n.line+f.length-1,v=f[f.length-1].length;return{from:i(m,v),to:i(m+g.length-1,1==g.length?v+g[0].length:g[g.length-1].length),match:d}}}}function u(t,e,n){for(var i,r=0;r<=t.length;){e.lastIndex=r;var o=e.exec(t);if(!o)break;var s=o.index+o[0].length;if(s>t.length-n)break;(!i||s>i.index+i[0].length)&&(i=o),r=o.index+1}return i}function c(t,e,n){e=o(e,"g");for(var r=n.line,s=n.ch,a=t.firstLine();r>=a;r--,s=-1){var l=t.getLine(r),c=u(l,e,s<0?0:l.length-s);if(c)return{from:i(r,c.index),to:i(r,c.index+c[0].length),match:c}}}function h(t,e,n){if(!s(e))return c(t,e,n);e=o(e,"gm");for(var r,a=1,l=t.getLine(n.line).length-n.ch,h=n.line,p=t.firstLine();h>=p;){for(var d=0;d<a&&h>=p;d++){var f=t.getLine(h--);r=null==r?f:f+"\n"+r}a*=2;var g=u(r,e,l);if(g){var m=r.slice(0,g.index).split("\n"),v=g[0].split("\n"),y=h+m.length,E=m[m.length-1].length;return{from:i(y,E),to:i(y+v.length-1,1==v.length?E+v[0].length:v[v.length-1].length),match:g}}}}function p(t,e,n,i){if(t.length==e.length)return n;for(var r=0,o=n+Math.max(0,t.length-e.length);;){if(r==o)return r;var s=r+o>>1,a=i(t.slice(0,s)).length;if(a==n)return s;a>n?o=s:r=s+1}}function d(t,r,o,s){if(!r.length)return null;var a=s?e:n,l=a(r).split(/\r|\n\r?/);t:for(var u=o.line,c=o.ch,h=t.lastLine()+1-l.length;u<=h;u++,c=0){var d=t.getLine(u).slice(c),f=a(d);if(1==l.length){var g=f.indexOf(l[0]);if(-1==g)continue t;return o=p(d,f,g,a)+c,{from:i(u,p(d,f,g,a)+c),to:i(u,p(d,f,g+l[0].length,a)+c)}}var m=f.length-l[0].length;if(f.slice(m)==l[0]){for(var v=1;v<l.length-1;v++)if(a(t.getLine(u+v))!=l[v])continue t;var y=t.getLine(u+l.length-1),E=a(y),_=l[l.length-1];if(E.slice(0,_.length)==_)return{from:i(u,p(d,f,m,a)+c),to:i(u+l.length-1,p(y,E,_.length,a))}}}}function f(t,r,o,s){if(!r.length)return null;var a=s?e:n,l=a(r).split(/\r|\n\r?/);t:for(var u=o.line,c=o.ch,h=t.firstLine()-1+l.length;u>=h;u--,c=-1){var d=t.getLine(u);c>-1&&(d=d.slice(0,c));var f=a(d);if(1==l.length){var g=f.lastIndexOf(l[0]);if(-1==g)continue t;return{from:i(u,p(d,f,g,a)),to:i(u,p(d,f,g+l[0].length,a))}}var m=l[l.length-1];if(f.slice(0,m.length)==m){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(a(t.getLine(o+v))!=l[v])continue t;var y=t.getLine(u+1-l.length),E=a(y);if(E.slice(E.length-l[0].length)==l[0])return{from:i(u+1-l.length,p(y,E,y.length-l[0].length,a)),to:i(u,p(d,f,m.length,a))}}}}function g(t,e,n,r){var s;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=t,n=n?t.clipPos(n):i(0,0),this.pos={from:n,to:n},"object"==typeof r?s=r.caseFold:(s=r,r=null),"string"==typeof e?(null==s&&(s=!1),this.matches=function(n,i){return(n?f:d)(t,e,i,s)}):(e=o(e,"gm"),r&&!1===r.multiline?this.matches=function(n,i){return(n?c:a)(t,e,i)}:this.matches=function(n,i){return(n?h:l)(t,e,i)})}String.prototype.normalize?(e=function(t){return t.normalize("NFD").toLowerCase()},n=function(t){return t.normalize("NFD")}):(e=function(t){return t.toLowerCase()},n=function(t){return t}),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){var n=this.doc.clipPos(e?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=i(n.line,n.ch),e?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=t.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var r=this.matches(e,n);if(this.afterEmptyMatch=r&&0==t.cmpPos(r.from,r.to),r)return this.pos=r,this.atOccurrence=!0,this.pos.match||!0;var o=i(e?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,n){if(this.atOccurrence){var r=t.splitLines(e);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=i(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",function(t,e,n){return new g(this.doc,t,e,n)}),t.defineDocExtension("getSearchCursor",function(t,e,n){return new g(this,t,e,n)}),t.defineExtension("selectMatches",function(e,n){for(var i=[],r=this.getSearchCursor(e,this.getCursor("from"),n);r.findNext()&&!(t.cmpPos(r.to(),this.getCursor("to"))>0);)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)})}(n(1719))},8086:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(2977),r=n(8214);const o=function(t){return"symbol"==typeof t||(0,r.A)(t)&&"[object Symbol]"==(0,i.A)(t)}},8199:(t,e,n)=>{var i=n(7589).Global;t.exports={name:"oldFF-globalStorage",read:function(t){return r[t]},write:function(t,e){r[t]=e},each:o,remove:function(t){return r.removeItem(t)},clearAll:function(){o(function(t,e){delete r[t]})}};var r=i.globalStorage;function o(t){for(var e=r.length-1;e>=0;e--){var n=r.key(e);t(r[n],n)}}},8214:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t){return null!=t&&"object"==typeof t}},8272:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}},8285:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=Array.isArray},8292:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(7167);const r=function(t,e,n){"__proto__"==e&&i.A?(0,i.A)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},8377:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(7476),r="object"==typeof self&&self&&self.Object===Object&&self;const o=i.A||r||Function("return this")()},8412:(t,e,n)=>{"use strict";n.d(e,{A:()=>T});const i=(0,n(1671).A)(Object,"create");const r=function(){this.__data__=i?i(null):{},this.size=0};const o=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var s=Object.prototype.hasOwnProperty;const a=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(e,t)?e[t]:void 0};var l=Object.prototype.hasOwnProperty;const u=function(t){var e=this.__data__;return i?void 0!==e[t]:l.call(e,t)};const c=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};function h(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}h.prototype.clear=r,h.prototype.delete=o,h.prototype.get=a,h.prototype.has=u,h.prototype.set=c;const p=h;var d=n(5826),f=n(6787);const g=function(){this.size=0,this.__data__={hash:new p,map:new(f.A||d.A),string:new p}};const m=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const v=function(t,e){var n=t.__data__;return m(e)?n["string"==typeof e?"string":"hash"]:n.map};const y=function(t){var e=v(this,t).delete(t);return this.size-=e?1:0,e};const E=function(t){return v(this,t).get(t)};const _=function(t){return v(this,t).has(t)};const x=function(t,e){var n=v(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function b(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}b.prototype.clear=g,b.prototype.delete=y,b.prototype.get=E,b.prototype.has=_,b.prototype.set=x;const T=b},8541:(t,e,n)=>{var i=n(8696),r=n(1461),o=n(5217),s=n(1115),a=n(1907),l=n(1697),u=n(7735);function c(){"use strict";var e=r(),n=e.m(c),h=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function p(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))}var d={throw:1,return:2,break:3,continue:3};function f(t){var e,n;return function(i){e||(e={stop:function(){return n(i.a,2)},catch:function(){return i.v},abrupt:function(t,e){return n(i.a,d[t],e)},delegateYield:function(t,r,o){return e.resultName=r,n(i.d,u(t),o)},finish:function(t){return n(i.f,t)}},n=function(t,n,r){i.p=e.prev,i.n=e.next;try{return t(n,r)}finally{e.next=i.n}}),e.resultName&&(e[e.resultName]=i.v,e.resultName=void 0),e.sent=i.v,e.next=i.n;try{return t.call(this,e)}finally{i.p=e.prev,i.n=e.next}}}return(t.exports=c=function(){return{wrap:function(t,n,i,r){return e.w(f(t),n,i,r&&r.reverse())},isGeneratorFunction:p,mark:e.m,awrap:function(t,e){return new i(t,e)},AsyncIterator:a,async:function(t,e,n,i,r){return(p(e)?s:o)(f(t),e,n,i,r)},keys:l,values:u}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports},8563:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(8285),r=n(9758),o=n(8412);function s(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(s.Cache||o.A),n}s.Cache=o.A;const a=s;var l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g;const c=function(t){var e=a(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(l,function(t,n,i,r){e.push(i?r.replace(u,"$1"):n||t)}),e});var h=n(2965);const p=function(t,e){return(0,i.A)(t)?t:(0,r.A)(t,e)?[t]:c((0,h.A)(t))}},8696:t=>{t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},8709:(t,e,n)=>{!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,i={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function r(t){return t&&t.bracketRegex||/[(){}[\]]/}function o(t,e,o){var a=t.getLineHandle(e.line),l=e.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var c=r(o),h=!u&&l>=0&&c.test(a.text.charAt(l))&&i[a.text.charAt(l)]||c.test(a.text.charAt(l+1))&&i[a.text.charAt(++l)];if(!h)return null;var p=">"==h.charAt(1)?1:-1;if(o&&o.strict&&p>0!=(l==e.ch))return null;var d=t.getTokenTypeAt(n(e.line,l+1)),f=s(t,n(e.line,l+(p>0?1:0)),p,d,o);return null==f?null:{from:n(e.line,l),to:f&&f.pos,match:f&&f.ch==h.charAt(0),forward:p>0}}function s(t,e,o,s,a){for(var l=a&&a.maxScanLineLength||1e4,u=a&&a.maxScanLines||1e3,c=[],h=r(a),p=o>0?Math.min(e.line+u,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-u),d=e.line;d!=p;d+=o){var f=t.getLine(d);if(f){var g=o>0?0:f.length-1,m=o>0?f.length:-1;if(!(f.length>l))for(d==e.line&&(g=e.ch-(o<0?1:0));g!=m;g+=o){var v=f.charAt(g);if(h.test(v)&&(void 0===s||(t.getTokenTypeAt(n(d,g+1))||"")==(s||""))){var y=i[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(d,g),ch:v};c.pop()}}}}}return d-o!=(o>0?t.lastLine():t.firstLine())&&null}function a(t,i,r){for(var s=t.state.matchBrackets.maxHighlightLineLength||1e3,a=r&&r.highlightNonMatching,l=[],u=t.listSelections(),c=0;c<u.length;c++){var h=u[c].empty()&&o(t,u[c].head,r);if(h&&(h.match||!1!==a)&&t.getLine(h.from.line).length<=s){var p=h.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(t.markText(h.from,n(h.from.line,h.from.ch+1),{className:p})),h.to&&t.getLine(h.to.line).length<=s&&l.push(t.markText(h.to,n(h.to.line,h.to.ch+1),{className:p}))}}if(l.length){e&&t.state.focused&&t.focus();var d=function(){t.operation(function(){for(var t=0;t<l.length;t++)l[t].clear()})};if(!i)return d;setTimeout(d,800)}}function l(t){t.operation(function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=a(t,!1,t.state.matchBrackets)})}function u(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}t.defineOption("matchBrackets",!1,function(e,n,i){i&&i!=t.Init&&(e.off("cursorActivity",l),e.off("focus",l),e.off("blur",u),u(e)),n&&(e.state.matchBrackets="object"==typeof n?n:{},e.on("cursorActivity",l),e.on("focus",l),e.on("blur",u))}),t.defineExtension("matchBrackets",function(){a(this,!0)}),t.defineExtension("findMatchingBracket",function(t,e,n){return(n||"boolean"==typeof e)&&(n?(n.strict=e,e=n):e=e?{strict:!0}:null),o(this,t,e)}),t.defineExtension("scanForBracket",function(t,e,n,i){return s(this,t,e,n,i)})}(n(1719))},8723:t=>{"use strict";t.exports=function(t,e){if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]}},8782:(t,e,n)=>{"use strict";function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}n.d(e,{A:()=>i})},8839:(t,e,n)=>{"use strict";n.r(e)},8883:t=>{t.exports={name:"memoryStorage",read:function(t){return e[t]},write:function(t,n){e[t]=n},each:function(t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},remove:function(t){delete e[t]},clearAll:function(t){e={}}};var e={}},8956:(t,e,n)=>{"use strict";n.r(e)},9029:(t,e)=>{e.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,l=(1<<a)-1,u=l>>1,c=-7,h=n?r-1:0,p=n?-1:1,d=t[e+h];for(h+=p,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=256*s+t[e+h],h+=p,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,i),o-=u}return(d?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var s,a,l,u=8*o-r-1,c=(1<<u)-1,h=c>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=i?0:o-1,f=i?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+h>=1?p/l:p*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[n+d]=255&a,d+=f,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;t[n+d]=255&s,d+=f,s/=256,u-=8);t[n+d-f]|=128*g}},9082:(t,e,n)=>{!function(t){"use strict";var e={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function n(t){for(var n in this.options={},e)this.options[n]=(t&&t.hasOwnProperty(n)?t:e)[n];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function i(t){var e=t.state.matchHighlighter;(e.active||t.hasFocus())&&o(t,e)}function r(t){var e=t.state.matchHighlighter;e.active||(e.active=!0,o(t,e))}function o(t,e){clearTimeout(e.timeout),e.timeout=setTimeout(function(){l(t)},e.options.delay)}function s(t,e,n,i){var r=t.state.matchHighlighter;if(t.addOverlay(r.overlay=h(e,n,i)),r.options.annotateScrollbar&&t.showMatchesOnScrollbar){var o=n?new RegExp((/\w/.test(e.charAt(0))?"\\b":"")+e.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(e.charAt(e.length-1))?"\\b":"")):e;r.matchesonscroll=t.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function a(t){var e=t.state.matchHighlighter;e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null,e.matchesonscroll&&(e.matchesonscroll.clear(),e.matchesonscroll=null))}function l(t){t.operation(function(){var e=t.state.matchHighlighter;if(a(t),t.somethingSelected()||!e.options.showToken){var n=t.getCursor("from"),i=t.getCursor("to");if(n.line==i.line&&(!e.options.wordsOnly||u(t,n,i))){var r=t.getRange(n,i);e.options.trim&&(r=r.replace(/^\s+|\s+$/g,"")),r.length>=e.options.minChars&&s(t,r,!1,e.options.style)}}else{for(var o=!0===e.options.showToken?/[\w$]/:e.options.showToken,l=t.getCursor(),c=t.getLine(l.line),h=l.ch,p=h;h&&o.test(c.charAt(h-1));)--h;for(;p<c.length&&o.test(c.charAt(p));)++p;h<p&&s(t,c.slice(h,p),o,e.options.style)}})}function u(t,e,n){if(null!==t.getRange(e,n).match(/^\w+$/)){if(e.ch>0){var i={line:e.line,ch:e.ch-1};if(null===t.getRange(i,e).match(/\W/))return!1}return!(n.ch<t.getLine(e.line).length&&(i={line:n.line,ch:n.ch+1},null===t.getRange(n,i).match(/\W/)))}return!1}function c(t,e){return!(t.start&&e.test(t.string.charAt(t.start-1))||t.pos!=t.string.length&&e.test(t.string.charAt(t.pos)))}function h(t,e,n){return{token:function(i){if(i.match(t)&&(!e||c(i,e)))return n;i.next(),i.skipTo(t.charAt(0))||i.skipToEnd()}}}t.defineOption("highlightSelectionMatches",!1,function(e,o,s){if(s&&s!=t.Init&&(a(e),clearTimeout(e.state.matchHighlighter.timeout),e.state.matchHighlighter=null,e.off("cursorActivity",i),e.off("focus",r)),o){var u=e.state.matchHighlighter=new n(o);e.hasFocus()?(u.active=!0,l(e)):e.on("focus",r),e.on("cursorActivity",i)}})}(n(1719),n(6583))},9091:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(2020),r=n(8285);const o=function(t,e,n){var o=e(t);return(0,r.A)(t)?o:(0,i.A)(o,n(t))}},9121:(t,e,n)=>{"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,{A:()=>i})},9161:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t){return function(e){return t(e)}}},9298:(t,e,n)=>{!function(t){"use strict";function e(t,e){function n(t){clearTimeout(i.doRedraw),i.doRedraw=setTimeout(function(){i.redraw()},t)}this.cm=t,this.options=e,this.buttonHeight=e.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var i=this;t.on("refresh",this.resizeHandler=function(){clearTimeout(i.doUpdate),i.doUpdate=setTimeout(function(){i.computeScale()&&n(20)},100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==e.listenForChanges&&t.on("changes",this.changeHandler=function(){n(250)})}t.defineExtension("annotateScrollbar",function(t){return"string"==typeof t&&(t={className:t}),new e(this,t)}),t.defineOption("scrollButtonHeight",0),e.prototype.computeScale=function(){var t=this.cm,e=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(e!=this.hScale)return this.hScale=e,!0},e.prototype.update=function(t){this.annotations=t,this.redraw()},e.prototype.redraw=function(t){!1!==t&&this.computeScale();var e=this.cm,n=this.hScale,i=document.createDocumentFragment(),r=this.annotations,o=e.getOption("lineWrapping"),s=o&&1.5*e.defaultTextHeight(),a=null,l=null;function u(t,n){if(a!=t.line){a=t.line,l=e.getLineHandle(t.line);var i=e.getLineHandleVisualStart(l);i!=l&&(a=e.getLineNumber(i),l=i)}return l.widgets&&l.widgets.length||o&&l.height>s?e.charCoords(t,"local")[n?"top":"bottom"]:e.heightAtLine(l,"local")+(n?0:l.height)}var c=e.lastLine();if(e.display.barWidth)for(var h,p=0;p<r.length;p++){var d=r[p];if(!(d.to.line>c)){for(var f=h||u(d.from,!0)*n,g=u(d.to,!1)*n;p<r.length-1&&!(r[p+1].to.line>c)&&!((h=u(r[p+1].from,!0)*n)>g+.9);)g=u((d=r[++p]).to,!1)*n;if(g!=f){var m=Math.max(g-f,3),v=i.appendChild(document.createElement("div"));v.style.cssText="position: absolute; right: 0px; width: "+Math.max(e.display.barWidth-1,2)+"px; top: "+(f+this.buttonHeight)+"px; height: "+m+"px",v.className=this.options.className,d.id&&v.setAttribute("annotation-id",d.id)}}}this.div.textContent="",this.div.appendChild(i)},e.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(n(1719))},9418:(t,e,n)=>{"use strict";n.d(e,{A:()=>at});const{entries:i,setPrototypeOf:r,isFrozen:o,getPrototypeOf:s,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:u,create:c}=Object,{apply:h,construct:p}="undefined"!=typeof Reflect&&Reflect;l||(l=function(t){return t}),u||(u=function(t){return t}),h||(h=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return t.apply(e,i)}),p||(p=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return new t(...n)});const d=N(Array.prototype.forEach),f=N(Array.prototype.lastIndexOf),g=N(Array.prototype.pop),m=N(Array.prototype.push),v=N(Array.prototype.splice),y=N(String.prototype.toLowerCase),E=N(String.prototype.toString),_=N(String.prototype.match),x=N(String.prototype.replace),b=N(String.prototype.indexOf),T=N(String.prototype.trim),S=N(Object.prototype.hasOwnProperty),A=N(RegExp.prototype.test),L=(C=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return p(C,e)});var C;function N(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return h(t,e,i)}}function I(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;r&&r(t,null);let i=e.length;for(;i--;){let r=e[i];if("string"==typeof r){const t=n(r);t!==r&&(o(e)||(e[i]=t),r=t)}t[r]=!0}return t}function w(t){for(let e=0;e<t.length;e++){S(t,e)||(t[e]=null)}return t}function R(t){const e=c(null);for(const[n,r]of i(t)){S(t,n)&&(Array.isArray(r)?e[n]=w(r):r&&"object"==typeof r&&r.constructor===Object?e[n]=R(r):e[n]=r)}return e}function P(t,e){for(;null!==t;){const n=a(t,e);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}t=s(t)}return function(){return null}}const M=l(["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"]),O=l(["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"]),k=l(["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"]),D=l(["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"]),G=l(["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"]),B=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),j=l(["#text"]),F=l(["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"]),U=l(["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"]),H=l(["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"]),q=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),V=u(/<%[\w\W]*|[\w\W]*%>/gm),W=u(/\$\{[\w\W]*/gm),Z=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),Q=u(/^aria-[\-\w]+$/),X=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=u(/^(?:\w+script|data):/i),$=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=u(/^html$/i),J=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var tt=Object.freeze({__proto__:null,ARIA_ATTR:Q,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:J,DATA_ATTR:Z,DOCTYPE_NAME:K,ERB_EXPR:V,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:z,TMPLIT_EXPR:W});const et=1,nt=3,it=7,rt=8,ot=9,st=function(){return"undefined"==typeof window?null:window};var at=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:st();const n=e=>t(e);if(n.version="3.3.0",n.removed=[],!e||!e.document||e.document.nodeType!==ot||!e.Element)return n.isSupported=!1,n;let{document:r}=e;const o=r,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:h,Element:p,NodeFilter:C,NamedNodeMap:N=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:w,DOMParser:z,trustedTypes:V}=e,W=p.prototype,Z=P(W,"cloneNode"),Q=P(W,"remove"),Y=P(W,"nextSibling"),$=P(W,"childNodes"),J=P(W,"parentNode");if("function"==typeof u){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let at,lt="";const{implementation:ut,createNodeIterator:ct,createDocumentFragment:ht,getElementsByTagName:pt}=r,{importNode:dt}=o;let ft={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof i&&"function"==typeof J&&ut&&void 0!==ut.createHTMLDocument;const{MUSTACHE_EXPR:gt,ERB_EXPR:mt,TMPLIT_EXPR:vt,DATA_ATTR:yt,ARIA_ATTR:Et,IS_SCRIPT_OR_DATA:_t,ATTR_WHITESPACE:xt,CUSTOM_ELEMENT:bt}=tt;let{IS_ALLOWED_URI:Tt}=tt,St=null;const At=I({},[...M,...O,...k,...G,...j]);let Lt=null;const Ct=I({},[...F,...U,...H,...q]);let Nt=Object.seal(c(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}})),It=null,wt=null;const Rt=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pt=!0,Mt=!0,Ot=!1,kt=!0,Dt=!1,Gt=!0,Bt=!1,jt=!1,Ft=!1,Ut=!1,Ht=!1,qt=!1,zt=!0,Vt=!1,Wt=!0,Zt=!1,Qt={},Xt=null;const Yt=I({},["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"]);let $t=null;const Kt=I({},["audio","video","img","source","image","track"]);let Jt=null;const te=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml";let re=ie,oe=!1,se=null;const ae=I({},[ee,ne,ie],E);let le=I({},["mi","mo","mn","ms","mtext"]),ue=I({},["annotation-xml"]);const ce=I({},["title","style","font","a","script"]);let he=null;const pe=["application/xhtml+xml","text/html"];let de=null,fe=null;const ge=r.createElement("form"),me=function(t){return t instanceof RegExp||t instanceof Function},ve=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!fe||fe!==t){if(t&&"object"==typeof t||(t={}),t=R(t),he=-1===pe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,de="application/xhtml+xml"===he?E:y,St=S(t,"ALLOWED_TAGS")?I({},t.ALLOWED_TAGS,de):At,Lt=S(t,"ALLOWED_ATTR")?I({},t.ALLOWED_ATTR,de):Ct,se=S(t,"ALLOWED_NAMESPACES")?I({},t.ALLOWED_NAMESPACES,E):ae,Jt=S(t,"ADD_URI_SAFE_ATTR")?I(R(te),t.ADD_URI_SAFE_ATTR,de):te,$t=S(t,"ADD_DATA_URI_TAGS")?I(R(Kt),t.ADD_DATA_URI_TAGS,de):Kt,Xt=S(t,"FORBID_CONTENTS")?I({},t.FORBID_CONTENTS,de):Yt,It=S(t,"FORBID_TAGS")?I({},t.FORBID_TAGS,de):R({}),wt=S(t,"FORBID_ATTR")?I({},t.FORBID_ATTR,de):R({}),Qt=!!S(t,"USE_PROFILES")&&t.USE_PROFILES,Pt=!1!==t.ALLOW_ARIA_ATTR,Mt=!1!==t.ALLOW_DATA_ATTR,Ot=t.ALLOW_UNKNOWN_PROTOCOLS||!1,kt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Dt=t.SAFE_FOR_TEMPLATES||!1,Gt=!1!==t.SAFE_FOR_XML,Bt=t.WHOLE_DOCUMENT||!1,Ut=t.RETURN_DOM||!1,Ht=t.RETURN_DOM_FRAGMENT||!1,qt=t.RETURN_TRUSTED_TYPE||!1,Ft=t.FORCE_BODY||!1,zt=!1!==t.SANITIZE_DOM,Vt=t.SANITIZE_NAMED_PROPS||!1,Wt=!1!==t.KEEP_CONTENT,Zt=t.IN_PLACE||!1,Tt=t.ALLOWED_URI_REGEXP||X,re=t.NAMESPACE||ie,le=t.MATHML_TEXT_INTEGRATION_POINTS||le,ue=t.HTML_INTEGRATION_POINTS||ue,Nt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&me(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Nt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&me(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Nt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Nt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Dt&&(Mt=!1),Ht&&(Ut=!0),Qt&&(St=I({},j),Lt=[],!0===Qt.html&&(I(St,M),I(Lt,F)),!0===Qt.svg&&(I(St,O),I(Lt,U),I(Lt,q)),!0===Qt.svgFilters&&(I(St,k),I(Lt,U),I(Lt,q)),!0===Qt.mathMl&&(I(St,G),I(Lt,H),I(Lt,q))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Rt.tagCheck=t.ADD_TAGS:(St===At&&(St=R(St)),I(St,t.ADD_TAGS,de))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Rt.attributeCheck=t.ADD_ATTR:(Lt===Ct&&(Lt=R(Lt)),I(Lt,t.ADD_ATTR,de))),t.ADD_URI_SAFE_ATTR&&I(Jt,t.ADD_URI_SAFE_ATTR,de),t.FORBID_CONTENTS&&(Xt===Yt&&(Xt=R(Xt)),I(Xt,t.FORBID_CONTENTS,de)),Wt&&(St["#text"]=!0),Bt&&I(St,["html","head","body"]),St.table&&(I(St,["tbody"]),delete It.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw L('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');at=t.TRUSTED_TYPES_POLICY,lt=at.createHTML("")}else void 0===at&&(at=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(V,s)),null!==at&&"string"==typeof lt&&(lt=at.createHTML(""));l&&l(t),fe=t}},ye=I({},[...O,...k,...D]),Ee=I({},[...G,...B]),_e=function(t){m(n.removed,{element:t});try{J(t).removeChild(t)}catch(e){Q(t)}},xe=function(t,e){try{m(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Ut||Ht)try{_e(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},be=function(t){let e=null,n=null;if(Ft)t="<remove></remove>"+t;else{const e=_(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===he&&re===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const i=at?at.createHTML(t):t;if(re===ie)try{e=(new z).parseFromString(i,he)}catch(t){}if(!e||!e.documentElement){e=ut.createDocument(re,"template",null);try{e.documentElement.innerHTML=oe?lt:i}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),re===ie?pt.call(e,Bt?"html":"body")[0]:Bt?e.documentElement:o},Te=function(t){return ct.call(t.ownerDocument||t,t,C.SHOW_ELEMENT|C.SHOW_COMMENT|C.SHOW_TEXT|C.SHOW_PROCESSING_INSTRUCTION|C.SHOW_CDATA_SECTION,null)},Se=function(t){return t instanceof w&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof N)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ae=function(t){return"function"==typeof h&&t instanceof h};function Le(t,e,i){d(t,t=>{t.call(n,e,i,fe)})}const Ce=function(t){let e=null;if(Le(ft.beforeSanitizeElements,t,null),Se(t))return _e(t),!0;const i=de(t.nodeName);if(Le(ft.uponSanitizeElement,t,{tagName:i,allowedTags:St}),Gt&&t.hasChildNodes()&&!Ae(t.firstElementChild)&&A(/<[/\w!]/g,t.innerHTML)&&A(/<[/\w!]/g,t.textContent))return _e(t),!0;if(t.nodeType===it)return _e(t),!0;if(Gt&&t.nodeType===rt&&A(/<[/\w]/g,t.data))return _e(t),!0;if(!(Rt.tagCheck instanceof Function&&Rt.tagCheck(i))&&(!St[i]||It[i])){if(!It[i]&&Ie(i)){if(Nt.tagNameCheck instanceof RegExp&&A(Nt.tagNameCheck,i))return!1;if(Nt.tagNameCheck instanceof Function&&Nt.tagNameCheck(i))return!1}if(Wt&&!Xt[i]){const e=J(t)||t.parentNode,n=$(t)||t.childNodes;if(n&&e){for(let i=n.length-1;i>=0;--i){const r=Z(n[i],!0);r.__removalCount=(t.__removalCount||0)+1,e.insertBefore(r,Y(t))}}}return _e(t),!0}return t instanceof p&&!function(t){let e=J(t);e&&e.tagName||(e={namespaceURI:re,tagName:"template"});const n=y(t.tagName),i=y(e.tagName);return!!se[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===ie?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===i||le[i]):Boolean(ye[n]):t.namespaceURI===ee?e.namespaceURI===ie?"math"===n:e.namespaceURI===ne?"math"===n&&ue[i]:Boolean(Ee[n]):t.namespaceURI===ie?!(e.namespaceURI===ne&&!ue[i])&&!(e.namespaceURI===ee&&!le[i])&&!Ee[n]&&(ce[n]||!ye[n]):!("application/xhtml+xml"!==he||!se[t.namespaceURI]))}(t)?(_e(t),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!A(/<\/no(script|embed|frames)/i,t.innerHTML)?(Dt&&t.nodeType===nt&&(e=t.textContent,d([gt,mt,vt],t=>{e=x(e,t," ")}),t.textContent!==e&&(m(n.removed,{element:t.cloneNode()}),t.textContent=e)),Le(ft.afterSanitizeElements,t,null),!1):(_e(t),!0)},Ne=function(t,e,n){if(zt&&("id"===e||"name"===e)&&(n in r||n in ge))return!1;if(Mt&&!wt[e]&&A(yt,e));else if(Pt&&A(Et,e));else if(Rt.attributeCheck instanceof Function&&Rt.attributeCheck(e,t));else if(!Lt[e]||wt[e]){if(!(Ie(t)&&(Nt.tagNameCheck instanceof RegExp&&A(Nt.tagNameCheck,t)||Nt.tagNameCheck instanceof Function&&Nt.tagNameCheck(t))&&(Nt.attributeNameCheck instanceof RegExp&&A(Nt.attributeNameCheck,e)||Nt.attributeNameCheck instanceof Function&&Nt.attributeNameCheck(e,t))||"is"===e&&Nt.allowCustomizedBuiltInElements&&(Nt.tagNameCheck instanceof RegExp&&A(Nt.tagNameCheck,n)||Nt.tagNameCheck instanceof Function&&Nt.tagNameCheck(n))))return!1}else if(Jt[e]);else if(A(Tt,x(n,xt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==b(n,"data:")||!$t[t]){if(Ot&&!A(_t,x(n,xt,"")));else if(n)return!1}else;return!0},Ie=function(t){return"annotation-xml"!==t&&_(t,bt)},we=function(t){Le(ft.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Se(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Lt,forceKeepAttr:void 0};let r=e.length;for(;r--;){const o=e[r],{name:s,namespaceURI:a,value:l}=o,u=de(s),c=l;let h="value"===s?c:T(c);if(i.attrName=u,i.attrValue=h,i.keepAttr=!0,i.forceKeepAttr=void 0,Le(ft.uponSanitizeAttribute,t,i),h=i.attrValue,!Vt||"id"!==u&&"name"!==u||(xe(s,t),h="user-content-"+h),Gt&&A(/((--!?|])>)|<\/(style|title|textarea)/i,h)){xe(s,t);continue}if("attributename"===u&&_(h,"href")){xe(s,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){xe(s,t);continue}if(!kt&&A(/\/>/i,h)){xe(s,t);continue}Dt&&d([gt,mt,vt],t=>{h=x(h,t," ")});const p=de(t.nodeName);if(Ne(p,u,h)){if(at&&"object"==typeof V&&"function"==typeof V.getAttributeType)if(a);else switch(V.getAttributeType(p,u)){case"TrustedHTML":h=at.createHTML(h);break;case"TrustedScriptURL":h=at.createScriptURL(h)}if(h!==c)try{a?t.setAttributeNS(a,s,h):t.setAttribute(s,h),Se(t)?_e(t):g(n.removed)}catch(e){xe(s,t)}}else xe(s,t)}Le(ft.afterSanitizeAttributes,t,null)},Re=function t(e){let n=null;const i=Te(e);for(Le(ft.beforeSanitizeShadowDOM,e,null);n=i.nextNode();)Le(ft.uponSanitizeShadowNode,n,null),Ce(n),we(n),n.content instanceof a&&t(n.content);Le(ft.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,s=null,l=null;if(oe=!t,oe&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ae(t)){if("function"!=typeof t.toString)throw L("toString is not a function");if("string"!=typeof(t=t.toString()))throw L("dirty is not a string, aborting")}if(!n.isSupported)return t;if(jt||ve(e),n.removed=[],"string"==typeof t&&(Zt=!1),Zt){if(t.nodeName){const e=de(t.nodeName);if(!St[e]||It[e])throw L("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof h)i=be("\x3c!----\x3e"),r=i.ownerDocument.importNode(t,!0),r.nodeType===et&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!Ut&&!Dt&&!Bt&&-1===t.indexOf("<"))return at&&qt?at.createHTML(t):t;if(i=be(t),!i)return Ut?null:qt?lt:""}i&&Ft&&_e(i.firstChild);const u=Te(Zt?t:i);for(;s=u.nextNode();)Ce(s),we(s),s.content instanceof a&&Re(s.content);if(Zt)return t;if(Ut){if(Ht)for(l=ht.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(Lt.shadowroot||Lt.shadowrootmode)&&(l=dt.call(o,l,!0)),l}let c=Bt?i.outerHTML:i.innerHTML;return Bt&&St["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&A(K,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),Dt&&d([gt,mt,vt],t=>{c=x(c,t," ")}),at&&qt?at.createHTML(c):c},n.setConfig=function(){ve(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),jt=!0},n.clearConfig=function(){fe=null,jt=!1},n.isValidAttribute=function(t,e,n){fe||ve({});const i=de(t),r=de(e);return Ne(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&m(ft[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=f(ft[t],e);return-1===n?void 0:v(ft[t],n,1)[0]}return g(ft[t])},n.removeHooks=function(t){ft[t]=[]},n.removeAllHooks=function(){ft={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()},9430:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(946),r=n(7167),o=n(1100);const s=r.A?function(t,e){return(0,r.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,i.A)(e),writable:!0})}:o.A;var a=Date.now;const l=function(t){var e=0,n=0;return function(){var i=a(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(s)},9557:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(6809),r=Object.create;const o=function(){function t(){}return function(e){if(!(0,i.A)(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var s=n(7827),a=n(4603);const l=function(t){return"function"!=typeof t.constructor||(0,a.A)(t)?{}:o((0,s.A)(t))}},9602:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},u=o.push,c=o.indexOf,h={},p=h.toString,d=h.hasOwnProperty,f=d.toString,g=f.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},E=i.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,r,o=(n=n||E).createElement("script");if(o.text=t,e)for(i in _)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[p.call(t)]||"object":typeof t}var T="3.7.1",S=/HTML$/i,A=function(t,e){return new A.fn.init(t,e)};function L(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}A.fn=A.prototype={jquery:T,constructor:A,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=A.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return A.each(this,t)},map:function(t){return this.pushStack(A.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},A.extend=A.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(u&&i&&(A.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||A.isPlainObject(n)?n:{},r=!1,s[e]=A.extend(u,o,i)):void 0!==i&&(s[e]=i));return s},A.extend({expando:"jQuery"+(T+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==p.call(t))&&(!(e=s(t))||"function"==typeof(n=d.call(e,"constructor")&&e.constructor)&&f.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(L(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=A.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(L(Object(t))?A.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!S.test(e||n&&n.nodeName||"HTML")},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(L(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&s.push(r);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=o[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){h["[object "+e+"]"]=e.toLowerCase()});var N=o.pop,I=o.sort,w=o.splice,R="[\\x20\\t\\r\\n\\f]",P=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g");A.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var M=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}A.escapeSelector=function(t){return(t+"").replace(M,O)};var k=E,D=u;!function(){var t,e,n,r,s,l,u,h,p,f,g=D,v=A.expando,y=0,E=0,_=tt(),x=tt(),b=tt(),T=tt(),S=function(t,e){return t===e&&(s=!0),0},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+R+"*("+M+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+R+"*\\]",G=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",B=new RegExp(R+"+","g"),j=new RegExp("^"+R+"*,"+R+"*"),F=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),U=new RegExp(R+"|>"),H=new RegExp(G),q=new RegExp("^"+M+"$"),z={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,W=/^h\d$/i,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),Y=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},$=function(){lt()},K=pt(function(t){return!0===t.disabled&&C(t,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(o=a.call(k.childNodes),k.childNodes),o[k.childNodes.length].nodeType}catch(t){g={apply:function(t,e){D.apply(t,a.call(e))},call:function(t){D.apply(t,a.call(arguments,1))}}}function J(t,e,n,i){var r,o,s,a,u,c,d,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||l,h)){if(11!==y&&(u=Z.exec(t)))if(r=u[1]){if(9===y){if(!(s=e.getElementById(r)))return n;if(s.id===r)return g.call(n,s),n}else if(f&&(s=f.getElementById(r))&&J.contains(e,s)&&s.id===r)return g.call(n,s),n}else{if(u[2])return g.apply(n,e.getElementsByTagName(t)),n;if((r=u[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(r)),n}if(!(T[t+" "]||p&&p.test(t))){if(d=t,f=e,1===y&&(U.test(t)||F.test(t))){for((f=Q.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=A.escapeSelector(a):e.setAttribute("id",a=v)),o=(c=ct(t)).length;o--;)c[o]=(a?"#"+a:":scope")+" "+ht(c[o]);d=c.join(",")}try{return g.apply(n,f.querySelectorAll(d)),n}catch(e){T(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(P,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return C(e,"input")&&e.type===t}}function rt(t){return function(e){return(C(e,"input")||C(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&K(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et(function(e){return e=+e,et(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:k;return i!=l&&9===i.nodeType&&i.documentElement?(u=(l=i).documentElement,h=!A.isXMLDoc(l),f=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&k!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",$),m.getById=nt(function(t){return u.appendChild(t).id=A.expando,!l.getElementsByName||!l.getElementsByName(A.expando).length}),m.disconnectedMatch=nt(function(t){return f.call(t,"*")}),m.scope=nt(function(){return l.querySelectorAll(":scope")}),m.cssHas=nt(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),m.getById?(e.filter.ID=function(t){var e=t.replace(X,Y);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(X,Y);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&h)return e.getElementsByClassName(t)},p=[],nt(function(t){var e;u.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||p.push("\\["+R+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+v+"-]").length||p.push("~="),t.querySelectorAll("a#"+v+"+*").length||p.push(".#.+[+~]"),t.querySelectorAll(":checked").length||p.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),u.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||p.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")")}),m.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),S=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==k&&J.contains(k,t)?-1:e===l||e.ownerDocument==k&&J.contains(k,e)?1:r?c.call(r,t)-c.call(r,e):0:4&n?-1:1)},l):l}for(t in J.matches=function(t,e){return J(t,null,null,e)},J.matchesSelector=function(t,e){if(lt(t),h&&!T[e+" "]&&(!p||!p.test(e)))try{var n=f.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){T(e,!0)}return J(e,l,null,[t]).length>0},J.contains=function(t,e){return(t.ownerDocument||t)!=l&<(t),A.contains(t,e)},J.attr=function(t,n){(t.ownerDocument||t)!=l&<(t);var i=e.attrHandle[n.toLowerCase()],r=i&&d.call(e.attrHandle,n.toLowerCase())?i(t,n,!h):void 0;return void 0!==r?r:t.getAttribute(n)},J.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},A.uniqueSort=function(t){var e,n=[],i=0,o=0;if(s=!m.sortStable,r=!m.sortStable&&a.call(t,0),I.call(t,S),s){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)w.call(t,n[i],1)}return r=null,t},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(a.apply(this)))},e=A.expr={cacheLength:50,createPseudo:et,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(X,Y),t[3]=(t[3]||t[4]||t[5]||"").replace(X,Y),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||J.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&J.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&H.test(n)&&(e=ct(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(X,Y).toLowerCase();return"*"===t?function(){return!0}:function(t){return C(t,e)}},CLASS:function(t){var e=_[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&_(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=J.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,h,p,d,f=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),E=!l&&!a,_=!1;if(g){if(o){for(;f;){for(h=e;h=h[f];)if(a?C(h,m):1===h.nodeType)return!1;d=f="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?g.firstChild:g.lastChild],s&&E){for(_=(p=(u=(c=g[v]||(g[v]={}))[t]||[])[0]===y&&u[1])&&u[2],h=p&&g.childNodes[p];h=++p&&h&&h[f]||(_=p=0)||d.pop();)if(1===h.nodeType&&++_&&h===e){c[t]=[y,p,_];break}}else if(E&&(_=p=(u=(c=e[v]||(e[v]={}))[t]||[])[0]===y&&u[1]),!1===_)for(;(h=++p&&h&&h[f]||(_=p=0)||d.pop())&&(!(a?C(h,m):1===h.nodeType)||!++_||(E&&((c=h[v]||(h[v]={}))[t]=[y,_]),h!==e)););return(_-=r)===i||_%i===0&&_/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||J.error("unsupported pseudo: "+t);return r[v]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var i,o=r(t,n),s=o.length;s--;)t[i=c.call(t,o[s])]=!(e[i]=o[s])}):function(t){return r(t,0,i)}):r}},pseudos:{not:et(function(t){var e=[],n=[],i=vt(t.replace(P,"$1"));return i[v]?et(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return J(t,e).length>0}}),contains:et(function(t){return t=t.replace(X,Y),function(e){return(e.textContent||A.text(e)).indexOf(t)>-1}}),lang:et(function(t){return q.test(t||"")||J.error("unsupported lang: "+t),t=t.replace(X,Y).toLowerCase(),function(e){var n;do{if(n=h?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===u},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return W.test(t.nodeName)},input:function(t){return V.test(t.nodeName)},button:function(t){return C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st(function(){return[0]}),last:st(function(t,e){return[e-1]}),eq:st(function(t,e,n){return[n<0?n+e:n]}),even:st(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:st(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:st(function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:st(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ut(){}function ct(t,n){var i,r,o,s,a,l,u,c=x[t+" "];if(c)return n?0:c.slice(0);for(a=t,l=[],u=e.preFilter;a;){for(s in i&&!(r=j.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=F.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(P," ")}),a=a.slice(i.length)),e.filter)!(r=z[s].exec(a))||u[s]&&!(r=u[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?J.error(t):x(t,l).slice(0)}function ht(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function pt(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=E++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,l){var u,c,h=[y,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(c=e[v]||(e[v]={}),r&&C(e,r))e=e[i]||e;else{if((u=c[o])&&u[0]===y&&u[1]===a)return h[2]=u[2];if(c[o]=h,h[2]=t(e,n,l))return!0}return!1}}function dt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function ft(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),u&&e.push(a)));return s}function gt(t,e,n,i,r,o){return i&&!i[v]&&(i=gt(i)),r&&!r[v]&&(r=gt(r,o)),et(function(o,s,a,l){var u,h,p,d,f=[],m=[],v=s.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)J(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),E=!t||!o&&e?y:ft(y,f,t,a,l);if(n?n(E,d=r||(o?t:v||i)?[]:s,a,l):d=E,i)for(u=ft(d,m),i(u,[],a,l),h=u.length;h--;)(p=u[h])&&(d[m[h]]=!(E[m[h]]=p));if(o){if(r||t){if(r){for(u=[],h=d.length;h--;)(p=d[h])&&u.push(E[h]=p);r(null,d=[],u,l)}for(h=d.length;h--;)(p=d[h])&&(u=r?c.call(o,p):f[h])>-1&&(o[u]=!(s[u]=p))}}else d=ft(d===s?d.splice(v,d.length):d),r?r(null,s,d,l):g.apply(s,d)})}function mt(t){for(var i,r,o,s=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],u=a?1:0,h=pt(function(t){return t===i},l,!0),p=pt(function(t){return c.call(i,t)>-1},l,!0),d=[function(t,e,r){var o=!a&&(r||e!=n)||((i=e).nodeType?h(t,e,r):p(t,e,r));return i=null,o}];u<s;u++)if(r=e.relative[t[u].type])d=[pt(dt(d),r)];else{if((r=e.filter[t[u].type].apply(null,t[u].matches))[v]){for(o=++u;o<s&&!e.relative[t[o].type];o++);return gt(u>1&&dt(d),u>1&&ht(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(P,"$1"),r,u<o&&mt(t.slice(u,o)),o<s&&mt(t=t.slice(o)),o<s&&ht(t))}d.push(r)}return dt(d)}function vt(t,i){var r,o=[],s=[],a=b[t+" "];if(!a){for(i||(i=ct(t)),r=i.length;r--;)(a=mt(i[r]))[v]?o.push(a):s.push(a);a=b(t,function(t,i){var r=i.length>0,o=t.length>0,s=function(s,a,u,c,p){var d,f,m,v=0,E="0",_=s&&[],x=[],b=n,T=s||o&&e.find.TAG("*",p),S=y+=null==b?1:Math.random()||.1,L=T.length;for(p&&(n=a==l||a||p);E!==L&&null!=(d=T[E]);E++){if(o&&d){for(f=0,a||d.ownerDocument==l||(lt(d),u=!h);m=t[f++];)if(m(d,a||l,u)){g.call(c,d);break}p&&(y=S)}r&&((d=!m&&d)&&v--,s&&_.push(d))}if(v+=E,r&&E!==v){for(f=0;m=i[f++];)m(_,x,a,u);if(s){if(v>0)for(;E--;)_[E]||x[E]||(x[E]=N.call(c));x=ft(x)}g.apply(c,x),p&&!s&&x.length>0&&v+i.length>1&&A.uniqueSort(c)}return p&&(y=S,n=b),_};return r?et(s):s}(s,o)),a.selector=t}return a}function yt(t,n,i,r){var o,s,a,l,u,c="function"==typeof t&&t,p=!r&&ct(t=c.selector||t);if(i=i||[],1===p.length){if((s=p[0]=p[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&h&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(X,Y),n)||[])[0]))return i;c&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=z.needsContext.test(t)?0:s.length;o--&&(a=s[o],!e.relative[l=a.type]);)if((u=e.find[l])&&(r=u(a.matches[0].replace(X,Y),Q.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=r.length&&ht(s)))return g.apply(i,r),i;break}}return(c||vt(t,p))(r,n,!h,i,!n||Q.test(t)&&at(n.parentNode)||n),i}ut.prototype=e.filters=e.pseudos,e.setFilters=new ut,m.sortStable=v.split("").sort(S).join("")===v,lt(),m.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))}),A.find=J,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,J.compile=vt,J.select=yt,J.setDocument=lt,J.tokenize=ct,J.escape=A.escapeSelector,J.getText=A.text,J.isXML=A.isXMLDoc,J.selectors=A.expr,J.support=A.support,J.uniqueSort=A.uniqueSort}();var G=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&A(t).is(n))break;i.push(t)}return i},B=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},j=A.expr.match.needsContext,F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(t,e,n){return v(e)?A.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?A.grep(t,function(t){return t===e!==n}):"string"!=typeof e?A.grep(t,function(t){return c.call(e,t)>-1!==n}):A.filter(e,t,n)}A.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?A.find.matchesSelector(i,t)?[i]:[]:A.find.matches(t,A.grep(e,function(t){return 1===t.nodeType}))},A.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(A(t).filter(function(){for(e=0;e<i;e++)if(A.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)A.find(t,r[e],n);return i>1?A.uniqueSort(n):n},filter:function(t){return this.pushStack(U(this,t||[],!1))},not:function(t){return this.pushStack(U(this,t||[],!0))},is:function(t){return!!U(this,"string"==typeof t&&j.test(t)?A(t):t||[],!1).length}});var H,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||H,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:q.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof A?e[0]:e,A.merge(this,A.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:E,!0)),F.test(i[1])&&A.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=E.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(A):A.makeArray(t,this)}).prototype=A.fn,H=A(E);var z=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function W(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}A.fn.extend({has:function(t){var e=A(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(A.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&A(t);if(!j.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&A.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?A.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(A(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),A.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return G(t,"parentNode")},parentsUntil:function(t,e,n){return G(t,"parentNode",n)},next:function(t){return W(t,"nextSibling")},prev:function(t){return W(t,"previousSibling")},nextAll:function(t){return G(t,"nextSibling")},prevAll:function(t){return G(t,"previousSibling")},nextUntil:function(t,e,n){return G(t,"nextSibling",n)},prevUntil:function(t,e,n){return G(t,"previousSibling",n)},siblings:function(t){return B((t.parentNode||{}).firstChild,t)},children:function(t){return B(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),A.merge([],t.childNodes))}},function(t,e){A.fn[t]=function(n,i){var r=A.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=A.filter(i,r)),this.length>1&&(V[t]||A.uniqueSort(r),z.test(t)&&r.reverse()),this.pushStack(r)}});var Z=/[^\x20\t\r\n\f]+/g;function Q(t){return t}function X(t){throw t}function Y(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}A.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return A.each(t.match(Z)||[],function(t,n){e[n]=!0}),e}(t):A.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){A.each(n,function(n,i){v(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==b(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return A.each(arguments,function(t,e){for(var n;(n=A.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?A.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},A.extend({Deferred:function(t){var e=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return A.Deferred(function(n){A.each(e,function(e,i){var r=v(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var o=0;function s(t,e,n,r){return function(){var a=this,l=arguments,u=function(){var i,u;if(!(t<o)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");u=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(u)?r?u.call(i,s(o,e,Q,r),s(o,e,X,r)):(o++,u.call(i,s(o,e,Q,r),s(o,e,X,r),s(o,e,Q,e.notifyWith))):(n!==Q&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},c=r?u:function(){try{u()}catch(i){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(i,c.error),t+1>=o&&(n!==X&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?c():(A.Deferred.getErrorHook?c.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(c.error=A.Deferred.getStackHook()),i.setTimeout(c))}}return A.Deferred(function(i){e[0][3].add(s(0,i,v(r)?r:Q,i.notifyWith)),e[1][3].add(s(0,i,v(t)?t:Q)),e[2][3].add(s(0,i,v(n)?n:X))}).promise()},promise:function(t){return null!=t?A.extend(t,r):r}},o={};return A.each(e,function(t,i){var s=i[2],a=i[5];r[i[1]]=s.add,a&&s.add(function(){n=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),o=A.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Y(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)Y(r[n],s(n),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&$.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},A.readyException=function(t){i.setTimeout(function(){throw t})};var K=A.Deferred();function J(){E.removeEventListener("DOMContentLoaded",J),i.removeEventListener("load",J),A.ready()}A.fn.ready=function(t){return K.then(t).catch(function(t){A.readyException(t)}),this},A.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--A.readyWait:A.isReady)||(A.isReady=!0,!0!==t&&--A.readyWait>0||K.resolveWith(E,[A]))}}),A.ready.then=K.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?i.setTimeout(A.ready):(E.addEventListener("DOMContentLoaded",J),i.addEventListener("load",J));var tt=function(t,e,n,i,r,o,s){var a=0,l=t.length,u=null==n;if("object"===b(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),u&&(s?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(A(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:u?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function st(){this.expando=A.expando+st.uid++}st.uid=1,st.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(Z)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||A.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!A.isEmptyObject(e)}};var at=new st,lt=new st,ut=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ct=/[A-Z]/g;function ht(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ct,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ut.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}A.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),A.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!at.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=rt(i.slice(5)),ht(o,i,r[i]));at.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){lt.set(this,t)}):tt(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=ht(o,t))?n:void 0;this.each(function(){lt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){lt.remove(this,t)})}}),A.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,A.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=A.queue(t,e),i=n.length,r=n.shift(),o=A._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){A.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:A.Callbacks("once memory").add(function(){at.remove(t,[e+"queue",n])})})}}),A.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?A.queue(this[0],t):void 0===e?this:this.each(function(){var n=A.queue(this,t,e);A._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&A.dequeue(this,t)})},dequeue:function(t){return this.each(function(){A.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=A.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=at.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var pt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,dt=new RegExp("^(?:([+-])=|)("+pt+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],gt=E.documentElement,mt=function(t){return A.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return A.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===A.css(t,"display")};function Et(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return A.css(t,e,"")},l=a(),u=n&&n[3]||(A.cssNumber[e]?"":"px"),c=t.nodeType&&(A.cssNumber[e]||"px"!==u&&+l)&&dt.exec(A.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)A.style(t,e,c+u),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,A.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var _t={};function xt(t){var e,n=t.ownerDocument,i=t.nodeName,r=_t[i];return r||(e=n.body.appendChild(n.createElement(i)),r=A.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),_t[i]=r,r)}function bt(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=at.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&yt(i)&&(r[o]=xt(i))):"none"!==n&&(r[o]="none",at.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}A.fn.extend({show:function(){return bt(this,!0)},hide:function(){return bt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){yt(this)?A(this).show():A(this).hide()})}});var Tt,St,At=/^(?:checkbox|radio)$/i,Lt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;Tt=E.createDocumentFragment().appendChild(E.createElement("div")),(St=E.createElement("input")).setAttribute("type","radio"),St.setAttribute("checked","checked"),St.setAttribute("name","t"),Tt.appendChild(St),m.checkClone=Tt.cloneNode(!0).cloneNode(!0).lastChild.checked,Tt.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Tt.cloneNode(!0).lastChild.defaultValue,Tt.innerHTML="<option></option>",m.option=!!Tt.lastChild;var Nt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function It(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?A.merge([t],n):n}function wt(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,m.option||(Nt.optgroup=Nt.option=[1,"<select multiple='multiple'>","</select>"]);var Rt=/<|&#?\w+;/;function Pt(t,e,n,i,r){for(var o,s,a,l,u,c,h=e.createDocumentFragment(),p=[],d=0,f=t.length;d<f;d++)if((o=t[d])||0===o)if("object"===b(o))A.merge(p,o.nodeType?[o]:o);else if(Rt.test(o)){for(s=s||h.appendChild(e.createElement("div")),a=(Lt.exec(o)||["",""])[1].toLowerCase(),l=Nt[a]||Nt._default,s.innerHTML=l[1]+A.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;A.merge(p,s.childNodes),(s=h.firstChild).textContent=""}else p.push(e.createTextNode(o));for(h.textContent="",d=0;o=p[d++];)if(i&&A.inArray(o,i)>-1)r&&r.push(o);else if(u=mt(o),s=It(h.appendChild(o),"script"),u&&wt(s),n)for(c=0;o=s[c++];)Ct.test(o.type||"")&&n.push(o);return h}var Mt=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function kt(){return!1}function Dt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Dt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=kt;else if(!r)return t;return 1===o&&(s=r,r=function(t){return A().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=A.guid++)),t.each(function(){A.event.add(this,e,r,i,n)})}function Gt(t,e,n){n?(at.set(t,e,!1),A.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(A.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,A.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ot)}})):void 0===at.get(t,e)&&A.event.add(t,e,Ot)}A.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,h,p,d,f,g,m=at.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&A.find.matchesSelector(gt,r),n.guid||(n.guid=A.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==A&&A.event.triggered!==e.type?A.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(Z)||[""]).length;u--;)d=g=(a=Mt.exec(e[u])||[])[1],f=(a[2]||"").split(".").sort(),d&&(h=A.event.special[d]||{},d=(r?h.delegateType:h.bindType)||d,h=A.event.special[d]||{},c=A.extend({type:d,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&A.expr.match.needsContext.test(r),namespace:f.join(".")},o),(p=l[d])||((p=l[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,f,s)||t.addEventListener&&t.addEventListener(d,s)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),A.event.global[d]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,u,c,h,p,d,f,g,m=at.hasData(t)&&at.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(Z)||[""]).length;u--;)if(d=g=(a=Mt.exec(e[u])||[])[1],f=(a[2]||"").split(".").sort(),d){for(h=A.event.special[d]||{},p=l[d=(i?h.delegateType:h.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,h.remove&&h.remove.call(t,c));s&&!p.length&&(h.teardown&&!1!==h.teardown.call(t,f,m.handle)||A.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)A.event.remove(t,d+e[u],n,i,!0);A.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=A.event.fix(t),u=(at.get(this,"events")||Object.create(null))[l.type]||[],c=A.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=A.event.handlers.call(this,l,u),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((A.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,s,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?A(r,this).index(u)>-1:A.find(r,this,null,[u]).length),s[r]&&o.push(i);o.length&&a.push({elem:u,handlers:o})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(A.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[A.expando]?t:new A.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return At.test(e.type)&&e.click&&C(e,"input")&&Gt(e,"click",!0),!1},trigger:function(t){var e=this||t;return At.test(e.type)&&e.click&&C(e,"input")&&Gt(e,"click"),!0},_default:function(t){var e=t.target;return At.test(e.type)&&e.click&&C(e,"input")&&at.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},A.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},A.Event=function(t,e){if(!(this instanceof A.Event))return new A.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ot:kt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&A.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:kt,isPropagationStopped:kt,isImmediatePropagationStopped:kt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ot,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ot,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ot,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(E.documentMode){var n=at.get(this,"handle"),i=A.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else A.event.simulate(e,t.target,A.event.fix(t))}A.event.special[t]={setup:function(){var i;if(Gt(this,t,!0),!E.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return Gt(this,t),!0},teardown:function(){var t;if(!E.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},A.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=E.documentMode?this:i,o=at.get(r,e);o||(E.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=E.documentMode?this:i,o=at.get(r,e)-1;o?at.set(r,e,o):(E.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}}),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){A.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||A.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),A.fn.extend({on:function(t,e,n,i){return Dt(this,t,e,n,i)},one:function(t,e,n,i){return Dt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,A(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=kt),this.each(function(){A.event.remove(this,t,n,e)})}});var Bt=/<script|<style|<link/i,jt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ut(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&A(t).children("tbody")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function qt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function zt(t,e){var n,i,r,o,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)A.event.add(e,r,a[r][n]);lt.hasData(t)&&(o=lt.access(t),s=A.extend({},o),lt.set(e,s))}}function Vt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&At.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Wt(t,e,n,i){e=l(e);var r,o,s,a,u,c,h=0,p=t.length,d=p-1,f=e[0],g=v(f);if(g||p>1&&"string"==typeof f&&!m.checkClone&&jt.test(f))return t.each(function(r){var o=t.eq(r);g&&(e[0]=f.call(this,r,o.html())),Wt(o,e,n,i)});if(p&&(o=(r=Pt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=A.map(It(r,"script"),Ht)).length;h<p;h++)u=r,h!==d&&(u=A.clone(u,!0,!0),a&&A.merge(s,It(u,"script"))),n.call(t[h],u,h);if(a)for(c=s[s.length-1].ownerDocument,A.map(s,qt),h=0;h<a;h++)u=s[h],Ct.test(u.type||"")&&!at.access(u,"globalEval")&&A.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?A._evalUrl&&!u.noModule&&A._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):x(u.textContent.replace(Ft,""),u,c))}return t}function Zt(t,e,n){for(var i,r=e?A.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||A.cleanData(It(i)),i.parentNode&&(n&&mt(i)&&wt(It(i,"script")),i.parentNode.removeChild(i));return t}A.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||A.isXMLDoc(t)))for(s=It(a),i=0,r=(o=It(t)).length;i<r;i++)Vt(o[i],s[i]);if(e)if(n)for(o=o||It(t),s=s||It(a),i=0,r=o.length;i<r;i++)zt(o[i],s[i]);else zt(t,a);return(s=It(a,"script")).length>0&&wt(s,!l&&It(t,"script")),a},cleanData:function(t){for(var e,n,i,r=A.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?A.event.remove(n,i):A.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),A.fn.extend({detach:function(t){return Zt(this,t,!0)},remove:function(t){return Zt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?A.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Wt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ut(this,t).appendChild(t)})},prepend:function(){return Wt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ut(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Wt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(A.cleanData(It(t,!1)),t.textContent="");return this},clone:function(t,e){return t=t??!1,e=e??t,this.map(function(){return A.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Bt.test(t)&&!Nt[(Lt.exec(t)||["",""])[1].toLowerCase()]){t=A.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(A.cleanData(It(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Wt(this,arguments,function(e){var n=this.parentNode;A.inArray(this,t)<0&&(A.cleanData(It(this)),n&&n.replaceChild(e,this))},t)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){A.fn[t]=function(t){for(var n,i=[],r=A(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),A(r[s])[e](n),u.apply(i,n.get());return this.pushStack(i)}});var Qt=new RegExp("^("+pt+")(?!px)[a-z%]+$","i"),Xt=/^--/,Yt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},$t=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Kt=new RegExp(ft.join("|"),"i");function Jt(t,e,n){var i,r,o,s,a=Xt.test(e),l=t.style;return(n=n||Yt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(P,"$1")||void 0),""!==s||mt(t)||(s=A.style(t,e)),!m.pixelBoxStyles()&&Qt.test(s)&&Kt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(u).appendChild(c);var t=i.getComputedStyle(c);n="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",s=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),gt.removeChild(u),c=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,s,a,l,u=E.createElement("div"),c=E.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,A.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=E.createElement("table"),e=E.createElement("tr"),n=E.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",gt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=E.createElement("div").style,ie={};function re(t){var e=A.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,se={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=dt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ue(t,e,n,i,r,o){var s="width"===e?1:0,a=0,l=0,u=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=A.css(t,n+ft[s],!0,r)),i?("content"===n&&(l-=A.css(t,"padding"+ft[s],!0,r)),"margin"!==n&&(l-=A.css(t,"border"+ft[s]+"Width",!0,r))):(l+=A.css(t,"padding"+ft[s],!0,r),"padding"!==n?l+=A.css(t,"border"+ft[s]+"Width",!0,r):a+=A.css(t,"border"+ft[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l+u}function ce(t,e,n){var i=Yt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===A.css(t,"boxSizing",!1,i),o=r,s=Jt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Qt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&C(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===A.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===A.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ue(t,e,n||(r?"border":"content"),o,i,s)+"px"}function he(t,e,n,i,r){return new he.prototype.init(t,e,n,i,r)}A.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Jt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=rt(e),l=Xt.test(e),u=t.style;if(l||(e=re(a)),s=A.cssHooks[e]||A.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:u[e];"string"===(o=typeof n)&&(r=dt.exec(n))&&r[1]&&(n=Et(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(A.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,s,a=rt(e);return Xt.test(e)||(e=re(a)),(s=A.cssHooks[e]||A.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Jt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),A.each(["height","width"],function(t,e){A.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(A.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,i):$t(t,se,function(){return ce(t,e,i)})},set:function(t,n,i){var r,o=Yt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===A.css(t,"boxSizing",!1,o),l=i?ue(t,e,i,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ue(t,e,"border",!1,o)-.5)),l&&(r=dt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=A.css(t,e)),le(0,n,l)}}}),A.cssHooks.marginLeft=te(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Jt(t,"marginLeft"))||t.getBoundingClientRect().left-$t(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),A.each({margin:"",padding:"",border:"Width"},function(t,e){A.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ft[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(A.cssHooks[t+e].set=le)}),A.fn.extend({css:function(t,e){return tt(this,function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Yt(t),r=e.length;s<r;s++)o[e[s]]=A.css(t,e[s],!1,i);return o}return void 0!==n?A.style(t,e,n):A.css(t,e)},t,e,arguments.length>1)}}),A.Tween=he,he.prototype={constructor:he,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||A.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(A.cssNumber[n]?"":"px")},cur:function(){var t=he.propHooks[this.prop];return t&&t.get?t.get(this):he.propHooks._default.get(this)},run:function(t){var e,n=he.propHooks[this.prop];return this.options.duration?this.pos=e=A.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):he.propHooks._default.set(this),this}},he.prototype.init.prototype=he.prototype,he.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=A.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){A.fx.step[t.prop]?A.fx.step[t.prop](t):1!==t.elem.nodeType||!A.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:A.style(t.elem,t.prop,t.now+t.unit)}}},he.propHooks.scrollTop=he.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},A.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},A.fx=he.prototype.init,A.fx.step={};var pe,de,fe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){de&&(!1===E.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,A.fx.interval),A.fx.tick())}function ve(){return i.setTimeout(function(){pe=void 0}),pe=Date.now()}function ye(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=ft[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function Ee(t,e,n){for(var i,r=(_e.tweeners[e]||[]).concat(_e.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function _e(t,e,n){var i,r,o=0,s=_e.prefilters.length,a=A.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=pe||ve(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,s=u.tweens.length;o<s;o++)u.tweens[o].run(i);return a.notifyWith(t,[u,i,n]),i<1&&s?n:(s||a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u]),!1)},u=a.promise({elem:t,props:A.extend({},e),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},n),originalProperties:e,originalOptions:n,startTime:pe||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=A.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(a.notifyWith(t,[u,1,0]),a.resolveWith(t,[u,e])):a.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=A.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);o<s;o++)if(i=_e.prefilters[o].call(u,t,c,u.opts))return v(i.stop)&&(A._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return A.map(c,Ee,u),v(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),A.fx.timer(A.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}A.Animation=A.extend(_e,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return Et(n.elem,t,dt.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(Z);for(var n,i=0,r=t.length;i<r;i++)n=t[i],_e.tweeners[n]=_e.tweeners[n]||[],_e.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,l,u,c,h="width"in e||"height"in e,p=this,d={},f=t.style,g=t.nodeType&&yt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(s=A._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always(function(){p.always(function(){s.unqueued--,A.queue(t,"fx").length||s.empty.fire()})})),e)if(r=e[i],fe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}d[i]=m&&m[i]||A.style(t,i)}if((l=!A.isEmptyObject(e))||!A.isEmptyObject(d))for(i in h&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=m&&m.display)&&(u=at.get(t,"display")),"none"===(c=A.css(t,"display"))&&(u?c=u:(bt([t],!0),u=t.style.display||u,c=A.css(t,"display"),bt([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===A.css(t,"float")&&(l||(p.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",p.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,d)l||(m?"hidden"in m&&(g=m.hidden):m=at.access(t,"fxshow",{display:u}),o&&(m.hidden=!g),g&&bt([t],!0),p.done(function(){for(i in g||bt([t]),at.remove(t,"fxshow"),d)A.style(t,i,d[i])})),l=Ee(g?m[i]:0,i,p),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?_e.prefilters.unshift(t):_e.prefilters.push(t)}}),A.speed=function(t,e,n){var i=t&&"object"==typeof t?A.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return A.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in A.fx.speeds?i.duration=A.fx.speeds[i.duration]:i.duration=A.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&A.dequeue(this,i.queue)},i},A.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=A.isEmptyObject(t),o=A.speed(e,n,i),s=function(){var e=_e(this,A.extend({},t),o);(r||at.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=A.timers,s=at.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&ge.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||A.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=A.timers,s=i?i.length:0;for(n.finish=!0,A.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),A.each(["toggle","show","hide"],function(t,e){var n=A.fn[e];A.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}}),A.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){A.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),A.timers=[],A.fx.tick=function(){var t,e=0,n=A.timers;for(pe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||A.fx.stop(),pe=void 0},A.fx.timer=function(t){A.timers.push(t),A.fx.start()},A.fx.interval=13,A.fx.start=function(){de||(de=!0,me())},A.fx.stop=function(){de=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(t,e){return t=A.fx&&A.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}})},function(){var t=E.createElement("input"),e=E.createElement("select").appendChild(E.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=E.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var xe,be=A.expr.attrHandle;A.fn.extend({attr:function(t,e){return tt(this,A.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){A.removeAttr(this,t)})}}),A.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?A.prop(t,e,n):(1===o&&A.isXMLDoc(t)||(r=A.attrHooks[e.toLowerCase()]||(A.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void A.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=A.find.attr(t,e))??void 0)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&C(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(Z);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?A.removeAttr(t,n):t.setAttribute(n,n),n}},A.each(A.expr.match.bool.source.match(/\w+/g),function(t,e){var n=be[e]||A.find.attr;be[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=be[s],be[s]=r,r=null!=n(t,e,i)?s:null,be[s]=o),r}});var Te=/^(?:input|select|textarea|button)$/i,Se=/^(?:a|area)$/i;function Ae(t){return(t.match(Z)||[]).join(" ")}function Le(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Z)||[]}A.fn.extend({prop:function(t,e){return tt(this,A.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[A.propFix[t]||t]})}}),A.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&A.isXMLDoc(t)||(e=A.propFix[e]||e,r=A.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=A.find.attr(t,"tabindex");return e?parseInt(e,10):Te.test(t.nodeName)||Se.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(A.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){A.propFix[this.toLowerCase()]=this}),A.fn.extend({addClass:function(t){var e,n,i,r,o,s;return v(t)?this.each(function(e){A(this).addClass(t.call(this,e,Le(this)))}):(e=Ce(t)).length?this.each(function(){if(i=Le(this),n=1===this.nodeType&&" "+Ae(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=Ae(n),i!==s&&this.setAttribute("class",s)}}):this},removeClass:function(t){var e,n,i,r,o,s;return v(t)?this.each(function(e){A(this).removeClass(t.call(this,e,Le(this)))}):arguments.length?(e=Ce(t)).length?this.each(function(){if(i=Le(this),n=1===this.nodeType&&" "+Ae(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=Ae(n),i!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,s=typeof t,a="string"===s||Array.isArray(t);return v(t)?this.each(function(n){A(this).toggleClass(t.call(this,n,Le(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ce(t),this.each(function(){if(a)for(o=A(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==s||((i=Le(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ae(Le(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ne=/\r/g;A.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,A(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=A.map(r,function(t){return null==t?"":t+""})),(e=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=A.valHooks[r.type]||A.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ne,""):n??"":void 0}}),A.extend({valHooks:{option:{get:function(t){var e=A.find.attr(t,"value");return null!=e?e:Ae(A.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=A(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=A.makeArray(e),s=r.length;s--;)((i=r[s]).selected=A.inArray(A.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=A.inArray(A(t).val(),e)>-1}},m.checkOn||(A.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ie=i.location,we={guid:Date.now()},Re=/\?/;A.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||A.error("Invalid XML: "+(n?A.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Pe=/^(?:focusinfocus|focusoutblur)$/,Me=function(t){t.stopPropagation()};A.extend(A.event,{trigger:function(t,e,n,r){var o,s,a,l,u,c,h,p,f=[n||E],g=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(s=p=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!Pe.test(g+A.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(t=t[A.expando]?t:new A.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:A.makeArray(e,[t]),h=A.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(n,e))){if(!r&&!h.noBubble&&!y(n)){for(l=h.delegateType||g,Pe.test(l+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||E)&&f.push(a.defaultView||a.parentWindow||i)}for(o=0;(s=f[o++])&&!t.isPropagationStopped();)p=s,t.type=o>1?l:h.bindType||g,(c=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&c.apply(s,e),(c=u&&s[u])&&c.apply&&ot(s)&&(t.result=c.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),e)||!ot(n)||u&&v(n[g])&&!y(n)&&((a=n[u])&&(n[u]=null),A.event.triggered=g,t.isPropagationStopped()&&p.addEventListener(g,Me),n[g](),t.isPropagationStopped()&&p.removeEventListener(g,Me),A.event.triggered=void 0,a&&(n[u]=a)),t.result}},simulate:function(t,e,n){var i=A.extend(new A.Event,n,{type:t,isSimulated:!0});A.event.trigger(i,null,e)}}),A.fn.extend({trigger:function(t,e){return this.each(function(){A.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return A.event.trigger(t,e,n,!0)}});var Oe=/\[\]$/,ke=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ge=/^(?:input|select|textarea|keygen)/i;function Be(t,e,n,i){var r;if(Array.isArray(e))A.each(e,function(e,r){n||Oe.test(t)?i(t,r):Be(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==b(e))i(t,e);else for(r in e)Be(t+"["+r+"]",e[r],n,i)}A.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(n??"")};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!A.isPlainObject(t))A.each(t,function(){r(this.name,this.value)});else for(n in t)Be(n,t[n],e,r);return i.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=A.prop(this,"elements");return t?A.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!A(this).is(":disabled")&&Ge.test(this.nodeName)&&!De.test(t)&&(this.checked||!At.test(t))}).map(function(t,e){var n=A(this).val();return null==n?null:Array.isArray(n)?A.map(n,function(t){return{name:e.name,value:t.replace(ke,"\r\n")}}):{name:e.name,value:n.replace(ke,"\r\n")}}).get()}});var je=/%20/g,Fe=/#.*$/,Ue=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,qe=/^(?:GET|HEAD)$/,ze=/^\/\//,Ve={},We={},Ze="*/".concat("*"),Qe=E.createElement("a");function Xe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(Z)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Ye(t,e,n,i){var r={},o=t===We;function s(a){var l;return r[a]=!0,A.each(t[a]||[],function(t,a){var u=a(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),s(u),!1)}),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function $e(t,e){var n,i,r=A.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&A.extend(!0,t,i),t}Qe.href=Ie.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ie.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ie.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?$e($e(t,A.ajaxSettings),e):$e(A.ajaxSettings,t)},ajaxPrefilter:Xe(Ve),ajaxTransport:Xe(We),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,a,l,u,c,h,p,d=A.ajaxSetup({},e),f=d.context||d,g=d.context&&(f.nodeType||f.jquery)?A(f):A.event,m=A.Deferred(),v=A.Callbacks("once memory"),y=d.statusCode||{},_={},x={},b="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=He.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)T.always(t[T.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||b;return n&&n.abort(e),S(0,e),this}};if(m.promise(T),d.url=((t||d.url||Ie.href)+"").replace(ze,Ie.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(Z)||[""],null==d.crossDomain){l=E.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Qe.protocol+"//"+Qe.host!=l.protocol+"//"+l.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=A.param(d.data,d.traditional)),Ye(Ve,d,e,T),u)return T;for(h in(c=A.event&&d.global)&&0===A.active++&&A.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!qe.test(d.type),r=d.url.replace(Fe,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(je,"+")):(p=d.url.slice(r.length),d.data&&(d.processData||"string"==typeof d.data)&&(r+=(Re.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(Ue,"$1"),p=(Re.test(r)?"&":"?")+"_="+we.guid+++p),d.url=r+p),d.ifModified&&(A.lastModified[r]&&T.setRequestHeader("If-Modified-Since",A.lastModified[r]),A.etag[r]&&T.setRequestHeader("If-None-Match",A.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ze+"; q=0.01":""):d.accepts["*"]),d.headers)T.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(f,T,d)||u))return T.abort();if(b="abort",v.add(d.complete),T.done(d.success),T.fail(d.error),n=Ye(We,d,e,T)){if(T.readyState=1,c&&g.trigger("ajaxSend",[T,d]),u)return T;d.async&&d.timeout>0&&(a=i.setTimeout(function(){T.abort("timeout")},d.timeout));try{u=!1,n.send(_,S)}catch(t){if(u)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,s,l){var h,p,E,_,x,b=e;u||(u=!0,a&&i.clearTimeout(a),n=void 0,o=l||"",T.readyState=t>0?4:0,h=t>=200&&t<300||304===t,s&&(_=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(d,T,s)),!h&&A.inArray("script",d.dataTypes)>-1&&A.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=function(t,e,n,i){var r,o,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(d,_,T,h),h?(d.ifModified&&((x=T.getResponseHeader("Last-Modified"))&&(A.lastModified[r]=x),(x=T.getResponseHeader("etag"))&&(A.etag[r]=x)),204===t||"HEAD"===d.type?b="nocontent":304===t?b="notmodified":(b=_.state,p=_.data,h=!(E=_.error))):(E=b,!t&&b||(b="error",t<0&&(t=0))),T.status=t,T.statusText=(e||b)+"",h?m.resolveWith(f,[p,b,T]):m.rejectWith(f,[T,b,E]),T.statusCode(y),y=void 0,c&&g.trigger(h?"ajaxSuccess":"ajaxError",[T,d,h?p:E]),v.fireWith(f,[T,b]),c&&(g.trigger("ajaxComplete",[T,d]),--A.active||A.event.trigger("ajaxStop")))}return T},getJSON:function(t,e,n){return A.get(t,e,n,"json")},getScript:function(t,e){return A.get(t,void 0,e,"script")}}),A.each(["get","post"],function(t,e){A[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),A.ajax(A.extend({url:t,type:e,dataType:r,data:n,success:i},A.isPlainObject(t)&&t))}}),A.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),A._evalUrl=function(t,e,n){return A.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){A.globalEval(t,e,n)}})},A.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=A(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return v(t)?this.each(function(e){A(this).wrapInner(t.call(this,e))}):this.each(function(){var e=A(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=v(t);return this.each(function(n){A(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){A(this).replaceWith(this.childNodes)}),this}}),A.expr.pseudos.hidden=function(t){return!A.expr.pseudos.visible(t)},A.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},Je=A.ajaxSettings.xhr();m.cors=!!Je&&"withCredentials"in Je,m.ajax=Je=!!Je,A.ajaxTransport(function(t){var e,n;if(m.cors||Je&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ke[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),A.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return A.globalEval(t),t}}}),A.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),A.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=A("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),E.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||A.expando+"_"+we.guid++;return this[t]=!0,t}}),A.ajaxPrefilter("json jsonp",function(t,e,n){var r,o,s,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(Re.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||A.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){s=arguments},n.always(function(){void 0===o?A(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),s&&v(o)&&o(s[0]),s=o=void 0}),"script"}),m.createHTMLDocument=((tn=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),A.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,e.head.appendChild(i)):e=E),o=!n&&[],(r=F.exec(t))?[e.createElement(r[1])]:(r=Pt([t],e,o),o&&o.length&&A(o).remove(),A.merge([],r.childNodes)));var i,r,o},A.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=Ae(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&A.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?A("<div>").append(A.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},A.expr.pseudos.animated=function(t){return A.grep(A.timers,function(e){return t===e.elem}).length},A.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,u=A.css(t,"position"),c=A(t),h={};"static"===u&&(t.style.position="relative"),a=c.offset(),o=A.css(t,"top"),l=A.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,A.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+r),"using"in e?e.using.call(t,h):c.css(h)}},A.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){A.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===A.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===A.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=A(t).offset()).top+=A.css(t,"borderTopWidth",!0),r.left+=A.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-A.css(i,"marginTop",!0),left:e.left-r.left-A.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===A.css(t,"position");)t=t.offsetParent;return t||gt})}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;A.fn[t]=function(i){return tt(this,function(t,i,r){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),A.each(["top","left"],function(t,e){A.cssHooks[e]=te(m.pixelPosition,function(t,n){if(n)return n=Jt(t,e),Qt.test(n)?A(t).position()[e]+"px":n})}),A.each({Height:"height",Width:"width"},function(t,e){A.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){A.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return tt(this,function(e,n,r){var o;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?A.css(e,n,a):A.style(e,n,r,a)},e,s?r:void 0,s)}})}),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){A.fn[e]=function(t){return this.on(e,t)}}),A.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){A.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;A.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||A.guid++,r},A.holdReady=function(t){t?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=C,A.isFunction=v,A.isWindow=y,A.camelCase=rt,A.type=b,A.now=Date.now,A.isNumeric=function(t){var e=A.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},A.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return A}.apply(e,[]))||(t.exports=n);var on=i.jQuery,sn=i.$;return A.noConflict=function(t){return i.$===A&&(i.$=sn),t&&i.jQuery===A&&(i.jQuery=on),A},void 0===r&&(i.jQuery=i.$=A),A})},9604:(t,e,n)=>{"use strict";function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}n.d(e,{A:()=>r})},9715:(t,e,n)=>{"use strict";n.r(e)},9736:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(1717);var r=n(3564),o=n(3886);function s(t,e){return(0,i.A)(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(t,e)||(0,r.A)(t,e)||(0,o.A)()}},9741:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(1273);const r=function(t,e){var n=e?(0,i.A)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},9754:(t,e,n)=>{!function(t){"use strict";function e(e,i,o,s){if(o&&o.call){var a=o;o=null}else a=r(e,o,"rangeFinder");"number"==typeof i&&(i=t.Pos(i,0));var l=r(e,o,"minFoldSize");function u(t){var n=a(e,i);if(!n||n.to.line-n.from.line<l)return null;if("fold"===s)return n;for(var r=e.findMarksAt(n.from),o=0;o<r.length;++o)if(r[o].__isFold){if(!t)return null;n.cleared=!0,r[o].clear()}return n}var c=u(!0);if(r(e,o,"scanUp"))for(;!c&&i.line>e.firstLine();)i=t.Pos(i.line-1,0),c=u(!1);if(c&&!c.cleared&&"unfold"!==s){var h=n(e,o,c);t.on(h,"mousedown",function(e){p.clear(),t.e_preventDefault(e)});var p=e.markText(c.from,c.to,{replacedWith:h,clearOnEnter:r(e,o,"clearOnEnter"),__isFold:!0});p.on("clear",function(n,i){t.signal(e,"unfold",e,n,i)}),t.signal(e,"fold",e,c.from,c.to)}}function n(t,e,n){var i=r(t,e,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}t.newFoldFunction=function(t,n){return function(i,r){e(i,r,{rangeFinder:t,widget:n})}},t.defineExtension("foldCode",function(t,n,i){e(this,t,n,i)}),t.defineExtension("isFolded",function(t){for(var e=this.findMarksAt(t),n=0;n<e.length;++n)if(e[n].__isFold)return!0}),t.commands.toggleFold=function(t){t.foldCode(t.getCursor())},t.commands.fold=function(t){t.foldCode(t.getCursor(),null,"fold")},t.commands.unfold=function(t){t.foldCode(t.getCursor(),{scanUp:!1},"unfold")},t.commands.foldAll=function(e){e.operation(function(){for(var n=e.firstLine(),i=e.lastLine();n<=i;n++)e.foldCode(t.Pos(n,0),{scanUp:!1},"fold")})},t.commands.unfoldAll=function(e){e.operation(function(){for(var n=e.firstLine(),i=e.lastLine();n<=i;n++)e.foldCode(t.Pos(n,0),{scanUp:!1},"unfold")})},t.registerHelper("fold","combine",function(){var t=Array.prototype.slice.call(arguments,0);return function(e,n){for(var i=0;i<t.length;++i){var r=t[i](e,n);if(r)return r}}}),t.registerHelper("fold","auto",function(t,e){for(var n=t.getHelpers(e,"fold"),i=0;i<n.length;i++){var r=n[i](t,e);if(r)return r}});var i={rangeFinder:t.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(t,e,n){if(e&&void 0!==e[n])return e[n];var r=t.options.foldOptions;return r&&void 0!==r[n]?r[n]:i[n]}t.defineOption("foldOptions",null),t.defineExtension("foldOption",function(t,e){return r(this,t,e)})}(n(1719))},9758:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(8285),r=n(8086),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(t,e){if((0,i.A)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,r.A)(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},9790:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(2977),r=n(6809);const o=function(t){if(!(0,r.A)(t))return!1;var e=(0,i.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.d(__webpack_exports__,{default:()=>jo,r:()=>Bo});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{appendArgsToUrl:()=>Nt,createShareConfig:()=>wt,createShareLink:()=>It,getConfigFromUrl:()=>Rt,queryCatalogConfigToTabConfig:()=>Pt});var e=__webpack_require__(9121),n=__webpack_require__(4758),i=__webpack_require__(365),r=__webpack_require__(8782),o=__webpack_require__(9604),s=__webpack_require__(4785),a=__webpack_require__(7440),l=__webpack_require__(5955),u=__webpack_require__(7242),c=__webpack_require__(6826);const h=function(t){return function(e,n,i){var r=Object(e);if(!(0,u.A)(e)){var o=(0,l.A)(n,3);e=(0,c.A)(e),n=function(t){return o(r[t],t,r)}}var s=t(e,n,i);return s>-1?r[o?e[s]:s]:void 0}};const p=function(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1};var d=__webpack_require__(4801),f=Math.max;const g=h(function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:(0,d.A)(n);return r<0&&(r=f(i+r,0)),p(t,(0,l.A)(e,3),r)});var m=__webpack_require__(1408);const v=function(t,e){return(0,m.A)(t,e)};var y=__webpack_require__(4175),E=__webpack_require__(3142);var _=__webpack_require__(3111),x="triply";var b=function(){function t(n){(0,e.A)(this,t),this.yasgui=n,this.storageId=this.yasgui.getStorageId(this.yasgui.config.persistenceLabelConfig),this.storage=new _.wc(x),this.fromStorage(),this.registerListeners()}return(0,n.A)(t,[{key:"setActive",value:function(t){this.persistedJson.active=t,this.toStorage()}},{key:"getActiveId",value:function(){return this.persistedJson.active}},{key:"addToTabList",value:function(t,e){void 0!==e&&this.persistedJson.tabs.length>e?this.persistedJson.tabs.splice(e,0,t):this.persistedJson.tabs.push(t),this.toStorage()}},{key:"setTabOrder",value:function(t){this.persistedJson.tabs=t,this.toStorage()}},{key:"getEndpointHistory",value:function(){return this.persistedJson.endpointHistory}},{key:"retrieveLastClosedTab",value:function(){var t=this.persistedJson.lastClosedTab;return void 0===t||(this.persistedJson.lastClosedTab=void 0),t}},{key:"hasLastClosedTab",value:function(){return!!this.persistedJson.lastClosedTab}},{key:"deleteTab",value:function(t){var e=this.persistedJson.tabs.indexOf(t);e>-1&&this.persistedJson.tabs.splice(e,1),this.tabIsActive(t)&&(this.persistedJson.active=void 0),this.persistedJson.lastClosedTab={index:e,tab:this.persistedJson.tabConfig[t]},delete this.persistedJson.tabConfig[t],this.toStorage()}},{key:"registerListeners",value:function(){var t=this;this.yasgui.on("tabChange",function(e,n){t.persistedJson.tabConfig[n.getId()]=n.getPersistedJson(),t.toStorage()}),this.yasgui.on("endpointHistoryChange",function(e,n){t.persistedJson.endpointHistory=n,t.toStorage()})}},{key:"toStorage",value:function(){this.storage.set(this.storageId,this.persistedJson,this.yasgui.config.persistencyExpire,this.handleLocalStorageQuotaFull)}},{key:"fromStorage",value:function(){return this.persistedJson=this.storage.get(this.storageId)||{endpointHistory:[],tabs:[],active:void 0,tabConfig:{},lastClosedTab:void 0,prefixes:"",autoCaptureEnabled:!0},this.persistedJson.endpointHistory||(this.persistedJson.endpointHistory=[]),this.persistedJson}},{key:"handleLocalStorageQuotaFull",value:function(e){console.warn("Localstorage quota exceeded. Clearing all YASGUI configurations"),t.clear()}},{key:"getTabs",value:function(){return this.persistedJson.tabs}},{key:"getTab",value:function(t){return this.persistedJson.tabConfig[t]}},{key:"setTab",value:function(t,e){this.persistedJson.tabs.push(t),this.persistedJson.tabConfig[t]=e,this.persistedJson.active=t}},{key:"tabIsActive",value:function(t){return t===this.persistedJson.active}},{key:"currentId",value:function(){return this.persistedJson.active}},{key:"getPrefixes",value:function(){return this.persistedJson.prefixes||""}},{key:"setPrefixes",value:function(t){this.persistedJson.prefixes=t,this.toStorage()}},{key:"getAutoCaptureEnabled",value:function(){return!1!==this.persistedJson.autoCaptureEnabled}},{key:"setAutoCaptureEnabled",value:function(t){this.persistedJson.autoCaptureEnabled=t,this.toStorage()}}],[{key:"clear",value:function(){new _.wc(x).removeNamespace()}}])}(),T=__webpack_require__(3322),S=__webpack_require__(9736),A=__webpack_require__(232),L=__webpack_require__.n(A);function C(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return N(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var I=[{key:"JSON",value:"application/sparql-results+json"},{key:"XML",value:"application/sparql-results+xml"},{key:"CSV",value:"text/csv"},{key:"TSV",value:"text/tab-separated-values"}],w=[{key:"Turtle",value:"text/turtle"},{key:"JSON",value:"application/rdf+json"},{key:"RDF/XML",value:"application/rdf+xml"},{key:"TriG",value:"application/trig"},{key:"N-Triples",value:"application/n-triples"},{key:"N-Quads",value:"application/n-quads"},{key:"CSV",value:"text/csv"},{key:"TSV",value:"text/tab-separated-values"}],R=function(){return(0,n.A)(function t(n,i){(0,e.A)(this,t),this.tab=n,this.init(i)},[{key:"init",value:function(t){var e=this;this.settingsButton=document.createElement("button"),this.settingsButton.setAttribute("aria-label","Settings"),this.settingsButton.title="Settings",this.settingsButton.appendChild((0,_.Mg)('<svg width="100.06" height="100.05" data-name="Layer 1" version="1.1" viewBox="0 0 100.06 100.05" xmlns="http://www.w3.org/2000/svg">\n <title>Settings</title>\n <path d="m95.868 58.018-3-3.24a42.5 42.5 0 0 0 0-9.43l3-3.22c1.79-1.91 5-4.44 4-6.85l-4.11-10c-1-2.41-5.08-1.91-7.69-2l-4.43-0.16a43.24 43.24 0 0 0-6.64-6.66l-0.14-4.43c-0.08-2.6 0.43-6.69-2-7.69l-10-4.15c-2.4-1-4.95 2.25-6.85 4l-3.23 3a42.49 42.49 0 0 0-9.44 0l-3.21-3c-1.9-1.78-4.44-5-6.85-4l-10 4.11c-2.41 1-1.9 5.09-2 7.69l-0.16 4.42a43.24 43.24 0 0 0-6.67 6.65l-4.42 0.14c-2.6 0.08-6.69-0.43-7.69 2l-4.15 10c-1 2.4 2.25 4.94 4 6.84l3 3.23a42.49 42.49 0 0 0 0 9.44l-3 3.22c-1.78 1.9-5 4.43-4 6.84l4.11 10c1 2.41 5.09 1.91 7.7 2l4.41 0.15a43.24 43.24 0 0 0 6.66 6.68l0.13 4.41c0.08 2.6-0.43 6.7 2 7.7l10 4.15c2.4 1 4.94-2.25 6.84-4l3.24-3a42.5 42.5 0 0 0 9.42 0l3.22 3c1.91 1.79 4.43 5 6.84 4l10-4.11c2.41-1 1.91-5.08 2-7.7l0.15-4.42a43.24 43.24 0 0 0 6.68-6.65l4.42-0.14c2.6-0.08 6.7 0.43 7.7-2l4.15-10c1.04-2.36-2.22-4.9-3.99-6.82zm-45.74 15.7c-12.66 0-22.91-10.61-22.91-23.7s10.25-23.7 22.91-23.7 22.91 10.61 22.91 23.7-10.25 23.7-22.91 23.7z"/>\n </svg>')),(0,_.iQ)(this.settingsButton,"tabContextButton"),t.appendChild(this.settingsButton),this.settingsButton.onclick=function(){return e.open()},this.prefixButton=document.createElement("button"),this.prefixButton.setAttribute("aria-label","Insert Prefixes"),this.prefixButton.title="Insert saved prefixes into query",this.prefixButton.textContent="PREFIX",(0,_.iQ)(this.prefixButton,"tabPrefixButton"),t.appendChild(this.prefixButton),this.prefixButton.onclick=function(){return e.insertPrefixesIntoQuery()},this.createModal()}},{key:"createModal",value:function(){var t=this;this.modalOverlay=document.createElement("div"),(0,_.iQ)(this.modalOverlay,"tabSettingsModalOverlay"),this.modalOverlay.onclick=function(){return t.close()},this.modalContent=document.createElement("div"),(0,_.iQ)(this.modalContent,"tabSettingsModal"),this.modalContent.onclick=function(t){return t.stopPropagation()};var e=document.createElement("div");(0,_.iQ)(e,"modalHeader");var n=document.createElement("h2");n.textContent="Tab Settings",e.appendChild(n);var i=document.createElement("button");i.textContent="×",(0,_.iQ)(i,"closeButton"),i.onclick=function(){return t.close()},e.appendChild(i),this.modalContent.appendChild(e);var r=document.createElement("div");(0,_.iQ)(r,"modalBody");var o=document.createElement("div");(0,_.iQ)(o,"modalTabs");var s=document.createElement("button");s.textContent="Request",(0,_.iQ)(s,"modalTabButton","active"),s.onclick=function(){return t.switchTab("request")};var a=document.createElement("button");a.textContent="Prefixes",(0,_.iQ)(a,"modalTabButton"),a.onclick=function(){return t.switchTab("prefix")},o.appendChild(s),o.appendChild(a),r.appendChild(o);var l=document.createElement("div");(0,_.iQ)(l,"modalTabContent","active"),l.id="request-content",this.drawRequestSettings(l);var u=document.createElement("div");(0,_.iQ)(u,"modalTabContent"),u.id="prefix-content",this.drawPrefixSettings(u),r.appendChild(l),r.appendChild(u),this.modalContent.appendChild(r);var c=document.createElement("div");(0,_.iQ)(c,"modalFooter");var h=document.createElement("button");h.textContent="Save",(0,_.iQ)(h,"primaryButton"),h.onclick=function(){return t.save()};var p=document.createElement("button");p.textContent="Cancel",(0,_.iQ)(p,"secondaryButton"),p.onclick=function(){return t.close()},c.appendChild(p),c.appendChild(h),this.modalContent.appendChild(c),this.modalOverlay.appendChild(this.modalContent),document.body.appendChild(this.modalOverlay)}},{key:"switchTab",value:function(t){var e=this.modalContent.querySelectorAll(".modalTabButton"),n=this.modalContent.querySelectorAll(".modalTabContent");e.forEach(function(e,n){"request"===t&&0===n||"prefix"===t&&1===n?(0,_.iQ)(e,"active"):(0,_.vy)(e,"active")}),n.forEach(function(e){e.id==="".concat(t,"-content")?(0,_.iQ)(e,"active"):(0,_.vy)(e,"active")})}},{key:"drawPrefixSettings",value:function(t){var e=document.createElement("div");(0,_.iQ)(e,"settingsSection");var n=document.createElement("label");n.textContent="Saved Prefixes",(0,_.iQ)(n,"settingsLabel");var i=document.createElement("div");i.textContent="Enter PREFIX declarations (one per line). These will be available for insertion into queries.",(0,_.iQ)(i,"settingsHelp"),this.prefixTextarea=document.createElement("textarea"),(0,_.iQ)(this.prefixTextarea,"prefixTextarea"),this.prefixTextarea.placeholder="PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>",this.prefixTextarea.rows=10;var r=document.createElement("div");(0,_.iQ)(r,"checkboxContainer"),this.autoCaptureCheckbox=document.createElement("input"),this.autoCaptureCheckbox.type="checkbox",this.autoCaptureCheckbox.id="autoCapturePrefixes";var o=document.createElement("label");o.htmlFor="autoCapturePrefixes",o.textContent="Automatically capture new prefixes from query editor",r.appendChild(this.autoCaptureCheckbox),r.appendChild(o),e.appendChild(n),e.appendChild(i),e.appendChild(this.prefixTextarea),e.appendChild(r),t.appendChild(e)}},{key:"drawRequestSettings",value:function(t){var e=this.tab.getRequestConfig(),n=this.createSection("Request Method"),i=this.createSelect(["GET","POST"],"function"==typeof e.method?"POST":e.method);i.setAttribute("data-config","method"),n.appendChild(i),t.appendChild(n);var r=this.createSection("Accept Header (SELECT/ASK)"),o=this.createOptionsSelect(I,e.acceptHeaderSelect);o.setAttribute("data-config","acceptHeaderSelect"),r.appendChild(o),t.appendChild(r);var s=this.createSection("Accept Header (CONSTRUCT/DESCRIBE)"),a=this.createOptionsSelect(w,e.acceptHeaderGraph);a.setAttribute("data-config","acceptHeaderGraph"),s.appendChild(a),t.appendChild(s)}},{key:"createSection",value:function(t){var e=document.createElement("div");(0,_.iQ)(e,"settingsSection");var n=document.createElement("div");return(0,_.iQ)(n,"settingsLabel"),n.textContent=t,e.appendChild(n),e}},{key:"createSelect",value:function(t,e){var n=document.createElement("select");return(0,_.iQ)(n,"settingsSelect"),t.forEach(function(t){var i=document.createElement("option");i.value=t,i.textContent=t,t===e&&(i.selected=!0),n.appendChild(i)}),n}},{key:"createOptionsSelect",value:function(t,e){var n=document.createElement("select");return(0,_.iQ)(n,"settingsSelect"),t.forEach(function(t){var i=document.createElement("option");i.value=t.value,i.textContent=t.key,t.value===e&&(i.selected=!0),n.appendChild(i)}),n}},{key:"open",value:function(){this.loadSettings(),(0,_.iQ)(this.modalOverlay,"open")}},{key:"close",value:function(){(0,_.vy)(this.modalOverlay,"open")}},{key:"loadSettings",value:function(){var t=this.tab.yasgui.persistentConfig.getPrefixes(),e=this.tab.yasgui.persistentConfig.getAutoCaptureEnabled();t&&0!==t.trim().length||(t="PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>",this.tab.yasgui.persistentConfig.setPrefixes(t)),this.prefixTextarea.value=t,this.autoCaptureCheckbox.checked=e}},{key:"save",value:function(){var t=this.prefixTextarea.value,e=this.autoCaptureCheckbox.checked,n=this.deduplicatePrefixes(t);this.tab.yasgui.persistentConfig.setPrefixes(n),this.tab.yasgui.persistentConfig.setAutoCaptureEnabled(e);var i=this.modalContent.querySelector("#request-content");if(i){var r=i.querySelectorAll("select[data-config]"),o={};r.forEach(function(t){var e=t.getAttribute("data-config");e&&(o[e]=t.value)}),this.tab.setRequestConfig(o)}this.close()}},{key:"deduplicatePrefixes",value:function(t){var e,n=t.split("\n"),i=new Map,r=[],o=C(n);try{for(o.s();!(e=o.n()).done;){var s=e.value.trim();if(s){var a=s.match(/^\s*PREFIX\s+(\w+):\s*<(.+)>\s*$/i);if(a){var l=a[1].toLowerCase();i.has(l)||(i.set(l,s),r.push(s))}else r.push(s)}}}catch(t){o.e(t)}finally{o.f()}return r.join("\n")}},{key:"insertPrefixesIntoQuery",value:function(){var t=this.tab.getYasqe();if(t){var e=this.tab.yasgui.persistentConfig.getPrefixes();if(e.trim()){for(var n=t.getValue().split("\n"),i=0,r=0;r<n.length;r++){var o=n[r].trim();if(o.length>0&&!o.toUpperCase().startsWith("PREFIX")){i=r;break}}if(0===i&&n.length>0)n.some(function(t){return t.trim().length>0})&&!n.every(function(t){return 0===t.trim().length||t.trim().toUpperCase().startsWith("PREFIX")})||(i=n.length);var s=n.slice(i).join("\n").trim(),a=e+(s?"\n\n"+s:"");t.setValue(a),t.focus()}}}},{key:"capturePrefixesFromQuery",value:function(){if(this.tab.yasgui.persistentConfig.getAutoCaptureEnabled()){var t=this.tab.getYasqe();if(t){var e=t.getPrefixesFromQuery();if(e&&0!==Object.keys(e).length){for(var n=[],i=0,r=Object.entries(e);i<r.length;i++){var o=(0,S.A)(r[i],2),s=o[0],a=o[1];n.push("PREFIX ".concat(s,": <").concat(a,">"))}var l=this.tab.yasgui.persistentConfig.getPrefixes()+"\n"+n.join("\n"),u=this.deduplicatePrefixes(l);this.tab.yasgui.persistentConfig.setPrefixes(u)}}}}},{key:"destroy",value:function(){this.modalOverlay&&this.modalOverlay.parentNode&&this.modalOverlay.parentNode.removeChild(this.modalOverlay)}}])}(),P=__webpack_require__(7348),M=__webpack_require__(7204);const O=(0,__webpack_require__(4043).A)(function(t,e,n,i){(0,M.A)(t,e,n,i)});var k=__webpack_require__(946),D=__webpack_require__(3653);const G=function(t,e,n,i){return(0,D.A)(t,function(t,r,o){e(i,n(t),r,o)}),i};const B=function(t,e){return function(n,i){return G(n,t,e(i),{})}};var j=__webpack_require__(1100),F=Object.prototype.toString,U=B(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=F.call(e)),t[e]=n},(0,k.A)(j.A));const H=U;var q=__webpack_require__(5200),z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const V=function(t){return t.match(z)||[]};var W=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const Z=function(t){return W.test(t)};var Q=__webpack_require__(2965),X="\\ud800-\\udfff",Y="\\u2700-\\u27bf",$="a-z\\xdf-\\xf6\\xf8-\\xff",K="A-Z\\xc0-\\xd6\\xd8-\\xde",J="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tt="["+J+"]",et="\\d+",nt="["+Y+"]",it="["+$+"]",rt="[^"+X+J+et+Y+$+K+"]",ot="(?:\\ud83c[\\udde6-\\uddff]){2}",st="[\\ud800-\\udbff][\\udc00-\\udfff]",at="["+K+"]",lt="(?:"+it+"|"+rt+")",ut="(?:"+at+"|"+rt+")",ct="(?:['’](?:d|ll|m|re|s|t|ve))?",ht="(?:['’](?:D|LL|M|RE|S|T|VE))?",pt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",dt="[\\ufe0e\\ufe0f]?",ft=dt+pt+("(?:\\u200d(?:"+["[^"+X+"]",ot,st].join("|")+")"+dt+pt+")*"),gt="(?:"+[nt,ot,st].join("|")+")"+ft,mt=RegExp([at+"?"+it+"+"+ct+"(?="+[tt,at,"$"].join("|")+")",ut+"+"+ht+"(?="+[tt,at+lt,"$"].join("|")+")",at+"?"+lt+"+"+ct,at+"+"+ht,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",et,gt].join("|"),"g");const vt=function(t){return t.match(mt)||[]};const yt=function(t,e,n){return t=(0,Q.A)(t),void 0===(e=n?void 0:e)?Z(t)?vt(t):V(t):t.match(e)||[]};const Et=(0,__webpack_require__(4636).A)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var _t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const bt=function(t){return(t=(0,Q.A)(t))&&t.replace(_t,Et).replace(xt,"")};var Tt=__webpack_require__(4360);function St(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return At(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?At(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function At(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var Lt=__webpack_require__(1540),Ct=function(t){var e=!1;t||(t=window.location.href,e=!0);var n=new Lt(t);return n.anchor().length>0&&(n.query(n.anchor()),e&&(window.location.hash="")),n};function Nt(t,e){var n=new Lt(t);for(var i in e){var r=e[i];if(Array.isArray(r)){var o,s=St(r);try{for(s.s();!(o=s.n()).done;){var a=o.value;n.addQueryParam(i,a)}}catch(t){s.e(t)}finally{s.f()}}else n.addQueryParam(i,r)}return n.toString()}function It(t,e){var n,i=new Lt(t),r=new Lt,o=wt(e);for(n in o)if(o.hasOwnProperty(n))if("namedGraphs"===n)o.namedGraphs.forEach(function(t){return r.addQueryParam("namedGraph",t)});else if("defaultGraphs"===n)o.defaultGraphs.forEach(function(t){return r.addQueryParam("defaultGraph",t)});else if("args"===n){(0,_._A)(o.args,e.yasgui).forEach(function(t){return r.addQueryParam(t.name,t.value)})}else"object"===(0,Tt.A)(o[n])?o[n]&&r.addQueryParam(n,JSON.stringify(o[n])):o[n]&&r.addQueryParam(n,o[n]);return Ct(t).queryPairs.forEach(function(t){r.hasQueryParam(t[0])||r.addQueryParam(t[0],t[1])}),i.anchor(r.query().substr(1)),i.toString()}function wt(t){var e=t.yasgui,n=t.getRequestConfig(),i=t.getPersistedJson().yasr.settings;return{query:t.getQuery(),endpoint:t.getEndpoint(),requestMethod:(0,_._A)(n.method,e),tabTitle:t.getName(),headers:(0,_._A)(n.headers,e),contentTypeConstruct:(0,_._A)(n.acceptHeaderGraph,e),contentTypeSelect:(0,_._A)(n.acceptHeaderSelect,e),args:(0,_._A)(n.args,e),namedGraphs:(0,_._A)(n.namedGraphs,e),defaultGraphs:(0,_._A)(n.defaultGraphs,e),outputFormat:i.selectedPlugin,outputSettings:i.pluginsConfig&&i.selectedPlugin?i.pluginsConfig[i.selectedPlugin]:void 0}}function Rt(t,e){var n,i=t,r=Ct(e),o=!1;if(r.queryPairs.forEach(function(t){var e=(0,S.A)(t,2),r=e[0],s=e[1];"query"===r?(o=!0,i.yasqe.value=s):"outputFormat"===r&&s.length?y.default.plugins[s]?i.yasr.settings.selectedPlugin=s:console.warn('Output format plugin "'.concat(s,'" not found')):"outputSettings"==r?n=JSON.parse(s):"contentTypeConstruct"==r?i.requestConfig.acceptHeaderGraph=s:"contentTypeSelect"==r?i.requestConfig.acceptHeaderSelect=s:"endpoint"==r?i.requestConfig.endpoint=s:"requestMethod"==r?i.requestConfig.method=s:"tabTitle"==r?i.name=s:"namedGraph"==r?(Array.isArray(i.requestConfig.namedGraphs)||(i.requestConfig.namedGraphs=[]),i.requestConfig.namedGraphs.push(s)):"defaultGraph"==r?(Array.isArray(i.requestConfig.defaultGraphs)||(i.requestConfig.defaultGraphs=[]),i.requestConfig.defaultGraphs.push(s)):"headers"==r?(i.requestConfig.headers||(i.requestConfig.headers={}),i.requestConfig.headers=JSON.parse(s)):(i.requestConfig.args||(i.requestConfig.args=[]),i.requestConfig.args.push({name:r,value:s}))}),n&&i.yasr.settings.selectedPlugin&&i.yasr.settings.pluginsConfig&&(i.yasr.settings.pluginsConfig[i.yasr.settings.selectedPlugin]=n),o)return i}function Pt(t,e){var n=e||ue.getDefaults();return t.service&&(n.requestConfig.endpoint=t.service),t.requestConfig&&(t.requestConfig.payload&&(t.requestConfig.payload.query&&(n.yasqe.value=t.requestConfig.payload.query),t.requestConfig.payload["default-graph-uri"]&&(n.requestConfig.defaultGraphs=Array.isArray(t.requestConfig.payload["default-graph-uri"])?t.requestConfig.payload["default-graph-uri"]:[t.requestConfig.payload["default-graph-uri"]]),t.requestConfig.payload["named-graph-uri"]&&(n.requestConfig.namedGraphs=Array.isArray(t.requestConfig.payload["named-graph-uri"])?t.requestConfig.payload["named-graph-uri"]:[t.requestConfig.payload["named-graph-uri"]])),t.requestConfig.headers&&(n.requestConfig.headers=t.requestConfig.headers)),t.renderConfig&&(t.renderConfig.output&&(y.default.plugins[t.renderConfig.output]?n.yasr.settings.selectedPlugin=t.renderConfig.output:console.warn('Output format plugin "'.concat(t.renderConfig.output,'" not found'))),t.renderConfig.settings&&(y.default.plugins[t.renderConfig.output]&&n.yasr.settings.pluginsConfig?n.yasr.settings.pluginsConfig[t.renderConfig.output]=t.renderConfig.settings:console.warn('Output format plugin "'.concat(t.renderConfig.output,'" not found, cannot apply settings')))),t.name&&(n.name=t.name),n}var Mt=__webpack_require__(2980),Ot=__webpack_require__.n(Mt),kt=__webpack_require__(6074),Dt=__webpack_require__(7903),Gt=__webpack_require__(8563),Bt=__webpack_require__(3869),jt=__webpack_require__(6809),Ft=__webpack_require__(761);const Ut=function(t,e,n,i){if(!(0,jt.A)(t))return t;for(var r=-1,o=(e=(0,Gt.A)(e,t)).length,s=o-1,a=t;null!=a&&++r<o;){var l=(0,Ft.A)(e[r]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(r!=s){var c=a[l];void 0===(u=i?i(c,l,a):void 0)&&(u=(0,jt.A)(c)?c:(0,Bt.A)(e[r+1])?[]:{})}(0,Dt.A)(a,l,u),a=a[l]}return t};const Ht=function(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=(0,kt.A)(t,s);n(a,s)&&Ut(o,(0,Gt.A)(s,t),a)}return o};var qt=__webpack_require__(6928);const zt=function(t,e){return Ht(t,e,function(e,n){return(0,qt.A)(t,n)})};var Vt=__webpack_require__(4560);const Wt=function(t){return(null==t?0:t.length)?(0,Vt.A)(t,1):[]};var Zt=__webpack_require__(4858),Qt=__webpack_require__(9430);const Xt=function(t){return(0,Qt.A)((0,Zt.A)(t,void 0,Wt),t+"")}(function(t,e){return null==t?{}:zt(t,e)});var Yt=__webpack_require__(7371),$t=__webpack_require__.n(Yt),Kt=__webpack_require__(9418);function Jt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Jt=function(){return!!t})()}var te=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}l((i=i.apply(t,e||[])).next())})};__webpack_require__(2144);var ee=Kt.A.sanitize;function ne(t){return t.match(/\S+/g)||[]}var ie=function(t){function s(t,n,o,a){var l;return(0,e.A)(this,s),l=function(t,e,n){return e=(0,r.A)(e),(0,i.A)(t,Jt()?Reflect.construct(e,n||[],(0,r.A)(t).constructor):e.apply(t,n))}(this,s),l.clearListSuggestionList=function(){var t=l.container.querySelector(".autocompleteList");t&&(t.innerHTML="")},l.container=n,l.options=o,l.value=t,l.history=a.map(function(t){return{endpoint:ee(t),type:"history"}}),l.options.keys.indexOf("endpoint")<=0&&l.options.keys.push("endpoint"),l.draw(),l}return(0,o.A)(s,t),(0,n.A)(s,[{key:"draw",value:function(){var t=this,e=document.createElement("div");(0,_.iQ)(e,"autocompleteWrapper"),this.container.appendChild(e),this.inputField=document.createElement("input"),(0,_.iQ)(this.inputField,"autocomplete"),this.inputField.value=this.value,e.appendChild(this.inputField);var n=document.createElement("button");n.title="Clear endpoint",(0,_.iQ)(n,"clearEndpointBtn"),n.innerText="✖",n.addEventListener("click",function(){t.inputField.value="",t.inputField.focus()}),this.container.appendChild(n),new(Ot())({placeholder:"Search or add an endpoint",highlight:!1,maxResults:100,trigger:{event:["input","focusin"],condition:function(){return!0}},searchEngine:function(t,e){return!t||0===t.trim().length||ne(t).every(function(t){return e.indexOf(t)>=0})},data:{src:function(){return te(t,void 0,void 0,L().mark(function t(){var e=this;return L().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",[].concat((0,T.A)(this.history),(0,T.A)(this.options.getData())).map(function(t){return Object.assign(Object.assign({},t),{all:Object.values(Xt(t,["endpoint"].concat((0,T.A)(e.options.keys)))).join(" ")})}));case 1:case"end":return t.stop()}},t,this)}))},key:["all"],cache:!1},selector:function(){return t.inputField},resultsList:{render:!0,destination:this.inputField,container:function(t){t.id="",(0,_.iQ)(t,"autocompleteList")}},resultItem:{content:function(e,n){var i=ee(e.value.endpoint);if(e.value.type&&"history"===e.value.type){var r=document.createElement("div");r.innerHTML=$t()(i,re(i,t.inputField.value)).reduce(function(t,e){return e.highlight?t+e.text.bold():t+e.text},""),n.append(r);var o=document.createElement("button");o.textContent="✖",(0,_.iQ)(o,"removeItem"),o.addEventListener("mousedown",function(e){t.history=t.history.filter(function(t){return t.endpoint!==i}),t.emit("remove",t.value,t.history.map(function(t){return t.endpoint})),n.remove(),e.stopPropagation()}),n.appendChild(o)}else{for(var s={matches:{}},a=0,l=(0,T.A)(t.options.keys);a<l.length;a++){var u=l[a],c=e.value[u];c&&(s.matches[u]=$t()(c,re(c,t.inputField.value)))}t.options.renderItem(Object.assign(Object.assign({},e),s),n)}},element:"li"},onSelection:function(e){var n=e.selection.value;t.value=n.endpoint,t.inputField.value=t.value,t.emit("select",t.value,t.history.map(function(t){return t.endpoint}))},noResults:function(){var e=t.container.querySelector(".autocompleteList");if(e){var n=document.createElement("div");(0,_.iQ)(n,"noResults"),n.innerText='Press "enter" to add this endpoint',e.appendChild(n)}}}),this.inputField.addEventListener("keyup",function(e){var n=e.target;if(13===e.keyCode){if(t.value===n.value)return t.clearListSuggestionList(),void t.inputField.blur();if(!n.value||!n.value.trim())return t.clearListSuggestionList(),void t.inputField.blur();if(t.options.getData().find(function(e){return e.endpoint===t.inputField.value})||t.history.find(function(e){return e.endpoint===t.inputField.value}))return t.value=n.value,t.clearListSuggestionList(),t.emit("select",t.value,t.history.map(function(t){return t.endpoint})),void t.inputField.blur();t.value=n.value,t.history.push({endpoint:n.value,type:"history"}),t.emit("select",t.value,t.history.map(function(t){return t.endpoint})),t.clearListSuggestionList(),t.inputField.blur()}if(27===e.keyCode&&(t.inputField.blur(),t.inputField.value=t.value,t.clearListSuggestionList()),38===e.keyCode||40===e.keyCode){e.stopPropagation();var i=t.container.querySelector(".autocompleteList .autoComplete_result.autoComplete_selected");i&&!function(t){var e=t.getBoundingClientRect(),n=e.top,i=e.bottom;if(i<0)return!1;if(n>document.documentElement.clientHeight)return!1;var r=t.parentNode.getBoundingClientRect();return i<=r.bottom!=0&&!(n<=r.top)}(i)&&i.scrollIntoView(!1)}}),this.inputField.addEventListener("blur",function(e){e.target.className===t.inputField.className&&e.relatedTarget&&(t.clearListSuggestionList(),t.inputField.value=t.value)}),document.addEventListener("mousedown",function(e){if(2!==e.button){var n=e.target;if("removeItem"===n.className||"autoComplete_result"===n.className||"autocomplete"===n.className)return;t.clearListSuggestionList(),t.inputField.value=t.value}})}},{key:"setEndpoint",value:function(t,e){this.value=t,e&&(this.history=e.map(function(t){return{endpoint:t,type:"history"}})),this.inputField===document.activeElement?this.inputField.focus():this.inputField.value=t}},{key:"destroy",value:function(){this.removeAllListeners(),this.inputField.remove()}}])}(s.EventEmitter);function re(t,e){return ne(e).reduce(function(e,n){if(!n.length)return e;var i=n.length,r=t.indexOf(n);return r>-1&&(e.push([r,r+i]),t=t.slice(0,r)+new Array(i+1).join(" ")+t.slice(r+i)),e},[]).sort(function(t,e){return t[0]-e[0]})}const oe=ie;function se(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(se=function(){return!!t})()}var ae=function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function s(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,a)}l((i=i.apply(t,e||[])).next())})};__webpack_require__(2276);var le=function(t){function s(t,n){var o;if((0,e.A)(this,s),o=function(t,e,n){return e=(0,r.A)(e),(0,i.A)(t,se()?Reflect.construct(e,n||[],(0,r.A)(t).constructor):e.apply(t,n))}(this,s),o.handleKeyDown=function(t){var e,n,i,r,s,a,l,u,c;if("F11"===t.key)t.preventDefault(),o.yasqe&&(o.yasqe.toggleFullscreen(),(null===(e=o.yasr)||void 0===e?void 0:e.getIsFullscreen())&&o.yasr.toggleFullscreen());else if("F10"===t.key)t.preventDefault(),o.yasr&&(o.yasr.toggleFullscreen(),(null===(n=o.yasqe)||void 0===n?void 0:n.getIsFullscreen())&&o.yasqe.toggleFullscreen());else if(t.ctrlKey&&t.shiftKey&&"F"===t.key){t.preventDefault();var h=null===(i=o.yasqe)||void 0===i?void 0:i.getIsFullscreen(),p=null===(r=o.yasr)||void 0===r?void 0:r.getIsFullscreen();h?(null===(s=o.yasqe)||void 0===s||s.toggleFullscreen(),null===(a=o.yasr)||void 0===a||a.toggleFullscreen()):p?(null===(l=o.yasr)||void 0===l||l.toggleFullscreen(),null===(u=o.yasqe)||void 0===u||u.toggleFullscreen()):null===(c=o.yasqe)||void 0===c||c.toggleFullscreen()}},o.handleYasqeBlur=function(t){var e;o.persistentJson.yasqe.value=t.getValue(),null===(e=o.settingsModal)||void 0===e||e.capturePrefixesFromQuery(),o.emit("change",o,o.persistentJson)},o.handleYasqeQuery=function(t){t.getValue()!==o.persistentJson.yasqe.value&&(o.persistentJson.yasqe.value=t.getValue(),o.emit("change",o,o.persistentJson)),o.emit("query",o)},o.handleYasqeQueryAbort=function(){o.emit("queryAbort",o),o.yasr&&o.yasr.hideLoading()},o.handleYasqeQueryBefore=function(){o.emit("queryBefore",o),o.yasr&&o.yasr.showLoading()},o.handleYasqeResize=function(t,e){o.persistentJson.yasqe.editorHeight=e,o.emit("change",o,o.persistentJson)},o.handleAutocompletionShown=function(t,e){o.emit("autocompletionShown",o,e)},o.handleAutocompletionClose=function(t){o.emit("autocompletionClose",o)},o.handleQueryResponse=function(t,e,n){if(o.emit("queryResponse",o),!o.yasr)throw new Error("Resultset visualizer not initialized. Cannot draw results");o.yasr.setResponse(e,n),o.yasr.results&&(o.yasr.results.hasError()?o.persistentJson.yasr.response=void 0:o.persistentJson.yasr.response=o.yasr.results.getAsStoreObject(o.yasgui.config.yasr.maxPersistentResponseSize),o.emit("change",o,o.persistentJson))},o.handleYasqeMouseDown=function(t){if(t.ctrlKey&&o.yasqe&&t.target.closest(".CodeMirror")){var e=o.yasqe.coordsChar({left:t.clientX,top:t.clientY}),n=o.yasqe.getTokenAt(e).string.trim();if(!n.startsWith("?")&&!n.startsWith("$")){var i=n.startsWith("<")&&n.endsWith(">"),r=/^[\w-]+:[\w-]+/.test(n);if(i||r){t.preventDefault(),t.stopPropagation();var s=n;if(i)s=n.slice(1,-1);else if(r){var a=o.yasqe.getPrefixesFromQuery(),l=n.split(":"),u=(0,S.A)(l,2),c=u[0],h=u[1],p=a[c];p&&(s=p+h)}var d="CONSTRUCT { \n ?s_left ?p_left ?target .\n ?target ?p_right ?o_right .\n}\nWHERE {\n BIND(<".concat(s,"> as ?target)\n {\n ?s_left ?p_left ?target .\n }\n UNION\n {\n ?target ?p_right ?o_right .\n } \n} LIMIT 1000");o.executeBackgroundQuery(d)}}}},!n||void 0===n.id)throw new Error("Expected a valid configuration to initialize tab with");return o.yasgui=t,o.persistentJson=n,o}return(0,o.A)(s,t),(0,n.A)(s,[{key:"name",value:function(){return this.persistentJson.name}},{key:"getPersistedJson",value:function(){return this.persistentJson}},{key:"getId",value:function(){return this.persistentJson.id}},{key:"draw",value:function(){if(!this.rootEl){this.rootEl=document.createElement("div"),this.rootEl.className="tabPanel",this.rootEl.id=this.persistentJson.id,this.rootEl.setAttribute("role","tabpanel"),this.rootEl.setAttribute("aria-labelledby","tab-"+this.persistentJson.id);var t=document.createElement("div");t.className="editorwrapper";var e=document.createElement("div");this.controlBarEl=document.createElement("div"),this.controlBarEl.className="controlbar",e.appendChild(this.controlBarEl),this.yasqeWrapperEl=document.createElement("div"),e.appendChild(this.yasqeWrapperEl),t.appendChild(e),this.yasrWrapperEl=document.createElement("div"),this.initTabSettingsMenu(),this.rootEl.appendChild(t),this.rootEl.appendChild(this.yasrWrapperEl),this.initControlbar(),this.initYasqe(),this.initYasr(),this.yasgui._setPanel(this.persistentJson.id,this.rootEl)}}},{key:"hide",value:function(){(0,_.vy)(this.rootEl,"active"),this.detachKeyboardListeners()}},{key:"show",value:function(){this.draw(),(0,_.iQ)(this.rootEl,"active"),this.yasgui.tabElements.selectTab(this.persistentJson.id),this.yasqe&&(this.yasqe.refresh(),this.yasgui.config.autofocus&&this.yasqe.focus()),this.yasr&&this.yasr.refresh(),this.setEndpoint(this.getEndpoint(),this.yasgui.persistentConfig.getEndpointHistory()),this.attachKeyboardListeners()}},{key:"attachKeyboardListeners",value:function(){this.rootEl&&document.addEventListener("keydown",this.handleKeyDown)}},{key:"detachKeyboardListeners",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"select",value:function(){this.yasgui.selectTabId(this.persistentJson.id)}},{key:"close",value:function(){if(this.detachKeyboardListeners(),this.yasqe&&this.yasqe.abortQuery(),this.yasgui.getTab()===this){var t=this.yasgui.persistentConfig.getTabs(),e=t.indexOf(this.persistentJson.id);e>-1&&this.yasgui.selectTabId(t[e===t.length-1?e-1:e+1])}this.yasgui._removePanel(this.rootEl),this.yasgui.persistentConfig.deleteTab(this.persistentJson.id),this.yasgui.emit("tabClose",this.yasgui,this),this.emit("close",this),this.yasgui.tabElements.get(this.persistentJson.id).delete(),delete this.yasgui._tabs[this.persistentJson.id]}},{key:"getQuery",value:function(){var t;if(!this.yasqe)throw new Error("Cannot get value from uninitialized editor");return null===(t=this.yasqe)||void 0===t?void 0:t.getValue()}},{key:"setQuery",value:function(t){if(!this.yasqe)throw new Error("Cannot set value for uninitialized editor");return this.yasqe.setValue(t),this.persistentJson.yasqe.value=t,this.emit("change",this,this.persistentJson),this}},{key:"getRequestConfig",value:function(){return this.persistentJson.requestConfig}},{key:"initControlbar",value:function(){this.initEndpointSelectField(),this.yasgui.config.endpointInfo&&this.controlBarEl&&this.controlBarEl.appendChild(this.yasgui.config.endpointInfo())}},{key:"getYasqe",value:function(){return this.yasqe}},{key:"getYasr",value:function(){return this.yasr}},{key:"initTabSettingsMenu",value:function(){if(!this.controlBarEl)throw new Error("Need to initialize wrapper elements before drawing tab settings");this.settingsModal=new R(this,this.controlBarEl)}},{key:"initEndpointSelectField",value:function(){var t=this;if(!this.controlBarEl)throw new Error("Need to initialize wrapper elements before drawing endpoint field");this.endpointSelect=new oe(this.getEndpoint(),this.controlBarEl,this.yasgui.config.endpointCatalogueOptions,this.yasgui.persistentConfig.getEndpointHistory()),this.endpointSelect.on("select",function(e,n){t.setEndpoint(e,n)}),this.endpointSelect.on("remove",function(e,n){t.setEndpoint(e,n)})}},{key:"checkEndpointForCors",value:function(t){if(this.yasgui.config.corsProxy&&!(t in jo.corsEnabled)){var e=new URL(t);e.searchParams.append("query","ASK {?x ?y ?z}"),fetch(e.toString()).then(function(){jo.corsEnabled[t]=!0}).catch(function(e){jo.corsEnabled[t]=!(e instanceof TypeError)})}}},{key:"setEndpoint",value:function(t,e){return t&&(t=t.trim()),e&&!(0,P.A)(e,this.yasgui.persistentConfig.getEndpointHistory())&&this.yasgui.emit("endpointHistoryChange",this.yasgui,e),this.checkEndpointForCors(t),this.persistentJson.requestConfig.endpoint!==t&&(this.persistentJson.requestConfig.endpoint=t,this.emit("change",this,this.persistentJson),this.emit("endpointChange",this,t)),this.endpointSelect instanceof oe&&this.endpointSelect.setEndpoint(t,e),this}},{key:"getEndpoint",value:function(){return(0,_._A)(this.persistentJson.requestConfig.endpoint,this.yasgui)}},{key:"updateContextMenu",value:function(){this.getTabListEl().redrawContextMenu()}},{key:"getShareableLink",value:function(t){return It(t||window.location.href,this)}},{key:"getShareObject",value:function(){return wt(this)}},{key:"getTabListEl",value:function(){return this.yasgui.tabElements.get(this.persistentJson.id)}},{key:"setName",value:function(t){return this.getTabListEl().rename(t),this.persistentJson.name=t,this.emit("change",this,this.persistentJson),this}},{key:"hasResults",value:function(){var t;return!!(null===(t=this.yasr)||void 0===t?void 0:t.results)}},{key:"getName",value:function(){return this.persistentJson.name}},{key:"query",value:function(){return this.yasqe?this.yasqe.query():Promise.reject(new Error("No yasqe editor initialized"))}},{key:"setRequestConfig",value:function(t){this.persistentJson.requestConfig=Object.assign(Object.assign({},this.persistentJson.requestConfig),t),this.emit("change",this,this.persistentJson)}},{key:"getStaticRequestConfig",value:function(){var t,e={};for(t in this.yasgui.config.requestConfig)if("adjustQueryBeforeRequest"!==t){var n=this.yasgui.config.requestConfig[t];"function"==typeof n&&(e[t]=n(this.yasgui))}return e}},{key:"initYasqe",value:function(){var t=this,e=Object.assign(Object.assign({},this.yasgui.config.yasqe),{value:this.persistentJson.yasqe.value,editorHeight:this.persistentJson.yasqe.editorHeight?this.persistentJson.yasqe.editorHeight:void 0,persistenceId:null,consumeShareLink:null,createShareableLink:function(){return t.getShareableLink()},requestConfig:function(){var e=Object.assign(Object.assign({acceptHeaderGraph:"text/turtle",acceptHeaderSelect:"application/sparql-results+json"},O({},t.persistentJson.requestConfig,t.getStaticRequestConfig(),function(t,e){if(Array.isArray(t)||Array.isArray(e))return[].concat((0,T.A)(t||[]),(0,T.A)(e||[]))})),{adjustQueryBeforeRequest:t.yasgui.config.requestConfig.adjustQueryBeforeRequest});return t.yasgui.config.corsProxy&&!jo.corsEnabled[t.getEndpoint()]?Object.assign(Object.assign({},e),{args:[].concat((0,T.A)(Array.isArray(e.args)?e.args:[]),[{name:"endpoint",value:t.getEndpoint()},{name:"method",value:t.persistentJson.requestConfig.method}]),method:"POST",endpoint:t.yasgui.config.corsProxy}):e}});if(e.hintConfig||(e.hintConfig={}),e.hintConfig.container||(e.hintConfig.container=this.yasgui.rootEl),!this.yasqeWrapperEl)throw new Error("Expected a wrapper element before instantiating yasqe");this.yasqe=new E.default(this.yasqeWrapperEl,e),this.yasqe.on("blur",this.handleYasqeBlur),this.yasqe.on("query",this.handleYasqeQuery),this.yasqe.on("queryBefore",this.handleYasqeQueryBefore),this.yasqe.on("queryAbort",this.handleYasqeQueryAbort),this.yasqe.on("resize",this.handleYasqeResize),this.yasqe.on("autocompletionShown",this.handleAutocompletionShown),this.yasqe.on("autocompletionClose",this.handleAutocompletionClose),this.yasqe.on("queryResponse",this.handleQueryResponse),this.attachYasqeMouseHandler()}},{key:"destroyYasqe",value:function(){var t,e,n,i,r,o,s,a,l;null===(t=this.yasqe)||void 0===t||t.off("blur",this.handleYasqeBlur),null===(e=this.yasqe)||void 0===e||e.off("query",this.handleYasqeQuery),null===(n=this.yasqe)||void 0===n||n.off("queryAbort",this.handleYasqeQueryAbort),null===(i=this.yasqe)||void 0===i||i.off("resize",this.handleYasqeResize),null===(r=this.yasqe)||void 0===r||r.off("autocompletionShown",this.handleAutocompletionShown),null===(o=this.yasqe)||void 0===o||o.off("autocompletionClose",this.handleAutocompletionClose),null===(s=this.yasqe)||void 0===s||s.off("queryBefore",this.handleYasqeQueryBefore),null===(a=this.yasqe)||void 0===a||a.off("queryResponse",this.handleQueryResponse),this.detachYasqeMouseHandler(),null===(l=this.yasqe)||void 0===l||l.destroy(),this.yasqe=void 0}},{key:"executeBackgroundQuery",value:function(t){return ae(this,void 0,void 0,L().mark(function e(){var n,i,r,o,s,a,l,u,c,h,p,d,f,g;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.yasqe&&this.yasr){e.next=1;break}return e.abrupt("return");case 1:if(e.prev=1,this.yasr.showLoading(),this.emit("queryBefore",this),n=this.yasqe.config.requestConfig,(i="function"==typeof n?n(this.yasqe):n).endpoint){e.next=2;break}throw new Error("No endpoint configured");case 2:return r="function"==typeof i.endpoint?i.endpoint(this.yasqe):i.endpoint,o="function"==typeof i.method?i.method(this.yasqe):i.method||"POST",s="function"==typeof i.headers?i.headers(this.yasqe):i.headers||{},(a=new URLSearchParams).append("query",t),i.args&&Array.isArray(i.args)&&i.args.forEach(function(t){t.name&&t.value&&a.append(t.name,t.value)}),l={method:o,headers:Object.assign({Accept:"text/turtle"},s)},u=r,"POST"===o?(l.headers=Object.assign(Object.assign({},l.headers),{"Content-Type":"application/x-www-form-urlencoded"}),l.body=a.toString()):(c=new URL(r),a.forEach(function(t,e){c.searchParams.append(e,t)}),u=c.toString()),h=Date.now(),e.next=3,fetch(u,l);case 3:if(p=e.sent,d=Date.now()-h,p.ok){e.next=4;break}throw new Error("Query failed: ".concat(p.statusText));case 4:return e.next=5,p.text();case 5:f=e.sent,this.yasr.setResponse(f,d),this.yasr.hideLoading(),this.emit("queryResponse",this),e.next=7;break;case 6:e.prev=6,g=e.catch(1),console.error("Background query failed:",g),this.yasr&&(this.yasr.hideLoading(),this.yasr.setResponse({error:g instanceof Error?g.message:"Unknown error"},0));case 7:case"end":return e.stop()}},e,this,[[1,6]])}))}},{key:"attachYasqeMouseHandler",value:function(){if(this.yasqe){var t=this.yasqe.getWrapperElement();t&&t.addEventListener("mousedown",this.handleYasqeMouseDown)}}},{key:"detachYasqeMouseHandler",value:function(){if(this.yasqe){var t=this.yasqe.getWrapperElement();t&&t.removeEventListener("mousedown",this.handleYasqeMouseDown)}}},{key:"initYasr",value:function(){var t=this;if(!this.yasrWrapperEl)throw new Error("Wrapper for yasr does not exist");var e={persistenceId:null,prefixes:function(e){var n,i="function"==typeof t.yasgui.config.yasr.prefixes?t.yasgui.config.yasr.prefixes(e):t.yasgui.config.yasr.prefixes,r=null===(n=t.yasqe)||void 0===n?void 0:n.getPrefixesFromQuery();return H(H(Object.assign(Object.assign({},i),r)))},defaultPlugin:this.persistentJson.yasr.settings.selectedPlugin,getPlainQueryLinkToEndpoint:function(){if(t.yasqe)return Nt(t.getEndpoint(),E.default.Sparql.getUrlArguments(t.yasqe,t.persistentJson.requestConfig))},plugins:(0,q.A)(this.persistentJson.yasr.settings.pluginsConfig,function(t){return{dynamicConfig:t}}),errorRenderers:[he(this)].concat((0,T.A)(y.default.defaults.errorRenderers||[]))};void 0===e.getDownloadFileName&&(e.getDownloadFileName=function(){return yt(bt(t.getName())).join("-")}),this.yasr=new y.default(this.yasrWrapperEl,e,this.persistentJson.yasr.response),this.persistentJson.yasr.settings=this.yasr.getPersistentConfig(),this.yasr.on("change",function(){t.yasr&&(t.persistentJson.yasr.settings=t.yasr.getPersistentConfig()),t.emit("change",t,t.persistentJson)})}},{key:"destroy",value:function(){var t,e,n;this.removeAllListeners(),null===(t=this.settingsModal)||void 0===t||t.destroy(),null===(e=this.endpointSelect)||void 0===e||e.destroy(),this.endpointSelect=void 0,null===(n=this.yasr)||void 0===n||n.destroy(),this.yasr=void 0,this.destroyYasqe()}}],[{key:"getDefaults",value:function(t){return{yasqe:{value:t?t.config.yasqe.value:jo.defaults.yasqe.value},yasr:{response:void 0,settings:{selectedPlugin:t?t.config.yasr.defaultPlugin:"table",pluginsConfig:{}}},requestConfig:t?t.config.requestConfig:Object.assign({},jo.defaults.requestConfig),id:Bo(),name:t?t.createTabName():jo.defaults.tabName}}}])}(s.EventEmitter);const ue=le;var ce=function(t){var e=new URL(t);return encodeURI(e.href)};function he(t){var e=this;return function(n){return ae(e,void 0,void 0,L().mark(function e(){var i,r,o;return L().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status){e.next=1;break}if(!("http:"===new URL(t.getEndpoint()).protocol&&"https:"===window.location.protocol)){e.next=1;break}return i=document.createElement("div"),(r=document.createElement("p")).innerHTML='You are trying to query an HTTP endpoint (<a href="'.concat(ce(t.getEndpoint()),'" target="_blank" rel="noopener noreferrer">').concat(ce(t.getEndpoint()),'</a>) from an HTTP<strong>S</strong> website (<a href="').concat(ce(window.location.href),'">').concat(ce(window.location.href),'</a>).<br>This is not allowed in modern browsers, see <a target="_blank" rel="noopener noreferrer" href="https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy">https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy</a>.'),t.yasgui.config.nonSslDomain&&((o=document.createElement("p")).innerHTML='As a workaround, you can use the HTTP version of Yasgui instead: <a href="'.concat(t.getShareableLink(t.yasgui.config.nonSslDomain),'" target="_blank">').concat(t.yasgui.config.nonSslDomain,"</a>"),r.appendChild(o)),i.appendChild(r),e.abrupt("return",i);case 1:case"end":return e.stop()}},e)}))}}var pe=__webpack_require__(6425);__webpack_require__(5764);var de=function(){function t(n,i){var r=this;(0,e.A)(this,t),this.handleContextClick=function(t){2!==t.button||t.target!==r.contextEl?r.closeConfigMenu():t.stopImmediatePropagation()},this.closeConfigMenu=function(){r.tabRef=void 0,r.contextEl&&r.contextEl.remove()},this.yasgui=n,this.rootEl=i,document.addEventListener("click",this.handleContextClick),document.addEventListener("keyup",this.closeConfigMenu)}return(0,n.A)(t,[{key:"getMenuItemEl",value:function(t){var e=document.createElement("li");return(0,_.iQ)(e,"context-menu-item"),e.addEventListener("contextmenu",function(t){t.stopPropagation()}),void 0!==t&&(e.innerText=t),e}},{key:"draw",value:function(t){var e=this;this.contextEl=document.createElement("div");var n=document.createElement("ul");(0,_.iQ)(n,"context-menu-list"),this.newTabEl=this.getMenuItemEl("New Tab"),this.newTabEl.onclick=function(){return e.yasgui.addTab(!0)},this.renameTabEl=this.getMenuItemEl("Rename Tab"),this.copyTabEl=this.getMenuItemEl("Copy Tab"),this.closeTabEl=this.getMenuItemEl("Close Tab"),this.closeOtherTabsEl=this.getMenuItemEl("Close other tabs"),this.reOpenOldTab=this.getMenuItemEl("Undo close Tab"),n.appendChild(this.newTabEl),n.appendChild(this.renameTabEl),n.appendChild(this.copyTabEl),n.appendChild(document.createElement("hr")),n.appendChild(this.closeTabEl),n.appendChild(this.closeOtherTabsEl),n.appendChild(this.reOpenOldTab),this.contextEl.appendChild(n),(0,_.iQ)(this.contextEl,"yasgui","context-menu"),t.appendChild(this.contextEl)}},{key:"redraw",value:function(){var t;if(this.contextEl&&(null===(t=this.tabRef)||void 0===t?void 0:t.tabEl)){var e=this.tabRef.tabEl.getBoundingClientRect();this.contextEl.style.top="".concat(window.pageYOffset+e.bottom,"px")}}},{key:"openConfigMenu",value:function(t,e,n){var i=this;if(e.tabEl){this.draw(this.rootEl),this.tabRef=e;var r=this.yasgui.getTab(t),o=e.tabEl.getBoundingClientRect();this.contextEl.style.left="".concat(window.pageXOffset+o.left,"px"),this.contextEl.style.top="".concat(window.pageYOffset+o.bottom,"px"),n.stopPropagation(),this.renameTabEl.onclick=function(){return e.startRename()},this.copyTabEl.onclick=function(){if(r){var t=(0,pe.A)(r.getPersistedJson());t.id=Bo(),i.yasgui.addTab(!0,t)}},this.closeTabEl.onclick=function(){return null==r?void 0:r.close()},1===Object.keys(this.yasgui._tabs).length?(0,_.iQ)(this.closeOtherTabsEl,"disabled"):this.closeOtherTabsEl.onclick=function(){for(var e=0,n=Object.keys(i.yasgui._tabs);e<n.length;e++){var r=n[e];r!==t&&i.yasgui.getTab(r).close()}},this.yasgui.persistentConfig&&this.yasgui.persistentConfig.hasLastClosedTab()?this.reOpenOldTab.onclick=function(){return i.yasgui.restoreLastTab()}:(0,_.iQ)(this.reOpenOldTab,"disabled")}}},{key:"unregisterEventListeners",value:function(){document.removeEventListener("click",this.handleContextClick),document.removeEventListener("keyup",this.closeConfigMenu)}},{key:"destroy",value:function(){this.unregisterEventListeners()}}],[{key:"get",value:function(e,n){return new t(e,n)}}])}(),fe=__webpack_require__(6732);__webpack_require__(2357);var ge=function(){return(0,n.A)(function t(n,i,r){(0,e.A)(this,t),this.tabList=i,this.yasgui=n,this.tabId=r},[{key:"delete",value:function(){var t;this.tabEl&&(null===(t=this.tabList._tabsListEl)||void 0===t||t.removeChild(this.tabEl),delete this.tabList._tabs[this.tabId])}},{key:"startRename",value:function(){if(this.renameEl){var t=this.yasgui.getTab(this.tabId);t&&(this.renameEl.value=t.name(),(0,_.iQ)(this.tabEl,"renaming"),this.renameEl.focus())}}},{key:"active",value:function(t){this.tabEl&&(t?((0,_.iQ)(this.tabEl,"active"),this.tabEl.children[0].setAttribute("aria-selected","true"),this.tabEl.children[0].setAttribute("tabindex","0")):((0,_.vy)(this.tabEl,"active"),this.tabEl.children[0].setAttribute("aria-selected","false"),this.tabEl.children[0].setAttribute("tabindex","-1")))}},{key:"rename",value:function(t){this.nameEl&&(this.nameEl.textContent=t)}},{key:"setAsQuerying",value:function(t){t?(0,_.iQ)(this.tabEl,"querying"):(0,_.vy)(this.tabEl,"querying")}},{key:"draw",value:function(t){var e=this;this.tabEl=document.createElement("div"),this.tabEl.setAttribute("role","presentation"),this.tabEl.ondblclick=function(){e.startRename()},(0,_.iQ)(this.tabEl,"tab"),this.tabEl.addEventListener("keydown",function(t){"Delete"===t.code&&n()});var n=function(t){var n;null==t||t.preventDefault(),null===(n=e.yasgui.getTab(e.tabId))||void 0===n||n.close()},i=document.createElement("a");i.setAttribute("role","tab"),i.href="#"+this.tabId,i.id="tab-"+this.tabId,i.setAttribute("aria-controls",this.tabId),i.addEventListener("blur",function(){e.tabEl&&(e.tabEl.classList.contains("active")?i.setAttribute("tabindex","0"):i.setAttribute("tabindex","-1"))}),i.addEventListener("focus",function(){if(e.tabEl&&e.tabEl.classList.contains("active")){var t=Object.keys(e.tabList._tabs).indexOf(e.tabId);e.tabList.tabEntryIndex=t}}),i.addEventListener("click",function(t){t.preventDefault(),e.yasgui.selectTabId(e.tabId)}),this.nameEl=document.createElement("span"),this.nameEl.textContent=t,i.appendChild(this.nameEl);var r=document.createElement("div");r.innerHTML="✖",r.title="Close tab",r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),(0,_.iQ)(r,"closeTab"),r.addEventListener("click",n),i.appendChild(r);var o=this.renameEl=document.createElement("input");o.type="text",o.value=t,o.onkeyup=function(t){var n;"Enter"===t.key&&(null===(n=e.yasgui.getTab(e.tabId))||void 0===n||n.setName(o.value),(0,_.vy)(e.tabEl,"renaming"))},o.onblur=function(){var t;null===(t=e.yasgui.getTab(e.tabId))||void 0===t||t.setName(o.value),(0,_.vy)(e.tabEl,"renaming")},i.appendChild(this.renameEl),i.oncontextmenu=function(t){var n;null===(n=e.tabList.tabContextMenu)||void 0===n||n.closeConfigMenu(),e.openTabConfigMenu(t),t.preventDefault(),t.stopPropagation()},this.tabEl.appendChild(i);var s=document.createElement("div");return(0,_.iQ)(s,"loader"),this.tabEl.appendChild(s),this.tabEl}},{key:"openTabConfigMenu",value:function(t){var e;null===(e=this.tabList.tabContextMenu)||void 0===e||e.openConfigMenu(this.tabId,this,t)}},{key:"redrawContextMenu",value:function(){var t;null===(t=this.tabList.tabContextMenu)||void 0===t||t.redraw()}}])}();const me=function(){return(0,n.A)(function t(n){var i=this;(0,e.A)(this,t),this._tabs={},this.handleKeydownArrowKeys=function(t){if("ArrowLeft"===t.code||"ArrowRight"===t.code){if(!i._tabsListEl)return;var e=i._tabsListEl.childElementCount;if("number"!=typeof i.tabEntryIndex)return;var n=i._tabsListEl.children[i.tabEntryIndex];n.classList.contains("active")||n.children[0].setAttribute("tabindex","-1"),"ArrowLeft"===t.code&&(i.tabEntryIndex--,i.tabEntryIndex<0&&(i.tabEntryIndex=e-1)),"ArrowRight"===t.code&&(i.tabEntryIndex++,i.tabEntryIndex>=e&&(i.tabEntryIndex=0));var r=i._tabsListEl.children[i.tabEntryIndex];r.children[0].setAttribute("tabindex","0"),r.children[0].focus()}},this.handleAddNewTab=function(t){t.preventDefault(),i.yasgui.addTab(!0)},this.yasgui=n,this.registerListeners(),this.tabEntryIndex=this.getActiveIndex()},[{key:"get",value:function(t){return this._tabs[t]}},{key:"registerListeners",value:function(){var t=this;this.yasgui.on("query",function(e,n){var i=n.getId();t._tabs[i]&&t._tabs[i].setAsQuerying(!0)}),this.yasgui.on("queryResponse",function(e,n){var i=n.getId();t._tabs[i]&&t._tabs[i].setAsQuerying(!1)}),this.yasgui.on("queryAbort",function(e,n){var i=n.getId();t._tabs[i]&&t._tabs[i].setAsQuerying(!1)})}},{key:"getActiveIndex",value:function(){if(this._selectedTab)return Object.keys(this._tabs).indexOf(this._selectedTab)}},{key:"drawTabsList",value:function(){var t=this;this._tabsListEl=document.createElement("div"),(0,_.iQ)(this._tabsListEl,"tabsList"),this._tabsListEl.setAttribute("role","tablist"),this._tabsListEl.addEventListener("keydown",this.handleKeydownArrowKeys),fe.default.create(this._tabsListEl,{group:"tabList",animation:100,onUpdate:function(e){var n=t.deriveTabOrderFromEls();t.yasgui.emit("tabOrderChanged",t.yasgui,n),t.yasgui.persistentConfig.setTabOrder(n)},filter:".addTab",onMove:function(t,e){return(0,_.nB)(t.related,"tab")}}),this.addTabEl=document.createElement("div"),this.addTabEl.setAttribute("role","presentation");var e=document.createElement("button");return e.className="addTab",e.textContent="+",e.title="Add tab",e.setAttribute("aria-label","Add a new tab"),e.addEventListener("click",this.handleAddNewTab),e.addEventListener("focus",function(){t._tabsListEl&&(t.tabEntryIndex=t._tabsListEl.childElementCount-1)}),e.addEventListener("blur",function(){e.setAttribute("tabindex","0")}),this.addTabEl.appendChild(e),this._tabsListEl.appendChild(this.addTabEl),this.tabContextMenu=de.get(this.yasgui,this.yasgui.config.contextMenuContainer?this.yasgui.config.contextMenuContainer:this._tabsListEl),this._tabsListEl}},{key:"addTab",value:function(t,e){return this.drawTab(t,e)}},{key:"deriveTabOrderFromEls",value:function(){var t=[];if(this._tabsListEl)for(var e=0;e<this._tabsListEl.children.length;e++){var n=this._tabsListEl.children[e].children[0];if(n){var i=n.href;i&&i.indexOf("#")>=0&&t.push(i.substr(i.indexOf("#")+1))}}return t}},{key:"selectTab",value:function(t){for(var e in this._selectedTab=t,this._tabs)this._tabs[e].active(this._selectedTab===e)}},{key:"drawTab",value:function(t,e){var n,i;this._tabs[t]=new ge(this.yasgui,this,t);var r=this.yasgui.persistentConfig.getTab(t);void 0!==e&&e<this.yasgui.persistentConfig.getTabs().length-1?null===(n=this._tabsListEl)||void 0===n||n.insertBefore(this._tabs[t].draw(r.name),this._tabs[this.yasgui.persistentConfig.getTabs()[e+1]].tabEl||null):null===(i=this._tabsListEl)||void 0===i||i.insertBefore(this._tabs[t].draw(r.name),this.addTabEl||null)}},{key:"destroy",value:function(){var t,e;for(var n in this._tabs){this._tabs[n].delete()}this._tabs={},null===(t=this.tabContextMenu)||void 0===t||t.destroy(),null===(e=this._tabsListEl)||void 0===e||e.remove(),this._tabsListEl=void 0}}])}();var ve=__webpack_require__(4067);var ye=6378137,Ee=.0066943799901413165,_e=484813681109536e-20,xe=Math.PI/2,be=1e-10,Te=.017453292519943295,Se=57.29577951308232,Ae=Math.PI/4,Le=2*Math.PI,Ce=3.14159265359,Ne={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const Ie=Ne,we={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var Re=/[\s_\-\/\(\)]/g;function Pe(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),r=e.toLowerCase().replace(Re,""),o=-1;++o<i.length;)if((n=i[o]).toLowerCase().replace(Re,"")===r)return t[n]}function Me(t){var e,n,i,r={},o=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t},{}),s={proj:"projName",datum:"datumCode",rf:function(t){r.rf=parseFloat(t)},lat_0:function(t){r.lat0=t*Te},lat_1:function(t){r.lat1=t*Te},lat_2:function(t){r.lat2=t*Te},lat_ts:function(t){r.lat_ts=t*Te},lon_0:function(t){r.long0=t*Te},lon_1:function(t){r.long1=t*Te},lon_2:function(t){r.long2=t*Te},alpha:function(t){r.alpha=parseFloat(t)*Te},gamma:function(t){r.rectified_grid_angle=parseFloat(t)*Te},lonc:function(t){r.longc=t*Te},x_0:function(t){r.x0=parseFloat(t)},y_0:function(t){r.y0=parseFloat(t)},k_0:function(t){r.k0=parseFloat(t)},k:function(t){r.k0=parseFloat(t)},a:function(t){r.a=parseFloat(t)},b:function(t){r.b=parseFloat(t)},r:function(t){r.a=r.b=parseFloat(t)},r_a:function(){r.R_A=!0},zone:function(t){r.zone=parseInt(t,10)},south:function(){r.utmSouth=!0},towgs84:function(t){r.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){r.to_meter=parseFloat(t)},units:function(t){r.units=t;var e=Pe(we,t);e&&(r.to_meter=e.to_meter)},from_greenwich:function(t){r.from_greenwich=t*Te},pm:function(t){var e=Pe(Ie,t);r.from_greenwich=(e||parseFloat(t))*Te},nadgrids:function(t){"@null"===t?r.datumCode="none":r.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(r.axis=t)},approx:function(){r.approx=!0},over:function(){r.over=!0}};for(e in o)n=o[e],e in s?"function"==typeof(i=s[e])?i(n):r[i]=n:r[e]=n;return"string"==typeof r.datumCode&&"WGS84"!==r.datumCode&&(r.datumCode=r.datumCode.toLowerCase()),r.projStr=t,r}const Oe=class{static getId(t){const e=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return e&&e.length>=3?{authority:e[1],code:parseInt(e[2],10)}:null}static convertUnit(t,e="unit"){if(!t||t.length<3)return{type:e,name:"unknown",conversion_factor:null};const n=t[1],i=parseFloat(t[2])||null,r=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return{type:e,name:n,conversion_factor:i,id:r?{authority:r[1],code:parseInt(r[2],10)}:null}}static convertAxis(t){const e=t[1]||"Unknown";let n;const i=e.match(/^\((.)\)$/);if(i){const t=i[1].toUpperCase();if("E"===t)n="east";else if("N"===t)n="north";else{if("U"!==t)throw new Error(`Unknown axis abbreviation: ${t}`);n="up"}}else n=t[2]?t[2].toLowerCase():"unknown";const r=t.find(t=>Array.isArray(t)&&"ORDER"===t[0]),o=r?parseInt(r[1],10):null,s=t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]));return{name:e,direction:n,unit:this.convertUnit(s),order:o}}static extractAxes(t){return t.filter(t=>Array.isArray(t)&&"AXIS"===t[0]).map(t=>this.convertAxis(t)).sort((t,e)=>(t.order||0)-(e.order||0))}static convert(t,e={}){switch(t[0]){case"PROJCRS":e.type="ProjectedCRS",e.name=t[1],e.base_crs=t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])):null,e.conversion=t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])):null;const n=t.find(t=>Array.isArray(t)&&"CS"===t[0]);n&&(e.coordinate_system={type:n[1],axis:this.extractAxes(t)});const i=t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]);if(i){const t=this.convertUnit(i);e.coordinate_system.unit=t}e.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":e.type="GeographicCRS",e.name=t[1];const r=t.find(t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0]));if(r){const n=this.convert(r);"ENSEMBLE"===r[0]?e.datum_ensemble=n:e.datum=n;const i=t.find(t=>Array.isArray(t)&&"PRIMEM"===t[0]);i&&"Greenwich"!==i[1]&&(n.prime_meridian={name:i[1],longitude:parseFloat(i[2])})}e.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},e.id=this.getId(t);break;case"DATUM":e.type="GeodeticReferenceFrame",e.name=t[1],e.ellipsoid=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])):null;break;case"ENSEMBLE":e.type="DatumEnsemble",e.name=t[1],e.members=t.filter(t=>Array.isArray(t)&&"MEMBER"===t[0]).map(t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)}));const o=t.find(t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]);o&&(e.accuracy=parseFloat(o[1]));const s=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0]);s&&(e.ellipsoid=this.convert(s)),e.id=this.getId(t);break;case"ELLIPSOID":e.type="Ellipsoid",e.name=t[1],e.semi_major_axis=parseFloat(t[2]),e.inverse_flattening=parseFloat(t[3]);t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0])&&this.convert(t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]),e);break;case"CONVERSION":e.type="Conversion",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&"PARAMETER"===t[0]).map(t=>this.convert(t));break;case"METHOD":e.type="Method",e.name=t[1],e.id=this.getId(t);break;case"PARAMETER":e.type="Parameter",e.name=t[1],e.value=parseFloat(t[2]),e.unit=this.convertUnit(t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]))),e.id=this.getId(t);break;case"BOUNDCRS":e.type="BoundCRS";const a=t.find(t=>Array.isArray(t)&&"SOURCECRS"===t[0]);if(a){const t=a.find(t=>Array.isArray(t));e.source_crs=t?this.convert(t):null}const l=t.find(t=>Array.isArray(t)&&"TARGETCRS"===t[0]);if(l){const t=l.find(t=>Array.isArray(t));e.target_crs=t?this.convert(t):null}const u=t.find(t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]);e.transformation=u?this.convert(u):null;break;case"ABRIDGEDTRANSFORMATION":if(e.type="Transformation",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])).map(t=>"PARAMETER"===t[0]?this.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0),7===e.parameters.length){const t=e.parameters[6];"Scale difference"===t.name&&(t.value=Math.round(1e12*(t.value-1))/1e6)}e.id=this.getId(t);break;case"AXIS":e.coordinate_system||(e.coordinate_system={type:"unspecified",axis:[]}),e.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":const c=this.convertUnit(t,"LinearUnit");e.coordinate_system&&e.coordinate_system.axis&&e.coordinate_system.axis.forEach(t=>{t.unit||(t.unit=c)}),c.conversion_factor&&1!==c.conversion_factor&&e.semi_major_axis&&(e.semi_major_axis={value:e.semi_major_axis,unit:c});break;default:e.keyword=t[0]}return e}};const ke=class extends Oe{static convert(t,e={}){return super.convert(t,e),e.coordinate_system&&"Cartesian"===e.coordinate_system.subtype&&delete e.coordinate_system,e.usage&&delete e.usage,e}};const De=class extends Oe{static convert(t,e={}){super.convert(t,e);const n=t.find(t=>Array.isArray(t)&&"CS"===t[0]);n&&(e.coordinate_system={subtype:n[1],axis:this.extractAxes(t)});const i=t.find(t=>Array.isArray(t)&&"USAGE"===t[0]);if(i){const t=i.find(t=>Array.isArray(t)&&"SCOPE"===t[0]),n=i.find(t=>Array.isArray(t)&&"AREA"===t[0]),r=i.find(t=>Array.isArray(t)&&"BBOX"===t[0]);e.usage={},t&&(e.usage.scope=t[1]),n&&(e.usage.area=n[1]),r&&(e.usage.bbox=r.slice(1))}return e}};function Ge(t){const e=function(t){return t.find(t=>Array.isArray(t)&&"USAGE"===t[0])?"2019":(t.find(t=>Array.isArray(t)&&"CS"===t[0])||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015")}(t);return("2019"===e?De:ke).convert(t)}const Be=function(t){var e=new Ve(t);return e.output()};var je=1,Fe=/\s/,Ue=/[A-Za-z]/,He=/[A-Za-z84_]/,qe=/[,\]]/,ze=/[\d\.E\-\+]/;function Ve(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=je}function We(t,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var i=e?{}:t,r=n.reduce(function(t,e){return Ze(e,t),t},i);e&&(t[e]=r)}function Ze(t,e){if(Array.isArray(t)){var n=t.shift();if("PARAMETER"===n&&(n=t.shift()),1===t.length)return Array.isArray(t[0])?(e[n]={},void Ze(t[0],e[n])):void(e[n]=t[0]);if(t.length)if("TOWGS84"!==n){if("AXIS"===n)return n in e||(e[n]=[]),void e[n].push(t);var i;switch(Array.isArray(n)||(e[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[n]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&Ze(t[2],e[n]));case"SPHEROID":case"ELLIPSOID":return e[n]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&Ze(t[3],e[n]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void We(e,n,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],We(e,n,t),void(e[n].type=n);default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return Ze(t,e[n]);return We(e,n,t)}}else e[n]=t;else e[n]=!0}else e[t]=!0}Ve.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;Fe.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case je:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},Ve.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(qe.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},Ve.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=je)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=je,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},Ve.prototype.number=function(t){if(!ze.test(t)){if(qe.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},Ve.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},Ve.prototype.keyword=function(t){if(He.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=je)}if(!qe.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},Ve.prototype.neutral=function(t){if(Ue.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(ze.test(t))return this.word=t,void(this.state=3);if(!qe.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},Ve.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function Qe(t){return.017453292519943295*t}function Xe(t){const e=(t.projName||"").toLowerCase().replace(/_/g," ");t.long0||!t.longc||"albers conic equal area"!==e&&"lambert azimuthal equal area"!==e||(t.long0=t.longc),t.lat_ts||!t.lat1||"stereographic south pole"!==e&&"polar stereographic (variant b)"!==e?t.lat_ts||!t.lat0||"polar stereographic"!==e&&"polar stereographic (variant a)"!==e||(t.lat_ts=t.lat0,t.lat0=Qe(t.lat0>0?90:-90),delete t.lat1):(t.lat0=Qe(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function Ye(t){let e={units:null,to_meter:void 0};return"string"==typeof t?(e.units=t.toLowerCase(),"metre"===e.units&&(e.units="meter"),"meter"===e.units&&(e.to_meter=1)):t&&t.name&&(e.units=t.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.to_meter=t.conversion_factor),e}function $e(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function Ke(t,e){t.ellipsoid.radius?(e.a=t.ellipsoid.radius,e.rf=0):(e.a=$e(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?e.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(e.rf=e.a/(e.a-$e(t.ellipsoid.semi_minor_axis))))}function Je(t,e={}){return t&&"object"==typeof t?"BoundCRS"===t.type?(Je(t.source_crs,e),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?e.nadgrids=t.transformation.parameters[0].value:e.datum_params=t.transformation.parameters.map(t=>t.value)),e):(Object.keys(t).forEach(n=>{const i=t[n];if(null!==i)switch(n){case"name":if(e.srsCode)break;e.name=i,e.srsCode=i;break;case"type":"GeographicCRS"===i?e.projName="longlat":"ProjectedCRS"===i&&t.conversion&&t.conversion.method&&(e.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":i.ellipsoid&&(e.ellps=i.ellipsoid.name,Ke(i,e)),i.prime_meridian&&(e.from_greenwich=i.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=i.name,Ke(i,e);break;case"prime_meridian":e.long0=(i.longitude||0)*Math.PI/180;break;case"coordinate_system":if(i.axis)if(e.axis=i.axis.map(t=>{const e=t.direction;if("east"===e)return"e";if("north"===e)return"n";if("west"===e)return"w";if("south"===e)return"s";throw new Error(`Unknown axis direction: ${e}`)}).join("")+"u",i.unit){const{units:t,to_meter:n}=Ye(i.unit);e.units=t,e.to_meter=n}else if(i.axis[0]&&i.axis[0].unit){const{units:t,to_meter:n}=Ye(i.axis[0].unit);e.units=t,e.to_meter=n}break;case"id":i.authority&&i.code&&(e.title=i.authority+":"+i.code);break;case"conversion":i.method&&i.method.name&&(e.projName=i.method.name),i.parameters&&i.parameters.forEach(t=>{const n=t.name.toLowerCase().replace(/\s+/g,"_"),i=t.value;t.unit&&t.unit.conversion_factor?e[n]=i*t.unit.conversion_factor:"degree"===t.unit?e[n]=i*Math.PI/180:e[n]=i});break;case"unit":i.name&&(e.units=i.name.toLowerCase(),"metre"===e.units&&(e.units="meter")),i.conversion_factor&&(e.to_meter=i.conversion_factor);break;case"base_crs":Je(i,e),e.datumCode=i.id?i.id.authority+"_"+i.id.code:i.name}}),void 0!==e.latitude_of_false_origin&&(e.lat0=e.latitude_of_false_origin),void 0!==e.longitude_of_false_origin&&(e.long0=e.longitude_of_false_origin),void 0!==e.latitude_of_standard_parallel&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),void 0!==e.latitude_of_1st_standard_parallel&&(e.lat1=e.latitude_of_1st_standard_parallel),void 0!==e.latitude_of_2nd_standard_parallel&&(e.lat2=e.latitude_of_2nd_standard_parallel),void 0!==e.latitude_of_projection_centre&&(e.lat0=e.latitude_of_projection_centre),void 0!==e.longitude_of_projection_centre&&(e.longc=e.longitude_of_projection_centre),void 0!==e.easting_at_false_origin&&(e.x0=e.easting_at_false_origin),void 0!==e.northing_at_false_origin&&(e.y0=e.northing_at_false_origin),void 0!==e.latitude_of_natural_origin&&(e.lat0=e.latitude_of_natural_origin),void 0!==e.longitude_of_natural_origin&&(e.long0=e.longitude_of_natural_origin),void 0!==e.longitude_of_origin&&(e.long0=e.longitude_of_origin),void 0!==e.false_easting&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),void 0!==e.false_northing&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),void 0!==e.standard_parallel_1&&(e.lat1=e.standard_parallel_1),void 0!==e.standard_parallel_2&&(e.lat2=e.standard_parallel_2),void 0!==e.scale_factor_at_natural_origin&&(e.k0=e.scale_factor_at_natural_origin),void 0!==e.scale_factor_at_projection_centre&&(e.k0=e.scale_factor_at_projection_centre),void 0!==e.scale_factor_on_pseudo_standard_parallel&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),void 0!==e.azimuth&&(e.alpha=e.azimuth),void 0!==e.azimuth_at_projection_centre&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),Xe(e),e):t}var tn=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function en(t){for(var e=Object.keys(t),n=0,i=e.length;n<i;++n){var r=e[n];-1!==tn.indexOf(r)&&nn(t[r]),"object"==typeof t[r]&&en(t[r])}}function nn(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var n="",i=0,r=t.AXIS.length;i<r;++i){var o=[t.AXIS[i][0].toLowerCase(),t.AXIS[i][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?n+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?n+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?n+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(n+="w")}2===n.length&&(n+="u"),3===n.length&&(t.axis=n)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var s=t.GEOGCS;function a(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(s=t),s&&(s.DATUM?t.datumCode=s.DATUM.name.toLowerCase():t.datumCode=s.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),s.DATUM&&s.DATUM.SPHEROID&&(t.ellps=s.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=s.DATUM.SPHEROID.a,t.rf=parseFloat(s.DATUM.SPHEROID.rf,10)),s.DATUM&&s.DATUM.TOWGS84&&(t.datum_params=s.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=Qe(t.rectified_grid_angle));[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",Qe],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",Qe],["x0","false_easting",a],["y0","false_northing",a],["long0","central_meridian",Qe],["lat0","latitude_of_origin",Qe],["lat0","standard_parallel_1",Qe],["lat1","standard_parallel_1",Qe],["lat2","standard_parallel_2",Qe],["azimuth","Azimuth"],["alpha","azimuth",Qe],["srsCode","name"]].forEach(function(e){return function(t,e){var n=e[0],i=e[1];!(n in t)&&i in t&&(t[n]=t[i],3===e.length&&(t[n]=e[2](t[n])))}(t,e)}),Xe(t)}function rn(t){if("object"==typeof t)return Je(t);const e=function(t){const e=t.toUpperCase();return e.includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1")}(t);var n=Be(t);if("WKT2"===e){return Je(Ge(n))}var i=n[0],r={};return Ze(n,r),en(r),r[i]}function on(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?on[t]=Me(arguments[1]):on[t]=rn(arguments[1]):n&&"object"==typeof n&&!("projName"in n)?on[t]=rn(arguments[1]):(on[t]=n,n||delete on[t])}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?on.apply(e,t):on(t)});if("string"==typeof t){if(t in on)return on[t]}else"EPSG"in t?on["EPSG:"+t.EPSG]=t:"ESRI"in t?on["ESRI:"+t.ESRI]=t:"IAU2000"in t?on["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var e=1;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");t("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(on);const sn=on;var an=["3857","900913","3785","102113"];const ln=function(t){if(!function(t){return"string"==typeof t}(t))return"projName"in t?t:rn(t);if(function(t){return t in sn}(t))return sn[t];if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"==typeof t&&!("srsCode"in t)}(t)){var e=rn(t);if(function(t){var e=Pe(t,"authority");if(e){var n=Pe(e,"epsg");return n&&an.indexOf(n)>-1}}(e))return sn["EPSG:3857"];var n=function(t){var e=Pe(t,"extension");if(e)return Pe(e,"proj4")}(e);return n?Me(n):e}return function(t){return"+"===t[0]}(t)?Me(t):void 0};function un(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)void 0!==(n=e[i])&&(t[i]=n);return t}function cn(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}function hn(t){return t<0?-1:1}function pn(t,e){return e||Math.abs(t)<=Ce?t:t-hn(t)*Le}function dn(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(xe-e))/i}function fn(t,e){for(var n,i,r=.5*t,o=xe-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),o+=i=xe-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-o,Math.abs(i)<=1e-10)return o;return-9999}const gn={init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=cn(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var e,n,i=t.x,r=t.y;if(r*Se>90&&r*Se<-90&&i*Se>180&&i*Se<-180)return null;if(Math.abs(Math.abs(r)-xe)<=be)return null;if(this.sphere)e=this.x0+this.a*this.k0*pn(i-this.long0,this.over),n=this.y0+this.a*this.k0*Math.log(Math.tan(Ae+.5*r));else{var o=Math.sin(r),s=dn(this.e,r,o);e=this.x0+this.a*this.k0*pn(i-this.long0,this.over),n=this.y0-this.a*this.k0*Math.log(s)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=xe-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var o=Math.exp(-r/(this.a*this.k0));if(-9999===(n=fn(this.e,o)))return null}return e=pn(this.long0+i/(this.a*this.k0),this.over),t.x=e,t.y=n,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]};function mn(t){return t}var vn=["longlat","identity"];var yn=[gn,{init:function(){},forward:mn,inverse:mn,names:vn}],En={},_n=[];function xn(t,e){var n=_n.length;return t.names?(_n[n]=t,t.names.forEach(function(t){En[t.toLowerCase()]=n}),this):(console.log(e),!0)}function bn(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}const Tn={start:function(){yn.forEach(xn)},add:xn,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==En[e]&&_n[En[e]]||(e=bn(e))in En&&_n[En[e]]?_n[En[e]]:void 0}};const Sn={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},An=Sn.WGS84;var Ln={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"},EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.0276,-0.2167,0.2147,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-1.91514,1.60363,-9.09546,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243649,-1.158827,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,32.39344,-153.25684,-96.2266,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-8.393,0.749,-10.276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"},EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,1.25033e-7,4.6785e-8,5.6529e-8,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"61.55,-10.87,-40.19,39.4924,32.7221,32.8979,-9.994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.3092483,0.32482185,0.49729934,5.68906266"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"},ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"374,150,588"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"},EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"}};for(var Cn in Ln){var Nn=Ln[Cn];Nn.datumName&&(Ln[Nn.datumName]=Nn)}const In=Ln;const wn=function(t,e,n,i,r,o,s){var a={};return a.datum_type=void 0===t||"none"===t?5:4,e&&(a.datum_params=e.map(parseFloat),0===a.datum_params[0]&&0===a.datum_params[1]&&0===a.datum_params[2]||(a.datum_type=1),a.datum_params.length>3&&(0===a.datum_params[3]&&0===a.datum_params[4]&&0===a.datum_params[5]&&0===a.datum_params[6]||(a.datum_type=2,a.datum_params[3]*=_e,a.datum_params[4]*=_e,a.datum_params[5]*=_e,a.datum_params[6]=a.datum_params[6]/1e6+1))),s&&(a.datum_type=3,a.grids=s),a.a=n,a.b=i,a.es=r,a.ep2=o,a};var Rn={};async function Pn(t,e){for(var n=[],i=await e.getImageCount(),r=i-1;r>=0;r--){var o=await e.getImage(r),s=await o.readRasters(),a=[o.getWidth(),o.getHeight()],l=o.getBoundingBox().map(On),u=[o.fileDirectory.ModelPixelScale[0],o.fileDirectory.ModelPixelScale[1]].map(On),c=l[0]+(a[0]-1)*u[0],h=l[3]-(a[1]-1)*u[1],p=s[0],d=s[1],f=[];for(let t=a[1]-1;t>=0;t--)for(let e=a[0]-1;e>=0;e--){var g=t*a[0]+e;f.push([-kn(d[g]),kn(p[g])])}n.push({del:u,lim:a,ll:[-c,h],cvs:f})}var m={header:{nSubgrids:i},subgrids:n};return Rn[t]=m,m}function Mn(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:Rn[t]||null,isNull:!1}}function On(t){return t*Math.PI/180}function kn(t){return t/3600*Math.PI/180}function Dn(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function Gn(t){return t.map(function(t){return[kn(t.longitudeShift),kn(t.latitudeShift)]})}function Bn(t,e,n){return{name:Dn(t,e+8,e+16).trim(),parent:Dn(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function jn(t,e,n,i,r){var o=e+176,s=16;!1===r&&(s=8);for(var a=[],l=0;l<n.gridNodeCount;l++){var u={latitudeShift:t.getFloat32(o+l*s,i),longitudeShift:t.getFloat32(o+l*s+4,i)};!1!==r&&(u.latitudeAccuracy=t.getFloat32(o+l*s+8,i),u.longitudeAccuracy=t.getFloat32(o+l*s+12,i)),a.push(u)}return a}function Fn(t,e){if(!(this instanceof Fn))return new Fn(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,e=e||function(t){if(t)throw t};var n=ln(t);if("object"==typeof n){var i=Fn.projections.get(n.projName);if(i){if(n.datumCode&&"none"!==n.datumCode){var r=Pe(In,n.datumCode);r&&(n.datum_params=n.datum_params||(r.towgs84?r.towgs84.split(","):null),n.ellps=r.ellipse,n.datumName=r.datumName?r.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var o=function(t,e,n,i,r){if(!t){var o=Pe(Sn,i);o||(o=An),t=o.a,e=o.b,n=o.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<be)&&(r=!0,e=t),{a:t,b:e,rf:n,sphere:r}}(n.a,n.b,n.rf,n.ellps,n.sphere),s=function(t,e,n,i){var r=t*t,o=e*e,s=(r-o)/r,a=0;return i?(r=(t*=1-s*(.16666666666666666+s*(.04722222222222222+.022156084656084655*s)))*t,s=0):a=Math.sqrt(s),{es:s,e:a,ep2:(r-o)/o}}(o.a,o.b,o.rf,n.R_A),a=function(t){return void 0===t?null:t.split(",").map(Mn)}(n.nadgrids),l=n.datum||wn(n.datumCode,n.datum_params,o.a,o.b,s.es,s.ep2,a);un(this,n),un(this,i),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=s.es,this.e=s.e,this.ep2=s.ep2,this.datum=l,"init"in this&&"function"==typeof this.init&&this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}Fn.projections=Tn,Fn.projections.start();const Un=Fn;function Hn(t,e,n){var i,r,o,s,a=t.x,l=t.y,u=t.z?t.z:0;if(l<-xe&&l>-1.001*xe)l=-xe;else if(l>xe&&l<1.001*xe)l=xe;else{if(l<-xe)return{x:-1/0,y:-1/0,z:t.z};if(l>xe)return{x:1/0,y:1/0,z:t.z}}return a>Math.PI&&(a-=2*Math.PI),r=Math.sin(l),s=Math.cos(l),o=r*r,{x:((i=n/Math.sqrt(1-e*o))+u)*s*Math.cos(a),y:(i+u)*s*Math.sin(a),z:(i*(1-e)+u)*r}}function qn(t,e,n,i){var r,o,s,a,l,u,c,h,p,d,f,g,m,v,y,E=1e-12,_=t.x,x=t.y,b=t.z?t.z:0;if(r=Math.sqrt(_*_+x*x),o=Math.sqrt(_*_+x*x+b*b),r/n<E){if(v=0,o/n<E)return y=-i,{x:t.x,y:t.y,z:t.z}}else v=Math.atan2(x,_);s=b/o,h=(a=r/o)*(1-e)*(l=1/Math.sqrt(1-e*(2-e)*a*a)),p=s*l,m=0;do{m++,u=e*(c=n/Math.sqrt(1-e*p*p))/(c+(y=r*h+b*p-c*(1-e*p*p))),g=(f=s*(l=1/Math.sqrt(1-u*(2-u)*a*a)))*h-(d=a*(1-u)*l)*p,h=d,p=f}while(g*g>1e-24&&m<30);return{x:v,y:Math.atan(f/Math.abs(d)),z:y}}function zn(t){return 1===t||2===t}function Vn(t,e,n){if(function(t,e){return t.datum_type===e.datum_type&&!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])}(t,e))return n;if(5===t.datum_type||5===e.datum_type)return n;var i=t.a,r=t.es;if(3===t.datum_type){if(0!==Wn(t,!1,n))return;i=ye,r=Ee}var o=e.a,s=e.b,a=e.es;if(3===e.datum_type&&(o=ye,s=6356752.314,a=Ee),r===a&&i===o&&!zn(t.datum_type)&&!zn(e.datum_type))return n;if((n=Hn(n,r,i),zn(t.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],l=n[5],u=n[6];return{x:u*(t.x-l*t.y+a*t.z)+i,y:u*(l*t.x+t.y-s*t.z)+r,z:u*(-a*t.x+s*t.y+t.z)+o}}}(n,t.datum_type,t.datum_params)),zn(e.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],l=n[5],u=n[6],c=(t.x-i)/u,h=(t.y-r)/u,p=(t.z-o)/u;return{x:c+l*h-a*p,y:-l*c+h+s*p,z:a*c-s*h+p}}}(n,e.datum_type,e.datum_params)),n=qn(n,a,o,s),3===e.datum_type)&&0!==Wn(e,!0,n))return;return n}function Wn(t,e,n){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var i={x:-n.x,y:n.y},r={x:Number.NaN,y:Number.NaN},o=[];t:for(var s=0;s<t.grids.length;s++){var a=t.grids[s];if(o.push(a.name),a.isNull){r=i;break}if(null!==a.grid)for(var l=a.grid.subgrids,u=0,c=l.length;u<c;u++){var h=l[u],p=(Math.abs(h.del[1])+Math.abs(h.del[0]))/1e4,d=h.ll[0]-p,f=h.ll[1]-p,g=h.ll[0]+(h.lim[0]-1)*h.del[0]+p,m=h.ll[1]+(h.lim[1]-1)*h.del[1]+p;if(!(f>i.y||d>i.x||m<i.y||g<i.x)&&(r=Zn(i,e,h),!isNaN(r.x)))break t}else if(a.mandatory)return console.log("Unable to find mandatory grid '"+a.name+"'"),-1}return isNaN(r.x)?(console.log("Failed to find a grid shift table for location '"+-i.x*Se+" "+i.y*Se+" tried: '"+o+"'"),-1):(n.x=-r.x,n.y=r.y,0)}function Zn(t,e,n){var i={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return i;var r={x:t.x,y:t.y};r.x-=n.ll[0],r.y-=n.ll[1],r.x=pn(r.x-Math.PI)+Math.PI;var o=Qn(r,n);if(e){if(isNaN(o.x))return i;o.x=r.x-o.x,o.y=r.y-o.y;var s,a,l=9;do{if(a=Qn(o,n),isNaN(a.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}s={x:r.x-(a.x+o.x),y:r.y-(a.y+o.y)},o.x+=s.x,o.y+=s.y}while(l--&&Math.abs(s.x)>1e-12&&Math.abs(s.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=pn(o.x+n.ll[0]),i.y=o.y+n.ll[1]}else isNaN(o.x)||(i.x=t.x+o.x,i.y=t.y+o.y);return i}function Qn(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r=Math.floor(i.x),o=Math.floor(i.y),s=i.x-1*r,a=i.y-1*o,l={x:Number.NaN,y:Number.NaN};if(r<0||r>=e.lim[0])return l;if(o<0||o>=e.lim[1])return l;n=o*e.lim[0]+r;var u=e.cvs[n][0],c=e.cvs[n][1];n++;var h=e.cvs[n][0],p=e.cvs[n][1];n+=e.lim[0];var d=e.cvs[n][0],f=e.cvs[n][1];n--;var g=e.cvs[n][0],m=e.cvs[n][1],v=s*a,y=s*(1-a),E=(1-s)*(1-a),_=(1-s)*a;return l.x=E*u+y*h+_*g+v*d,l.y=E*c+y*p+_*m+v*f,l}function Xn(t,e,n){var i,r,o,s=n.x,a=n.y,l=n.z||0,u={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(i=s,r=-1!=="ew".indexOf(t.axis[o])?"x":"y"):1===o?(i=a,r=-1!=="ns".indexOf(t.axis[o])?"y":"x"):(i=l,r="z"),t.axis[o]){case"e":case"n":u[r]=i;break;case"w":case"s":u[r]=-i;break;case"u":void 0!==n[r]&&(u.z=i);break;case"d":void 0!==n[r]&&(u.z=-i);break;default:return null}return u}function Yn(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function $n(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Kn(t,e,n,i){var r,o=void 0!==(n=Array.isArray(n)?Yn(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(t){$n(t.x),$n(t.y)}(n),t.datum&&e.datum&&function(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==t.datumCode}(t,e)&&(n=Kn(t,r=new Un("WGS84"),n,i),t=r),i&&"enu"!==t.axis&&(n=Xn(t,!1,n)),"longlat"===t.projName)n={x:n.x*Te,y:n.y*Te,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),!(n=t.inverse(n)))return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=Vn(t.datum,e.datum,n))return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*Se,y:n.y*Se,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),i&&"enu"!==e.axis?Xn(e,!0,n):(n&&!o&&delete n.z,n)}var Jn=Un("WGS84");function ti(t,e,n,i){var r,o,s;return Array.isArray(n)?(r=Kn(t,e,n,i)||{x:NaN,y:NaN},n.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name?"number"==typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(o=Kn(t,e,n,i),2===(s=Object.keys(n)).length||s.forEach(function(i){if(void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;o[i]=n[i]}),o)}function ei(t){return t instanceof Un?t:"object"==typeof t&&"oProj"in t?t.oProj:Un(t)}const ni=function(t,e,n){var i,r,o,s=!1;return void 0===e?(r=ei(t),i=Jn,s=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,r=ei(t),i=Jn,s=!0),i||(i=ei(t)),r||(r=ei(e)),n?ti(i,r,n):(o={forward:function(t,e){return ti(i,r,t,e)},inverse:function(t,e){return ti(r,i,t,e)}},s&&(o.oProj=r),o)};var ii="AJSAJS",ri="AFAFAF",oi=65,si=73,ai=79,li=86,ui=90;const ci={forward:hi,inverse:function(t){var e=gi(yi(t.toUpperCase()));if(e.lat&&e.lon)return[e.lon,e.lat,e.lon,e.lat];return[e.left,e.bottom,e.right,e.top]},toPoint:pi};function hi(t,e){return e=e||5,function(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(d=t.easting,f=t.northing,g=t.zoneNumber,m=vi(g),v=Math.floor(d/1e5),y=Math.floor(f/1e5)%20,r=v,o=y,s=m,a=s-1,l=ii.charCodeAt(a),u=ri.charCodeAt(a),c=l+r-1,h=u+o,p=!1,c>ui&&(c=c-ui+oi-1,p=!0),(c===si||l<si&&c>si||(c>si||l<si)&&p)&&c++,(c===ai||l<ai&&c>ai||(c>ai||l<ai)&&p)&&++c===si&&c++,c>ui&&(c=c-ui+oi-1),h>li?(h=h-li+oi-1,p=!0):p=!1,(h===si||u<si&&h>si||(h>si||u<si)&&p)&&h++,(h===ai||u<ai&&h>ai||(h>ai||u<ai)&&p)&&++h===si&&h++,h>li&&(h=h-li+oi-1),String.fromCharCode(c)+String.fromCharCode(h))+n.substr(n.length-5,e)+i.substr(i.length-5,e);var r,o,s,a,l,u,c,h,p;var d,f,g,m,v,y}(function(t){var e,n,i,r,o,s,a,l,u=t.lat,c=t.lon,h=6378137,p=.00669438,d=.9996,f=di(u),g=di(c);l=Math.floor((c+180)/6)+1,180===c&&(l=60);u>=56&&u<64&&c>=3&&c<12&&(l=32);u>=72&&u<84&&(c>=0&&c<9?l=31:c>=9&&c<21?l=33:c>=21&&c<33?l=35:c>=33&&c<42&&(l=37));a=di(6*(l-1)-180+3),e=p/(1-p),n=h/Math.sqrt(1-p*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),r=e*Math.cos(f)*Math.cos(f),o=Math.cos(f)*(g-a),s=h*((1-p/4-3*p*p/64-5*p*p*p/256)*f-(3*p/8+3*p*p/32+45*p*p*p/1024)*Math.sin(2*f)+(15*p*p/256+45*p*p*p/1024)*Math.sin(4*f)-35*p*p*p/3072*Math.sin(6*f));var m=d*n*(o+(1-i+r)*o*o*o/6+(5-18*i+i*i+72*r-58*e)*o*o*o*o*o/120)+5e5,v=d*(s+n*Math.tan(f)*(o*o/2+(5-i+9*r+4*r*r)*o*o*o*o/24+(61-58*i+i*i+600*r-330*e)*o*o*o*o*o*o/720));u<0&&(v+=1e7);return{northing:Math.round(v),easting:Math.round(m),zoneNumber:l,zoneLetter:mi(u)}}({lat:t[1],lon:t[0]}),e)}function pi(t){var e=gi(yi(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function di(t){return t*(Math.PI/180)}function fi(t){return t/Math.PI*180}function gi(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var o,s,a,l,u,c,h,p,d,f=.9996,g=6378137,m=.00669438,v=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),y=n-5e5,E=e;i<"N"&&(E-=1e7),h=6*(r-1)-180+3,o=.006739496752268451,d=(p=E/f/6367449.145945056)+(3*v/2-27*v*v*v/32)*Math.sin(2*p)+(21*v*v/16-55*v*v*v*v/32)*Math.sin(4*p)+151*v*v*v/96*Math.sin(6*p),s=g/Math.sqrt(1-m*Math.sin(d)*Math.sin(d)),a=Math.tan(d)*Math.tan(d),l=o*Math.cos(d)*Math.cos(d),u=.99330562*g/Math.pow(1-m*Math.sin(d)*Math.sin(d),1.5),c=y/(s*f);var _=d-s*Math.tan(d)/u*(c*c/2-(5+3*a+10*l-4*l*l-9*o)*c*c*c*c/24+(61+90*a+298*l+45*a*a-1.6983531815716497-3*l*l)*c*c*c*c*c*c/720);_=fi(_);var x,b=(c-(1+2*a+l)*c*c*c/6+(5-2*l+28*a-3*l*l+8*o+24*a*a)*c*c*c*c*c/120)/Math.cos(d);if(b=h+fi(b),t.accuracy){var T=gi({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});x={top:T.lat,right:T.lon,bottom:_,left:b}}else x={lat:_,lon:b};return x}function mi(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function vi(t){var e=t%6;return 0===e&&(e=6),e}function yi(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,i=null,r="",o=0;!/[A-Z]/.test(e=t.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var s=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(o++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;i=t.substring(o,o+=2);for(var l=vi(s),u=function(t,e){var n=ii.charCodeAt(e-1),i=1e5,r=!1;for(;n!==t.charCodeAt(0);){if(++n===si&&n++,n===ai&&n++,n>ui){if(r)throw"Bad character: "+t;n=oi,r=!0}i+=1e5}return i}(i.charAt(0),l),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var n=ri.charCodeAt(e-1),i=0,r=!1;for(;n!==t.charCodeAt(0);){if(++n===si&&n++,n===ai&&n++,n>li){if(r)throw"Bad character: "+t;n=oi,r=!0}i+=1e5}return i}(i.charAt(1),l);c<Ei(a);)c+=2e6;var h=n-o;if(h%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var p,d,f,g=h/2,m=0,v=0;return g>0&&(p=1e5/Math.pow(10,g),d=t.substring(o,o+g),m=parseFloat(d)*p,f=t.substring(o+g),v=parseFloat(f)*p),{easting:m+u,northing:v+c,zoneLetter:a,zoneNumber:s,accuracy:p}}function Ei(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function _i(t,e,n){if(!(this instanceof _i))return new _i(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var i=t.split(",");this.x=parseFloat(i[0]),this.y=parseFloat(i[1]),this.z=parseFloat(i[2])||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}_i.fromMGRS=function(t){return new _i(pi(t))},_i.prototype.toMGRS=function(t){return hi([this.x,this.y],t)};const xi=_i;var bi=.046875,Ti=.01953125,Si=.01068115234375;function Ai(t){var e=[];e[0]=1-t*(.25+t*(bi+t*(Ti+t*Si))),e[1]=t*(.75-t*(bi+t*(Ti+t*Si)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}function Li(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))}function Ci(t,e,n){for(var i=1/(1-e),r=t,o=20;o;--o){var s=Math.sin(r),a=1-e*s*s;if(r-=a=(Li(r,s,Math.cos(r),n)-t)*(a*Math.sqrt(a))*i,Math.abs(a)<be)return r}return r}const Ni={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Ai(this.es),this.ml0=Li(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,n,i,r=t.x,o=t.y,s=pn(r-this.long0,this.over),a=Math.sin(o),l=Math.cos(o);if(this.es){var u=l*s,c=Math.pow(u,2),h=this.ep2*Math.pow(l,2),p=Math.pow(h,2),d=Math.abs(l)>be?Math.tan(o):0,f=Math.pow(d,2),g=Math.pow(f,2);e=1-this.es*Math.pow(a,2),u/=Math.sqrt(e);var m=Li(o,a,l,this.en);n=this.a*(this.k0*u*(1+c/6*(1-f+h+c/20*(5-18*f+g+14*h-58*f*h+c/42*(61+179*g-g*f-479*f)))))+this.x0,i=this.a*(this.k0*(m-this.ml0+a*s*u/2*(1+c/12*(5-f+9*h+4*p+c/30*(61+g-58*f+270*h-330*f*h+c/56*(1385+543*g-g*f-3111*f))))))+this.y0}else{var v=l*Math.sin(s);if(Math.abs(Math.abs(v)-1)<be)return 93;if(n=.5*this.a*this.k0*Math.log((1+v)/(1-v))+this.x0,i=l*Math.cos(s)/Math.sqrt(1-Math.pow(v,2)),(v=Math.abs(i))>=1){if(v-1>be)return 93;i=0}else i=Math.acos(i);o<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t},inverse:function(t){var e,n,i,r,o=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(this.es)if(n=Ci(e=this.ml0+s/this.k0,this.es,this.en),Math.abs(n)<xe){var a=Math.sin(n),l=Math.cos(n),u=Math.abs(l)>be?Math.tan(n):0,c=this.ep2*Math.pow(l,2),h=Math.pow(c,2),p=Math.pow(u,2),d=Math.pow(p,2);e=1-this.es*Math.pow(a,2);var f=o*Math.sqrt(e)/this.k0,g=Math.pow(f,2);i=n-(e*=u)*g/(1-this.es)*.5*(1-g/12*(5+3*p-9*c*p+c-4*h-g/30*(61+90*p-252*c*p+45*d+46*c-g/56*(1385+3633*p+4095*d+1574*d*p)))),r=pn(this.long0+f*(1-g/6*(1+2*p+c-g/20*(5+28*p+24*d+8*c*p+6*c-g/42*(61+662*p+1320*d+720*d*p))))/l,this.over)}else i=xe*hn(s),r=0;else{var m=Math.exp(o/this.k0),v=.5*(m-1/m),y=this.lat0+s/this.k0,E=Math.cos(y);e=Math.sqrt((1-Math.pow(E,2))/(1+Math.pow(v,2))),i=Math.asin(e),s<0&&(i=-i),r=0===v&&0===E?0:pn(Math.atan2(v,E)+this.long0,this.over)}return t.x=r,t.y=i,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function Ii(t){var e=Math.exp(t);return e=(e-1/e)/2}function wi(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}function Ri(t){var e=Math.abs(t);return e=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}(e*(1+e/(wi(1,e)+1))),t<0?-e:e}function Pi(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,o=t[r],s=0;--r>=0;)n=i*o-s+t[r],s=o,o=n;return e+n*Math.sin(2*e)}function Mi(t,e,n){for(var i,r,o=Math.sin(e),s=Math.cos(e),a=Ii(n),l=function(t){var e=Math.exp(t);return(e+1/e)/2}(n),u=2*s*l,c=-2*o*a,h=t.length-1,p=t[h],d=0,f=0,g=0;--h>=0;)i=f,r=d,p=u*(f=p)-i-c*(d=g)+t[h],g=c*f-r+u*d;return[(u=o*l)*p-(c=s*a)*g,u*g+c*p]}const Oi={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Ni.init.apply(this),this.forward=Ni.forward,this.inverse=Ni.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var i=Pi(this.cbg,this.lat0);this.Zb=-this.Qn*(i+function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,o=t[r],s=0;--r>=0;)n=i*o-s+t[r],s=o,o=n;return Math.sin(e)*n}(this.gtu,2*i))},forward:function(t){var e=pn(t.x-this.long0,this.over),n=t.y;n=Pi(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),o=Math.sin(e),s=Math.cos(e);n=Math.atan2(i,s*r),e=Math.atan2(o*r,wi(i,r*s)),e=Ri(Math.tan(e));var a,l,u=Mi(this.gtu,2*n,2*e);return n+=u[0],e+=u[1],Math.abs(e)<=2.623395162778?(a=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(a=1/0,l=1/0),t.x=a,t.y=l,t},inverse:function(t){var e,n,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var o=Mi(this.utg,2*r,2*i);r+=o[0],i+=o[1],i=Math.atan(Ii(i));var s=Math.sin(r),a=Math.cos(r),l=Math.sin(i),u=Math.cos(i);r=Math.atan2(s*u,wi(l,u*a)),e=pn((i=Math.atan2(l,u*a))+this.long0,this.over),n=Pi(this.cgb,r)}else e=1/0,n=1/0;return t.x=e,t.y=n,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};const ki={init:function(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*(pn(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*Te,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Oi.init.apply(this),this.forward=Oi.forward,this.inverse=Oi.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function Di(t,e){return Math.pow((1-t)/(1+t),e)}const Gi={init:function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+Ae)/(Math.pow(Math.tan(.5*this.lat0+Ae),this.C)*Di(this.e*t,this.ratexp))},forward:function(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+Ae),this.C)*Di(this.e*Math.sin(n),this.ratexp))-xe,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,n=t.y,i=Math.pow(Math.tan(.5*n+Ae)/this.K,1/this.C),r=20;r>0&&(n=2*Math.atan(i*Di(this.e*Math.sin(t.y),-.5*this.e))-xe,!(Math.abs(n-t.y)<1e-14));--r)t.y=n;return r?(t.x=e,t.y=n,t):null},names:["gauss"]};const Bi={init:function(){Gi.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var e,n,i,r;return t.x=pn(t.x-this.long0,this.over),Gi.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),i=Math.cos(t.x),r=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*i),t.x=r*n*Math.sin(t.x),t.y=r*(this.cosc0*e-this.sinc0*n*i),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,n,i,r,o;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=wi(t.x,t.y)){var s=2*Math.atan2(o,this.R2);e=Math.sin(s),n=Math.cos(s),r=Math.asin(n*this.sinc0+t.y*e*this.cosc0/o),i=Math.atan2(t.x*e,o*this.cosc0*n-t.y*this.sinc0*e)}else r=this.phic0,i=0;return t.x=i,t.y=r,Gi.inverse.apply(this,[t]),t.x=pn(t.x+this.long0,this.over),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};function ji(t,e,n){return e*=n,Math.tan(.5*(xe+t))*Math.pow((1-e)/(1+e),.5*n)}const Fi={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=be&&(this.k0=.5*(1+hn(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=be&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=be&&Math.abs(Math.cos(this.lat_ts))>be&&(this.k0=.5*this.cons*cn(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/dn(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=cn(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(ji(this.lat0,this.sinlat0,this.e))-xe,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,n,i,r,o,s,a=t.x,l=t.y,u=Math.sin(l),c=Math.cos(l),h=pn(a-this.long0,this.over);return Math.abs(Math.abs(a-this.long0)-Math.PI)<=be&&Math.abs(l+this.lat0)<=be?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*u+this.coslat0*c*Math.cos(h)),t.x=this.a*e*c*Math.sin(h)+this.x0,t.y=this.a*e*(this.coslat0*u-this.sinlat0*c*Math.cos(h))+this.y0,t):(n=2*Math.atan(ji(l,u,this.e))-xe,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=be?(o=dn(this.e,l*this.con,this.con*u),s=2*this.a*this.k0*o/this.cons,t.x=this.x0+s*Math.sin(a-this.long0),t.y=this.y0-this.con*s*Math.cos(a-this.long0),t):(Math.abs(this.sinlat0)<be?(e=2*this.a*this.k0/(1+r*Math.cos(h)),t.y=e*i):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(h))),t.y=e*(this.cosX0*i-this.sinX0*r*Math.cos(h))+this.y0),t.x=e*r*Math.sin(h)+this.x0,t))},inverse:function(t){var e,n,i,r,o;t.x-=this.x0,t.y-=this.y0;var s=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var a=2*Math.atan(s/(2*this.a*this.k0));return e=this.long0,n=this.lat0,s<=be?(t.x=e,t.y=n,t):(n=Math.asin(Math.cos(a)*this.sinlat0+t.y*Math.sin(a)*this.coslat0/s),e=Math.abs(this.coslat0)<be?this.lat0>0?pn(this.long0+Math.atan2(t.x,-1*t.y),this.over):pn(this.long0+Math.atan2(t.x,t.y),this.over):pn(this.long0+Math.atan2(t.x*Math.sin(a),s*this.coslat0*Math.cos(a)-t.y*this.sinlat0*Math.sin(a)),this.over),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=be){if(s<=be)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=s*this.cons/(2*this.a*this.k0),n=this.con*fn(this.e,i),e=this.con*pn(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else r=2*Math.atan(s*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,s<=be?o=this.X0:(o=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/s),e=pn(this.long0+Math.atan2(t.x*Math.sin(r),s*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)),this.over)),n=-1*fn(this.e,Math.tan(.5*(xe+o)));return t.x=e,t.y=n,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:ji};const Ui={init:function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=1/this.rf,r=2*i-Math.pow(i,2),o=this.e=Math.sqrt(r);this.R=this.k0*n*Math.sqrt(1-r)/(1-r*Math.pow(e,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*e)/(1-o*e));this.K=s-this.alpha*a+this.alpha*o/2*l},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),s=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(o))),a=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*s+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,n=t.y-this.y0,i=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),s=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),a=this.lambda0+s/this.alpha,l=0,u=o,c=-1e3,h=0;Math.abs(u-c)>1e-7;){if(++h>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=a,t.y=u,t},names:["somerc"]};var Hi=1e-7;const qi={init:function(){var t,e,n,i,r,o,s,a,l,u,c,h=0,p=0,d=0,f=0,g=0,m=0,v=0;this.no_off=function(t){var e=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],n="object"==typeof t.projName?Object.keys(t.projName)[0]:t.projName;return"no_uoff"in t||"no_off"in t||-1!==e.indexOf(n)||-1!==e.indexOf(bn(n))}(this),this.no_rot="no_rot"in this;var y=!1;"alpha"in this&&(y=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),y&&(v=this.alpha),E&&(h=this.rectified_grid_angle),y||E)p=this.longc;else if(d=this.long1,g=this.lat1,f=this.long2,m=this.lat2,Math.abs(g-m)<=Hi||(t=Math.abs(g))<=Hi||Math.abs(t-xe)<=Hi||Math.abs(Math.abs(this.lat0)-xe)<=Hi||Math.abs(Math.abs(m)-xe)<=Hi)throw new Error;var _=1-this.es;e=Math.sqrt(_),Math.abs(this.lat0)>be?(a=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*a*a,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/_),this.A=this.B*this.k0*e/t,(r=(i=this.B*e/(n*Math.sqrt(t)))*i-1)<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=i,this.E*=Math.pow(dn(this.e,this.lat0,a),this.B)):(this.B=1/e,this.A=this.k0,this.E=i=r=1),y||E?(y?(c=Math.asin(Math.sin(v)/i),E||(h=v)):(c=h,v=Math.asin(i*Math.sin(c))),this.lam0=p-Math.asin(.5*(r-1/r)*Math.tan(c))/this.B):(o=Math.pow(dn(this.e,g,Math.sin(g)),this.B),s=Math.pow(dn(this.e,m,Math.sin(m)),this.B),r=this.E/o,l=(s-o)/(s+o),u=((u=this.E*this.E)-s*o)/(u+s*o),(t=d-f)<-Math.PI?f-=Le:t>Math.PI&&(f+=Le),this.lam0=pn(.5*(d+f)-Math.atan(u*Math.tan(.5*this.B*(d-f))/l)/this.B,this.over),c=Math.atan(2*Math.sin(this.B*pn(d-this.lam0,this.over))/(r-1/r)),h=v=Math.asin(i*Math.sin(c))),this.singam=Math.sin(c),this.cosgam=Math.cos(c),this.sinrot=Math.sin(h),this.cosrot=Math.cos(h),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(i*i-1)/Math.cos(v))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*c,this.v_pole_n=this.ArB*Math.log(Math.tan(Ae-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(Ae+r))},forward:function(t){var e,n,i,r,o,s,a,l,u={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-xe)>be){if(e=.5*((o=this.E/Math.pow(dn(this.e,t.y,Math.sin(t.y)),this.B))-(s=1/o)),n=.5*(o+s),r=Math.sin(this.B*t.x),i=(e*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)<be)throw new Error;l=.5*this.ArB*Math.log((1-i)/(1+i)),s=Math.cos(this.B*t.x),a=Math.abs(s)<Hi?this.A*t.x:this.ArB*Math.atan2(e*this.cosgam+r*this.singam,s)}else l=t.y>0?this.v_pole_n:this.v_pole_s,a=this.ArB*t.y;return this.no_rot?(u.x=a,u.y=l):(a-=this.u_0,u.x=l*this.cosrot+a*this.sinrot,u.y=a*this.cosrot-l*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(t){var e,n,i,r,o,s,a,l={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),r=.5*((i=Math.exp(-this.BrA*n))-1/i),o=.5*(i+1/i),a=((s=Math.sin(this.BrA*e))*this.cosgam+r*this.singam)/o,Math.abs(Math.abs(a)-1)<be)l.x=0,l.y=a<0?-xe:xe;else{if(l.y=this.E/Math.sqrt((1+a)/(1-a)),l.y=fn(this.e,Math.pow(l.y,1/this.B)),l.y===1/0)throw new Error;l.x=-this.rB*Math.atan2(r*this.cosgam-s*this.singam,Math.cos(this.BrA*e))}return l.x+=this.lam0,l},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]};const zi={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<be)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),n=Math.cos(this.lat1),i=cn(this.e,e,n),r=dn(this.e,this.lat1,e),o=Math.sin(this.lat2),s=Math.cos(this.lat2),a=cn(this.e,o,s),l=dn(this.e,this.lat2,o),u=Math.abs(Math.abs(this.lat0)-xe)<be?0:dn(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>be?this.ns=Math.log(i/a)/Math.log(r/l):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=be&&(n=hn(n)*(xe-2e-10));var i,r,o=Math.abs(Math.abs(n)-xe);if(o>be)i=dn(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if((o=n*this.ns)<=0)return null;r=0}var s=this.ns*pn(e-this.long0,this.over);return t.x=this.k0*(r*Math.sin(s))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(s))+this.y0,t},inverse:function(t){var e,n,i,r,o,s=(t.x-this.x0)/this.k0,a=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+a*a),n=1):(e=-Math.sqrt(s*s+a*a),n=-1);var l=0;if(0!==e&&(l=Math.atan2(n*s,n*a)),0!==e||this.ns>0){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),-9999===(r=fn(this.e,i)))return null}else r=-xe;return o=pn(l/this.ns+this.long0,this.over),t.x=o,t.y=r,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]};const Vi={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var e,n,i,r,o,s,a,l=t.x,u=t.y,c=pn(l-this.long0,this.over);return e=Math.pow((1+this.e*Math.sin(u))/(1-this.e*Math.sin(u)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(u/2+this.s45),this.alfa)/e)-this.s45),i=-c*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),s=this.n*o,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=a*Math.cos(s)/1,t.x=a*Math.sin(s)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,n,i,r,o,s,a,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),r=Math.atan2(t.y,t.x)/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,s=e,a=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-t.y)<1e-10&&(a=1),s=t.y,u+=1}while(0===a&&u<15);return u>=15?null:t},names:["Krovak","krovak"]};function Wi(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}function Zi(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Qi(t){return.375*t*(1+.25*t*(1+.46875*t))}function Xi(t){return.05859375*t*t*(1+.75*t)}function Yi(t){return t*t*t*(35/3072)}function $i(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)}function Ki(t){return Math.abs(t)<xe?t:t-hn(t)*Math.PI}function Ji(t,e,n,i,r){var o,s;o=t/e;for(var a=0;a<15;a++)if(o+=s=(t-(e*o-n*Math.sin(2*o)+i*Math.sin(4*o)-r*Math.sin(6*o)))/(e-2*n*Math.cos(2*o)+4*i*Math.cos(4*o)-6*r*Math.cos(6*o)),Math.abs(s)<=1e-10)return o;return NaN}const tr={init:function(){this.sphere||(this.e0=Zi(this.es),this.e1=Qi(this.es),this.e2=Xi(this.es),this.e3=Yi(this.es),this.ml0=this.a*Wi(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,n,i=t.x,r=t.y;if(i=pn(i-this.long0,this.over),this.sphere)e=this.a*Math.asin(Math.cos(r)*Math.sin(i)),n=this.a*(Math.atan2(Math.tan(r),Math.cos(i))-this.lat0);else{var o=Math.sin(r),s=Math.cos(r),a=$i(this.a,this.e,o),l=Math.tan(r)*Math.tan(r),u=i*Math.cos(r),c=u*u,h=this.es*s*s/(1-this.es);e=a*u*(1-c*l*(1/6-(8-l+8*h)*c/120)),n=this.a*Wi(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+a*o/s*c*(.5+(5-l+6*h)*c/24)}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i=t.x/this.a,r=t.y/this.a;if(this.sphere){var o=r+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(i)),n=Math.atan2(Math.tan(i),Math.cos(o))}else{var s=Ji(this.ml0/this.a+r,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-xe)<=be)return t.x=this.long0,t.y=xe,r<0&&(t.y*=-1),t;var a=$i(this.a,this.e,Math.sin(s)),l=a*a*a/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(s),2),c=i*this.a/a,h=c*c;e=s-a*Math.tan(s)/l*c*c*(.5-(1+3*u)*c*c/24),n=c*(1-h*(u/3+(1+3*u)*u*h/15))/Math.cos(s)}return t.x=pn(n+this.long0,this.over),t.y=Ki(e),t},names:["Cassini","Cassini_Soldner","cass"]};function er(t,e){var n;return t>1e-7?(1-t*t)*(e/(1-(n=t*e)*n)-.5/t*Math.log((1-n)/(1+n))):2*e}var nr=.3333333333333333,ir=.17222222222222222,rr=.10257936507936508,or=.06388888888888888,sr=.0664021164021164,ar=.016415012942191543;const lr={init:function(){var t,e=Math.abs(this.lat0);if(Math.abs(e-xe)<be?this.mode=this.lat0<0?1:2:Math.abs(e)<be?this.mode=3:this.mode=4,this.es>0)switch(this.qp=er(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var e,n=[];return n[0]=t*nr,e=t*t,n[0]+=e*ir,n[1]=e*or,e*=t,n[0]+=e*rr,n[1]+=e*sr,n[2]=e*ar,n}(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=er(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,n,i,r,o,s,a,l,u,c,h=t.x,p=t.y;if(h=pn(h-this.long0,this.over),this.sphere){if(o=Math.sin(p),c=Math.cos(p),i=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+c*i:1+this.sinph0*o+this.cosph0*c*i)<=be)return null;e=(n=Math.sqrt(2/n))*c*Math.sin(h),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*c*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(p+this.lat0)<be)return null;n=Ae-.5*p,e=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(h),n*=i}}else{switch(a=0,l=0,u=0,i=Math.cos(h),r=Math.sin(h),o=Math.sin(p),s=er(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(a=s/this.qp,l=Math.sqrt(1-a*a)),this.mode){case this.OBLIQ:u=1+this.sinb1*a+this.cosb1*l*i;break;case this.EQUIT:u=1+l*i;break;case this.N_POLE:u=xe+p,s=this.qp-s;break;case this.S_POLE:u=p-xe,s=this.qp+s}if(Math.abs(u)<be)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:u=Math.sqrt(2/u),n=this.mode===this.OBLIQ?this.ymf*u*(this.cosb1*a-this.sinb1*l*i):(u=Math.sqrt(2/(1+l*i)))*a*this.ymf,e=this.xmf*u*l*r;break;case this.N_POLE:case this.S_POLE:s>=0?(e=(u=Math.sqrt(s))*r,n=i*(this.mode===this.S_POLE?u:-u)):e=n=0}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,o,s,a,l,u,c,h=t.x/this.a,p=t.y/this.a;if(this.sphere){var d,f=0,g=0;if((n=.5*(d=Math.sqrt(h*h+p*p)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(g=Math.sin(n),f=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(d)<=be?0:Math.asin(p*g/d),h*=g,p=f*d;break;case this.OBLIQ:n=Math.abs(d)<=be?this.lat0:Math.asin(f*this.sinph0+p*g*this.cosph0/d),h*=g*this.cosph0,p=(f-Math.sin(n)*this.sinph0)*d;break;case this.N_POLE:p=-p,n=xe-n;break;case this.S_POLE:n-=xe}e=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(h,p):0}else{if(a=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(h/=this.dd,p*=this.dd,(s=Math.sqrt(h*h+p*p))<be)return t.x=this.long0,t.y=this.lat0,t;r=2*Math.asin(.5*s/this.rq),i=Math.cos(r),h*=r=Math.sin(r),this.mode===this.OBLIQ?(a=i*this.sinb1+p*r*this.cosb1/s,o=this.qp*a,p=s*this.cosb1*i-p*this.sinb1*r):(a=p*r/s,o=this.qp*a,p=s*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(o=h*h+p*p))return t.x=this.long0,t.y=this.lat0,t;a=1-o/this.qp,this.mode===this.S_POLE&&(a=-a)}e=Math.atan2(h,p),l=Math.asin(a),u=this.apa,c=l+l,n=l+u[0]*Math.sin(c)+u[1]*Math.sin(c+c)+u[2]*Math.sin(c+c+c)}return t.x=pn(this.long0+e,this.over),t.y=n,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function ur(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const cr={init:function(){Math.abs(this.lat1+this.lat2)<be||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=cn(this.e3,this.sin_po,this.cos_po),this.qs1=er(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=cn(this.e3,this.sin_po,this.cos_po),this.qs2=er(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=er(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>be?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=er(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,o=this.ns0*pn(e-this.long0,this.over),s=r*Math.sin(o)+this.x0,a=this.rh-r*Math.cos(o)+this.y0;return t.x=s,t.y=a,t},inverse:function(t){var e,n,i,r,o,s;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?s=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,s=this.phi1z(this.e3,n)),o=pn(r/this.ns0+this.long0,this.over),t.x=o,t.y=s,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,e){var n,i,r,o,s=ur(.5*e);if(t<be)return s;for(var a=t*t,l=1;l<=25;l++)if(s+=o=.5*(r=1-(i=t*(n=Math.sin(s)))*i)*r/Math.cos(s)*(e/(1-a)-n/r+.5/t*Math.log((1-i)/(1+i))),Math.abs(o)<=1e-7)return s;return null}};const hr={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var e,n,i,r,o,s,a,l=t.x,u=t.y;return i=pn(l-this.long0,this.over),e=Math.sin(u),n=Math.cos(u),r=Math.cos(i),(o=this.sin_p14*e+this.cos_p14*n*r)>0||Math.abs(o)<=be?(s=this.x0+1*this.a*n*Math.sin(i)/o,a=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)/o):(s=this.x0+this.infinity_dist*n*Math.sin(i),a=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=s,t.y=a,t},inverse:function(t){var e,n,i,r,o,s;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),s=ur((i=Math.cos(r))*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),o=pn(this.long0+o,this.over)):(s=this.phic0,o=0),t.x=o,t.y=s,t},names:["gnom"]};const pr={init:function(){this.sphere||(this.k0=cn(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,n,i=t.x,r=t.y,o=pn(i-this.long0,this.over);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var s=er(this.e,Math.sin(r));e=this.x0+this.a*this.k0*o,n=this.y0+this.a*s*.5/this.k0}return t.x=e,t.y=n,t},inverse:function(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=pn(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*xe:xe;for(var i,r,o,s,a=Math.asin(.5*e),l=0;l<30;l++)if(r=Math.sin(a),o=Math.cos(a),s=t*r,a+=i=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-r/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return a;return NaN}(this.e,2*t.y*this.k0/this.a),e=pn(this.long0+t.x/(this.a*this.k0),this.over)),t.x=e,t.y=n,t},names:["cea"]};const dr={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var e=t.x,n=t.y,i=pn(e-this.long0,this.over),r=Ki(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t},inverse:function(t){var e=t.x,n=t.y;return t.x=pn(this.long0+(e-this.x0)/(this.a*this.rc),this.over),t.y=Ki(this.lat0+(n-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]};const fr={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Zi(this.es),this.e1=Qi(this.es),this.e2=Xi(this.es),this.e3=Yi(this.es),this.ml0=this.a*Wi(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,n,i,r=t.x,o=t.y,s=pn(r-this.long0,this.over);if(i=s*Math.sin(o),this.sphere)Math.abs(o)<=be?(e=this.a*s,n=-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(o),n=this.a*(Ki(o-this.lat0)+(1-Math.cos(i))/Math.tan(o)));else if(Math.abs(o)<=be)e=this.a*s,n=-1*this.ml0;else{var a=$i(this.a,this.e,Math.sin(o))/Math.tan(o);e=a*Math.sin(i),n=this.a*Wi(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+a*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){var e,n,i,r,o,s,a,l,u;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=be)e=pn(i/this.a+this.long0,this.over),n=0;else{var c;for(s=this.lat0+r/this.a,a=i*i/this.a/this.a+s*s,l=s,o=20;o;--o)if(l+=u=-1*(s*(l*(c=Math.tan(l))+1)-l-.5*(l*l+a)*c)/((l-s)/c-1),Math.abs(u)<=be){n=l;break}e=pn(this.long0+Math.asin(i*Math.tan(l)/this.a)/Math.sin(n),this.over)}else if(Math.abs(r+this.ml0)<=be)n=0,e=pn(this.long0+i/this.a,this.over);else{var h,p,d,f,g;for(s=(this.ml0+r)/this.a,a=i*i/this.a/this.a+s*s,l=s,o=20;o;--o)if(g=this.e*Math.sin(l),h=Math.sqrt(1-g*g)*Math.tan(l),p=this.a*Wi(this.e0,this.e1,this.e2,this.e3,l),d=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=u=(s*(h*(f=p/this.a)+1)-f-.5*h*(f*f+a))/(this.es*Math.sin(2*l)*(f*f+a-2*s*f)/(4*h)+(s-f)*(h*d-2/Math.sin(2*l))-d),Math.abs(u)<=be){n=l;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=pn(this.long0+Math.asin(i*h/this.a)/Math.sin(n),this.over)}return t.x=e,t.y=n,t},names:["Polyconic","American_Polyconic","poly"]};const gr={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var e,n=t.x,i=t.y-this.lat0,r=n-this.long0,o=i/_e*1e-5,s=r,a=1,l=0;for(e=1;e<=10;e++)a*=o,l+=this.A[e]*a;var u,c=l,h=s,p=1,d=0,f=0,g=0;for(e=1;e<=6;e++)u=d*c+p*h,p=p*c-d*h,d=u,f=f+this.B_re[e]*p-this.B_im[e]*d,g=g+this.B_im[e]*p+this.B_re[e]*d;return t.x=g*this.a+this.x0,t.y=f*this.a+this.y0,t},inverse:function(t){var e,n,i=t.x,r=t.y,o=i-this.x0,s=(r-this.y0)/this.a,a=o/this.a,l=1,u=0,c=0,h=0;for(e=1;e<=6;e++)n=u*s+l*a,l=l*s-u*a,u=n,c=c+this.C_re[e]*l-this.C_im[e]*u,h=h+this.C_im[e]*l+this.C_re[e]*u;for(var p=0;p<this.iterations;p++){var d,f=c,g=h,m=s,v=a;for(e=2;e<=6;e++)d=g*c+f*h,f=f*c-g*h,g=d,m+=(e-1)*(this.B_re[e]*f-this.B_im[e]*g),v+=(e-1)*(this.B_im[e]*f+this.B_re[e]*g);f=1,g=0;var y=this.B_re[1],E=this.B_im[1];for(e=2;e<=6;e++)d=g*c+f*h,f=f*c-g*h,g=d,y+=e*(this.B_re[e]*f-this.B_im[e]*g),E+=e*(this.B_im[e]*f+this.B_re[e]*g);var _=y*y+E*E;c=(m*y+v*E)/_,h=(v*y-m*E)/_}var x=c,b=h,T=1,S=0;for(e=1;e<=9;e++)T*=x,S+=this.D[e]*T;var A=this.lat0+S*_e*1e5,L=this.long0+b;return t.x=L,t.y=A,t},names:["New_Zealand_Map_Grid","nzmg"]};const mr={init:function(){},forward:function(t){var e=t.x,n=t.y,i=pn(e-this.long0,this.over),r=this.x0+this.a*i,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return t.x=r,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=pn(this.long0+t.x/this.a,this.over),n=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=n,t},names:["Miller_Cylindrical","mill"]};const vr={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Ai(this.es)},forward:function(t){var e,n,i=t.x,r=t.y;if(i=pn(i-this.long0,this.over),this.sphere){if(this.m)for(var o=this.n*Math.sin(r),s=20;s;--s){var a=(this.m*r+Math.sin(r)-o)/(this.m+Math.cos(r));if(r-=a,Math.abs(a)<be)break}else r=1!==this.n?Math.asin(this.n*Math.sin(r)):r;e=this.a*this.C_x*i*(this.m+Math.cos(r)),n=this.a*this.C_y*r}else{var l=Math.sin(r),u=Math.cos(r);n=this.a*Li(r,l,u,this.en),e=this.a*i*u/Math.sqrt(1-this.es*l*l)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,i;return t.x-=this.x0,n=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,n/=this.C_x*(this.m+Math.cos(e)),this.m?e=ur((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=ur(Math.sin(e)/this.n)),n=pn(n+this.long0,this.over),e=Ki(e)):(e=Ci(t.y/this.a,this.es,this.en),(i=Math.abs(e))<xe?(i=Math.sin(e),n=pn(this.long0+t.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(e)),this.over)):i-be<xe&&(n=this.long0)),t.x=n,t.y=e,t},names:["Sinusoidal","sinu"]};const yr={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){for(var e=t.x,n=t.y,i=pn(e-this.long0,this.over),r=n,o=Math.PI*Math.sin(n);;){var s=-(r+Math.sin(r)-o)/(1+Math.cos(r));if(r+=s,Math.abs(s)<be)break}r/=2,Math.PI/2-Math.abs(n)<be&&(i=0);var a=.900316316158*this.a*i*Math.cos(r)+this.x0,l=1.4142135623731*this.a*Math.sin(r)+this.y0;return t.x=a,t.y=l,t},inverse:function(t){var e,n;t.x-=this.x0,t.y-=this.y0,n=t.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),e=Math.asin(n);var i=pn(this.long0+t.x/(.900316316158*this.a*Math.cos(e)),this.over);i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t},names:["Mollweide","moll"]};const Er={init:function(){Math.abs(this.lat1+this.lat2)<be||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=Zi(this.es),this.e1=Qi(this.es),this.e2=Xi(this.es),this.e3=Yi(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=cn(this.e,this.sin_phi,this.cos_phi),this.ml1=Wi(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<be?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=cn(this.e,this.sin_phi,this.cos_phi),this.ml2=Wi(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Wi(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,n=t.x,i=t.y;if(this.sphere)e=this.a*(this.g-i);else{var r=Wi(this.e0,this.e1,this.e2,this.e3,i);e=this.a*(this.g-r)}var o=this.ns*pn(n-this.long0,this.over),s=this.x0+e*Math.sin(o),a=this.y0+this.rh-e*Math.cos(o);return t.x=s,t.y=a,t},inverse:function(t){var e,n,i,r;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;return 0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere?(r=pn(this.long0+o/this.ns,this.over),i=Ki(this.g-n/this.a),t.x=r,t.y=i,t):(i=Ji(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),r=pn(this.long0+o/this.ns,this.over),t.x=r,t.y=i,t)},names:["Equidistant_Conic","eqdc"]};const _r={init:function(){this.R=this.a},forward:function(t){var e,n,i=t.x,r=t.y,o=pn(i-this.long0,this.over);Math.abs(r)<=be&&(e=this.x0+this.R*o,n=this.y0);var s=ur(2*Math.abs(r/Math.PI));(Math.abs(o)<=be||Math.abs(Math.abs(r)-xe)<=be)&&(e=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*s):this.y0+Math.PI*this.R*-Math.tan(.5*s));var a=.5*Math.abs(Math.PI/o-o/Math.PI),l=a*a,u=Math.sin(s),c=Math.cos(s),h=c/(u+c-1),p=h*h,d=h*(2/u-1),f=d*d,g=Math.PI*this.R*(a*(h-f)+Math.sqrt(l*(h-f)*(h-f)-(f+l)*(p-f)))/(f+l);o<0&&(g=-g),e=this.x0+g;var m=l+h;return g=Math.PI*this.R*(d*m-a*Math.sqrt((f+l)*(l+1)-m*m))/(f+l),n=r>=0?this.y0+g:this.y0-g,t.x=e,t.y=n,t},inverse:function(t){var e,n,i,r,o,s,a,l,u,c,h,p;return t.x-=this.x0,t.y-=this.y0,h=Math.PI*this.R,o=(i=t.x/h)*i+(r=t.y/h)*r,h=3*(r*r/(l=-2*(s=-Math.abs(r)*(1+o))+1+2*r*r+o*o)+(2*(a=s-2*r*r+i*i)*a*a/l/l/l-9*s*a/l/l)/27)/(u=(s-a*a/3/l)/l)/(c=2*Math.sqrt(-u/3)),Math.abs(h)>1&&(h=h>=0?1:-1),p=Math.acos(h)/3,n=t.y>=0?(-c*Math.cos(p+Math.PI/3)-a/3/l)*Math.PI:-(-c*Math.cos(p+Math.PI/3)-a/3/l)*Math.PI,e=Math.abs(i)<be?this.long0:pn(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(i*i-r*r)+o*o))/2/i,this.over),t.x=e,t.y=n,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]};const xr={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(t){var e,n,i,r,o,s,a,l,u,c,h,p=t.x,d=t.y,f=Math.sin(t.y),g=Math.cos(t.y),m=pn(p-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=be?(t.x=this.x0+this.a*(xe-d)*Math.sin(m),t.y=this.y0-this.a*(xe-d)*Math.cos(m),t):Math.abs(this.sin_p12+1)<=be?(t.x=this.x0+this.a*(xe+d)*Math.sin(m),t.y=this.y0+this.a*(xe+d)*Math.cos(m),t):(u=this.sin_p12*f+this.cos_p12*g*Math.cos(m),l=(a=Math.acos(u))?a/Math.sin(a):1,t.x=this.x0+this.a*l*g*Math.sin(m),t.y=this.y0+this.a*l*(this.cos_p12*f-this.sin_p12*g*Math.cos(m)),t):(e=Zi(this.es),n=Qi(this.es),i=Xi(this.es),r=Yi(this.es),Math.abs(this.sin_p12-1)<=be?(o=this.a*Wi(e,n,i,r,xe),s=this.a*Wi(e,n,i,r,d),t.x=this.x0+(o-s)*Math.sin(m),t.y=this.y0-(o-s)*Math.cos(m),t):Math.abs(this.sin_p12+1)<=be?(o=this.a*Wi(e,n,i,r,xe),s=this.a*Wi(e,n,i,r,d),t.x=this.x0+(o+s)*Math.sin(m),t.y=this.y0+(o+s)*Math.cos(m),t):Math.abs(p)<be&&Math.abs(d-this.lat0)<be?(t.x=t.y=0,t):(c=function(t,e,n,i,r,o){const s=i-e,a=Math.atan((1-o)*Math.tan(t)),l=Math.atan((1-o)*Math.tan(n)),u=Math.sin(a),c=Math.cos(a),h=Math.sin(l),p=Math.cos(l);let d,f,g,m,v,y,E,_,x,b,T,S,A,L,C,N=s,I=100;do{if(f=Math.sin(N),g=Math.cos(N),m=Math.sqrt(p*f*(p*f)+(c*h-u*p*g)*(c*h-u*p*g)),0===m)return{azi1:0,s12:0};v=u*h+c*p*g,y=Math.atan2(m,v),E=c*p*f/m,_=1-E*E,x=0!==_?v-2*u*h/_:0,b=o/16*_*(4+o*(4-3*_)),d=N,N=s+(1-b)*o*E*(y+b*m*(x+b*v*(2*x*x-1)))}while(Math.abs(N-d)>1e-12&&--I>0);return 0===I?{azi1:NaN,s12:NaN}:(T=_*(r*r-r*(1-o)*(r*(1-o)))/(r*(1-o)*(r*(1-o))),S=1+T/16384*(4096+T*(T*(320-175*T)-768)),A=T/1024*(256+T*(T*(74-47*T)-128)),L=A*m*(x+A/4*(v*(2*x*x-1)-A/6*x*(4*m*m-3)*(4*x*x-3))),C=r*(1-o)*S*(y-L),{azi1:Math.atan2(p*f,c*h-u*p*g),s12:C})}(this.lat0,this.long0,d,p,this.a,this.f),h=c.azi1,t.x=c.s12*Math.sin(h),t.y=c.s12*Math.cos(h),t))},inverse:function(t){var e,n,i,r,o,s,a,l,u,c,h,p,d,f,g;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*xe*this.a)return;return n=e/this.a,i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=be?s=this.lat0:(s=ur(r*this.sin_p12+t.y*i*this.cos_p12/e),a=Math.abs(this.lat0)-xe,o=Math.abs(a)<=be?this.lat0>=0?pn(this.long0+Math.atan2(t.x,-t.y),this.over):pn(this.long0-Math.atan2(-t.x,t.y),this.over):pn(this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i),this.over)),t.x=o,t.y=s,t}return l=Zi(this.es),u=Qi(this.es),c=Xi(this.es),h=Yi(this.es),Math.abs(this.sin_p12-1)<=be?(s=Ji(((p=this.a*Wi(l,u,c,h,xe))-(e=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,l,u,c,h),o=pn(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=o,t.y=s,t):Math.abs(this.sin_p12+1)<=be?(p=this.a*Wi(l,u,c,h,xe),s=Ji(((e=Math.sqrt(t.x*t.x+t.y*t.y))-p)/this.a,l,u,c,h),o=pn(this.long0+Math.atan2(t.x,t.y),this.over),t.x=o,t.y=s,t):(d=Math.atan2(t.x,t.y),f=Math.sqrt(t.x*t.x+t.y*t.y),g=function(t,e,n,i,r,o){const s=Math.atan((1-o)*Math.tan(t)),a=Math.sin(s),l=Math.cos(s),u=Math.sin(n),c=Math.cos(n),h=Math.atan2(a,l*c),p=l*u,d=1-p*p,f=d*(r*r-r*(1-o)*(r*(1-o)))/(r*(1-o)*(r*(1-o))),g=1+f/16384*(4096+f*(f*(320-175*f)-768)),m=f/1024*(256+f*(f*(74-47*f)-128));let v,y,E,_,x,b=i/(r*(1-o)*g),T=100;do{y=Math.cos(2*h+b),E=Math.sin(b),_=Math.cos(b),x=m*E*(y+m/4*(_*(2*y*y-1)-m/6*y*(4*E*E-3)*(4*y*y-3))),v=b,b=i/(r*(1-o)*g)+x}while(Math.abs(b-v)>1e-12&&--T>0);if(0===T)return{lat2:NaN,lon2:NaN};const S=a*E-l*_*c,A=o/16*d*(4+o*(4-3*d));return{lat2:Math.atan2(a*_+l*E*c,(1-o)*Math.sqrt(p*p+S*S)),lon2:e+(Math.atan2(E*u,l*_-a*E*c)-(1-A)*o*p*(b+A*E*(y+A*_*(2*y*y-1))))}}(this.lat0,this.long0,d,f,this.a,this.f),t.x=g.lon2,t.y=g.lat2,t)},names:["Azimuthal_Equidistant","aeqd"]};const br={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(t){var e,n,i,r,o,s,a,l=t.x,u=t.y;return i=pn(l-this.long0,this.over),e=Math.sin(u),n=Math.cos(u),r=Math.cos(i),((o=this.sin_p14*e+this.cos_p14*n*r)>0||Math.abs(o)<=be)&&(s=1*this.a*n*Math.sin(i),a=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)),t.x=s,t.y=a,t},inverse:function(t){var e,n,i,r,o,s,a;return t.x-=this.x0,t.y-=this.y0,n=ur((e=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),i=Math.sin(n),r=Math.cos(n),s=this.long0,Math.abs(e)<=be?(a=this.lat0,t.x=s,t.y=a,t):(a=ur(r*this.sin_p14+t.y*i*this.cos_p14/e),o=Math.abs(this.lat0)-xe,Math.abs(o)<=be?(s=this.lat0>=0?pn(this.long0+Math.atan2(t.x,-t.y),this.over):pn(this.long0-Math.atan2(-t.x,t.y),this.over),t.x=s,t.y=a,t):(s=pn(this.long0+Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i),this.over),t.x=s,t.y=a,t))},names:["ortho"]};var Tr=1,Sr=2,Ar=3,Lr=4,Cr=5,Nr=6,Ir=1,wr=2,Rr=3,Pr=4;function Mr(t,e,n,i){var r;return t<be?(i.value=Ir,r=0):(r=Math.atan2(e,n),Math.abs(r)<=Ae?i.value=Ir:r>Ae&&r<=xe+Ae?(i.value=wr,r-=xe):r>xe+Ae||r<=-(xe+Ae)?(i.value=Rr,r=r>=0?r-Ce:r+Ce):(i.value=Pr,r+=xe)),r}function Or(t,e){var n=t+e;return n<-Ce?n+=Le:n>+Ce&&(n-=Le),n}const kr={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=xe-Ae/2?this.face=Cr:this.lat0<=-(xe-Ae/2)?this.face=Nr:Math.abs(this.long0)<=Ae?this.face=Tr:Math.abs(this.long0)<=xe+Ae?this.face=this.long0>0?Sr:Lr:this.face=Ar,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var e,n,i,r,o,s,a={x:0,y:0},l={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===Cr)r=xe-e,n>=Ae&&n<=xe+Ae?(l.value=Ir,i=n-xe):n>xe+Ae||n<=-(xe+Ae)?(l.value=wr,i=n>0?n-Ce:n+Ce):n>-(xe+Ae)&&n<=-Ae?(l.value=Rr,i=n+xe):(l.value=Pr,i=n);else if(this.face===Nr)r=xe+e,n>=Ae&&n<=xe+Ae?(l.value=Ir,i=-n+xe):n<Ae&&n>=-Ae?(l.value=wr,i=-n):n<-Ae&&n>=-(xe+Ae)?(l.value=Rr,i=-n-xe):(l.value=Pr,i=n>0?-n+Ce:-n-Ce);else{var u,c,h,p,d,f;this.face===Sr?n=Or(n,+xe):this.face===Ar?n=Or(n,+Ce):this.face===Lr&&(n=Or(n,-xe)),p=Math.sin(e),d=Math.cos(e),f=Math.sin(n),u=d*Math.cos(n),c=d*f,h=p,this.face===Tr?i=Mr(r=Math.acos(u),h,c,l):this.face===Sr?i=Mr(r=Math.acos(c),h,-u,l):this.face===Ar?i=Mr(r=Math.acos(-u),h,-c,l):this.face===Lr?i=Mr(r=Math.acos(-c),h,u,l):(r=i=0,l.value=Ir)}return s=Math.atan(12/Ce*(i+Math.acos(Math.sin(i)*Math.cos(Ae))-xe)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),l.value===wr?s+=xe:l.value===Rr?s+=Ce:l.value===Pr&&(s+=1.5*Ce),a.x=o*Math.cos(s),a.y=o*Math.sin(s),a.x=a.x*this.a+this.x0,a.y=a.y*this.a+this.y0,t.x=a.x,t.y=a.y,t},inverse:function(t){var e,n,i,r,o,s,a,l,u,c,h,p,d={lam:0,phi:0},f={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?f.value=Ir:t.y>=0&&t.y>=Math.abs(t.x)?(f.value=wr,e-=xe):t.x<0&&-t.x>=Math.abs(t.y)?(f.value=Rr,e=e<0?e+Ce:e-Ce):(f.value=Pr,e+=xe),u=Ce/12*Math.tan(e),o=Math.sin(u)/(Math.cos(u)-1/Math.sqrt(2)),s=Math.atan(o),(a=1-(i=Math.cos(e))*i*(r=Math.tan(n))*r*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?a=-1:a>1&&(a=1),this.face===Cr)l=Math.acos(a),d.phi=xe-l,f.value===Ir?d.lam=s+xe:f.value===wr?d.lam=s<0?s+Ce:s-Ce:f.value===Rr?d.lam=s-xe:d.lam=s;else if(this.face===Nr)l=Math.acos(a),d.phi=l-xe,f.value===Ir?d.lam=-s+xe:f.value===wr?d.lam=-s:f.value===Rr?d.lam=-s-xe:d.lam=s<0?-s-Ce:-s+Ce;else{var g,m,v;u=(g=a)*g,m=(u+=(v=u>=1?0:Math.sqrt(1-u)*Math.sin(s))*v)>=1?0:Math.sqrt(1-u),f.value===wr?(u=m,m=-v,v=u):f.value===Rr?(m=-m,v=-v):f.value===Pr&&(u=m,m=v,v=-u),this.face===Sr?(u=g,g=-m,m=u):this.face===Ar?(g=-g,m=-m):this.face===Lr&&(u=g,g=m,m=-u),d.phi=Math.acos(-v)-xe,d.lam=Math.atan2(m,g),this.face===Sr?d.lam=Or(d.lam,-xe):this.face===Ar?d.lam=Or(d.lam,-Ce):this.face===Lr&&(d.lam=Or(d.lam,+xe))}return 0!==this.es&&(c=d.phi<0?1:0,h=Math.tan(d.phi),p=this.b/Math.sqrt(h*h+this.one_minus_f_squared),d.phi=Math.atan(Math.sqrt(this.a*this.a-p*p)/(this.one_minus_f*p)),c&&(d.phi=-d.phi)),d.lam+=this.long0,t.x=d.lam,t.y=d.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var Dr=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],Gr=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],Br=.8487,jr=1.3523,Fr=Se/5,Ur=1/Fr,Hr=18,qr=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))};const zr={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var e=pn(t.x-this.long0,this.over),n=Math.abs(t.y),i=Math.floor(n*Fr);i<0?i=0:i>=Hr&&(i=17);var r={x:qr(Dr[i],n=Se*(n-Ur*i))*e,y:qr(Gr[i],n)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*Br+this.x0,r.y=r.y*this.a*jr+this.y0,r},inverse:function(t){var e={x:(t.x-this.x0)/(this.a*Br),y:Math.abs(t.y-this.y0)/(this.a*jr)};if(e.y>=1)e.x/=Dr[18][0],e.y=t.y<0?-xe:xe;else{var n=Math.floor(e.y*Hr);for(n<0?n=0:n>=Hr&&(n=17);;)if(Gr[n][0]>e.y)--n;else{if(!(Gr[n+1][0]<=e.y))break;++n}var i=Gr[n],r=5*(e.y-i[0])/(Gr[n+1][0]-i[0]);r=function(t,e,n,i){for(var r=e;i;--i){var o=t(r);if(r-=o,Math.abs(o)<n)break}return r}(function(t){return(qr(i,t)-e.y)/function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])}(i,t)},r,be,100),e.x/=qr(Dr[n],r),e.y=(5*n+r)*Te,t.y<0&&(e.y=-e.y)}return e.x=pn(e.x+this.long0,this.over),e},names:["Robinson","robin"]};const Vr={init:function(){this.name="geocent"},forward:function(t){return Hn(t,this.es,this.a)},inverse:function(t){return qn(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var Wr=0,Zr=1,Qr=2,Xr=3,Yr={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const $r={init:function(){if(Object.keys(Yr).forEach(function(t){if(void 0===this[t])this[t]=Yr[t].def;else{if(Yr[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);Yr[t].num&&(this[t]=parseFloat(this[t]))}Yr[t].degrees&&(this[t]=this[t]*Te)}.bind(this)),Math.abs(Math.abs(this.lat0)-xe)<be?this.mode=this.lat0<0?Zr:Wr:Math.abs(this.lat0)<be?this.mode=Qr:(this.mode=Xr,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var e,n,i,r,o=Math.sin(t.y),s=Math.cos(t.y),a=Math.cos(t.x);switch(this.mode){case Xr:n=this.sinph0*o+this.cosph0*s*a;break;case Qr:n=s*a;break;case Zr:n=-o;break;case Wr:n=o}switch(e=(n=this.pn1/(this.p-n))*s*Math.sin(t.x),this.mode){case Xr:n*=this.cosph0*o-this.sinph0*s*a;break;case Qr:n*=o;break;case Wr:n*=-s*a;break;case Zr:n*=s*a}return r=1/((i=n*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-n*this.sg)*this.cw*r,n=i*r,t.x=e*this.a,t.y=n*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,n,i,r={x:t.x,y:t.y};i=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*i,n=this.pn1*t.y*this.cw*i,t.x=e*this.cg+n*this.sg,t.y=n*this.cg-e*this.sg;var o=wi(t.x,t.y);if(Math.abs(o)<be)r.x=0,r.y=t.y;else{var s,a;switch(a=1-o*o*this.pfact,a=(this.p-Math.sqrt(a))/(this.pn1/o+o/this.pn1),s=Math.sqrt(1-a*a),this.mode){case Xr:r.y=Math.asin(s*this.sinph0+t.y*a*this.cosph0/o),t.y=(s-this.sinph0*Math.sin(r.y))*o,t.x*=a*this.cosph0;break;case Qr:r.y=Math.asin(t.y*a/o),t.y=s*o,t.x*=a;break;case Wr:r.y=Math.asin(s),t.y=-t.y;break;case Zr:r.y=-Math.asin(s)}r.x=Math.atan2(t.x,t.y)}return t.x=r.x+this.long0,t.y=r.y,t},names:["Tilted_Perspective","tpers"]};const Kr={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var e,n,i,r,o=t.x,s=t.y;if(o-=this.long0,"ellipse"===this.shape){s=Math.atan(this.radius_p2*Math.tan(s));var a=this.radius_p/wi(this.radius_p*Math.cos(s),Math.sin(s));if(n=a*Math.cos(o)*Math.cos(s),i=a*Math.sin(o)*Math.cos(s),r=a*Math.sin(s),(this.radius_g-n)*n-i*i-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/wi(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/wi(i,e)))}else"sphere"===this.shape&&(e=Math.cos(s),n=Math.cos(o)*e,i=Math.sin(o)*e,r=Math.sin(s),e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/wi(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/wi(i,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var e,n,i,r,o=-1,s=0,a=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),s=Math.tan(t.x/this.radius_g_1)*wi(1,a)):(s=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*wi(1,s));var l=a/this.radius_p;if(e=s*s+l*l+o*o,(i=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,s*=r,a*=r,t.x=Math.atan2(s,o),t.y=Math.atan(a*Math.cos(t.x)/o),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),s=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+a*a)):(s=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+s*s)),e=s*s+a*a+o*o,(i=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,s*=r,a*=r,t.x=Math.atan2(s,o),t.y=Math.atan(a*Math.cos(t.x)/o)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var Jr=1.340264,to=-.081106,eo=893e-6,no=.003796,io=Math.sqrt(3)/2;const ro={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0},forward:function(t){var e=pn(t.x-this.long0,this.over),n=t.y,i=Math.asin(io*Math.sin(n)),r=i*i,o=r*r*r;return t.x=e*Math.cos(i)/(io*(Jr+3*to*r+o*(7*eo+9*no*r))),t.y=i*(Jr+to*r+o*(eo+no*r)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,i,r,o=t.y;for(r=0;r<12&&(o-=i=(o*(Jr+to*(e=o*o)+(n=e*e*e)*(eo+no*e))-t.y)/(Jr+3*to*e+n*(7*eo+9*no*e)),!(Math.abs(i)<1e-9));++r);return n=(e=o*o)*e*e,t.x=io*t.x*(Jr+3*to*e+n*(7*eo+9*no*e))/Math.cos(o),t.y=Math.asin(Math.sin(o)/io),t.x=pn(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]};var oo=1e-10;function so(t){var e,n,i,r=pn(t.x-(this.long0||0),this.over),o=t.y;return e=this.am1+this.m1-Li(o,n=Math.sin(o),i=Math.cos(o),this.en),n=i*r/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function ao(t){var e,n,i,r;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=wi(t.x,t.y=this.am1-t.y),r=Ci(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(r))<xe)e=Math.sin(r),i=n*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(r);else{if(!(Math.abs(e-xe)<=oo))throw new Error;i=0}return t.x=pn(i+(this.long0||0),this.over),t.y=Ki(r),t}function lo(t){var e,n,i=pn(t.x-(this.long0||0),this.over),r=t.y;return n=this.cphi1+this.phi1-r,Math.abs(n)>oo?(t.x=n*Math.sin(e=i*Math.cos(r)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function uo(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i=wi(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-i,Math.abs(n)>xe)throw new Error;return e=Math.abs(Math.abs(n)-xe)<=oo?0:i*Math.atan2(t.x,t.y)/Math.cos(n),t.x=pn(e+(this.long0||0),this.over),t.y=Ki(n),t}const co={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<oo)throw new Error;this.es?(this.en=Ai(this.es),this.m1=Li(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=ao,this.forward=so):(Math.abs(this.phi1)+oo>=xe?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=uo,this.forward=lo)},names:["bonne","Bonne (Werner lat_1=90)"]},ho={OBLIQUE:{forward:function(t,e){let{x:n,y:i}=e;n+=t.long0;const r=Math.cos(n),o=Math.sin(i),s=Math.cos(i);e.x=pn(Math.atan2(s*Math.sin(n),t.sphip*s*r+t.cphip*o)+t.lamp),e.y=Math.asin(t.sphip*o-t.cphip*s*r);const a=t.obliqueProjection.forward(e);t.isIdentity&&(a.x*=Se,a.y*=Se);return a},inverse:function(t,e){t.isIdentity&&(e.x*=Te,e.y*=Te);const n=t.obliqueProjection.inverse(e);let{x:i,y:r}=n;if(i<Number.MAX_VALUE){i-=t.lamp;const n=Math.cos(i),o=Math.sin(r),s=Math.cos(r);e.x=Math.atan2(s*Math.sin(i),t.sphip*s*n-t.cphip*o),e.y=Math.asin(t.sphip*o+t.cphip*s*n)}return e.x=pn(e.x+t.long0),e}},TRANSVERSE:{forward:function(t,e){let{x:n,y:i}=e;n+=t.long0;const r=Math.cos(i),o=Math.cos(n);e.x=pn(Math.atan2(r*Math.sin(n),Math.sin(i))+t.lamp),e.y=Math.asin(-1*r*o);const s=t.obliqueProjection.forward(e);t.isIdentity&&(s.x*=Se,s.y*=Se);return s},inverse:function(t,e){t.isIdentity&&(e.x*=Te,e.y*=Te);const n=t.obliqueProjection.inverse(e);let{x:i,y:r}=n;if(i<Number.MAX_VALUE){const n=Math.cos(r);i-=t.lamp,e.x=Math.atan2(n*Math.sin(i),-1*Math.sin(r)),e.y=Math.asin(n*Math.cos(i))}return e.x=pn(e.x+t.long0),e}}},po={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}};const fo={init:function(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=vn.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const t=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),e=Un(t);if(!e)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let n;e.long0=0,this.obliqueProjection=e;const i=Object.keys(po),r=t=>{if(void 0===this[t])return;const e=parseFloat(this[t])*Te;if(isNaN(e))throw new Error("Invalid value for "+t+": "+this[t]);return e};for(let t=0;t<i.length;t++){const e=i[t],o=po[e],s=Object.entries(o),a=s.some(([t])=>void 0!==this[t]);if(a){n=o;for(let t=0;t<s.length;t++){const[e,n]=s[t],i=r(e);if(void 0===i)throw new Error("Missing parameter: "+e+".");this[n]=i}break}}if(!n)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:o,phip:s}=function(t,e){let n,i;if(e===po.ROTATE){let e=t.oLongC,r=t.oLatC,o=t.oAlpha;if(Math.abs(Math.abs(r)-xe)<=be)throw new Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");i=e+Math.atan2(-1*Math.cos(o),-1*Math.sin(o)*Math.sin(r)),n=Math.asin(Math.cos(r)*Math.sin(o))}else if(e===po.NEW_POLE)i=t.oLongP,n=t.oLatP;else{let e=t.oLong1,r=t.oLat1,o=t.oLong2,s=t.oLat2,a=Math.abs(r);if(Math.abs(r)>xe-be)throw new Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(s)>xe-be)throw new Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(Math.abs(r-s)<be)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(a<be)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");i=Math.atan2(Math.cos(r)*Math.sin(s)*Math.cos(e)-Math.sin(r)*Math.cos(s)*Math.cos(o),Math.sin(r)*Math.cos(s)*Math.sin(o)-Math.cos(r)*Math.sin(s)*Math.sin(e)),n=Math.atan(-1*Math.cos(i-e)/Math.tan(r))}return{lamp:i,phip:n}}(this,n);this.lamp=o,Math.abs(s)>be?(this.cphip=Math.cos(s),this.sphip=Math.sin(s),this.projectionType=ho.OBLIQUE):this.projectionType=ho.TRANSVERSE},forward:function(t){return this.projectionType.forward(this,t)},inverse:function(t){return this.projectionType.inverse(this,t)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]};const go=Object.assign(ni,{defaultDatum:"WGS84",Proj:Un,WGS84:new Un("WGS84"),Point:xi,toPoint:Yn,defs:sn,nadgrid:function(t,e,n){return e instanceof ArrayBuffer?function(t,e,n){var i=!0;void 0!==n&&!1===n.includeErrorFields&&(i=!1);var r=new DataView(e),o=function(t){var e=t.getInt32(8,!1);if(11===e)return!1;e=t.getInt32(8,!0),11!==e&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(r),s=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:Dn(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(r,o),a=function(t,e,n,i){for(var r=176,o=[],s=0;s<e.nSubgrids;s++){var a=Bn(t,r,n),l=jn(t,r,a,n,i),u=Math.round(1+(a.upperLongitude-a.lowerLongitude)/a.longitudeInterval),c=Math.round(1+(a.upperLatitude-a.lowerLatitude)/a.latitudeInterval);o.push({ll:[kn(a.lowerLongitude),kn(a.lowerLatitude)],del:[kn(a.longitudeInterval),kn(a.latitudeInterval)],lim:[u,c],count:a.gridNodeCount,cvs:Gn(l)});var h=16;!1===i&&(h=8),r+=176+a.gridNodeCount*h}return o}(r,s,o,i),l={header:s,subgrids:a};return Rn[t]=l,l}(t,e,n):{ready:Pn(t,e)}},transform:Kn,mgrs:ci,version:"__VERSION__"});!function(t){t.Proj.projections.add(Ni),t.Proj.projections.add(Oi),t.Proj.projections.add(ki),t.Proj.projections.add(Bi),t.Proj.projections.add(Fi),t.Proj.projections.add(Ui),t.Proj.projections.add(qi),t.Proj.projections.add(zi),t.Proj.projections.add(Vi),t.Proj.projections.add(tr),t.Proj.projections.add(lr),t.Proj.projections.add(cr),t.Proj.projections.add(hr),t.Proj.projections.add(pr),t.Proj.projections.add(dr),t.Proj.projections.add(fr),t.Proj.projections.add(gr),t.Proj.projections.add(mr),t.Proj.projections.add(vr),t.Proj.projections.add(yr),t.Proj.projections.add(Er),t.Proj.projections.add(_r),t.Proj.projections.add(xr),t.Proj.projections.add(br),t.Proj.projections.add(kr),t.Proj.projections.add(zr),t.Proj.projections.add(Vr),t.Proj.projections.add($r),t.Proj.projections.add(Kr),t.Proj.projections.add(ro),t.Proj.projections.add(co),t.Proj.projections.add(fo)}(go);const mo=go;var vo=Object.defineProperty,yo=(t,e,n)=>(((t,e,n)=>{e in t?vo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!=typeof e?e+"":e,n),n);const Eo=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"],_o=["ZM","Z","M"],xo="EMPTY";class bo{constructor(t){yo(this,"value"),yo(this,"position"),this.value=t.toUpperCase(),this.position=0}match(t){this.skipWhitespaces();for(const e of t){const t=e.toUpperCase();if(this.value.startsWith(t,this.position))return this.position+=t.length,e}return null}matchRegex(t){this.skipWhitespaces();for(const e of t){const t=this.value.substring(this.position).match(e);if(t)return this.position+=t[0].length,t}return null}isMatch(t){return this.skipWhitespaces(),!!this.value.startsWith(t,this.position)&&(this.position+=t.length,!0)}matchType(){const t=this.match(Eo);if(!t)throw new Error("Expected geometry type");return t}matchDimension(){switch(this.match(_o)){case"ZM":return{hasZ:!0,hasM:!0};case"Z":return{hasZ:!0,hasM:!1};case"M":return{hasZ:!1,hasM:!0};default:return{hasZ:!1,hasM:!1}}}expectGroupStart(){if(!this.isMatch("("))throw new Error("Expected group start")}expectGroupEnd(){if(!this.isMatch(")"))throw new Error("Expected group end")}matchCoordinate(t){let e;if(e=t.hasZ&&t.hasM?this.matchRegex([/^(\S*)\s+(\S*)\s+(\S*)\s+([^\s,)]*)/i]):t.hasZ||t.hasM?this.matchRegex([/^(\S*)\s+(\S*)\s+([^\s,)]*)/i]):this.matchRegex([/^(\S*)\s+([^\s,)]*)/i]),!e)throw new Error("Expected coordinates");const n=t.hasZ&&t.hasM?[parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]),parseFloat(e[4])]:t.hasZ?[parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])]:(t.hasM,[parseFloat(e[1]),parseFloat(e[2])]);if(!t.srid||4326===t.srid)return n;if("http://www.opengis.net/def/crs/epsg/0/4326"===t.srid)return 3===n.length?[n[1],n[0],n[2]]:[n[1],n[0]];if(!t.proj)throw new Error(`EWKT data in an unknown SRID (${t.srid}) was provided, but a proj function was not`);return t.proj("string"==typeof t.srid?t.srid:`EPSG:${t.srid}`,"EPSG:4326",n)}matchCoordinates(t){const e=[];do{const n=this.isMatch("(");e.push(this.matchCoordinate(t)),n&&this.expectGroupEnd()}while(this.isMatch(","));return e}skipWhitespaces(){for(;this.position<this.value.length&&" "===this.value[this.position];)this.position++}}function To(t,e){let n=null;const i=t.matchRegex([/^SRID=(\d+);/i]);if(i)n=parseInt(i[1],10);else{const e=t.matchRegex([/^<([^>]+)>/i]);e&&(n=e[1].toLowerCase())}const r=t.matchType(),o=t.matchDimension(),s={...e,srid:n,hasZ:o.hasZ,hasM:o.hasM};switch(r){case"Point":return((t,e)=>{if(t.isMatch(xo))return e.emptyAsNull?null:{type:"Point",coordinates:[]};t.expectGroupStart();const n=t.matchCoordinate(e);return t.expectGroupEnd(),{type:"Point",coordinates:n}})(t,s);case"LineString":return((t,e)=>{if(t.isMatch(xo))return e.emptyAsNull?null:{type:"LineString",coordinates:[]};t.expectGroupStart();const n=t.matchCoordinates(e);return t.expectGroupEnd(),{type:"LineString",coordinates:n}})(t,s);case"Polygon":return((t,e)=>{if(t.isMatch(xo))return e.emptyAsNull?null:{type:"Polygon",coordinates:[]};const n=[];for(t.expectGroupStart(),t.expectGroupStart(),n.push(t.matchCoordinates(e)),t.expectGroupEnd();t.isMatch(",");)t.expectGroupStart(),n.push(t.matchCoordinates(e)),t.expectGroupEnd();return t.expectGroupEnd(),{type:"Polygon",coordinates:n}})(t,s);case"MultiPoint":return((t,e)=>{if(t.isMatch(xo))return e.emptyAsNull?null:{type:"MultiPoint",coordinates:[]};t.expectGroupStart();const n=t.matchCoordinates(e);return t.expectGroupEnd(),{type:"MultiPoint",coordinates:n}})(t,s);case"MultiLineString":return((t,e)=>{if(t.isMatch(xo))return e.emptyAsNull?null:{type:"MultiLineString",coordinates:[]};t.expectGroupStart();const n=[];do{t.expectGroupStart(),n.push(t.matchCoordinates(e)),t.expectGroupEnd()}while(t.isMatch(","));return t.expectGroupEnd(),{type:"MultiLineString",coordinates:n}})(t,s);case"MultiPolygon":return((t,e)=>{if(t.isMatch(xo))return e.emptyAsNull?null:{type:"MultiPolygon",coordinates:[]};t.expectGroupStart();const n=[];do{t.expectGroupStart();const i=[],r=[];for(t.expectGroupStart(),i.push.apply(i,t.matchCoordinates(e)),t.expectGroupEnd();t.isMatch(",");)t.expectGroupStart(),r.push(t.matchCoordinates(e)),t.expectGroupEnd();n.push([i,...r]),t.expectGroupEnd()}while(t.isMatch(","));return t.expectGroupEnd(),{type:"MultiPolygon",coordinates:n}})(t,s);case"GeometryCollection":return((t,e)=>{if(t.isMatch(xo))return e.emptyAsNull?null:{type:"GeometryCollection",geometries:[]};t.expectGroupStart();const n=[];do{const i=To(t,e);i&&n.push(i)}while(t.isMatch(","));return t.expectGroupEnd(),{type:"GeometryCollection",geometries:n}})(t,s)}}function So(t,e={emptyAsNull:!0}){return To(new bo(t),e)}const Ao={4326:"+proj=longlat +datum=WGS84 +ellps=WGS84 +no_defs",3857:"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0 +x_0=0 +y_0=0 +k=1.0 +units=m +no_defs",31370:"+proj=lcc +lat_1=51.166667 +lat_2=49.833333 +lat_0=90 +lon_0=4.367486666666667 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +units=m +no_defs",4258:"+proj=longlat +ellps=GRS80 +no_defs",3035:"+proj=laea +lat_0=52 +lon_0=10 +x_0=4321000 +y_0=3210000 +ellps=GRS80 +units=m +no_defs",25832:"+proj=utm +zone=32 +ellps=GRS80 +units=m +no_defs",25833:"+proj=utm +zone=33 +ellps=GRS80 +units=m +no_defs"};for(const[t,e]of Object.entries(Ao))mo.defs(`EPSG:${t}`,e);const Lo=new Map,Co=new Set,No=async t=>{const e=`EPSG:${String(t)}`;if(mo.defs(e))return;if(Co.has(e))return void console.debug(`Skipping previously failed SRID fetch for ${e}`);if(Lo.has(e))return Lo.get(e);const n=(async()=>{try{console.debug(`Fetching proj4 definition for ${e}`);const n=await fetch(`https://epsg.io/${t}.proj4`);if(n.ok){const i=await n.text();i&&!mo.defs(e)&&(mo.defs(e,i),console.debug(`Registered SRID ${t} with proj4: ${i}`))}else console.warn(`Failed to fetch proj4 definition for SRID ${t}, status: ${n.status}`),Co.add(e)}catch(e){console.error(`Error fetching proj4 definition for SRID ${t}:`,e)}finally{Lo.delete(e)}})();return Lo.set(e,n),n},Io={openStreetMap:ve.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap contributors"}),openTopoMap:ve.tileLayer("https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",{attribution:"© OpenTopoMap contributors"}),"ESRI World Imagery (Satellite)":ve.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"}),"CartoDB Voyager":ve.tileLayer("https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",{attribution:"© CartoDB"})},wo=async t=>{if(t.startsWith("<http://www.opengis.net/def/crs/EPSG/0/4326>"))return So(t,{proj:mo});if(t.startsWith("<http://www.opengis.net/def/crs/EPSG/0/")){const e=t.match(/^<http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)>\s*([\s\S]*)$/);if(e){const t=e[1],n=`SRID=${t};${e[2].trim()}`;return await No(t),So(n,{proj:mo})}}if(t.startsWith("SRID=")){const e=t.match(/^SRID=(\d+);/);if(e){const t=e[1];await No(t)}}return So(t,{proj:mo})},Ro={"http://www.opengis.net/ont/geosparql#wktLiteral":wo,"http://www.openlinksw.com/schemas/virtrdf#Geometry":wo,"http://www.opengis.net/ont/geosparql#geoJSONLiteral":JSON.parse},Po=async(t,e)=>({type:"FeatureCollection",features:await Promise.all(t.map(async t=>{const n=Ro[t[e].datatype];return{type:"Feature",properties:t,geometry:n?await n(t[e].value):null}}))});const Mo=class{constructor(t){this.yasr=t,this.priority=30,this.label="Geo",this.geometryColumns=[],this.updateColumns()}updateColumns(){const t=(this.yasr?.results?.json?.results?.bindings??[])[0]??{};this.geometryColumns=Object.keys(t).filter(e=>t[e].datatype&&Object.keys(Ro).includes(t[e].datatype)).map(e=>({colName:e,datatype:t[e].datatype}))}async draw(){this.updateColumns(),await this.updateMap()}async updateMap(){if(!this.container){this.container=document.createElement("div"),this.container.style.height="500px",this.container.style.width="100%";const t=ve.map(this.container,{center:[50+38/60+28/3600,4+40/60+5/3600],zoom:5});Io.openStreetMap.addTo(t);const e=ve.featureGroup().addTo(t);ve.control.layers(Io,{Results:e}).addTo(t),this.map=t,this.lg=e}this.yasr.resultsEl.appendChild(this.container),this.lg.clearLayers();for(const t of this.geometryColumns){const e=t.colName,n=await Po(this.yasr.results.json.results.bindings,e),i="#3388ff",r=ve.geoJson(n,{pointToLayer:(t,e)=>{const n=t.properties?.wktColor?.value||i;return ve.circleMarker(e,{radius:4,weight:2,color:n,fillColor:n,opacity:.7,fillOpacity:.5})},onEachFeature:(t,e)=>{const n=t.properties,i=n.wktLabel?.value||Object.keys(n).map(t=>`<b>${t}:</b> ${n[t].value.length>120?n[t].value.substring(0,120)+"...":n[t].value}`).join("<br/>");e.bindPopup(i),n.wktTooltip?.value&&e.bindTooltip(n.wktTooltip.value)},style:t=>{const e=t.properties?.wktColor?.value||i;return{color:e,fillColor:e,weight:2,opacity:.7,fillOpacity:.5}}});this.lg.addLayer(r),n.features&&n.features.length>0&&this.map.fitBounds(this.lg.getBounds(),{padding:[20,20],maxZoom:14})}setTimeout(()=>{this.map.invalidateSize(),this.map.fitBounds(this.lg.getBounds(),{padding:[20,20],maxZoom:14})},100)}getIcon(){const t=document.createElement("div");return t.innerHTML="🌍",t}canHandleResults(){return this.updateColumns(),this.geometryColumns&&this.geometryColumns.length>0}};function Oo(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ko(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ko(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ko(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function Do(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Do=function(){return!!t})()}__webpack_require__(6855),__webpack_require__(7392),y.default.registerPlugin("geo",Mo),window&&(E.default&&(window.Yasqe=E.default),y.default&&(window.Yasr=y.default));var Go=function(t){function s(t,n){var o,l,u;if((0,e.A)(this,s),o=function(t,e,n){return e=(0,r.A)(e),(0,i.A)(t,Do()?Reflect.construct(e,n||[],(0,r.A)(t).constructor):e.apply(t,n))}(this,s),o._tabs={},o.rootEl=document.createElement("div"),(0,_.iQ)(o.rootEl,"yasgui"),t.appendChild(o.rootEl),o.config=(0,a.A)({},s.defaults,n),o.persistentConfig=new b(o),o.tabElements=new me(o),o.tabPanelsEl=document.createElement("div"),o.rootEl.appendChild(o.tabElements.drawTabsList()),o.rootEl.appendChild(o.tabPanelsEl),o.config.populateFromUrl&&(u=Rt(ue.getDefaults(o)))){var c=o.findTabIdForConfig(u);if(c){var h=o.persistentConfig.getTab(c).yasr;o.persistentConfig.getTab(c).yasr={settings:u.yasr.settings,response:h.response},o.persistentConfig.setActive(c),h.response||(l=c)}else o.persistentConfig.setTab(u.id,"function"==typeof o.config.populateFromUrl?o.config.populateFromUrl(u):u),l=u.id}var p=o.persistentConfig.getTabs();if(!p.length&&o.config.autoAddOnInit){var d=o.addTab(!0);o.persistentConfig.setActive(d.getId()),o.emit("tabChange",o,d)}else{var f,g=Oo(p);try{for(g.s();!(f=g.n()).done;){var m=f.value;o._tabs[m]=new ue(o,o.persistentConfig.getTab(m)),o._registerTabListeners(o._tabs[m]),o.tabElements.drawTab(m)}}catch(t){g.e(t)}finally{g.f()}var v=o.persistentConfig.getActiveId();v&&(o.markTabSelected(v),l&&l===v&&o.getTab(v).query().catch(function(){}))}return o}return(0,o.A)(s,t),(0,n.A)(s,[{key:"hasFullscreen",value:function(t){t?(this.emit("fullscreen-enter",this),(0,_.iQ)(this.rootEl,"hasFullscreen")):(this.emit("fullscreen-leave",this),(0,_.vy)(this.rootEl,"hasFullscreen"))}},{key:"getStorageId",value:function(t,e){var n=e||this.config.persistenceId;if(n)return"string"==typeof n?n+"_"+t:n(this)+"_"+t}},{key:"createTabName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t||(t=this.config.tabName);var n=t+(e>0?" "+e:"");return this.tabNameTaken(n)&&(n=this.createTabName(t,e+1)),n}},{key:"tabNameTaken",value:function(t){return g(this._tabs,function(e){return e.getName()===t})}},{key:"getTab",value:function(t){if(t)return this._tabs[t];var e=this.persistentConfig.currentId();return e?this._tabs[e]:void 0}},{key:"markTabSelected",value:function(t){if(!this.persistentConfig.getTab(t))return!1;for(var e in this.tabElements.selectTab(t),this._tabs[t]||(this._tabs[t]=new ue(this,ue.getDefaults(this))),this._tabs[t].show(),this._tabs)e!==t&&this._tabs[e].hide();return!0}},{key:"selectTabId",value:function(t){var e=this.getTab();return e&&e.getId()!==t&&this.markTabSelected(t)&&(this.emit("tabSelect",this,t),this.persistentConfig.setActive(t)),e}},{key:"tabConfigEquals",value:function(t,e){var n,i,r,o,s,a=!0;for(s in t.requestConfig)t.requestConfig[s]&&(v(e.requestConfig[s],t.requestConfig[s])||(a=!1));return a&&(a=["endpoint","value"].every(function(n){return t.yasqe[n]===e.yasqe[n]})),a&&(a=t.yasr.settings.selectedPlugin===e.yasr.settings.selectedPlugin&&v(null===(n=t.yasr.settings.pluginsConfig)||void 0===n?void 0:n[(null===(i=t.yasr.settings)||void 0===i?void 0:i.selectedPlugin)||""],null===(r=e.yasr.settings.pluginsConfig)||void 0===r?void 0:r[(null===(o=e.yasr.settings)||void 0===o?void 0:o.selectedPlugin)||""])),a&&t.name===e.name}},{key:"findTabIdForConfig",value:function(t){var e=this;return this.persistentConfig.getTabs().find(function(n){var i=e.persistentConfig.getTab(n);return e.tabConfigEquals(i,t)})}},{key:"_registerTabListeners",value:function(t){var e=this;t.on("change",function(t){return e.emit("tabChange",e,t)}),t.on("query",function(t){return e.emit("query",e,t)}),t.on("queryBefore",function(t){return e.emit("queryBefore",e,t)}),t.on("queryAbort",function(t){return e.emit("queryAbort",e,t)}),t.on("queryResponse",function(t){return e.emit("queryResponse",e,t)}),t.on("autocompletionShown",function(t,n){return e.emit("autocompletionShown",e,t,n)}),t.on("autocompletionClose",function(t){return e.emit("autocompletionClose",e,t)})}},{key:"_setPanel",value:function(t,e){for(var n in this._tabs)n!==t&&this._tabs[n].hide();this.tabPanelsEl.appendChild(e)}},{key:"_removePanel",value:function(t){t&&this.tabPanelsEl.removeChild(t)}},{key:"addTab",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.A)({},ue.getDefaults(this),e);if(r.id&&this.getTab(r.id))throw new Error("Duplicate tab ID");if(this.config.copyEndpointOnNewTab&&!(null===(n=null==e?void 0:e.requestConfig)||void 0===n?void 0:n.endpoint)){var o=this.getTab();o&&(r.requestConfig.endpoint=o.getEndpoint())}if(i.avoidDuplicateTabs){var s=this.findTabIdForConfig(r);if(s)return this.selectTabId(s)}var l=r.id,u=i.atIndex;return this.persistentConfig.addToTabList(l,u),this.emit("tabAdd",this,l),this._tabs[l]=new ue(this,r),this.emit("tabChange",this,this._tabs[l]),this.tabElements.addTab(l,u),this._registerTabListeners(this._tabs[l]),t&&(this.persistentConfig.setActive(l),this._tabs[l].show()),this._tabs[l]}},{key:"restoreLastTab",value:function(){var t=this.persistentConfig.retrieveLastClosedTab();t&&this.addTab(!0,t.tab,{atIndex:t.index})}},{key:"destroy",value:function(){for(var t in this.removeAllListeners(),this.tabElements.destroy(),this._tabs){this._tabs[t].destroy()}for(this._tabs={};this.rootEl.firstChild;)this.rootEl.firstChild.remove()}}])}(s.EventEmitter);function Bo(){return Math.random().toString(36).substring(7)}Go.Tab=ue,Go.linkUtils=t,Go.Yasr=y.default,Go.Yasqe=E.default,Go.defaults={autofocus:!0,endpointInfo:void 0,persistenceId:function(t){var e="",n=t.rootEl;for(n.id&&(e=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(e=n.id);break}return"yagui_"+e},tabName:"Query",corsProxy:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",yasqe:E.default.defaults,yasr:y.default.defaults,endpointCatalogueOptions:{getData:function(){return[{endpoint:"https://dbpedia.org/sparql"},{endpoint:"https://query.wikidata.org/bigdata/namespace/wdq/sparql"}]},keys:[],renderItem:function(t,e){var n,i=document.createElement("div");i.style.display="flex",i.style.flexDirection="column";var r=document.createElement("span");r.innerHTML=(null===(n=t.matches.endpoint)||void 0===n?void 0:n.reduce(function(t,e){return e.highlight?t+e.text.bold():t+e.text},""))||"",i.appendChild(r),e.appendChild(i)}},copyEndpointOnNewTab:!0,populateFromUrl:!0,autoAddOnInit:!0,requestConfig:E.default.defaults.requestConfig,contextMenuContainer:void 0},Go.corsEnabled={};const jo=Go})(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__})());
|
|
3
|
+
//# sourceMappingURL=yasgui.min.js.map
|