SqlScratchpadWebComponent.js 1.8 MB

123
  1. /*! For license information please see SqlScratchpadWebComponent.js.LICENSE.txt */
  2. !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SqlScratchpadWebComponent=t():e.SqlScratchpadWebComponent=t()}(self,(function(){return(()=>{var e,t,n={664:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}!function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function e(t,n,r){"string"==typeof t?(2==arguments.length&&(r=n),e.modules[t]||(e.payloads[t]=r,e.modules[t]=null)):e.original?e.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,r=function(e,t,n){if("string"==typeof t){var r=s(e,t);if(null!=r)return n&&n(),r}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],a=0,c=t.length;a<c;++a){var l=s(e,t[a]);if(null==l&&i.original)return;o.push(l)}return n&&n.apply(null,o)||!0}},i=function e(t,n){var i=r("",t,n);return null==i&&e.original?e.original.apply(this,arguments):i},o=function e(t,n){if(-1!==n.indexOf("!")){var r=n.split("!");return e(t,r[0])+"!"+e(t,r[1])}if("."==n.charAt(0))for(n=t.split("/").slice(0,-1).join("/")+"/"+n;-1!==n.indexOf(".")&&i!=n;){var i=n;n=n.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return n},s=function(e,n){n=o(e,n);var i=t.modules[n];if(!i){if("function"==typeof(i=t.payloads[n])){var s={},a={id:n,uri:"",exports:s,packaged:!0};s=i((function(e,t){return r(n,e,t)}),s,a)||a.exports,t.modules[n]=s,delete t.payloads[n]}i=t.modules[n]=s||i}return i};n=e,"ace"&&(e.ace||(e.ace={}),n=e.ace),n.define&&n.define.packaged||(t.original=n.define,n.define=t,n.define.packaged=!0),n.require&&n.require.packaged||(i.original=n.require,n.require=i,n.require.packaged=!0)}(),ace.define("ace/lib/regexp",["require","exports","module"],(function(e,t,n){"use strict";var r,i={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},o=void 0===i.exec.call(/()??/,"")[1],s=(r=/^/g,i.test.call(r,""),!r.lastIndex);function a(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function c(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var r=n||0;r<e.length;r++)if(e[r]===t)return r;return-1}s&&o||(RegExp.prototype.exec=function(e){var t,n,r=i.exec.apply(this,arguments);if("string"==typeof e&&r){if(!o&&r.length>1&&c(r,"")>-1&&(n=RegExp(this.source,i.replace.call(a(this),"g","")),i.replace.call(e.slice(r.index),n,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(r[e]=void 0)}))),this._xregexp&&this._xregexp.captureNames)for(var l=1;l<r.length;l++)(t=this._xregexp.captureNames[l-1])&&(r[t]=r[l]);!s&&this.global&&!r[0].length&&this.lastIndex>r.index&&this.lastIndex--}return r},s||(RegExp.prototype.test=function(e){var t=i.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function i(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=p.call(arguments,1),r=function r(){if(this instanceof r){var i=t.apply(this,n.concat(p.call(arguments)));return Object(i)===i?i:this}return t.apply(e,n.concat(p.call(arguments)))};return t.prototype&&(i.prototype=t.prototype,r.prototype=new i,i.prototype=null),r});var o,s,a,c,l,u=Function.prototype.call,h=Array.prototype,d=Object.prototype,p=h.slice,f=u.bind(d.toString),g=u.bind(d.hasOwnProperty);if((l=g(d,"__defineGetter__"))&&(o=u.bind(d.__defineGetter__),s=u.bind(d.__defineSetter__),a=u.bind(d.__lookupGetter__),c=u.bind(d.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var m=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?m.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(p.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):null==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=p.call(arguments,2),o=i.length;if(e===n)o&&this.push.apply(this,i);else{var s=Math.min(t,n-e),a=e+s,c=a+o-s,l=n-a,u=n-s;if(c<a)for(var h=0;h<l;++h)this[c+h]=this[a+h];else if(c>a)for(h=l;h--;)this[c+h]=this[a+h];if(o&&e===u)this.length=u,this.push.apply(this,i);else for(this.length=u+o,h=0;h<o;++h)this[e+h]=i[h]}return r};Array.isArray||(Array.isArray=function(e){return"[object Array]"==f(e)});var E,y,v=Object("a"),b="a"!=v[0]||!(0 in v);function A(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=k(this),n=b&&"[object String]"==f(this)?this.split(""):t,r=arguments[1],i=-1,o=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError;for(;++i<o;)i in n&&e.call(r,n[i],i,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=k(this),n=b&&"[object String]"==f(this)?this.split(""):t,r=n.length>>>0,i=Array(r),o=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var s=0;s<r;s++)s in n&&(i[s]=e.call(o,n[s],s,t));return i}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,n=k(this),r=b&&"[object String]"==f(this)?this.split(""):n,i=r.length>>>0,o=[],s=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var a=0;a<i;a++)a in r&&(t=r[a],e.call(s,t,a,n)&&o.push(t));return o}),Array.prototype.every||(Array.prototype.every=function(e){var t=k(this),n=b&&"[object String]"==f(this)?this.split(""):t,r=n.length>>>0,i=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var o=0;o<r;o++)if(o in n&&!e.call(i,n[o],o,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=k(this),n=b&&"[object String]"==f(this)?this.split(""):t,r=n.length>>>0,i=arguments[1];if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");for(var o=0;o<r;o++)if(o in n&&e.call(i,n[o],o,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=k(this),n=b&&"[object String]"==f(this)?this.split(""):t,r=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,o=0;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o++];break}if(++o>=r)throw new TypeError("reduce of empty array with no initial value")}for(;o<r;o++)o in n&&(i=e.call(void 0,i,n[o],o,t));return i}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=k(this),n=b&&"[object String]"==f(this)?this.split(""):t,r=n.length>>>0;if("[object Function]"!=f(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,o=r-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(o in n){i=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}do{o in this&&(i=e.call(void 0,i,n[o],o,t))}while(o--);return i}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=b&&"[object String]"==f(this)?this.split(""):k(this),n=t.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=O(arguments[1])),r=r>=0?r:Math.max(0,n+r);r<n;r++)if(r in t&&t[r]===e)return r;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=b&&"[object String]"==f(this)?this.split(""):k(this),n=t.length>>>0;if(!n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,O(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:d)}),Object.getOwnPropertyDescriptor||(Object.getOwnPropertyDescriptor=function(e,t){if("object"!=r(e)&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(g(e,t)){var n;if(n={enumerable:!0,configurable:!0},l){var i=e.__proto__;e.__proto__=d;var o=a(e,t),s=c(e,t);if(e.__proto__=i,o||s)return o&&(n.get=o),s&&(n.set=s),n}return n.value=e[t],n}}),Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create||(E=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=E();else{if("object"!=r(e))throw new TypeError("typeof prototype["+r(e)+"] != 'object'");var i=function(){};i.prototype=e,(n=new i).__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n}),Object.defineProperty){var T=A({}),C="undefined"==typeof document||A(document.createElement("div"));if(!T||!C)var R=Object.defineProperty}Object.defineProperty&&!R||(Object.defineProperty=function(e,t,n){if("object"!=r(e)&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=r(n)&&"function"!=typeof n||null===n)throw new TypeError("Property description must be an object: "+n);if(R)try{return R.call(Object,e,t,n)}catch(e){}if(g(n,"value"))if(l&&(a(e,t)||c(e,t))){var i=e.__proto__;e.__proto__=d,delete e[t],e[t]=n.value,e.__proto__=i}else e[t]=n.value;else{if(!l)throw new TypeError("getters & setters can not be defined on this javascript engine");g(n,"get")&&o(e,t,n.get),g(n,"set")&&s(e,t,n.set)}return e}),Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)g(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(e){Object.freeze=(y=Object.freeze,function(e){return"function"==typeof e?e:y(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";g(e,t);)t+="?";e[t]=!0;var n=g(e,t);return delete e[t],n}),!Object.keys){var S=!0,_=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],x=_.length;for(var w in{toString:null})S=!1;Object.keys=function(e){if("object"!=r(e)&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)g(e,n)&&t.push(n);if(S)for(var i=0,o=x;i<o;i++){var s=_[i];g(e,s)&&t.push(s)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var I="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff";if(!String.prototype.trim||I.trim()){I="["+I+"]";var N=new RegExp("^"+I+I+"*"),L=new RegExp(I+I+"*$");String.prototype.trim=function(){return String(this).replace(N,"").replace(L,"")}}function O(e){return(e=+e)!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}var k=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){"use strict";e("./regexp"),e("./es5-shim")})),ace.define("ace/lib/dom",["require","exports","module"],(function(e,t,n){"use strict";t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.hasCssClass=function(e,t){return-1!==(e.className||"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var r=n.indexOf(t);if(-1==r)break;n.splice(r,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),r=!0;;){var i=n.indexOf(t);if(-1==i)break;r=!1,n.splice(i,1)}return r&&n.push(t),e.className=n.join(" "),r},t.setCssClass=function(e,n,r){r?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,r=0;if((t=t||document).createStyleSheet&&(n=t.styleSheets)){for(;r<n.length;)if(n[r++].owningElement.id===e)return!0}else if(n=t.getElementsByTagName("style"))for(;r<n.length;)if(n[r++].id===e)return!0;return!1},t.importCssString=function(e,n,r){if(r=r||document,n&&t.hasCssString(n,r))return null;var i;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */"),r.createStyleSheet?((i=r.createStyleSheet()).cssText=e,n&&(i.owningElement.id=n)):((i=t.createElement("style")).appendChild(r.createTextNode(e)),n&&(i.id=n),t.getDocumentHead(r).appendChild(i))},t.importCssStylsheet=function(e,n){if(n.createStyleSheet)n.createStyleSheet(e);else{var r=t.createElement("link");r.rel="stylesheet",r.href=e,t.getDocumentHead(n).appendChild(r)}},t.getInnerWidth=function(e){return parseInt(t.computedStyle(e,"paddingLeft"),10)+parseInt(t.computedStyle(e,"paddingRight"),10)+e.clientWidth},t.getInnerHeight=function(e){return parseInt(t.computedStyle(e,"paddingTop"),10)+parseInt(t.computedStyle(e,"paddingBottom"),10)+e.clientHeight},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var r=t.createElement("ace_outer"),i=r.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",r.appendChild(n);var o=e.documentElement;o.appendChild(r);var s=n.offsetWidth;i.overflow="scroll";var a=n.offsetWidth;return s==a&&(a=r.clientWidth),o.removeChild(r),s-a},"undefined"!=typeof document?(void 0!==window.pageYOffset?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:t.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},t.setInnerHtml=function(e,t){var n=e.cloneNode(!1);return n.innerHTML=t,e.parentNode.replaceChild(n,e),n},"textContent"in document.documentElement?(t.setInnerText=function(e,t){e.textContent=t},t.getInnerText=function(e){return e.textContent}):(t.setInnerText=function(e,t){e.innerText=t},t.getInnerText=function(e){return e.innerText}),t.getParentWindow=function(e){return e.defaultView||e.parentWindow}):t.importCssString=function(){}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],(function(e,t,n){"use strict";e("./fixoldbrowsers");var r=e("./oop"),i=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},"object"==("undefined"==typeof navigator?"undefined":r(navigator))){var i=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),o=navigator.userAgent;t.isWin="win"==i,t.isMac="mac"==i,t.isLinux="linux"==i,t.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((o.match(/rv\:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isAIR=o.indexOf("AdobeAIR")>=0,t.isIPad=o.indexOf("iPad")>=0,t.isTouchPad=o.indexOf("TouchPad")>=0,t.isChromeOS=o.indexOf(" CrOS ")>=0}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("./keys"),o=e("./useragent"),s=null,a=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var r=function(){n.call(e,window.event)};n._wrapper=r,e.attachEvent("on"+t,r)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||o.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,r){function i(e){n&&n(e),r&&r(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",i,!0),t.removeListener(document,"dragstart",i,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",i,!0),t.addListener(document,"dragstart",i,!0),i},t.addTouchMoveListener=function(e,n){var r,i;"ontouchmove"in e&&(t.addListener(e,"touchstart",(function(e){var t=e.changedTouches[0];r=t.clientX,i=t.clientY})),t.addListener(e,"touchmove",(function(e){var t=e.changedTouches[0];e.wheelX=-(t.clientX-r)/1,e.wheelY=-(t.clientY-i)/1,r=t.clientX,i=t.clientY,n(e)})))},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",(function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),n(e)})):"onwheel"in e?t.addListener(e,"wheel",(function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}n(e)})):t.addListener(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)}))},t.addMultiMouseDownListener=function(e,n,r,i){var s,a,c,l=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};t.addListener(e,"mousedown",(function(e){if(0!==t.getButton(e)?l=0:e.detail>1?++l>4&&(l=1):l=1,o.isIE){var h=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-a)>5;c&&!h||(l=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),1==l&&(s=e.clientX,a=e.clientY)}if(e._clicks=l,r[i]("mousedown",e),l>4)l=0;else if(l>1)return r[i](u[l],e)})),o.isOldIE&&t.addListener(e,"dblclick",(function(e){l=2,c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),r[i]("mousedown",e),r[i](u[l],e)}))};var c=o.isMac&&o.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function l(e,t,n){var r=c(t);if(!o.isMac&&s){if(s.OSKey&&(r|=8),s.altGr){if(3==(3&r))return;s.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;17===n&&1===l?1==s[n]&&(a=t.timeStamp):18===n&&3===r&&2===l&&t.timeStamp-a<50&&(s.altGr=!0)}}if(n in i.MODIFIER_KEYS&&(n=-1),8&r&&n>=91&&n<=93&&(n=-1),r||13!==n||3!==(l="location"in t?t.location:t.keyLocation)||(e(t,r,-n),!t.defaultPrevented)){if(o.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,r,n)}}function u(){(s=Object.create(null)).count=0,s.lastT=0}t.getModifierString=function(e){return i.KEY_MODS[c(e)]},t.addCommandKeyListener=function(e,n){var r=t.addListener;if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var i=null;r(e,"keydown",(function(e){i=e.keyCode})),r(e,"keypress",(function(e){return l(n,e,i)}))}else{var a=null;r(e,"keydown",(function(e){var t=e.keyCode;s[t]=(s[t]||0)+1,91==t||92==t?s.OSKey=!0:s.OSKey&&e.timeStamp-s.lastT>200&&1==s.count&&u(),1==s[t]&&s.count++,s.lastT=e.timeStamp;var r=l(n,e,t);return a=e.defaultPrevented,r})),r(e,"keypress",(function(e){a&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),a=null)})),r(e,"keyup",(function(e){var t=e.keyCode;s[t]?s.count=Math.max(s.count-1,0):u(),91!=t&&92!=t||(s.OSKey=!1),s[t]=null})),s||(u(),r(window,"focus",u))}},"object"==("undefined"==typeof window?"undefined":r(window))&&window.postMessage&&!o.isOldIE&&(t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-1";t.addListener(n,"message",(function i(o){o.data==r&&(t.stopPropagation(o),t.removeListener(n,"message",i),e())})),n.postMessage(r,"*")}),t.nextFrame="object"==("undefined"==typeof window?"undefined":r(window))&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var i=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(i,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&"object"==r(e[n])?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!==r(t)||!t)return t;var n;if(Array.isArray(t)){n=[];for(var i=0;i<t.length;i++)n[i]=e(t[i]);return n}var o=t.constructor;if(o===RegExp)return t;for(var i in n=o(),t)n[i]=e(t[i]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function e(r){return e.cancel(),t=setTimeout(n,r||0),e};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("../lib/dom"),s=e("../lib/lang"),a=i.isChrome<18,c=i.isIE;t.TextInput=function(e,t){var n=o.createElement("textarea");n.className="ace_text-input",i.isTouchPad&&n.setAttribute("x-palm-disable-auto-cap",!0),n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",i.isOldIE&&(n.style.top="-1000px"),e.insertBefore(n,e.firstChild);var l="\u2028\u2028",u=!1,h=!1,d=!1,p="",f=!0;try{var g=document.activeElement===n}catch(e){}r.addListener(n,"blur",(function(e){t.onBlur(e),g=!1})),r.addListener(n,"focus",(function(e){g=!0,t.onFocus(e),y()})),this.focus=function(){if(p)return n.focus();var e=n.style.top;n.style.position="fixed",n.style.top="-1000px",n.focus(),setTimeout((function(){n.style.position="","-1000px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return g};var m=s.delayedCall((function(){g&&y(f)})),E=s.delayedCall((function(){d||(n.value=l,g&&y())}));function y(e){if(!d){if(d=!0,S)t=0,r=e?0:n.value.length-1;else var t=e?2:1,r=2;try{n.setSelectionRange(t,r)}catch(e){}d=!1}}function v(){d||(n.value=l,i.isWebKit&&E.schedule())}i.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=f&&(f=!f,m.schedule())})),v(),g&&t.onFocus();var b=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length};if(!n.setSelectionRange&&n.createTextRange&&(n.setSelectionRange=function(e,t){var n=this.createTextRange();n.collapse(!0),n.moveStart("character",e),n.moveEnd("character",t),n.select()},b=function(e){try{var t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&t.text==e.value}),i.isOldIE){var A=!1,T=function(e){if(!A){var t=n.value;if(!d&&t&&t!=l){if(e&&t==l[0])return C.schedule();x(t),A=!0,v(),A=!1}}},C=s.delayedCall(T);r.addListener(n,"propertychange",T);var R={13:1,27:1};r.addListener(n,"keyup",(function(e){if(!d||n.value&&!R[e.keyCode]||setTimeout(P,0),(n.value.charCodeAt(0)||0)<129)return C.call();d?M():F()})),r.addListener(n,"keydown",(function(e){C.schedule(50)}))}var S=null;this.setInputHandler=function(e){S=e},this.getInputHandler=function(){return S};var _=!1,x=function(e){S&&(e=S(e),S=null),h?(y(),e&&t.onPaste(e),h=!1):e==l.charAt(0)?_?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==l?e=e.substr(2):e.charAt(0)==l.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==l.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==l.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),_&&(_=!1)},w=function(e){if(!d){var t=n.value;x(t),v()}},I=function(e,n){if(void 0!==t.middleClick&&t.middleClick)return t.getSelectedText()||" ";var r=e.clipboardData||window.clipboardData;if(r&&!a){var i=c?"Text":"text/plain";return n?!1!==r.setData(i,n):r.getData(i)}},N=function(e,i){var o=t.getCopyText();if(!o)return r.preventDefault(e);I(e,o)?(i?t.onCut():t.onCopy(),r.preventDefault(e)):(u=!0,n.value=o,n.select(),setTimeout((function(){u=!1,v(),y(),i?t.onCut():t.onCopy()})))},L=function(e){N(e,!0)},O=function(e){N(e,!1)},k=function(e){var o=I(e);"string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(y),r.preventDefault(e)):(n.value="",h=!0)};r.addCommandKeyListener(n,t.onCommandKey.bind(t)),r.addListener(n,"select",(function(e){u?u=!1:b(n)?(t.selectAll(),y()):S&&y(t.selection.isEmpty())})),r.addListener(n,"input",w),r.addListener(n,"cut",L),r.addListener(n,"copy",O),r.addListener(n,"paste",k),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",(function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:O(e);break;case 86:k(e);break;case 88:L(e)}}));var D,F=function(e){d||!t.onCompositionStart||t.$readOnly||(d={},t.onCompositionStart(),setTimeout(M,0),t.on("mousedown",P),t.selection.isEmpty()||(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())},M=function(){if(d&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\u2028/g,"");if(d.lastValue!==e&&(t.onCompositionUpdate(e),d.lastValue&&t.undo(),d.lastValue=e,d.lastValue)){var r=t.selection.getRange();t.insert(d.lastValue),t.session.markUndoGroup(),d.range=t.selection.getRange(),t.selection.setRange(r),t.selection.clearSelection()}}},P=function e(r){if(t.onCompositionEnd&&!t.$readOnly){var o=d;d=!1;var s=setTimeout((function(){s=null;var e=n.value.replace(/\u2028/g,"");d||(e==o.lastValue?v():!o.lastValue&&e&&(v(),x(e)))}));S=function(e){return s&&clearTimeout(s),(e=e.replace(/\u2028/g,""))==o.lastValue?"":(o.lastValue&&s&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",e),"compositionend"==r.type&&o.range&&t.selection.setRange(o.range),(i.isChrome&&i.isChrome>=53||i.isWebKit&&i.isWebKit>=603)&&w()}},B=s.delayedCall(M,50);function U(){clearTimeout(D),D=setTimeout((function(){p&&(n.style.cssText=p,p=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),i.isOldIE?200:0)}r.addListener(n,"compositionstart",F),i.isGecko?r.addListener(n,"text",(function(){B.schedule()})):(r.addListener(n,"keyup",(function(){B.schedule()})),r.addListener(n,"keydown",(function(){B.schedule()}))),r.addListener(n,"compositionend",P),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){_=!0,y(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,s){if(s||!i.isOldIE){p||(p=n.style.cssText),n.style.cssText=(s?"z-index:100000;":"")+"height:"+n.style.height+";"+(i.isIE?"opacity:0.1;":"");var a=t.container.getBoundingClientRect(),c=o.computedStyle(t.container),l=a.top+(parseInt(c.borderTopWidth)||0),u=a.left+(parseInt(a.borderLeftWidth)||0),h=a.bottom-l-n.clientHeight-2,d=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,h)+"px"};d(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),i.isWin&&!i.isOldIE&&r.capture(t.container,d,U))}},this.onContextMenuClose=U;var $=function(e){t.textInput.onContextMenu(e),U()};r.addListener(t.renderer.scroller,"contextmenu",$),r.addListener(n,"contextmenu",$)}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";e("../lib/dom"),e("../lib/event");var r=e("../lib/useragent");function i(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function o(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();if(0!==o){var s=i.getSelectionRange().isEmpty();return i.$blockScrolling++,(s||1==o)&&i.selection.moveToPosition(n),i.$blockScrolling--,void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;n.$blockScrolling++,this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"),n.$blockScrolling--},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var i=o(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(n.$blockScrolling++,this.$clickSelection){var s=this.$clickSelection.comparePoint(i.start),a=this.$clickSelection.comparePoint(i.end);if(-1==s&&a<=0)t=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==a&&s>=0)t=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==s&&1==a)r=i.end,t=i.start;else{var c=o(this.$clickSelection,r);r=c.cursor,t=c.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.$blockScrolling--,n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,n,r,i=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,r=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))),o=Date.now();(i>0||o-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=e.domEvent.timeStamp,n=t-(this.$lastScrollTime||0),r=this.editor;return r.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed)||n<200?(this.$lastScrollTime=t,r.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){var t=e.domEvent.timeStamp,n=t-(this.$lastScrollTime||0),r=this.editor;if(r.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed)||n<200)return this.$lastScrollTime=t,r.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()}}).call(i.prototype),t.DefaultHandlers=i})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");function i(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){r.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth}}).call(i.prototype),t.Tooltip=i})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/event"),s=e("../tooltip").Tooltip;function a(e){s.call(this,e)}i.inherits(a,s),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();(e+=15)+i>n&&(e-=e+i-n),(t+=15)+o>r&&(t-=20+o),s.prototype.setPosition.call(this,e,t)}}.call(a.prototype),t.GutterHandler=function(e){var t,n,i,s=e.editor,c=s.renderer.$gutterLayer,l=new a(s.container);function u(){t&&(t=clearTimeout(t)),i&&(l.hide(),i=null,s.removeEventListener("mousewheel",u))}function h(e){l.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(s.isFocused()&&0==t.getButton()&&"foldWidgets"!=c.getRegion(t)){var n=t.getDocumentPosition().row,r=s.session.selection;if(t.getShiftKey())r.selectTo(n,0);else{if(2==t.domEvent.detail)return s.selectAll(),t.preventDefault();e.$clickSelection=s.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(r.hasCssClass(a,"ace_fold-widget"))return u();i&&e.$tooltipFollowsMouse&&h(o),n=o,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row,r=c.$annotations[t];if(!r)return u();if(t==s.session.getLength()){var o=s.renderer.pixelToScreenCoordinates(0,n.y).row,a=n.$pos;if(o>s.session.documentToScreenRow(a.row,a.column))return u()}if(i!=r)if(i=r.text.join("<br/>"),l.setHtml(i),l.show(),s.on("mousewheel",u),e.$tooltipFollowsMouse)h(n);else{var d=n.domEvent.target.getBoundingClientRect(),p=l.getElement().style;p.left=d.right+"px",p.top=d.bottom+"px"}}():u()}),50))})),o.addListener(s.renderer.$gutter,"mouseout",(function(e){n=null,i&&!t&&(t=setTimeout((function(){t=null,u()}),50))})),s.on("changeSession",u)}})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent");function s(e){var t=e.editor,n=r.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;"),["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var s,c,l,u,h,d,p,f,g,m,E,y=t.container,v=0;function b(){var e=d;(function(e,n){var r=Date.now(),i=!n||e.row!=n.row,o=!n||e.column!=n.column;!m||i||o?(t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,m=r,E={x:c,y:l}):a(E.x,E.y,c,l)>5?m=null:r-m>=200&&(t.renderer.scrollCursorIntoView(),m=null)})(d=t.renderer.screenToTextCoordinates(c,l),e),function(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),a={x:{left:c-s.left,right:s.right-c},y:{top:l-s.top,bottom:s.bottom-l}},u=Math.min(a.x.left,a.x.right),h=Math.min(a.y.top,a.y.bottom),d={row:e.row,column:e.column};u/o<=2&&(d.column+=a.x.left<a.x.right?-3:2),h/i<=1&&(d.row+=a.y.top<a.y.bottom?-1:1);var p=e.row!=d.row,f=e.column!=d.column,m=!n||e.row!=n.row;p||f&&!m?g?r-g>=200&&t.renderer.scrollCursorIntoView(d):g=r:g=null}(d,e)}function A(){h=t.selection.toOrientedRange(),s=t.session.addMarker(h,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(u),b(),u=setInterval(b,20),v=0,i.addListener(document,"mousemove",R)}function T(){clearInterval(u),t.session.removeMarker(s),s=null,t.$blockScrolling+=1,t.selection.fromOrientedRange(h),t.$blockScrolling-=1,t.isFocused()&&!f&&t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()),h=null,d=null,v=0,g=null,m=null,i.removeListener(document,"mousemove",R)}this.onDragStart=function(e){if(this.cancelDrag||!y.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}h=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",o.isOpera&&(t.container.appendChild(n),n.scrollTop=0),i.setDragImage&&i.setDragImage(n,0,0),o.isOpera&&t.container.removeChild(n),i.clearData(),i.setData("Text",t.session.getTextRange()),f=!0,this.setState("drag")},this.onDragEnd=function(e){if(y.draggable=!1,f=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;p||"move"!=n||t.session.remove(t.getSelectionRange()),t.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return c=e.clientX,l=e.clientY,s||A(),v++,e.dataTransfer.dropEffect=p=_(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&S(e.dataTransfer))return c=e.clientX,l=e.clientY,s||(A(),v++),null!==C&&(C=null),e.dataTransfer.dropEffect=p=_(e),i.preventDefault(e)},this.onDragLeave=function(e){if(--v<=0&&s)return T(),p=null,i.preventDefault(e)},this.onDrop=function(e){if(d){var n=e.dataTransfer;if(f)switch(p){case"move":h=h.contains(d.row,d.column)?{start:d,end:d}:t.moveText(h,d);break;case"copy":h=t.moveText(h,d,!0)}else{var r=n.getData("Text");h={start:d,end:t.session.insert(d,r)},t.focus(),p=null}return T(),i.preventDefault(e)}},i.addListener(y,"dragstart",this.onDragStart.bind(e)),i.addListener(y,"dragend",this.onDragEnd.bind(e)),i.addListener(y,"dragenter",this.onDragEnter.bind(e)),i.addListener(y,"dragover",this.onDragOver.bind(e)),i.addListener(y,"dragleave",this.onDragLeave.bind(e)),i.addListener(y,"drop",this.onDrop.bind(e));var C=null;function R(){null==C&&(C=setTimeout((function(){null!=C&&s&&T()}),20))}function S(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function _(e){var t=["copy","copymove","all","uninitialized"],n=o.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var i="none";return n&&t.indexOf(r)>=0?i="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?i="move":t.indexOf(r)>=0&&(i="copy"),i}}function a(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=o.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;o.isIE&&"dragReady"==this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop(),"dragWait"===this.state&&a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton();if(1===(e.domEvent.detail||1)&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var i=e.domEvent.target||e.domEvent.srcElement;"unselectable"in i&&(i.unselectable="on"),t.getDragDelay()?(o.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(s.prototype),t.DragdropHandler=s})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=r.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var i={},o=function(){this.propagationStopped=!0},s=function(){this.defaultPrevented=!0};i._emit=i._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],i=this._defaultHandlers[e];if(n.length||i){"object"==r(t)&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=o),t.preventDefault||(t.preventDefault=s),n=n.slice();for(var a=0;a<n.length&&(n[a](t,this),!t.propagationStopped);a++);return i&&!t.defaultPrevented?i(t,this):void 0}},i._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},i.once=function(e,t){var n=this;t&&this.addEventListener(e,(function r(){n.removeEventListener(e,r),t.apply(null,arguments)}))},i.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var o=i.indexOf(t);-1!=o&&i.splice(o,1)}n[e]=t},i.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)n[e],r&&this.setDefaultHandler(e,r.pop());else if(r){var i=r.indexOf(t);-1!=i&&r.splice(i,1)}}},i.on=i.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},i.off=i.removeListener=i.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},i.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=i})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var i=e("./oop"),o=e("./event_emitter").EventEmitter,s={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return a('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:a('misspelled option "'+e+'"')}};function a(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function c(e,t){var n=new Error(e);n.data=t,"object"==("undefined"==typeof console?"undefined":r(console))&&console.error&&console.error(n),setTimeout((function(){throw n}))}var l=function(){this.$defaultOptions={}};(function(){i.implement(this,o),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var r=n[t];"string"==typeof r&&(r={forwardTo:r}),r.name||(r.name=t),e.$options[r.name]=r,"initialValue"in r&&(e["$"+r.name]=r.initialValue)})),i.implement(e,s),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){var r=this.$defaultOptions[e]||(this.$defaultOptions[e]={});r[t]&&(r.forwardTo?this.setDefaultValue(r.forwardTo,t,n):r[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=a,this.reportError=c}).call(l.prototype),t.AppConfig=l})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(e,t,r){var i=e("./lib/lang"),o=(e("./lib/oop"),e("./lib/net")),s=e("./lib/app_config").AppConfig;r.exports=t=new s;var a=function(){return this||"undefined"!=typeof window&&window}(),c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};function l(i){if(a&&a.document){c.packaged=i||e.packaged||r.packaged||a.define&&n.amdD.packaged;for(var o,s={},l="",u=document.currentScript||document._currentScript,h=(u&&u.ownerDocument||document).getElementsByTagName("script"),d=0;d<h.length;d++){var p=h[d],f=p.src||p.getAttribute("src");if(f){for(var g=p.attributes,m=0,E=g.length;m<E;m++){var y=g[m];0===y.name.indexOf("data-ace-")&&(s[(o=y.name.replace(/^data-ace-/,""),o.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=y.value)}var v=f.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);v&&(l=v[1])}}for(var b in l&&(s.base=s.base||l,s.packaged=!0),s.basePath=s.base,s.workerPath=s.workerPath||s.base,s.modePath=s.modePath||s.base,s.themePath=s.themePath||s.base,delete s.base,s)void 0!==s[b]&&t.set(b,s[b])}}t.get=function(e){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return c[e]},t.set=function(e,t){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);c[e]=t},t.all=function(){return i.copyObject(c)},t.moduleUrl=function(e,t){if(c.$moduleUrls[e])return c.$moduleUrls[e];var n=e.split("/"),r="snippets"==(t=t||n[n.length-2]||"")?"/":"-",i=n[n.length-1];if("worker"==t&&"-"==r){var o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");i=i.replace(o,"")}(!i||i==t)&&n.length>1&&(i=n[n.length-2]);var s=c[t+"Path"];return null==s?s=c.basePath:"/"==r&&(t=r=""),s&&"/"!=s.slice(-1)&&(s+="/"),s+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var i,s;Array.isArray(n)&&(s=n[0],n=n[1]);try{i=e(n)}catch(e){}if(i&&!t.$loading[n])return r&&r(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var a=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return a();o.loadScript(t.moduleUrl(n,s),a)}},l(!0),t.init=l})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,s=e("./default_gutter_handler").GutterHandler,a=e("./mouse_event").MouseEvent,c=e("./dragdrop_handler").DragdropHandler,l=e("../config"),u=function(e){var t=this;this.editor=e,new o(this),new s(this),new c(this);var n=function(t){document.hasFocus&&document.hasFocus()||window.focus(),e.focus(),e.isFocused()||window.focus()},a=e.renderer.getMouseEventTarget();r.addListener(a,"click",this.onMouseEvent.bind(this,"click")),r.addListener(a,"mousemove",this.onMouseMove.bind(this,"mousemove")),r.addMultiMouseDownListener(a,[400,300,250],this,"onMouseEvent"),e.renderer.scrollBarV&&(r.addMultiMouseDownListener(e.renderer.scrollBarV.inner,[400,300,250],this,"onMouseEvent"),r.addMultiMouseDownListener(e.renderer.scrollBarH.inner,[400,300,250],this,"onMouseEvent"),i.isIE&&(r.addListener(e.renderer.scrollBarV.element,"mousedown",n),r.addListener(e.renderer.scrollBarH.element,"mousedown",n))),r.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel")),r.addTouchMoveListener(e.container,this.onTouchMove.bind(this,"touchmove"));var l=e.renderer.$gutter;r.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),r.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick")),r.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),r.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),r.addListener(a,"mousedown",n),r.addListener(l,"mousedown",(function(t){return e.focus(),r.preventDefault(t)})),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var r=e.renderer.screenToTextCoordinates(n.x,n.y),i=e.session.selection.getRange(),o=e.renderer;!i.isEmpty()&&i.insideStart(r.row,r.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}))};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new a(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new a(t,this.editor))},this.onMouseWheel=function(e,t){var n=new a(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.onTouchMove=function(e,t){var n=new a(t,this.editor);n.speed=1,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor.renderer;n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=null);var o=this,s=function(e){if(e){if(i.isWebKit&&!e.which&&o.releaseMouse)return o.releaseMouse();o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new a(e,o.editor),o.$mouseMoved=!0}},c=function(e){clearInterval(u),l(),o[o.state+"End"]&&o[o.state+"End"](e),o.state="",null==n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=!0,n.$moveTextAreaToCursor()),o.isMousePressed=!1,o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent("mouseup",e)},l=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(i.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));o.$onCaptureMouseMove=s,o.releaseMouse=r.capture(this.editor.container,s,c);var u=setInterval(l,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&r.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)}}).call(u.prototype),l.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module"],(function(e,t,n){"use strict";t.FoldHandler=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),r=e.session,i=r.getFoldAt(n.row,n.column,1);i&&(t.getAccelKey()?r.removeFold(i):r.expandFold(i),t.stop())})),e.on("gutterclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session;r.foldWidgets&&r.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session,i=r.getParentFoldRangeData(n,!0),o=i.range||i.firstRange;if(o){n=o.start.row;var s=r.getFoldAt(n,r.getLine(n).length,1);s?r.removeFold(s):(r.addFold("...",o),e.renderer.scrollCursorIntoView({row:o.start.row,column:0}))}t.stop()}}))}})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/event"),o=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,r){for(var o,s=!1,a=this.$editor.commands,c=this.$handlers.length;c--&&!((o=this.$handlers[c].handleKeyboard(this.$data,e,t,n,r))&&o.command&&((s="null"==o.command||a.exec(o.command,this.$editor,o.args,r))&&r&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&i.stopEvent(r),s)););return s||-1!=e||(o={command:"insertstring"},s=a.exec("insertstring",this.$editor,t)),s&&this.$editor._signal("keyboardActivity",o),s},this.onCommandKey=function(e,t,n){var i=r.keyCodeToString(n);this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(o.prototype),t.KeyBinding=o})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==r(e)?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==r(e)?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else this.end.row<e&&(n={row:e,column:0});if(this.start.row>t)var r={row:t+1,column:0};else this.start.row<e&&(r={row:e,column:0});return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var r={row:e,column:t};else var o={row:e,column:t};return i.fromPoints(r||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",(function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.selectionAnchor.on("change",(function(){t.$isEmpty||t._emit("changeSelection")}))};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),n=this.getSelectionLead(),r=this.isBackwards();r&&0===t.column||this.setSelectionAnchor(t.row,t.column+e),(r||0!==n.column)&&this.$moveSelection((function(){this.moveCursorTo(n.row,n.column+e)}))}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?s.fromPoints(t,t):this.isBackwards()?s.fromPoints(t,e):s.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new s(r,0,n,this.session.getLine(n).length):new s(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(t.column-n,t.column).split(" ").length-1==n?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead,this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(t.column,t.column+n).split(" ").length-1==n?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),r=this.session.screenToDocumentPosition(n,0),i=this.session.getDisplayLine(e,null,r.row,r.column).match(/^\s*/);i[0].length==t||this.session.$useEmacsStyleLineStart||(r.column+=i[0].length),this.moveCursorToPosition(r)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var r=n.search(/\s+$/);r>0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(r)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var r=this.session.getFoldStringAt(t,n,-1);null==r&&(r=this.doc.getLine(t).substring(0,n));var o=i.stringReverse(r);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(i.lastIndex=0;(t=e[n])&&!i.test(t);)if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e<o&&/^\s*$/.test(r));/^\s+/.test(r)||(r=""),t=0}var s=this.$shortWordEndIndex(r);this.moveCursorTo(e,t+s)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var r=this.session.getLine(t).substring(0,n);if(0===n){do{t--,r=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),s=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column);var r=this.session.screenToDocumentPosition(n.row+e,n.column);0!==e&&0===t&&r.row===this.lead.row&&r.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[r.row]&&(r.row>0||e>0)&&r.row++,this.moveCursorTo(r.row,r.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0,this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e.call(null,this);var n=this.getCursor();return s.fromPoints(t,n)}catch(e){return s.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=s.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var r=e("./config"),i=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},s="g",a=[],c=0;c<n.length;c++){var l=n[c];if(l.defaultToken&&(o.defaultToken=l.defaultToken),l.caseInsensitive&&(s="gi"),null!=l.regex){l.regex instanceof RegExp&&(l.regex=l.regex.toString().slice(1,-1));var u=l.regex,h=new RegExp("(?:("+u+")|(.))").exec("a").length-2;Array.isArray(l.token)?1==l.token.length||1==h?l.token=l.token[0]:h-1!=l.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:l,groupCount:h-1}),l.token=l.token[0]):(l.tokenArray=l.token,l.token=null,l.onMatch=this.$arrayTokens):"function"!=typeof l.token||l.onMatch||(l.onMatch=h>1?this.$applyToken:l.token),h>1&&(/\\\d/.test(l.regex)?u=l.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+i+1)})):(h=1,u=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||a.push(l)),o[i]=c,i+=h,r.push(u),l.onMatch||(l.onMatch=null)}}r.length||(o[0]=0,r.push("$")),a.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,s)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",s)}};(function(){this.$setMaxTokenCount=function(e){i=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;i<o;i++)t[i]&&(r[r.length]={type:n[i],value:t[i]});return r},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],r=this.tokenArray,i=0,o=r.length;i<o;i++)t[i+1]&&(n[n.length]={type:r[i],value:t[i+1]});return n},this.removeCapturingGroups=function(e){return e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,(function(e,t){return t?"(?:":e}))},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,r=!1,i={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,o,s,a,c){return r?r="]"!=a:a?r=!0:s?(n==i.stack&&(i.end=c+1,i.stack=-1),n--):o&&(n++,1!=o.length&&(i.stack=n,i.start=c)),e})),null!=i.end&&/^\)*$/.test(e.substr(i.end))&&(e=e.substring(0,i.start)+e.substr(i.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var r=t||"start",o=this.states[r];o||(r="start",o=this.states[r]);var s=this.matchMappings[r],a=this.regExps[r];a.lastIndex=0;for(var c,l=[],u=0,h=0,d={type:null,value:""};c=a.exec(e);){var p=s.defaultToken,f=null,g=c[0],m=a.lastIndex;if(m-g.length>u){var E=e.substring(u,m-g.length);d.type==p?d.value+=E:(d.type&&l.push(d),d={type:p,value:E})}for(var y=0;y<c.length-2;y++)if(void 0!==c[y+1]){p=(f=o[s[y]]).onMatch?f.onMatch(g,r,n):f.token,f.next&&(r="string"==typeof f.next?f.next:f.next(r,n),(o=this.states[r])||(this.reportError("state doesn't exist",r),r="start",o=this.states[r]),s=this.matchMappings[r],u=m,(a=this.regExps[r]).lastIndex=m);break}if(g)if("string"==typeof p)f&&!1===f.merge||d.type!==p?(d.type&&l.push(d),d={type:p,value:g}):d.value+=g;else if(p)for(d.type&&l.push(d),d={type:null,value:""},y=0;y<p.length;y++)l.push(p[y]);if(u==e.length)break;if(u=m,h++>i){for(h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});u<e.length;)d.type&&l.push(d),d={value:e.substring(u,u+=2e3),type:"overflow"};r="start",n=[];break}}return d.type&&l.push(d),n.length>1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:l,state:n.length?n:r}},this.reportError=r.reportError}).call(o.prototype),t.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i<r.length;i++){var o=r[i];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(t)&&(o.next=t+o.next),o.nextState&&0!==o.nextState.indexOf(t)&&(o.nextState=t+o.nextState))}this.$rules[t+n]=r}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,o){var s="function"==typeof e?(new e).getRules():e;if(i)for(var a=0;a<i.length;a++)i[a]=t+i[a];else for(var c in i=[],s)i.push(t+c);if(this.addRules(s,t),n){var l=Array.prototype[o?"push":"unshift"];for(a=0;a<i.length;a++)l.apply(this.$rules[i[a]],r.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,r=this.$rules;Object.keys(r).forEach((function i(o){var s=r[o];s.processed=!0;for(var a=0;a<s.length;a++){var c=s[a];!c.regex&&c.start&&(c.regex=c.start,c.next||(c.next=[]),c.next.push({defaultToken:c.token},{token:c.token+".end",regex:c.end||c.start,next:"pop"}),c.token=c.token+".start",c.push=!0);var l=c.next||c.push;if(l&&Array.isArray(l)){var u=c.stateName;u||("string"!=typeof(u=c.token)&&(u=u[0]||""),r[u]&&(u+=n++)),r[u]=l,c.next=u,i(u)}else"pop"==l&&(c.next=t);if(c.push&&(c.nextState=c.next||c.push,c.next=e,delete c.push),c.rules)for(var h in c.rules)r[h]?r[h].push&&r[h].push.apply(r[h],c.rules[h]):r[h]=c.rules[h];if(c.include||"string"==typeof c)var d=c.include||c,p=r[d];else Array.isArray(c)&&(p=c);if(p){var f=[a,1].concat(p);c.noEscape&&(f=f.filter((function(e){return!e.next}))),s.splice.apply(s,f),a--,p=null}c.keywordMap&&(c.token=this.createKeywordMapper(c.keywordMap,c.defaultToken||"text",c.caseInsensitive),delete c.defaultToken)}}),this)},this.createKeywordMapper=function(e,t,n,r){var i=Object.create(null);return Object.keys(e).forEach((function(t){var o=e[t];n&&(o=o.toLowerCase());for(var s=o.split(r||"|"),a=s.length;a--;)i[s[a]]=t})),Object.getPrototypeOf(i)&&(i.__proto__=null),this.$keywordList=Object.keys(i),e=null,n?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),t.TextHighlightRules=i})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(r.prototype),t.Behaviour=r})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";t.packages={},function(e){var n=/\w{4}/g;for(var r in e)t.packages[r]=e[r].replace(n,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})})),ace.define("ace/token_iterator",["require","exports","module"],(function(e,t,n){"use strict";var r=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var r=e.getTokenAt(t,n);this.$tokenIndex=r?r.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}}}).call(r.prototype),t.TokenIterator=r})),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var i=e("../tokenizer").Tokenizer,o=e("./text_highlight_rules").TextHighlightRules,s=e("./behaviour").Behaviour,a=e("../unicode"),c=e("../lib/lang"),l=e("../token_iterator").TokenIterator,u=e("../range").Range,h=function(){this.HighlightRules=o,this.$behaviour=new s};(function(){this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules,this.$tokenizer=new i(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,r){var i=t.doc,o=!0,s=!0,a=1/0,l=t.getTabSize(),u=!1;if(this.lineCommentStart){Array.isArray(this.lineCommentStart)?(g=this.lineCommentStart.map(c.escapeRegExp).join("|"),p=this.lineCommentStart[0]):(g=c.escapeRegExp(this.lineCommentStart),p=this.lineCommentStart),g=new RegExp("^(\\s*)(?:"+g+") ?"),u=t.getUseSoftTabs(),y=function(e,t){var n=e.match(g);if(n){var r=n[1].length,o=n[0].length;d(e,r,o)||" "!=n[0][o-1]||o--,i.removeInLine(t,r,o)}};var h=p+" ",d=(E=function(e,t){o&&!/\S/.test(e)||(d(e,a,a)?i.insertInLine({row:t,column:a},h):i.insertInLine({row:t,column:a},p))},v=function(e,t){return g.test(e)},function(e,t,n){for(var r=0;t--&&" "==e.charAt(t);)r++;if(r%l!=0)return!1;for(r=0;" "==e.charAt(n++);)r++;return l>2?r%l!=l-1:r%l==0})}else{if(!this.blockComment)return!1;var p=this.blockComment.start,f=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+c.escapeRegExp(p)+")"),m=new RegExp("(?:"+c.escapeRegExp(f)+")\\s*$"),E=function(e,t){v(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},f),i.insertInLine({row:t,column:a},p))},y=function(e,t){var n;(n=e.match(m))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&i.removeInLine(t,n[1].length,n[0].length)},v=function(e,n){if(g.test(e))return!0;for(var r=t.getTokens(n),i=0;i<r.length;i++)if("comment"===r[i].type)return!0}}function b(e){for(var t=n;t<=r;t++)e(i.getLine(t),t)}var A=1/0;b((function(e,t){var n=e.search(/\S/);-1!==n?(n<a&&(a=n),s&&!v(e,t)&&(s=!1)):A>e.length&&(A=e.length)})),a==1/0&&(a=A,o=!1,s=!1),u&&a%l!=0&&(a=Math.floor(a/l)*l),b(s?y:E)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,s,a=(g=new l(t,r.row,r.column)).getCurrentToken(),c=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var h,d;a&&/comment/.test(a.type);){if(-1!=(m=a.value.indexOf(i.start))){var p=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m;h=new u(p,f,p,f+i.start.length);break}a=g.stepBackward()}var g;for(a=(g=new l(t,r.row,r.column)).getCurrentToken();a&&/comment/.test(a.type);){var m;if(-1!=(m=a.value.indexOf(i.end))){p=g.getCurrentTokenRow(),f=g.getCurrentTokenColumn()+m,d=new u(p,f,p,f+i.end.length);break}a=g.stepForward()}d&&t.remove(d),h&&(t.remove(h),o=h.start.row,s=-i.start.length)}else s=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);c.start.row==o&&(c.start.column+=s),c.end.row==o&&(c.end.column+=s),t.selection.fromOrientedRange(c)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)e[t]&&(this.$embeds.push(t),this.$modes[t]=new e[t]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<n.length;t++)!function(e){var r=n[t],i=e[r];e[n[t]]=function(){return this.$delegator(r,arguments,i)}}(this)},this.$delegator=function(e,t,n){var r=t[0];"string"!=typeof r&&(r=r[0]);for(var i=0;i<this.$embeds.length;i++)if(this.$modes[this.$embeds[i]]){var o=r.split(this.$embeds[i]);if(!o[0]&&o[1]){t[0]=o[1];var s=this.$modes[this.$embeds[i]];return s[e].apply(s,t)}}var a=n.apply(this,t);return n?a:void 0},this.transformAction=function(e,t,n,r,i){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var s in o)if(o[s][t]){var a=o[s][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var i in t)for(var o=t[i],s=0,a=o.length;s<a;s++)if("string"==typeof o[s].token)/keyword|support|storage/.test(o[s].token)&&n.push(o[s].regex);else if("object"===r(o[s].token))for(var c=0,l=o[s].token.length;c<l;c++)/keyword|support|storage/.test(o[s].token[c])&&(i=o[s].regex.match(/\(.+?\)/g)[c],n.push(i.substr(1,i.length-2)));this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(h.prototype),t.Mode=h})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var s=[r,1].concat(t.lines);e.splice.apply(e,s),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var a=t.end.column,c=t.end.row;r===c?e[r]=o.substring(0,i)+o.substring(a):e.splice(r,c-r+1,o.substring(0,i)+e[c].substring(a))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row||t.start.row>this.row)){var n=function(t,n,r){var i="insert"==t.action,o=(i?1:-1)*(t.end.row-t.start.row),s=(i?1:-1)*(t.end.column-t.start.column),a=t.start,c=i?a:t.end;return e(n,a,r)?{row:n.row,column:n.column}:e(c,n,!r)?{row:n.row+o,column:n.column+(n.row==c.row?s:0)}:{row:a.row,column:a.column}}(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,s=e("./range").Range,a=e("./anchor").Anchor,c=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new s(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,o=n?this.getLine(i).length:0,a=r?t+1:t,c=r?0:this.getLine(a).length,l=new s(i,o,a,c),u=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),u},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof s||(e=s.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!s.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),i(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length,i=e.start.row,o=e.start.column,s=0,a=0;;){s=a,a+=t-1;var c=n.slice(s,a);if(a>r){e.lines=c,e.start.row=i+s,e.start.column=o;break}c.push(""),this.applyDelta({start:this.pos(i+s,o),end:this.pos(i+a,o=0),action:e.action,lines:c},!0)}},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=t||0,o=n.length;i<o;i++)if((e-=n[i].length+r)<0)return{row:i,column:e+n[i].length+r};return{row:o-1,column:n[o-1].length}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,n.length),s=t||0;s<o;++s)i+=n[s].length+r;return i+e.column}}).call(c.prototype),t.Document=c})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,r=-1,i=n.doc,o=t;n.lines[t];)t++;var s=i.getLength(),a=0;for(n.running=!1;t<s;){n.$tokenizeRow(t),r=t;do{t++}while(n.lines[t]);if(++a%5==0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,o<=r&&n.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(o.prototype),t.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var s=o.firstRow,a=o.lastRow,c=s;c<=a;c++){var l=this.cache[c];null==l&&((l=r.getMatchOffsets(n.getLine(c),this.regExp)).length>this.MAX_RANGES&&(l=l.slice(0,this.MAX_RANGES)),l=l.map((function(e){return new i(c,e.offset,c,e.offset+e.length)})),this.cache[c]=l.length?l:"");for(var u=l.length;u--;)t.drawSingleLineMarker(e,l[u].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range;function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o=0,s=this.folds,a=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c<s.length;c++){if(-1==(i=(r=s[c]).range.compareStart(t,n)))return void e(null,t,n,o,a);if(!e(null,r.start.row,r.start.column,o,a)&&e(r.placeholder,r.start.row,r.start.column,o)||0===i)return;a=!r.sameRow,o=r.end.column}e(null,t,n,o,a)},this.getNextFoldTo=function(e,t){for(var n,r,i=0;i<this.folds.length;i++){if(-1==(r=(n=this.folds[i]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===r)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var r,i,o=this.getNextFoldTo(e,t);if(o)if(r=o.fold,"inside"==o.kind&&r.start.column!=t&&r.start.row!=e)window.console&&window.console.log(e,t,r);else if(r.start.row==e){var s=(i=this.folds).indexOf(r);for(0===s&&(this.start.column+=n);s<i.length;s++){if((r=i[s]).start.column+=n,!r.sameRow)return;r.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var r=n.fold,o=this.folds,s=this.foldData,a=o.indexOf(r),c=o[a-1];this.end.row=c.end.row,this.end.column=c.end.column;var l=new i(s,o=o.splice(a,o.length-a));return s.splice(s.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var r=this.foldData;r.splice(r.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var r=this.folds[n];if((e-=r.start.column-t)<0)return{row:r.start.row,column:r.start.column+e};if((e-=r.placeholder.length)<0)return r.start;t=r.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(i.prototype),t.FoldLine=i})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range.comparePoints,i=function(){this.ranges=[]};(function(){this.comparePoints=r,this.pointIndex=function(e,t,n){for(var i=this.ranges,o=n||0;o<i.length;o++){var s=i[o],a=r(e,s.end);if(!(a>0)){var c=r(e,s.start);return 0===a?t&&0!==c?-o-2:o:c>0||0===c&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.call(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],n=this.ranges,i=(n=n.sort((function(e,t){return r(e.start,t.start)})))[0],o=1;o<n.length;o++){e=i,i=n[o];var s=r(e.end,i.start);s<0||(0!=s||e.isEmpty()||i.isEmpty())&&(r(e.end,i.end)<0&&(e.end.row=i.end.row,e.end.column=i.end.column),n.splice(o,1),t.push(i),i=e,o--)}return this.ranges=n,t},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var r=this.pointIndex({row:e,column:0});r<0&&(r=-r-1);var i=this.pointIndex({row:t,column:0},r);i<0&&(i=-i-1);for(var o=[],s=r;s<i;s++)o.push(n[s]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,n=e.end;else n=e.start,t=e.end;for(var r=t.row,i=n.row-r,o=-t.column+n.column,s=this.ranges,a=0,c=s.length;a<c;a++)if(!((l=s[a]).end.row<r)){if(l.start.row>r)break;if(l.start.row==r&&l.start.column>=t.column&&(l.start.column==t.column&&this.$insertRight||(l.start.column+=o,l.start.row+=i)),l.end.row==r&&l.end.column>=t.column){if(l.end.column==t.column&&this.$insertRight)continue;l.end.column==t.column&&o>0&&a<c-1&&l.end.column>l.start.column&&l.end.column==s[a+1].start.column&&(l.end.column-=o),l.end.column+=o,l.end.row+=i}}if(0!=i&&a<c)for(;a<c;a++){var l;(l=s[a]).start.row+=i,l.end.row+=i}}}).call(i.prototype),t.RangeList=i})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";e("../range").Range;var r=e("../range_list").RangeList,i=e("../lib/oop"),o=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function s(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function a(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}i.inherits(o,r),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new o(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);var t,n;t=e,n=this.start,s(t.start,n),s(t.end,n);for(var r=e.start.row,i=e.start.column,o=0,a=-1;o<this.subFolds.length&&1==(a=this.subFolds[o].range.compare(r,i));o++);var c=this.subFolds[o];if(0==a)return c.addSubFold(e);r=e.range.end.row,i=e.range.end.column;var l=o;for(a=-1;l<this.subFolds.length&&1==(a=this.subFolds[l].range.compare(r,i));l++);if(this.subFolds[l],0==a)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);return this.subFolds.splice(o,l-o,e),e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return function(e,t){a(e.start,t),a(e.end,t)}(e,this.start)}}.call(o.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("./fold_line").FoldLine,o=e("./fold").Fold,s=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,n){var r=this.getFoldLine(e);if(!r)return null;for(var i=r.folds,o=0;o<i.length;o++){var s=i[o];if(s.range.contains(e,t)){if(1==n&&s.range.isEnd(e,t))continue;if(-1==n&&s.range.isStart(e,t))continue;return s}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,r=this.$foldData,i=[];t.column+=1,n.column-=1;for(var o=0;o<r.length;o++){var s=r[o].range.compareRange(e);if(2!=s){if(-2==s)break;for(var a=r[o].folds,c=0;c<a.length;c++){var l=a[c];if(-2==(s=l.range.compareRange(e)))break;if(2!=s){if(42==s)break;i.push(l)}}}}return t.column-=1,n.column+=1,i},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var r=0;r<t[n].folds.length;r++)e.push(t[n].folds[r]);return e},this.getFoldStringAt=function(e,t,n,r){if(!(r=r||this.getFoldLine(e)))return null;for(var i,o,s={end:{column:0}},a=0;a<r.folds.length;a++){var c=(o=r.folds[a]).range.compareEnd(e,t);if(-1==c){i=this.getLine(o.start.row).substring(s.end.column,o.start.column);break}if(0===c)return null;s=o}return i||(i=this.getLine(o.start.row).substring(s.end.column)),-1==n?i.substring(0,t-s.end.column):1==n?i.substring(t-s.end.column):i},this.getFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var i=n[r];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var i=n[r];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i<n.length;i++){var o=n[i],s=o.end.row,a=o.start.row;if(s>=t){a<t&&(a>=e?r-=t-a:r=0);break}s>=e&&(r-=a>=e?s-a:s-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,s=!1;e instanceof o?n=e:(n=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var a=n.start.row,c=n.start.column,l=n.end.row,u=n.end.column;if(!(a<l||a==l&&c<=u-2))throw new Error("The range has to be at least 2 characters width");var h=this.getFoldAt(a,c,1),d=this.getFoldAt(l,u,-1);if(h&&d==h)return h.addSubFold(n);h&&!h.range.isStart(a,c)&&this.removeFold(h),d&&!d.range.isEnd(l,u)&&this.removeFold(d);var p=this.getFoldsInRange(n.range);p.length>0&&(this.removeFolds(p),p.forEach((function(e){n.addSubFold(e)})));for(var f=0;f<r.length;f++){var g=r[f];if(l==g.start.row){g.addFold(n),s=!0;break}if(a==g.end.row){if(g.addFold(n),s=!0,!n.sameRow){var m=r[f+1];if(m&&m.start.row==l){g.merge(m);break}}break}if(l<=g.start.row)break}return s||(g=this.$addFoldLine(new i(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,r=t.end.row,i=this.$foldData,o=t.folds;if(1==o.length)i.splice(i.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))o.pop(),t.end.row=o[o.length-1].end.row,t.end.column=o[o.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))o.shift(),t.start.row=o[0].start.row,t.start.column=o[0].start.column;else if(e.sameRow)o.splice(o.indexOf(e),1);else{var s=t.split(e.start.row,e.start.column);(o=s.folds).shift(),s.start.row=o[0].start.row,s.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,i;if(null==e?(n=new r(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new r(e,0,e,this.getLine(e).length):"row"in e?r.fromPoints(e,e):e,i=this.getFoldsInRangeList(n),t)this.removeFolds(i);else for(var o=i;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,s="";return e.walk((function(e,t,n,a){if(!(t<r)){if(t==r){if(n<i)return;a=Math.max(i,a)}s+=null!=e?e:o.getLine(t).substring(a,n)}}),t,n),s},this.getDisplayLine=function(e,t,n,r){var i,o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,r):(i=this.doc.getLine(e)).substring(r||0,t||i.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new i(e,n)}))},this.toggleFold=function(e){var t,n,r=this.selection.getRange();if(r.isEmpty()){var i=r.start;if(t=this.getFoldAt(i.row,i.column))return void this.expandFold(t);(n=this.findMatchingBracket(i))?1==r.comparePoint(n)?r.end=n:(r.start=n,r.start.column++,r.end.column--):(n=this.findMatchingBracket({row:i.row,column:i.column+1}))?(1==r.comparePoint(n)?r.end=n:r.start=n,r.start.column++):r=this.getCommentFoldRange(i.row,i.column)||r}else{var o=this.getFoldsInRange(r);if(e&&o.length)return void this.expandFolds(o);1==o.length&&(t=o[0])}if(t||(t=this.getFoldAt(r.start.row,r.start.column)),t&&t.range.toString()==r.toString())this.expandFold(t);else{var s="...";if(!r.isMultiLine()){if((s=this.getTextRange(r)).length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,r)}},this.getCommentFoldRange=function(e,t,n){var i=new s(this,e,t),o=i.getCurrentToken();if(o&&/^comment|string/.test(o.type)){var a=new r,c=new RegExp(o.type.replace(/\..*/,"\\."));if(1!=n){do{o=i.stepBackward()}while(o&&c.test(o.type));i.stepForward()}if(a.start.row=i.getCurrentTokenRow(),a.start.column=i.getCurrentTokenColumn()+2,i=new s(this,e,t),-1!=n){do{o=i.stepForward()}while(o&&c.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return a.end.row=i.getCurrentTokenRow(),a.end.column=i.getCurrentTokenColumn()+o.value.length-2,a}},this.foldAll=function(e,t,n){null==n&&(n=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength();for(var i=e=e||0;i<t;i++)if(null==r[i]&&(r[i]=this.getFoldWidget(i)),"start"==r[i]){var o=this.getFoldWidgetRange(i);if(o&&o.isMultiLine()&&o.end.row<=t&&o.start.row>=e){i=o.end.row;try{var s=this.addFold("...",o);s&&(s.collapseChildren=n)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var r,i=e-1;i>=0;){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var s=this.getFoldWidgetRange(i);if(r||(r=s),s&&s.end.row>=e)break}i--}return{range:-1!==i&&s,firstRange:r}},this.onFoldWidgetClick=function(e,t){var n={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)t.children||t.all?this.removeFold(o):this.expandFold(o);else{var s=this.getFoldWidgetRange(e,!0);if(!s||s.isMultiLine()||!(o=this.getFoldAt(s.start.row,s.start.column,1))||!s.isEqual(o.range)){if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var c=a.range.start.row+1,l=a.range.end.row;this.foldAll(c,l,t.all?1e4:0)}else t.children?(l=s?s.end.row:this.getLength(),this.foldAll(e+1,l,t.all?1e4:0)):s&&(t.all&&(s.collapseChildren=1e4),this.addFold("...",s));return s}this.removeFold(o)}}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),s=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(s||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},s=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!s)return null;if(s[1]){if(!(a=this.$findClosingBracket(s[1],e)))return null;t=i.fromPoints(e,a),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{var a;if(!(a=this.$findOpeningBracket(s[2],e)))return null;t=i.fromPoints(a,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,s=new r(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-s.getCurrentTokenColumn()-2,l=a.value;;){for(;c>=0;){var u=l.charAt(c);if(u==i){if(0==(o-=1))return{row:s.getCurrentTokenRow(),column:c+s.getCurrentTokenColumn()}}else u==e&&(o+=1);c-=1}do{a=s.stepBackward()}while(a&&!n.test(a.type));if(null==a)break;c=(l=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,s=new r(this,t.row,t.column),a=s.getCurrentToken();if(a||(a=s.stepForward()),a){n||(n=new RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var c=t.column-s.getCurrentTokenColumn();;){for(var l=a.value,u=l.length;c<u;){var h=l.charAt(c);if(h==i){if(0==(o-=1))return{row:s.getCurrentTokenRow(),column:c+s.getCurrentTokenColumn()}}else h==e&&(o+=1);c+=1}do{a=s.stepForward()}while(a&&!n.test(a.type));if(null==a)break;c=0}return null}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var i=e("./lib/oop"),o=e("./lib/lang"),s=e("./config"),a=e("./lib/event_emitter").EventEmitter,c=e("./selection").Selection,l=e("./mode/text").Mode,u=e("./range").Range,h=e("./document").Document,d=e("./background_tokenizer").BackgroundTokenizer,p=e("./search_highlight").SearchHighlight,f=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==r(e)&&e.getLine||(e=new h(e)),this.setDocument(e),this.selection=new c(this),s.resetOptions(this),this.setMode(t),s._signal("session",this)};(function(){i.implement(this,a),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t<o))return i;r=i-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);this.$fromUndo||!this.$undoManager||e.ignore||(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,r=this.bgTokenizer.getTokens(e),i=0;if(null==t)o=r.length-1,i=this.getLine(e).length;else for(var o=0;o<r.length&&!((i+=r[o].value.length)>=t);o++);return(n=r[o])?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),t.$deltas.length>0&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,r){var i=this.$markerId++,o={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!r,id:i};return r?(this.$frontMarkers[i]=o,this._signal("changeFrontMarker")):(this.$backMarkers[i]=o,this._signal("changeBackMarker")),i},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new p(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,r){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var i=new u(e,0,t,1/0);return i.id=this.addMarker(i,n,"fullLine",r),i},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),r=!1;if(t>0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else i=/^\s+$/.test(n.slice(t-1,t+1))?/\s/:this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}for(var s=t;s<n.length&&n.charAt(s).match(i);)s++;return new u(e,o,e,s)},this.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),r=this.getLine(n.end.row);r.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===r(e)){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,i=n.path}else i=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[i]&&!n)return this.$onChangeMode(this.$modes[i]),void(t&&t());this.$modeId=i,s.loadModule(["mode",i],function(e){if(this.$modeId!==i)return t&&t();this.$modes[i]&&!n?this.$onChangeMode(this.$modes[i]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[i]=e,e.$id=i),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=e.getTokenizer();if(void 0!==n.addEventListener){var r=this.onReloadTokenizer.bind(this);n.addEventListener("update",r)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new d(n);var i=this;this.bgTokenizer.addEventListener("update",(function(e){i._signal("tokenizerUpdate",e)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$completers=[],this.setCompleters=function(e){this.$completers=e},this.getCompleters=function(){return this.$completers},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){s.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],s=o?o.start.row:1/0,a=t.length,c=0;c<a;c++){if(c>s){if((c=o.end.row+1)>=a)break;s=(o=this.$foldData[i++])?o.start.row:1/0}null==n[c]&&(n[c]=this.$getStringScreenWidth(t[c])[0]),n[c]>r&&(r=n[c])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,r=e.length-1;-1!=r;r--){var i=e[r];"doc"==i.group?(this.doc.revertDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!0,n)):i.deltas.forEach((function(e){this.addFolds(e.folds)}),this)}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,r=0;r<e.length;r++){var i=e[r];"doc"==i.group&&(this.doc.applyDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!1,n))}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,n){function r(e){return t?"insert"!==e.action:"insert"===e.action}var i,o,s=e[0];i=r(s)?u.fromPoints(s.start,s.end):u.fromPoints(s.start,s.start);for(var a=1;a<e.length;a++)r(s=e[a])?(o=s.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=s.end,1==i.compare(o.row,o.column)&&i.setEnd(o)):(o=s.start,-1==i.compare(o.row,o.column)&&(i=u.fromPoints(s.start,s.start)));if(null!=n){0===u.comparePoints(n.start,i.start)&&(n.start.column+=i.end.column-i.start.column,n.end.column+=i.end.column-i.start.column);var c=n.compareRange(i);1==c?i.setStart(n.start):-1==c&&i.setEnd(n.end)}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var r=this.getTextRange(e),i=this.getFoldsInRange(e),o=u.fromPoints(t,t);if(!n){this.remove(e);var s=e.start.row-e.end.row;(l=s?-e.end.column:e.start.column-e.end.column)&&(o.start.row==e.end.row&&o.start.column>e.end.column&&(o.start.column+=l),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=l)),s&&o.start.row>=e.end.row&&(o.start.row+=s,o.end.row+=s)}if(o.end=this.insert(o.start,r),i.length){var a=e.start,c=o.start,l=(s=c.row-a.row,c.column-a.column);this.addFolds(i.map((function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=l),e.end.row==a.row&&(e.end.column+=l),e.start.row+=s,e.end.row+=s,e})))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var s=0;s<r&&" "==o.charAt(s);++s);s<r&&"\t"==o.charAt(s)?(n.start.column=s,n.end.column=s+1):(n.start.column=0,n.end.column=s),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((i=this.getRowFoldStart(e+n))<0)return 0;var r=i-e}else if(n>0){var i;if((i=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=i-t}else e=this.$clipRowToDocument(e),r=(t=this.$clipRowToDocument(t))-e+1;var o=new u(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(o).map((function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e})),a=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,a),s.length&&this.addFolds(s),r},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,s=i.row,a=s-o,c=null;if(this.$updating=!0,0!=a)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,a);var l=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var u=0;if(g=this.getFoldLine(i.row)){g.addRemoveChars(i.row,i.column,r.column-i.column),g.shiftRow(-a);var h=this.getFoldLine(o);h&&h!==g&&(h.merge(g),g=h),u=l.indexOf(g)+1}for(;u<l.length;u++)(g=l[u]).start.row>=i.row&&g.shiftRow(-a);s=o}else{var d=Array(a);d.unshift(o,0);var p=t?this.$wrapData:this.$rowLengthCache;if(p.splice.apply(p,d),l=this.$foldData,u=0,g=this.getFoldLine(o)){var f=g.range.compareInside(r.row,r.column);0==f?(g=g.split(r.row,r.column))&&(g.shiftRow(a),g.addRemoveChars(s,0,i.column-r.column)):-1==f&&(g.addRemoveChars(o,0,i.column-r.column),g.shiftRow(a)),u=l.indexOf(g)+1}for(;u<l.length;u++){var g;(g=l[u]).start.row>=o&&g.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===n&&(c=this.getFoldsInRange(e),this.removeFolds(c),a=-a),(g=this.getFoldLine(o))&&g.addRemoveChars(o,r.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,s):this.$updateRowLengthCache(o,s),c},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(n,r){var i,o,s=this.doc.getAllLines(),a=this.getTabSize(),c=this.$wrapData,l=this.$wrapLimit,u=n;for(r=Math.min(r,s.length-1);u<=r;)(o=this.getFoldLine(u,o))?(i=[],o.walk(function(n,r,o,a){var c;if(null!=n){(c=this.$getDisplayTokens(n,i.length))[0]=e;for(var l=1;l<c.length;l++)c[l]=t}else c=this.$getDisplayTokens(s[r].substring(a,o),i.length);i=i.concat(c)}.bind(this),o.end.row,s[o.end.row].length+1),c[o.start.row]=this.$computeWrapSplits(i,l,a),u=o.end.row+1):(i=this.$getDisplayTokens(s[u]),c[u]=this.$computeWrapSplits(i,l,a),u++)};var e=3,t=4;function n(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(n,r,i){if(0==n.length)return[];var o=[],s=n.length,a=0,c=0,l=this.$wrapAsCode,u=this.$indentedSoftWrap,h=r<=Math.max(2*i,8)||!1===u?0:Math.floor(r/2);function d(e){var t=n.slice(a,e),r=t.length;t.join("").replace(/12/g,(function(){r-=1})).replace(/2/g,(function(){r-=1})),o.length||(p=function(){var e=0;if(0===h)return e;if(u)for(var t=0;t<n.length;t++){var r=n[t];if(10==r)e+=1;else{if(11!=r){if(12==r)continue;break}e+=i}}return l&&!1!==u&&(e+=i),Math.min(e,h)}(),o.indent=p),c+=r,o.push(c),a=e}for(var p=0;s-a>r-p;){var f=a+r-p;if(n[f-1]>=10&&n[f]>=10)d(f);else if(n[f]!=e&&n[f]!=t){for(var g=Math.max(f-(r-(r>>2)),a-1);f>g&&n[f]<e;)f--;if(l){for(;f>g&&n[f]<e;)f--;for(;f>g&&9==n[f];)f--}else for(;f>g&&n[f]<10;)f--;f>g?d(++f):(2==n[f=a+r]&&f--,d(f-p))}else{for(;f!=a-1&&n[f]!=e;f--);if(f>a){d(f);continue}for(f=a+r;f<n.length&&n[f]==t;f++);if(f==n.length)break;d(f)}}return o},this.$getDisplayTokens=function(e,t){var r,i=[];t=t||0;for(var o=0;o<e.length;o++){var s=e.charCodeAt(o);if(9==s){r=this.getScreenTabSize(i.length+t),i.push(11);for(var a=1;a<r;a++)i.push(12)}else 32==s?i.push(10):s>39&&s<48||s>57&&s<64?i.push(9):s>=4352&&n(s)?i.push(1,2):i.push(1)}return i},this.$getStringScreenWidth=function(e,t,r){if(0==t)return[0,0];var i,o;for(null==t&&(t=1/0),r=r||0,o=0;o<e.length&&(9==(i=e.charCodeAt(o))?r+=this.getScreenTabSize(r):i>=4352&&n(i)?r+=2:r+=1,!(r>t));o++);return[r,o]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t){if(e<0)return{row:0,column:0};var n,r,i=0,o=0,s=0,a=0,c=this.$screenRowCache,l=this.$getRowCacheIndex(c,e),u=c.length;if(u&&l>=0){s=c[l],i=this.$docRowCache[l];var h=e>c[u-1]}else h=!u;for(var d=this.getLength()-1,p=this.getNextFoldLine(i),f=p?p.start.row:1/0;s<=e&&!(s+(a=this.getRowLength(i))>e||i>=d);)s+=a,++i>f&&(i=p.end.row+1,f=(p=this.getNextFoldLine(i,p))?p.start.row:1/0),h&&(this.$docRowCache.push(i),this.$screenRowCache.push(s));if(p&&p.start.row<=i)n=this.getFoldDisplayLine(p),i=p.start.row;else{if(s+a<=e||i>d)return{row:d,column:this.getLine(d).length};n=this.getLine(i),p=null}var g=0;if(this.$useWrapMode){var m=this.$wrapData[i];if(m){var E=Math.floor(e-s);r=m[E],E>0&&m.length&&(g=m.indent,o=m[E-1]||m[m.length-1],n=n.substring(o))}}return o+=this.$getStringScreenWidth(n,t-g)[1],this.$useWrapMode&&o>=r&&(o=r-1),p?p.idxToPosition(o):{row:i,column:o}},this.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r,i=0,o=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var s,a=0,c=this.$docRowCache,l=this.$getRowCacheIndex(c,e),u=c.length;if(u&&l>=0){a=c[l],i=this.$screenRowCache[l];var h=e>c[u-1]}else h=!u;for(var d=this.getNextFoldLine(a),p=d?d.start.row:1/0;a<e;){if(a>=p){if((s=d.end.row+1)>e)break;p=(d=this.getNextFoldLine(s,d))?d.start.row:1/0}else s=a+1;i+=this.getRowLength(a),a=s,h&&(this.$docRowCache.push(a),this.$screenRowCache.push(i))}var f="";d&&a>=p?(f=this.getFoldDisplayLine(d,e,t),o=d.start.row):(f=this.getLine(e).substring(0,t),o=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[o];if(m){for(var E=0;f.length>=m[E];)i++,E++;f=f.substring(m[E-1]||0,f.length),g=E>0?m.indent:0}}return{row:i,column:g+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,i=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);r<n;){var o=this.$wrapData[r];e+=o?o.length+1:1,++r>i&&(r=t.end.row+1,i=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var s=this.$foldData,a=0;a<s.length;a++)e-=(t=s[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];var i,o;for(n||(n=1/0),r=r||0,o=0;o<t.length&&!((r+="\t"===(i=t.charAt(o))?this.getScreenTabSize(r):e.getCharacterWidth(i))>n);o++);return[r,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()}}).call(f.prototype),e("./edit_session/folding").Folding.call(f.prototype),e("./edit_session/bracket_match").BracketMatch.call(f.prototype),s.defineOptions(f.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=f})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,s=function(){this.$options={}};(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,i){if(e.start)r=e;else{var s=e.offset+(i||0);if(r=new o(n,s,n,s+e.length),!e.length&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))return r=null,!1}return!0})),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),s=[],a=t.re;if(t.$isMultiLine){var c,l=a.length,u=i.length-l;e:for(var h=a.offset||0;h<=u;h++){for(var d=0;d<l;d++)if(-1==i[h+d].search(a[d]))continue e;var p=i[h],f=i[h+l-1],g=p.length-p.match(a[0])[0].length,m=f.match(a[l-1])[0].length;c&&c.end.row===h&&c.end.column>g||(s.push(c=new o(h,g,h+l-1,m)),l>2&&(h=h+l-2))}}else for(var E=0;E<i.length;E++){var y=r.getMatchOffsets(i[E],a);for(d=0;d<y.length;d++){var v=y[d];s.push(new o(E,v.offset,E,v.offset+v.length))}}if(n){var b=n.start.column,A=n.start.column;for(E=0,d=s.length-1;E<d&&s[E].start.column<b&&s[E].start.row==n.start.row;)E++;for(;E<d&&s[d].end.column>A&&s[d].end.row==n.end.row;)d--;for(s=s.slice(E,d+1),E=0,d=s.length;E<d;E++)s[E].start.row+=n.start.row,s[E].end.row+=n.start.row}return s},this.replace=function(e,t){var n=this.$options,r=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(r){var i=r.exec(e);if(!i||i[0].length!=e.length)return null;if(t=e.replace(r,t),n.preserveCase){t=t.split("");for(var o=Math.min(e.length,e.length);o--;){var s=e[o];s&&s.toLowerCase()!=s?t[o]=t[o].toUpperCase():t[o]=t[o].toLowerCase()}t=t.join("")}return t}},this.$matchIterator=function(e,t){var n,i=this.$assembleRegExp(t);if(!i)return!1;if(t.$isMultiLine)var s=i.length,a=function(t,r,a){var c=t.search(i[0]);if(-1!=c){for(var l=1;l<s;l++)if(-1==(t=e.getLine(r+l)).search(i[l]))return;var u=t.match(i[s-1])[0].length,h=new o(r,c,r+s-1,u);return 1==i.offset?(h.start.row--,h.start.column=Number.MAX_VALUE):a&&(h.start.column+=a),!!n(h)||void 0}};else a=t.backwards?function(e,t,o){for(var s=r.getMatchOffsets(e,i),a=s.length-1;a>=0;a--)if(n(s[a],t,o))return!0}:function(e,t,o){for(var s=r.getMatchOffsets(e,i),a=0;a<s.length;a++)if(n(s[a],t,o))return!0};var c=this.$lineIterator(e,t);return{forEach:function(e){n=e,c.forEach(a)}}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=r.escapeRegExp(n)),e.wholeWord&&(n="\\b"+n+"\\b");var i=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var o=new RegExp(n,i)}catch(e){o=!1}return e.re=o},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),r=[],i=0;i<n.length;i++)try{r.push(new RegExp(n[i],t))}catch(e){return!1}return""==n[0]?(r.shift(),r.offset=1):r.offset=0,r},this.$lineIterator=function(e,t){var n=1==t.backwards,r=0!=t.skipCurrent,i=t.range,o=t.start;o||(o=i?i[n?"end":"start"]:e.selection.getRange()),o.start&&(o=o[r!=n?"end":"start"]);var s=i?i.start.row:0,a=i?i.end.row:e.getLength()-1;return{forEach:n?function(n){var r=o.row;if(!n(e.getLine(r).substring(0,o.column),r)){for(r--;r>=s;r--)if(n(e.getLine(r),r))return;if(0!=t.wrap)for(r=a,s=o.row;r>=s;r--)if(n(e.getLine(r),r))return}}:function(n){var r=o.row;if(!n(e.getLine(r).substr(o.column),r,o.column)){for(r+=1;r<=a;r++)if(n(e.getLine(r),r))return;if(0!=t.wrap)for(r=s,a=o.row;r<=a;r++)if(n(e.getLine(r),r))return}}}}}).call(s.prototype),t.Search=s})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var i=e("../lib/keys"),o=e("../lib/useragent"),s=i.KEY_MODS;function a(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function c(e,t){a.call(this,e,t),this.$singleCommand=!1}c.prototype=a.prototype,function(){function e(e){return"object"==r(e)&&e.bindKey&&e.bindKey.position||0}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var s=o.indexOf(e);-1!=s&&(o.splice(s,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==r(e)&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach((function(e){var t=this.parseKeys(e),n=s[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var o=this.parseKeys(e),a=s[o.hashId]+o.key;this._addCommandToBinding(r+a,t,n)}),this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=r||n.isDefault?-100:e(n));var s=o[t];for(i=0;i<s.length&&!(e(s[i])>r);i++);s.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"===r(n)&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=i[n];if(i.FUNCTION_KEYS[r])n=i.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,s=t.length;s--;){var a=i.KEY_MODS[t[s]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[s]+" in "+e),!1;o|=a}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=s[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=s[t]+n,o=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,o=this.commandKeyBinding[e.$keyChain]||o),!o||"chainKeys"!=o&&"chainKeys"!=o[o.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:o}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=c})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,s=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};r.inherits(s,i),function(){r.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(s.prototype),t.CommandManager=s})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function s(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:s("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:s("Alt-E","Ctrl-E"),exec:function(e){i.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:s("Alt-Shift-E","Ctrl-Shift-E"),exec:function(e){i.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:s("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:s(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:s("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:s("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:s("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:s("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:s("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:s("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:s("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:s("Ctrl-Shift-Home","Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:s("Shift-Up","Shift-Up"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:s("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:s("Ctrl-Shift-End","Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:s("Shift-Down","Shift-Down"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:s("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:s("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:s("Alt-Shift-Left","Command-Shift-Left"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:s("Shift-Left","Shift-Left"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:s("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:s("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:s("Alt-Shift-Right","Command-Shift-Right"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:s("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:s("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:s(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:s(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:s("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:s("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:s("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:s("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:s("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:s("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:s("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:s("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:s("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:s("Alt-Delete","Ctrl-K"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:s("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:s(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:s("Ctrl-T","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:s(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(n.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),l=n.row+1;l<=i.row+1;l++){var u=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(l)));0!==u.length&&(u=" "+u),c+=u}i.row+1<e.session.doc.getLength()-1&&(c+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new o(n.row,0,i.row+2,0),c),a>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+a)):(s=e.session.doc.getLine(n.row).length>s?s+1:s,e.selection.moveCursorTo(n.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:s(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var s=0;s<r.length;s++)s==r.length-1&&(r[s].end.row===t&&r[s].end.column===n||i.push(new o(r[s].end.row,r[s].end.column,t,n))),0===s?0===r[s].start.row&&0===r[s].start.column||i.push(new o(0,0,r[s].start.row,r[s].start.column)):i.push(new o(r[s-1].end.row,r[s-1].end.column,r[s].start.row,r[s].start.column));for(e.exitMultiSelectMode(),e.clearSelection(),s=0;s<i.length;s++)e.selection.addRange(i[s],!1)},readOnly:!0,scrollIntoView:"none"}]})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/oop"),o=e("./lib/dom"),s=e("./lib/lang"),a=e("./lib/useragent"),c=e("./keyboard/textinput").TextInput,l=e("./mouse/mouse_handler").MouseHandler,u=e("./mouse/fold_handler").FoldHandler,h=e("./keyboard/keybinding").KeyBinding,d=e("./edit_session").EditSession,p=e("./search").Search,f=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,E=e("./commands/default_commands").commands,y=e("./config"),v=e("./token_iterator").TokenIterator,b=function(e,t){var n=e.getContainerElement();this.container=n,this.renderer=e,this.commands=new m(a.isMac?"mac":"win",E),this.textInput=new c(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.keyBinding=new h(this),this.$mouseHandler=new l(this),new u(this),this.$blockScrolling=0,this.$search=(new p).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||new d("")),y.resetOptions(this),y._signal("editor",this)};(function(){i.implement(this,g),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&this.$blockScrolling>0&&this.$blockScrolling--;var n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var r=this.selection.getRange(),i=this.renderer.layerConfig;(r.start.row>=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e){this.$keybindingId=e;var n=this;y.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this})}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var r=new f(n.row,n.column,n.row,n.column+1);else t.$mode.getMatching&&(r=t.$mode.getMatching(e.session));r&&(t.$bracketHighlight=t.addMarker(r,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new v(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==i.type.indexOf("tag-open")||(i=r.stepForward())){var o=i.value,s=0,a=r.stepBackward();if("<"==a.value)do{a=i,(i=r.stepForward())&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===a.value?s++:"</"===a.value&&s--)}while(i&&s>=0);else{do{i=a,a=r.stepBackward(),i&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===a.value?s++:"</"===a.value&&s--)}while(a&&s<=0);r.stepForward()}if(!i)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var c=r.getCurrentTokenRow(),l=r.getCurrentTokenColumn(),u=new f(c,l,c,l+i.value.length);t.$tagHighlight&&0!==u.compareRange(t.$backMarkers[t.$tagHighlight].range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),u&&!t.$tagHighlight&&(t.$tagHighlight=t.addMarker(u,"ace_bracket","text"))}}}),50)}},this.focus=function(){var e=this;setTimeout((function(){e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(y.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new f(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column-1,r=t.end.column+1,i=e.getLine(t.start.row),o=i.length,s=i.substring(Math.max(n,0),Math.min(r,o));if(!(n>=0&&/^[\w\d]/.test(s)||r<=o&&/[\w\d]$/.test(s))&&(s=i.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(s)))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:s})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var n=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges;if(n.length>r.length||n.length<2||!n[1])return this.commands.exec("insertstring",this,t);for(var i=r.length;i--;){var o=r[i];o.isEmpty()||this.session.remove(o),this.session.insert(o.start,n[i])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=r.transformAction(n.getState(i.row),"insertion",this,n,e);o&&(e!==o.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty())this.session.getOverwrite()&&((s=new f.fromPoints(i,i)).end.column+=e.length,this.session.remove(s));else{var s=this.getSelectionRange();i=this.session.remove(s),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=n.getLine(i.row);if(i.column>a.search(/\S|$/)){var c=a.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+c)}}this.clearSelection();var l=i.column,u=n.getState(i.row),h=(a=n.getLine(i.row),r.checkOutdent(u,a,e));if(n.insert(i,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new f(i.row,l+o.selection[0],i.row,l+o.selection[1])):this.selection.setSelectionRange(new f(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),n.getDocument().isNewLine(e)){var d=r.getNextLineIndent(u,a.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},d)}h&&r.autoOutdent(u,n,i.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var s=n.getLine(t.end.row);/^\s+$/.test(s)&&(t.end.column=s.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);t<i.length?(n=i.charAt(t)+i.charAt(t-1),r=new f(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),r=new f(e.row,t-2,e.row,t)),this.session.replace(r,n)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n))return u=this.$getSelectedRows(),void e.indentRows(u.first,u.last,"\t")}var r=e.getLine(t.start.row),i=t.start,o=e.getTabSize(),a=e.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var c=o-a%o,l=s.stringRepeat(" ",c);else{for(c=a%o;" "==r[t.start.column]&&c;)t.start.column--,c--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var u=this.$getSelectedRows();e.indentRows(u.first,u.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){var e=this.$getSelectedRows(),t=this.session,n=[];for(i=e.first;i<=e.last;i++)n.push(t.getLine(i));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));for(var r=new f(0,0,0,0),i=e.first;i<=e.last;i++){var o=t.getLine(i);r.start.row=i,r.end.row=i,r.end.column=o.length,t.replace(r,n[i-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex<t;){var i=n.exec(r);if(i.index<=t&&i.index+i[0].length>=t)return{value:i[0],start:i.index,end:i.index+i[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new f(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var s=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,a=o.start+o.value.length-s,c=parseFloat(o.value);c*=Math.pow(10,a),s!==o.end&&n<s?e*=Math.pow(10,o.end-n-1):e*=Math.pow(10,o.end-n),c+=e;var l=(c/=Math.pow(10,a)).toFixed(a),u=new f(t,o.start,t,o.end);this.session.replace(u,l),this.moveCursorTo(t,Math.max(o.start+1,n+l.length-o.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),r=e.isBackwards();if(n.isEmpty()){var i=n.start.row;t.duplicateLines(i,i)}else{var o=r?n.start:n.end,s=t.insert(o,t.getTextRange(n),!1);n.start=o,n.end=s,e.setSelectionRange(n,r)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,r,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var o=i.toOrientedRange();n=this.$getSelectedRows(o),r=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(r=0),o.moveBy(r,0),i.fromOrientedRange(o)}else{var s=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,c=0,l=s.length,u=0;u<l;u++){var h=u;s[u].moveBy(a,0);for(var d=(n=this.$getSelectedRows(s[u])).first,p=n.last;++u<l;){c&&s[u].moveBy(c,0);var f=this.$getSelectedRows(s[u]);if(t&&f.first!=p)break;if(!t&&f.first>p+1)break;p=f.last}for(u--,a=this.session.$moveLines(d,p,t?0:e),t&&-1==e&&(h=u+1);h<=u;)s[h].moveBy(a,0),h++;t||(a=0),c+=a}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(i,0)})):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection()),this.$blockScrolling--;var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new v(this.session,n.row,n.column),i=r.getCurrentToken(),o=i||r.stepForward();if(o){var s,a,c=!1,l={},u=n.column-o.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u<o.value.length&&!c;u++)if(h[o.value[u]])switch(a=h[o.value[u]]+"."+o.type.replace("rparen","lparen"),isNaN(l[a])&&(l[a]=0),o.value[u]){case"(":case"[":case"{":l[a]++;break;case")":case"]":case"}":l[a]--,-1===l[a]&&(s="bracket",c=!0)}}else o&&-1!==o.type.indexOf("tag-name")&&(isNaN(l[o.value])&&(l[o.value]=0),"<"===i.value?l[o.value]++:"</"===i.value&&l[o.value]--,-1===l[o.value]&&(s="tag",c=!0));c||(i=o,o=r.stepForward(),u=0)}while(o&&!c);if(s){var d,p;if("bracket"===s)(d=this.session.getBracketRange(n))||(p=(d=new f(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+u-1,r.getCurrentTokenRow(),r.getCurrentTokenColumn()+u-1)).start,(t||p.row===n.row&&Math.abs(p.column-n.column)<2)&&(d=this.session.getBracketRange(p)));else if("tag"===s){if(!o||-1===o.type.indexOf("tag-name"))return;var g=o.value;if(0===(d=new f(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2)).compare(n.row,n.column)){c=!1;do{o=i,(i=r.stepBackward())&&(-1!==i.type.indexOf("tag-close")&&d.setEnd(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+1),o.value===g&&-1!==o.type.indexOf("tag-name")&&("<"===i.value?l[g]++:"</"===i.value&&l[g]--,0===l[g]&&(c=!0)))}while(i&&!c)}o&&o.type.indexOf("tag-name")&&(p=d.start).row==n.row&&Math.abs(p.column-n.column)<2&&(p=d.end)}(p=d&&d.cursor||p)&&(e?d&&t?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(p.row,p.column):this.selection.moveTo(p.row,p.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),r=0;return n?(this.$tryReplace(n,e)&&(r=1),null!==n&&(this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),r):r},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;this.$blockScrolling+=1;var i=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;o>=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),this.$blockScrolling-=1,r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==r(e)&&i.mixin(t,e);var o=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(o)||this.$search.$options.needle)||(o=this.session.getWordRange(o.start.row,o.start.column),e=this.session.getTextRange(o)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:o});var s=this.$search.find(this.session);return t.preventScroll?s:s?(this.revealRange(s,n),s):(t.backwards?o.start=o.end:o.end=o.start,void this.selection.setRange(o))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",(function(){r=!0})),s=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),a=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,s=e.layerConfig,a=o.top-s.offset;null!=(r=o.top>=0&&a+t.top<0||!(o.top<s.height&&o.top+t.top+s.lineHeight>window.innerHeight)&&null)&&(i.style.top=a+"px",i.style.left=o.left+"px",i.style.height=s.lineHeight+"px",i.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",s))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}).call(b.prototype),y.defineOptions(b.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=b})),ace.define("ace/undomanager",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.reset()};(function(){function e(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function t(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++){for(var i=e[r],o={group:i.group,deltas:new Array(i.length)},s=0;s<i.deltas.length;s++){var a=i.deltas[s];o.deltas[s]=t(a)}n[r]=o}return n}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),n=null;return t&&(n=this.$doc.undoChanges(t,e),this.$redoStack.push(t),this.dirtyCounter--),n},this.redo=function(e){var t=this.$redoStack.pop(),n=null;return t&&(n=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),n},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(t){return n(t,e)},this.$deserializeDeltas=function(e){return n(e,t)}}).call(r.prototype),t.UndoManager=r})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,a=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){i.implement(this,s),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.row,i=this.$annotations[r];i||(i=this.$annotations[r]={text:[]});var s=n.text;s=s?o.escapeHTML(s):n.html||"",-1===i.text.indexOf(s)&&i.text.push(s);var a=n.type;"error"==a?i.className=" ace_error":"warning"==a&&" ace_error"!=i.className?i.className=" ace_warning":"info"!=a||i.className||(i.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var r=new Array(n+1);r.unshift(t,1),this.$annotations.splice.apply(this.$annotations,r)}}},this.update=function(e){for(var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),o=t.getNextFoldLine(n),s=o?o.start.row:1/0,a=this.$showFoldWidgets&&t.foldWidgets,c=t.$breakpoints,l=t.$decorations,u=t.$firstLineNumber,h=0,d=t.gutterRenderer||this.$renderer,p=null,f=-1,g=n;;){if(g>s&&(g=o.end.row+1,s=(o=t.getNextFoldLine(g,o))?o.start.row:1/0),g>i){for(;this.$cells.length>f+1;)p=this.$cells.pop(),this.element.removeChild(p.element);break}(p=this.$cells[++f])||((p={element:null,textNode:null,foldWidget:null}).element=r.createElement("div"),p.textNode=document.createTextNode(""),p.element.appendChild(p.textNode),this.element.appendChild(p.element),this.$cells[f]=p);var m="ace_gutter-cell ";if(c[g]&&(m+=c[g]),l[g]&&(m+=l[g]),this.$annotations[g]&&(m+=this.$annotations[g].className),p.element.className!=m&&(p.element.className=m),(y=t.getRowLength(g)*e.lineHeight+"px")!=p.element.style.height&&(p.element.style.height=y),a){var E=a[g];null==E&&(E=a[g]=t.getFoldWidget(g))}if(E){p.foldWidget||(p.foldWidget=r.createElement("span"),p.element.appendChild(p.foldWidget)),m="ace_fold-widget ace_"+E,"start"==E&&g==s&&g<o.end.row?m+=" ace_closed":m+=" ace_open",p.foldWidget.className!=m&&(p.foldWidget.className=m);var y=e.lineHeight+"px";p.foldWidget.style.height!=y&&(p.foldWidget.style.height=y)}else p.foldWidget&&(p.element.removeChild(p.foldWidget),p.foldWidget=null);var v=h=d?d.getText(t,g):g+u;v!=p.textNode.data&&(p.textNode.data=v),g++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(h=t.getLength()+u);var b=d?d.getWidth(t,h,e):h.toString().length*e.characterWidth;b+=6,this.gutterWidth=b,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",b)},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?r.addCssClass(this.element,"ace_folding-enabled"):r.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(a.prototype),t.Gutter=a})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e=e||this.config){this.config=e;var t=[];for(var n in this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),s=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,s,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,n,i,o){for(var s=this.session,a=t.start.row,c=t.end.row,l=a,u=0,h=0,d=s.getScreenLastRowColumn(l),p=new r(l,t.start.column,l,h);l<=c;l++)p.start.row=p.end.row=l,p.start.column=l==a?t.start.column:s.getRowWrapIndent(l),p.end.column=d,u=h,h=d,d=l+1<c?s.getScreenLastRowColumn(l+1):l==c?0:t.end.column,this.drawSingleLineMarker(e,p,n+(l==a?" ace_start":"")+" ace_br"+((l==a||l==a+1&&t.start.column?1:0)|(u<h?2:0)|(h>d?4:0)|(l==c?8:0)),i,l==c?0:1,o)},this.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,s=r.lineHeight,a=this.$getTop(t.start.row,r),c=o+t.start.column*r.characterWidth;i=i||"",e.push("<div class='",n," ace_br1 ace_start' style='","height:",s,"px;","right:0;","top:",a,"px;","left:",c,"px;",i,"'></div>"),a=this.$getTop(t.end.row,r);var l=t.end.column*r.characterWidth;if(e.push("<div class='",n," ace_br12' style='","height:",s,"px;","width:",l,"px;","top:",a,"px;","left:",o,"px;",i,"'></div>"),!((s=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){a=this.$getTop(t.start.row+1,r);var u=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",n,u?" ace_br"+u:"","' style='","height:",s,"px;","right:0;","top:",a,"px;","left:",o,"px;",i,"'></div>")}},this.drawSingleLineMarker=function(e,t,n,r,i,o){var s=r.lineHeight,a=(t.end.column+(i||0)-t.start.column)*r.characterWidth,c=this.$getTop(t.start.row,r),l=this.$padding+t.start.column*r.characterWidth;e.push("<div class='",n,"' style='","height:",s,"px;","width:",a,"px;","top:",c,"px;","left:",l,"px;",o||"","'></div>")},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),s=r.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,r)-o),e.push("<div class='",n,"' style='","height:",s,"px;","top:",o,"px;","left:0;right:0;",i||"","'></div>")},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),s=r.lineHeight;e.push("<div class='",n,"' style='","height:",s,"px;","top:",o,"px;","left:0;right:0;",i||"","'></div>")}}).call(o.prototype),t.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),s=(e("../lib/useragent"),e("../lib/event_emitter").EventEmitter),a=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){r.implement(this,s),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+o.stringRepeat(this.TAB_CHAR,n)+"</span>"):t.push(o.stringRepeat(" ",n));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var r="ace_indent-guide",i="",s="";if(this.showInvisibles){r+=" ace_invisible",i=" ace_invisible_space",s=" ace_invisible_tab";var a=o.stringRepeat(this.SPACE_CHAR,this.tabSize),c=o.stringRepeat(this.TAB_CHAR,this.tabSize)}else c=a=o.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]="<span class='"+r+i+"'>"+a+"</span>",this.$tabStrings["\t"]="<span class='"+r+s+"'>"+c+"</span>"}},this.updateLines=function(e,t,n){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var r=Math.max(t,e.firstRow),i=Math.min(n,e.lastRow),o=this.element.childNodes,s=0,a=e.firstRow;a<r;a++){if(c=this.session.getFoldLine(a)){if(c.containsRow(r)){r=c.start.row;break}a=c.end.row}s++}a=r;for(var c,l=(c=this.session.getNextFoldLine(a))?c.start.row:1/0;a>l&&(a=c.end.row+1,l=(c=this.session.getNextFoldLine(a,c))?c.start.row:1/0),!(a>i);){var u=o[s++];if(u){var h=[];this.$renderLine(h,a,!this.$useLineGroups(),a==l&&c),u.style.height=e.lineHeight*this.session.getRowLength(a)+"px",u.innerHTML=h.join("")}a++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var n=this.element;if(t.firstRow<e.firstRow)for(var r=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);r>0;r--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(r=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);r>0;r--)n.removeChild(n.lastChild);if(e.firstRow<t.firstRow){var i=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i)}e.lastRow>t.lastRow&&(i=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow),n.appendChild(i))},this.$renderLinesFragment=function(e,t,n){for(var r=this.element.ownerDocument.createDocumentFragment(),o=t,s=this.session.getNextFoldLine(o),a=s?s.start.row:1/0;o>a&&(o=s.end.row+1,a=(s=this.session.getNextFoldLine(o,s))?s.start.row:1/0),!(o>n);){var c=i.createElement("div"),l=[];if(this.$renderLine(l,o,!1,o==a&&s),c.innerHTML=l.join(""),this.$useLineGroups())c.className="ace_line_group",r.appendChild(c),c.style.height=e.lineHeight*this.session.getRowLength(o)+"px";else for(;c.firstChild;)r.appendChild(c.firstChild);o++}return r},this.update=function(e){this.config=e;for(var t=[],n=e.firstRow,r=e.lastRow,i=n,o=this.session.getNextFoldLine(i),s=o?o.start.row:1/0;i>s&&(i=o.end.row+1,s=(o=this.session.getNextFoldLine(i,o))?o.start.row:1/0),!(i>r);)this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(i),"px'>"),this.$renderLine(t,i,!1,i==s&&o),this.$useLineGroups()&&t.push("</div>"),i++;this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){var i=this,s=r.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]/g,(function(e,n,r,s,a){if(n)return i.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+o.stringRepeat(i.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&#38;";if("<"==e)return"&#60;";if(">"==e)return"&#62;";if("\t"==e){if(void 0!==i.session){var c=i.session.getScreenTabSize(t+s);return t+=c-1,i.$tabStrings[c]}return"<span class='ace_invisible ace_invisible_tab'>&#9;</span>"}if(" "==e){var l=i.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",u=i.showInvisibles?i.SPACE_CHAR:"";return t+=1,"<span class='"+l+"' style='width:"+2*i.config.characterWidth+"px'>"+u+"</span>"}return r?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+i.SPACE_CHAR+"</span>":(t+=1,"<span class='ace_cjk' style='width:"+2*i.config.characterWidth+"px'>"+e+"</span>")}));if(this.$textToken[n.type])e.push(s);else{var a="ace_"+n.type.replace(/\./g," ace_"),c="";"fold"==n.type&&(c=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",a,"'",c,">",s,"</span>")}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);return r<=0||r>=n?t:" "==t[0]?(r-=r%this.tabSize,e.push(o.stringRepeat(this.$tabStrings[" "],r/this.tabSize)),t.substr(r)):"\t"==t[0]?(e.push(o.stringRepeat(this.$tabStrings["\t"],r)),t.substr(r)):t},this.$renderWrappedLine=function(e,t,n,r){for(var i=0,s=0,a=n[0],c=0,l=0;l<t.length;l++){var u=t[l],h=u.value;if(0==l&&this.displayIndentGuides){if(i=h.length,!(h=this.renderIndentGuide(e,h,a)))continue;i-=h.length}if(i+h.length<a)c=this.$renderToken(e,c,u,h),i+=h.length;else{for(;i+h.length>=a;)c=this.$renderToken(e,c,u,h.substring(0,a-i)),h=h.substring(a-i),i=a,r||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(o.stringRepeat(" ",n.indent)),c=0,a=n[++s]||Number.MAX_VALUE;0!=h.length&&(i+=h.length,c=this.$renderToken(e,c,u,h))}}},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var o=1;o<t.length;o++)i=(r=t[o]).value,n=this.$renderToken(e,n,r,i)},this.$renderLine=function(e,t,n,r){if(r||0==r||(r=this.session.getFoldLine(t)),r)var i=this.$getFoldLineTokens(t,r);else i=this.session.getTokens(t);if(n||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),i.length){var o=this.session.getRowSplitData(t);o&&o.length?this.$renderWrappedLine(e,i,o,n):this.$renderSimpleLine(e,i)}this.showInvisibles&&(r&&(t=r.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),n||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[],i=n.getTokens(e);return t.walk((function(e,t,o,s,a){null!=e?r.push({type:"fold",value:e}):(a&&(i=n.getTokens(t)),i.length&&function(e,t,n){for(var i=0,o=0;o+e[i].value.length<t;)if(o+=e[i].value.length,++i==e.length)return;for(o!=t&&((s=e[i].value.substring(t-o)).length>n-t&&(s=s.substring(0,n-t)),r.push({type:e[i].type,value:s}),o=t+s.length,i+=1);o<n&&i<e.length;){var s;(s=e[i].value).length+o>n?r.push({type:e[i].type,value:s.substring(0,n-o)}):r.push(e[i]),o+=s.length,i+=1}}(i,s,o))}),t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(a.prototype),t.Text=a})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===r&&(r=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(r?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||r||(this.smoothBlinking=e,i.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=i.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&i.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){i.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+n.column*this.config.characterWidth,top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,r=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]),n=0;for(var i=t.length;n<i;n++){var o=this.getPixelPosition(t[n].cursor,!0);if(!((o.top>e.height+e.offset||o.top<0)&&n>1)){var s=(this.cursors[r++]||this.addCursor()).style;this.drawCursor?this.drawCursor(s,o,e,t[n],this.session):(s.left=o.left+"px",s.top=o.top+"px",s.width=e.characterWidth+"px",s.height=e.lineHeight+"px")}}for(;this.cursors.length>r;)this.removeCursor();var a=this.session.getOverwrite();this.$setOverwrite(a),this.$pixelPos=o,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),s=e("./lib/event_emitter").EventEmitter,a=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,s),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e}}).call(a.prototype);var c=function(e,t){a.call(this,e),this.scrollTop=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px"};r.inherits(c,a),function(){this.classSuffix="-v",this.onScroll=function(){this.skipEvent||(this.scrollTop=this.element.scrollTop,this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return this.isVisible?this.width:0},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=function(e){this.inner.style.height=e+"px"},this.setScrollHeight=function(e){this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=this.element.scrollTop=e)}}.call(c.prototype);var l=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(l,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(l.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=l,t.VScrollBar=c,t.HScrollBar=l})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;r.nextFrame((function(){var e;for(t.pending=!1;e=t.changes;)t.changes=0,t.onRender(e)}),this.window)}}}).call(i.prototype),t.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),s=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,c=0,l=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),c||this.$testFractionalRect(),this.$measureNode.innerHTML=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){r.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=i.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;c=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval((function(){e.checkForSizeChanges()}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===c){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(t){e={width:0,height:0}}var t={height:e.height,width:e.width/c}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.innerHTML=o.stringRepeat(e,c),this.$main.getBoundingClientRect().width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(l.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./config"),s=e("./lib/useragent"),a=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,h=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,p=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter;i.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_editor.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}',"ace_editor.css");var m=function(e,t){var n=this;this.container=e||i.createElement("div"),this.$keepTextAreaAtCursor=!s.isOldIE,i.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar()},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var i=0,o=this.$size,s={width:o.width,height:o.height,scrollerHeight:o.scrollerHeight,scrollerWidth:o.scrollerWidth};return r&&(e||o.height!=r)&&(o.height=r,i|=this.CHANGE_SIZE,o.scrollerHeight=o.height,this.$horizScroll&&(o.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",i|=this.CHANGE_SCROLL),n&&(e||o.width!=n)&&(i|=this.CHANGE_SIZE,o.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",o.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(i|=this.CHANGE_FULL)),o.$dirty=!n||!r,i&&this._signal("resize",s),i},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var r=this.textarea.style,i=this.lineHeight;if(t<0||t>e.height-i)r.top=r.left="0";else{var o=this.characterWidth;if(this.$composition){var s=this.textarea.value.replace(/^\x01+/,"");o*=this.session.$getStringScreenWidth(s)[0]+2,i+=2}(n-=this.scrollLeft)>this.$size.scrollerWidth-o&&(n=this.$size.scrollerWidth-o),n+=this.gutterWidth,r.height=i+"px",r.width=o+"px",r.left=Math.min(n,this.$size.scrollerWidth-o)+"px",r.top=Math.min(t,this.$size.height-i)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender");var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.max((this.$minLines||1)*this.lineHeight,Math.min(t,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight());var r=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var i=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,i=this.$getLongestLine(),o=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-i-2*this.$padding<0),s=this.$horizScroll!==o;s&&(this.$horizScroll=o,this.scrollBarH.setVisible(o));var a=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=this.scrollTop%this.lineHeight,l=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=u;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,r-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,i+2*this.$padding-t.scrollerWidth+h.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+u<0||this.scrollTop>h.top),p=a!==d;p&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var f,g,m=Math.ceil(l/this.lineHeight)-1,E=Math.max(0,Math.round((this.scrollTop-c)/this.lineHeight)),y=E+m,v=this.lineHeight;E=e.screenToDocumentRow(E,0);var b=e.getFoldLine(E);b&&(E=b.start.row),f=e.documentToScreenRow(E,0),g=e.getRowLength(E)*v,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(y)*v+g,c=this.scrollTop-f*v;var A=0;return this.layerConfig.width!=i&&(A=this.CHANGE_H_SCROLL),(s||p)&&(A=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),p&&(i=this.$getLongestLine())),this.layerConfig={width:i,padding:this.$padding,firstRow:E,firstRowScreen:f,lastRow:y,lineHeight:v,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:c,gutterOffset:Math.max(0,Math.ceil((c+t.height-t.scrollerHeight)/v)),height:this.$size.scrollerHeight},A},this.$updateLines=function(){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,s=n&&n.top||0,a=n&&n.bottom||0,c=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;c+s>o?(t&&c+s>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):c+this.$size.scrollerHeight-a<o+this.lineHeight&&(t&&c+this.$size.scrollerHeight-a<o-this.lineHeight&&(o+=t*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight-this.$size.scrollerHeight));var l=this.scrollLeft;l>i?(i<this.$padding+2*this.layerConfig.characterWidth&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):l+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):l<=this.$padding&&i-l<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),r=this.$size.scrollerHeight-this.lineHeight,i=n.top-r*(t||0);return this.session.setScrollTop(i),i},this.STEPS=8,this.$calcSteps=function(e,t){var n,r,i=0,o=this.STEPS,s=[];for(i=0;i<o;++i)s.push((n=i/this.STEPS,r=e,(t-e)*(Math.pow(n-1,3)+1)+r));return s},this.scrollToLine=function(e,t,n,r){var i=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(i-=this.$size.scrollerHeight/2);var o=this.scrollTop;this.session.setScrollTop(i),!1!==n&&this.animateScrolling(o,r)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var r=this;if(e!=n){if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length&&(e=i[0])==n)return}var o=r.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:o},clearInterval(this.$timer),r.session.setScrollTop(o.shift()),r.session.$scrollTop=n,this.$timer=setInterval((function(){o.length?(r.session.setScrollTop(o.shift()),r.session.$scrollTop=n):null!=n?(r.session.$scrollTop=-1,r.session.setScrollTop(n),n=null):(r.$timer=clearInterval(r.$timer),r.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=(e+this.scrollLeft-n.left-this.$padding)/this.characterWidth,i=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),o=Math.round(r);return{row:i,column:o,side:r-o>0?1:-1}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=Math.round((e+this.scrollLeft-n.left-this.$padding)/this.characterWidth),i=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(i,Math.max(r,0))},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+Math.round(r.column*this.characterWidth),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(i.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)s(e);else{var r=e||this.$options.theme.initialValue;o.loadModule(["theme",r],s)}function s(r){if(n.$themeId!=e)return t&&t();if(r.cssClass){i.importCssString(r.cssText,r.cssClass,n.container.ownerDocument),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var o="padding"in r?r.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=r.cssClass,n.theme=r,i.addCssClass(n.container,r.cssClass),i.setCssClass(n.container,"ace_dark",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:r}),t&&t()}}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){i.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(m.prototype),o.defineOptions(m.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=i.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=m})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,s=e("../config"),a=function(t,n,r,i){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),s.get("packaged")||!e.toUrl)i=i||s.moduleUrl(n,"worker");else{var o=this.$normalizePath;i=i||o(e.toUrl("ace/worker/worker.js",null,"_"));var a={};t.forEach((function(t){a[t]=o(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}try{this.$worker=new Worker(i)}catch(e){if(!(e instanceof window.DOMException))throw e;var c=this.$workerBlob(i),l=window.URL||window.webkitURL,u=l.createObjectURL(c);this.$worker=new Worker(u),l.revokeObjectURL(u)}this.$worker.postMessage({init:!0,tlns:a,module:n,classname:r}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,o),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var r=this.callbackId++;this.callbacks[r]=n,t.push(r)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))},this.$workerBlob=function(e){var t="importScripts('"+i.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob("application/javascript")}}}).call(a.prototype);var c=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var r=null,i=!1,a=Object.create(o),c=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){c.messageBuffer.push(e),r&&(i?setTimeout(l):l())},this.setEmitSync=function(e){i=e};var l=function(){var e=c.messageBuffer.shift();e.command?r[e.command].apply(r,e.args):e.event&&a._signal(e.event,e.data)};a.postMessage=function(e){c.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},s.loadModule(["worker",t],(function(e){for(r=new e[n](a);c.messageBuffer.length;)l()}))};c.prototype=a.prototype,t.UIWorkerClient=c,t.WorkerClient=a})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),s=function(e,t,n,r,i,o){var s=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){s.onCursorChange()}))},this.$pos=n;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;s>=0;s--){var a={row:(c=this.others[s]).row,column:c.column+o};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;s>=0;s--){var c;a={row:(c=this.others[s]).row,column:c.column+o},this.doc.remove(new r(a.row,a.column,a.row,a.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(s.prototype),t.PlaceHolder=s})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var r=e("../lib/event"),i=e("../lib/useragent");function o(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,s=t.shiftKey,a=t.ctrlKey,c=e.getAccelKey(),l=e.getButton();if(a&&i.isMac&&(l=t.button),e.editor.inMultiSelectMode&&2==l)e.editor.textInput.onContextMenu(e.domEvent);else if(a||n||c){if(0===l){var u,h=e.editor,d=h.selection,p=h.inMultiSelectMode,f=e.getDocumentPosition(),g=d.getCursor(),m=e.inSelection()||d.isEmpty()&&o(f,g),E=e.x,y=e.y,v=h.session,b=h.renderer.pixelToScreenCoordinates(E,y),A=b;if(h.$mouseHandler.$enableJumpToDef)a&&n||c&&n?u=s?"block":"add":n&&h.$blockSelectEnabled&&(u="block");else if(c&&!n){if(u="add",!p&&s)return}else n&&h.$blockSelectEnabled&&(u="block");if(u&&i.isMac&&t.ctrlKey&&h.$mouseHandler.cancelContextMenu(),"add"==u){if(!p&&m)return;if(!p){var T=d.toOrientedRange();h.addSelectionMarker(T)}var C=d.rangeList.rangeAtPoint(f);h.$blockScrolling++,h.inVirtualSelectionMode=!0,s&&(C=null,T=d.ranges[0]||T,h.removeSelectionMarker(T)),h.once("mouseup",(function(){var e=d.toOrientedRange();C&&e.isEmpty()&&o(C.cursor,e.cursor)?d.substractPoint(e.cursor):(s?d.substractPoint(T.cursor):T&&(h.removeSelectionMarker(T),d.addRange(T)),d.addRange(e)),h.$blockScrolling--,h.inVirtualSelectionMode=!1}))}else if("block"==u){var R;e.stop(),h.inVirtualSelectionMode=!0;var S=[];h.$blockScrolling++,p&&!c?d.toSingleRange():!p&&c&&(R=d.toOrientedRange(),h.addSelectionMarker(R)),s?b=v.documentToScreenPosition(d.lead):d.moveToPosition(f),h.$blockScrolling--,A={row:-1,column:-1};r.capture(h.container,(function(e){E=e.clientX,y=e.clientY}),(function(e){clearInterval(_),h.removeSelectionMarkers(S),S.length||(S=[d.toOrientedRange()]),h.$blockScrolling++,R&&(h.removeSelectionMarker(R),d.toSingleRange(R));for(var t=0;t<S.length;t++)d.addRange(S[t]);h.inVirtualSelectionMode=!1,h.$mouseHandler.$clickSelection=null,h.$blockScrolling--}));var _=setInterval((function(){!function(){var e=h.renderer.pixelToScreenCoordinates(E,y),t=v.screenToDocumentPosition(e.row,e.column);o(A,e)&&o(t,d.lead)||(A=e,h.$blockScrolling++,h.selection.moveToPosition(t),h.renderer.scrollCursorIntoView(),h.removeSelectionMarkers(S),S=d.rectangularRangeBlock(A,b),h.$mouseHandler.$clickSelection&&1==S.length&&S[0].isEmpty()&&(S[0]=h.$mouseHandler.$clickSelection.clone()),S.forEach(h.addSelectionMarker,h),h.updateSelectionMarkers(),h.$blockScrolling--)}()}),20);return e.preventDefault()}}}else 0===l&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,s=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),c=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=new(0,e("./search").Search),h=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(h.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var r=this.isBackwards(),o=n.start.row,s=n.end.row;if(o==s){if(r)var a=n.end,c=n.start;else a=n.start,c=n.end;return this.addRange(i.fromPoints(c,c)),void this.addRange(i.fromPoints(a,a))}var l=[],u=this.getLineRange(o,!0);u.start.column=n.start.column,l.push(u);for(var h=o+1;h<s;h++)l.push(this.getLineRange(h,!0));(u=this.getLineRange(s,!0)).end.column=n.end.column,l.push(u),l.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.selectionLead),o=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(r,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],o=e.column<t.column;if(o)var s=e.column,a=t.column;else s=t.column,a=e.column;var c,l,u=e.row<t.row;if(u)var h=e.row,d=t.row;else h=t.row,d=e.row;s<0&&(s=0),h<0&&(h=0),h==d&&(n=!0);for(var p=h;p<=d;p++){var f=i.fromPoints(this.session.screenToDocumentPosition(p,s),this.session.screenToDocumentPosition(p,a));if(f.isEmpty()){if(g&&(l=g,(c=f.end).row==l.row&&c.column==l.column))break;var g=f.end}f.cursor=o?f.start:f.end,r.push(f)}if(u&&r.reverse(),!n){for(var m=r.length-1;r[m].isEmpty()&&m>0;)m--;if(m>0)for(var E=0;r[E].isEmpty();)E++;for(var y=m;y>=E;y--)r[y].isEmpty()&&r.splice(y,1)}return r}}.call(o.prototype);var d=e("./editor").Editor;function p(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",s),e.commands.addCommands(l.defaultCommands),function(e){var t=e.textInput.getElement(),n=!1;function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}a.addListener(t,"keydown",(function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()})),a.addListener(t,"keyup",r),a.addListener(t,"blur",r)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,s=1==n||n&&n.$byLines,a=this.session,c=this.selection,l=c.rangeList,u=(i?c:l).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=c._eventRegistry;c._eventRegistry={};var d=new o(a);this.inVirtualSelectionMode=!0;for(var p=u.length;p--;){if(s)for(;p>0&&u[p].start.row==u[p-1].end.row;)p--;d.fromOrientedRange(u[p]),d.index=p,this.selection=a.selection=d;var f=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===f||(r=f),d.toOrientedRange(u[p])}d.detach(),this.selection=a.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=h,c.mergeOverlappingRanges();var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;r<t.length;r++)n.push(this.session.getTextRange(t[r]));var i=this.session.getDocument().getNewLineCharacter();(e=n.join(i)).length==(n.length-1)*i.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var r=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;r.row==t.row&&this.session.$clipPositionToDocument(r.row,r.column).column==t.column||this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var r=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(r)}this.$search.set(t);var i=this.$search.findAll(this.session);if(!i.length)return 0;this.$blockScrolling+=1;var o=this.multiSelect;n||o.toSingleRange(i[0]);for(var s=i.length;s--;)o.addRange(i[s],!0);return r&&o.rangeList.rangeAtPoint(r.start)&&o.addRange(r,!0),this.$blockScrolling-=1,i.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),r=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var s,a=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())l=a;else var c=this.session.documentToScreenPosition(r?n.end:n.start),l=this.session.screenToDocumentPosition(c.row+e,c.column);if(r?(s=i.fromPoints(a,l)).cursor=s.start:(s=i.fromPoints(l,a)).cursor=s.end,s.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var u=n.cursor}else this.selection.addRange(n);this.selection.addRange(s),u&&this.selection.substractPoint(u)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,r=n.ranges,i=r.length;i--;)if((a=r[i]).isEmpty()){var o=t.getWordRange(a.start.row,a.start.column);a.start.row=o.start.row,a.start.column=o.start.column,a.end.row=o.end.row,a.end.column=o.end.column}n.mergeOverlappingRanges();var s=[];for(i=r.length;i--;){var a=r[i];s.unshift(t.getTextRange(a))}for(e<0?s.unshift(s.pop()):s.push(s.shift()),i=r.length;i--;)o=(a=r[i]).clone(),t.replace(a,s[i]),a.start.row=o.start.row,a.start.column=o.start.column},this.selectMore=function(e,t,n){var r=this.session,i=r.multiSelect.toOrientedRange();if(!i.isEmpty()||((i=r.getWordRange(i.start.row,i.start.column)).cursor=-1==e?i.start:i.end,this.multiSelect.addRange(i),!n)){var o=r.getTextRange(i),s=function(e,t,n){return u.$options.wrap=!0,u.$options.needle=t,u.$options.backwards=-1==n,u.find(e)}(r,o,e);s&&(s.cursor=-1==e?s.start:s.end,this.$blockScrolling+=1,this.session.unfold(s),this.multiSelect.addRange(s),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(i.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,r=-1,o=n.filter((function(e){if(e.cursor.row==r)return!0;r=e.cursor.row}));if(n.length&&o.length!=n.length-1){o.forEach((function(e){t.substractPoint(e.cursor)}));var s=0,a=1/0,l=n.map((function(t){var n=t.cursor,r=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==r&&(r=0),n.column>s&&(s=n.column),r<a&&(a=r),r}));n.forEach((function(t,n){var r=t.cursor,o=s-r.column,u=l[n]-a;o>u?e.insert(r,c.stringRepeat(" ",o-u)):e.remove(new i(r.row,r.column,r.row,r.column-o+u)),t.start.column=t.end.column=s,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),h=u.start.row,d=u.end.row,p=h==d;if(p){var f,g=this.session.getLength();do{f=this.session.getLine(d)}while(/[=:]/.test(f)&&++d<g);do{f=this.session.getLine(h)}while(/[=:]/.test(f)&&--h>0);h<0&&(h=0),d>=g&&(d=g-1)}var m=this.session.removeFullLines(h,d);m=this.$reAlignText(m,p),this.session.insert({row:h,column:0},m.join("\n")+"\n"),p||(u.start.column=0,u.end.column=m[m.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,s=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(s=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),r<t[2].length&&(r=t[2].length),i>t[3].length&&(i=t[3].length),t):[e]})).map(t?l:o?s?function(e){return e[2]?a(n+r-e[2].length)+e[2]+a(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:l:function(e){return e[2]?a(n)+e[2]+a(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?a(n)+e[2]+a(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(d.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=p,e("./config").defineOptions(d.prototype,"editor",{enableMultiselect:{set:function(e){p(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),s=o.search(i);if(-1!=s){for(var a=n||o.length,c=e.getLength(),l=t,u=t;++t<c;){var h=e.getLine(t).search(i);if(-1!=h){if(h<=s)break;u=t}}if(u>l){var d=e.getLine(u).length;return new r(l,a,u,d)}}},this.openingBracketBlock=function(e,t,n,i,o){var s={row:n,column:i+1},a=e.$findClosingBracket(t,s,o);if(a){var c=e.foldWidgets[a.row];return null==c&&(c=e.getFoldWidget(a.row)),"start"==c&&a.row>s.row&&(a.row--,a.column=e.getLine(a.row).length),r.fromPoints(s,a)}},this.closingBracketBlock=function(e,t,n,i,o){var s={row:n,column:i},a=e.$findOpeningBracket(t,s);if(a)return a.column++,s.column--,r.fromPoints(a,s)}}).call(i.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");function i(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}e("./range").Range,function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,s="add"==e.action,a=i+1;a<o;a++)n[a]&&(n[a].hidden=s);n[o]&&(s?n[i]?n[o].hidden=s:n[i]=n[o]:(n[i]==n[o]&&(n[i]=void 0),n[o].hidden=s))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,r=e.end.row-n;if(0===r);else if("remove"==e.action)t.splice(n+1,r).forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows();else{var i=new Array(r);i.unshift(n,0),t.splice.apply(t,i),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e.session=this.session;var n=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,n.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),e.pixelHeight||(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/n.layerConfig.lineHeight);var i=this.session.getFoldAt(e.row,0);if(e.$fold=i,i){var o=this.session.lineWidgets;e.row!=i.end.row||o[i.start.row]?e.hidden=!0:o[i.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],r=[];n;)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var i=1/0,o=0;o<n.length;o++){var s=n[o];if(s&&s.el&&s.session==this.session){if(!s._inDocument){if(this.session.lineWidgets[s.row]!=s)continue;s._inDocument=!0,t.container.appendChild(s.el)}s.h=s.el.offsetHeight,s.fixedWidth||(s.w=s.el.offsetWidth,s.screenWidth=Math.ceil(s.w/r.characterWidth));var a=s.h/r.lineHeight;s.coverLine&&(a-=this.session.getRowLineCount(s.row))<0&&(a=0),s.rowCount!=a&&(s.rowCount=a,s.row<i&&(i=s.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,r=this.session.lineWidgets;if(r){for(var i=Math.min(this.firstRow,n.firstRow),o=Math.max(this.lastRow,n.lastRow,r.length);i>0&&!r[i];)i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var s=i;s<=o;s++){var a=r[s];if(a&&a.el)if(a.hidden)a.el.style.top=-100-(a.pixelHeight||0)+"px";else{a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var c=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;a.coverLine||(c+=n.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=c-n.offset+"px";var l=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(l-=t.scrollLeft),a.el.style.left=l+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=n.width+2*n.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}.call(i.prototype),t.LineWidgets=i})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,i=e("../lib/dom"),o=e("../range").Range;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var s=e.getCursorPosition(),a=s.row,c=n.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():a-=t;var l,u=function(e,t,n){var r=e.getAnnotations().sort(o.comparePoints);if(r.length){var i=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=r+i>>1,s=n(t,e[o]);if(s>0)r=o+1;else{if(!(s<0))return o;i=o-1}}return-(r+1)}(r,{row:t,column:-1},o.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:0===i&&n<0&&(i=r.length-1);var s=r[i];if(s&&n){if(s.row===t){do{s=r[i+=n]}while(s&&s.row===t);if(!s)return r.slice()}var a=[];t=s.row;do{a[n<0?"unshift":"push"](s),s=r[i+=n]}while(s&&s.row==t);return a.length&&a}}}(n,a,t);if(u){var h=u[0];s.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,s.row=h.row,l=e.renderer.$gutterLayer.$annotations[s.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var d={row:s.row,fixedWidth:!0,coverGutter:!0,el:i.createElement("div"),type:"errorMarker"},p=d.el.appendChild(i.createElement("div")),f=d.el.appendChild(i.createElement("div"));f.className="error_widget_arrow "+l.className;var g=e.renderer.$cursorLayer.getPixelPosition(s).left;f.style.left=g+e.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",p.className="error_widget "+l.className,p.innerHTML=l.text.join("<br>"),p.appendChild(i.createElement("div"));var m=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return d.destroy(),{command:"null"}};d.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(m),n.widgetManager.removeLineWidget(d),e.off("changeSelection",d.destroy),e.off("changeSession",d.destroy),e.off("mouseup",d.destroy),e.off("change",d.destroy))},e.keyBinding.addKeyboardHandler(m),e.on("changeSelection",d.destroy),e.on("changeSession",d.destroy),e.on("mouseup",d.destroy),e.on("change",d.destroy),e.session.widgetManager.addLineWidget(d),d.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},i.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),i=e("./lib/event"),o=e("./editor").Editor,s=e("./edit_session").EditSession,a=e("./undomanager").UndoManager,c=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.edit=function(e){if("string"==typeof e){var n=e;if(!(e=document.getElementById(n)))throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof o)return e.env.editor;var s="";if(e&&/input|textarea/i.test(e.tagName)){var a=e;s=a.value,e=r.createElement("pre"),a.parentNode.replaceChild(e,a)}else e&&(s=r.getInnerText(e),e.innerHTML="");var l=t.createEditSession(s),u=new o(new c(e));u.setSession(l);var h={document:l,editor:u,onResize:u.resize.bind(u,null)};return a&&(h.textarea=a),i.addListener(window,"resize",h.onResize),u.on("destroy",(function(){i.removeListener(window,"resize",h.onResize),h.editor.container.env=null})),u.container.env=u.env=h,u},t.createEditSession=function(e,t){var n=new s(e,t);return n.setUndoManager(new a),n},t.EditSession=s,t.UndoManager=a,t.version="1.2.2"})),ace.require(["ace/ace"],(function(e){for(var t in e&&e.config.init(!0),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}))},5466:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(t,n,r){"use strict";var i=t("./lib/oop"),o=t("./lib/event_emitter").EventEmitter,s=t("./lib/lang"),a=t("./range").Range,c=t("./anchor").Anchor,l=t("./keyboard/hash_handler").HashHandler,u=t("./tokenizer").Tokenizer,h=a.comparePoints,d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){i.implement(this,o),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return d.$tokenizer=new u({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:n.inFormatString&&("n"==r||"t"==r?e="\n":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1),0,r);return r.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var r=n[0];return r.fmtString=e,e=this.splitRegex.exec(e),r.guard=e[1],r.fmt=e[2],r.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),d.prototype.getTokenizer=function(){return d.$tokenizer},d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var r=e.session;switch(t){case"CURRENT_WORD":var i=r.getWordRange();case"SELECTION":case"SELECTED_TEXT":return r.getTextRange(i);case"CURRENT_LINE":return r.getLine(e.getCursorPosition().row);case"PREV_LINE":return r.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return r.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return r.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(t,n,r){var i=n.flag||"",o=n.guard;o=new RegExp(o,i.replace(/[^gi]/,""));var s=this.tokenizeTmSnippet(n.fmt,"formatString"),a=this,c=t.replace(o,(function(){a.variables.__=arguments;for(var t=a.resolveVariables(s,r),n="E",i=0;i<t.length;i++){var o=t[i];if("object"==e(o))if(t[i]="",o.changeCase&&o.local){var c=t[i+1];c&&"string"==typeof c&&("u"==o.changeCase?t[i]=c[0].toUpperCase():t[i]=c[0].toLowerCase(),t[i+1]=c.substr(1))}else o.changeCase&&(n=o.changeCase);else"U"==n?t[i]=o.toUpperCase():"L"==n&&(t[i]=o.toLowerCase())}return t.join("")}));return this.variables.__=null,c},this.resolveVariables=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=t[i];if("string"==typeof o)r.push(o);else{if("object"!=e(o))continue;if(o.skip)a(o);else{if(o.processed<i)continue;if(o.text){var s=this.getVariableValue(n,o.text);s&&o.fmtString&&(s=this.tmStrFormat(s,o)),o.processed=i,null==o.expectIf?s&&(r.push(s),a(o)):s?o.skip=o.elseBranch:a(o)}else(null!=o.tabstopId||null!=o.changeCase)&&r.push(o)}}}function a(e){var n=t.indexOf(e,i+1);-1!=n&&(i=n)}return r},this.insertSnippetForSelection=function(t,n){var r=t.getCursorPosition(),i=t.session.getLine(r.row),o=t.session.getTabString(),s=i.match(/^\s*/)[0];r.column<s.length&&(s=s.slice(0,r.column));var a=this.tokenizeTmSnippet(n);a=(a=this.resolveVariables(a,t)).map((function(e){return"\n"==e?e+s:"string"==typeof e?e.replace(/\t/g,o):e}));var c=[];a.forEach((function(t,n){if("object"==e(t)){var r=t.tabstopId,i=c[r];if(i||((i=c[r]=[]).index=r,i.value=""),-1===i.indexOf(t)){i.push(t);var o=a.indexOf(t,n+1);if(-1!==o){var s=a.slice(n+1,o);s.some((function(t){return"object"===e(t)}))&&!i.value?i.value=s:!s.length||i.value&&"string"==typeof i.value||(i.value=s.join(""))}}}})),c.forEach((function(e){e.length=0}));var l={};function u(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if("object"==e(i)){if(l[i.tabstopId])continue;i=n[t.lastIndexOf(i,r-1)]||{tabstopId:i.tabstopId}}n[r]=i}return n}for(var h=0;h<a.length;h++){var d=a[h];if("object"==e(d)){var f=d.tabstopId,g=a.indexOf(d,h+1);if(l[f])l[f]===d&&(l[f]=null);else{var m=c[f],E="string"==typeof m.value?[m.value]:u(m.value);E.unshift(h+1,Math.max(0,g-h)),E.push(d),l[f]=d,a.splice.apply(a,E),-1===m.indexOf(d)&&m.push(d)}}}var y=0,v=0,b="";a.forEach((function(e){"string"==typeof e?("\n"===e[0]?(v=e.length-1,y++):v+=e.length,b+=e):e.start?e.end={row:y,column:v}:e.start={row:y,column:v}}));var A=t.getSelectionRange(),T=t.session.replace(A,b),C=new p(t),R=t.inVirtualSelectionMode&&t.selection.index;C.addTabstops(c,A.start,T,R)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(t){var n=t.session.$mode.$id||"";if("html"===(n=n.split("/").pop())||"php"===n){"php"!==n||t.session.$mode.inlinePhp||(n="html");var r=t.getCursorPosition(),i=t.session.getState(r.row);"object"===e(i)&&(i=i[0]),i.substring&&("js-"==i.substring(0,3)?n="javascript":"css-"==i.substring(0,4)?n="css":"php-"==i.substring(0,4)&&(n="php"))}return n},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),i=e.session.getLine(r.row),o=i.substring(0,r.column),s=i.substr(r.column),a=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=a[e];return t&&(n=this.findMatchingSnippet(t,o,s)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if((!i.startRe||i.startRe.test(t))&&(!i.endRe||i.endRe.test(n))&&(i.startRe||i.endRe))return i.matchBefore=i.startRe?i.startRe.exec(t):[""],i.matchAfter=i.endRe?i.endRe.exec(n):[""],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:"",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:"",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,r=this.snippetNameMap,i=this;function o(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function a(e,t,n){return e=o(e),t=o(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function c(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],r[t]={});var o=r[t];if(e.name){var c=o[e.name];c&&i.unregister(c),o[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=s.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=a(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=a(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?c(e):Array.isArray(e)&&e.forEach(c),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,r=this.snippetNameMap;function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var o=n[e.scope||t],s=o&&o.indexOf(e);s>=0&&o.splice(s,1)}}e.content?i(e):Array.isArray(e)&&e.forEach(i)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],r={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=i.exec(e);){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(e){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var o=t[2],s=t[3];if("regex"==o){var a=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=a.exec(s)[1],r.trigger=a.exec(s)[1],r.endTrigger=a.exec(s)[1],r.endGuard=a.exec(s)[1]}else"snippet"==o?(r.tabTrigger=s.match(/^\S*/)[0],r.name||(r.name=s)):r[o]=s}}return n},this.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var i=r[t];return i&&(n=i[e]),!!n}),this),n}}).call(d.prototype);var p=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,r=e.end,i=n.row,o=r.row-i,s=r.column-n.column;if(t&&(o=-o,s=-s),!this.$inChange&&t){var a=this.selectedTabstop,c=a&&!a.some((function(e){return h(e.start,n)<=0&&h(e.end,r)>=0}));if(c)return this.detach()}for(var l=this.ranges,u=0;u<l.length;u++){var d=l[u];d.end.row<n.row||(t&&h(n,d.start)<0&&h(r,d.end)>0?(this.removeRange(d),u--):(d.start.row==i&&d.start.column>n.column&&(d.start.column+=s),d.end.row==i&&d.end.column>=n.column&&(d.end.column+=s),d.start.row>=i&&(d.start.row+=o),d.end.row>=i&&(d.end.row+=o),h(d.start,d.end)>0&&this.removeRange(d)))}l.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var t=this.editor.session,r=t.getTextRange(e.firstNonLinked),i=e.length;i--;){var o=e[i];if(o.linked){var s=n.snippetManager.tmStrFormat(r,o.original);t.replace(o,s)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),r=this.ranges.length;r--;)if(!this.ranges[r].linked){var i=this.ranges[r].contains(e.row,e.column),o=n||this.ranges[r].contains(t.row,t.column);if(i&&o)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var r=t.length;r--;)t.hasLinkedRanges&&t[r].linked||n.addRange(t[r].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var r=a.fromPoints(n,n);m(r.start,t),m(r.end,t),e[0]=[r],e[0].index=0}var i=[this.index+1,0],o=this.ranges;e.forEach((function(e,n){for(var r=this.$openTabstops[n]||e,s=e.length;s--;){var c=e[s],l=a.fromPoints(c.start,c.end||c.start);g(l.start,t),g(l.end,t),l.original=c,l.tabstop=r,o.push(l),r!=e?r.unshift(l):r[s]=l,c.fmtString?(l.linked=!0,r.hasLinkedRanges=!0):r.firstNonLinked||(r.firstNonLinked=l)}r.firstNonLinked||(r.hasLinkedRanges=!1),r===e&&(i.push(r),this.$openTabstops[n]=r),this.addTabstopMarkers(r)}),this),i.length>2&&(this.tabstops.length&&i.push(i.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,i))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new l,this.keyboardHandler.bindKeys({Tab:function(e){n.snippetManager&&n.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(p.prototype);var f={};f.onChange=c.prototype.onChange,f.setPosition=function(e,t){this.pos.row=e,this.pos.column=t},f.update=function(e,t,n){this.$insertRight=n,this.pos=e,this.onChange(t)};var g=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},m=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};t("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),n.snippetManager=new d;var E=t("./editor").Editor;(function(){this.insertSnippet=function(e,t){return n.snippetManager.insertSnippet(this,e,t)},this.expandSnippet=function(e){return n.snippetManager.expandWithTab(this,e)}}).call(E.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../virtual_renderer").VirtualRenderer,i=e("../editor").Editor,o=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),c=e("../lib/dom"),l=function(e){var t=new r(e);t.$maxLines=4;var n=new i(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusWaitTimout=0,n.$highlightTagPending=!0,n};c.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=function(e){var t=c.createElement("div"),n=new l(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r,i=function(){};n.focus=i,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=i,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),h.start.row=h.end.row=t.row,e.stop()}));var u=new o(-1,0,-1,1/0),h=new o(-1,0,-1,1/0);h.id=n.session.addMarker(h,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?u.id&&(n.session.removeMarker(u.id),u.id=null):u.id=n.session.addMarker(u,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(r){if(r.x!=e.x||r.y!=e.y){(r=e).scrollTop=n.renderer.scrollTop;var t=r.getDocumentPosition().row;u.start.row!=t&&(u.id||n.setRow(t),p(t))}}else r=e})),n.renderer.on("beforeRender",(function(){if(r&&-1!=u.start.row){r.$pos=null;var e=r.getDocumentPosition().row;u.id||n.setRow(e),p(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow];r!=t.selectedNode&&(t.selectedNode&&c.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=r,r&&c.addCssClass(r,"ace_selected"))}));var d=function(){p(-1)},p=function(e,t){e!==u.start.row&&(u.start.row=u.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return u.start.row},s.addListener(n.container,"mouseout",d),n.on("hide",d),n.on("changeSelection",d),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var f=n.session.bgTokenizer;return f.$tokenizeRow=function(e){var t=n.data[e],r=[];if(!t)return r;"string"==typeof t&&(t={value:t}),t.caption||(t.caption=t.value||t.name);for(var i,o,s=-1,a=0;a<t.caption.length;a++)o=t.caption[a],s!==(i=t.matchMask&1<<a?1:0)?(r.push({type:t.className||(i?"completion-highlight":""),value:o}),s=i):r[r.length-1].value+=o;if(t.meta){var c=n.renderer.$size.scrollerWidth/n.renderer.layerConfig.characterWidth,l=t.meta;l.length+t.caption.length>c-2&&(l=l.substr(0,c-t.caption.length-3)+"…"),r.push({type:"rightAlignedText",value:l})}return r},f.$updateOnChange=i,f.start=i,n.session.$computeWidth=function(){return this.screenWidth=0},n.$blockScrolling=1/0,n.isOpen=!1,n.isTopdown=!1,n.data=[],n.setData=function(e){n.setValue(a.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return h.start.row},n.setRow=function(e){e=Math.max(0,Math.min(this.data.length,e)),h.start.row!=e&&(n.selection.clearSelection(),h.start.row=h.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,i){var o=this.container,s=window.innerHeight,a=window.innerWidth,c=this.renderer.$maxLines*t*1.4,l=e.top+this.$borderSize;l+c>s-t&&!i?(o.style.top="",o.style.bottom=s-l+"px",n.isTopdown=!1):(l+=t,o.style.top=l+"px",o.style.bottom="",n.isTopdown=!0),o.style.display="",this.renderer.$textLayer.checkForSizeChanges();var u=e.left;u+o.offsetWidth>a&&(u=a-o.offsetWidth),o.style.left=u+"px",this._signal("show"),r=null,n.isOpen=!0},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n}})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var r=0,i=e.length;0===i&&n();for(var o=0;o<i;o++)t(e[o],(function(e,t){++r===i&&n(e,t)}))};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t-1;o>=0&&n.test(e[o]);o--)i.push(e[o]);return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t;o<e.length&&n.test(e[o]);o++)i.push(e[o]);return i}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(e,t,n){"use strict";var r=e("./keyboard/hash_handler").HashHandler,i=e("./autocomplete/popup").AcePopup,o=e("./autocomplete/util"),s=(e("./lib/event"),e("./lib/lang")),a=e("./lib/dom"),c=e("./snippets").snippetManager,l=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=s.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=s.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new i(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.setData(this.completions.filtered),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var r=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var i=r.layerConfig.lineHeight,o=r.$cursorLayer.getPixelPosition(this.base,!0);o.left-=this.popup.getTextLeftOffset();var s=e.container.getBoundingClientRect();o.top+=s.top-r.layerConfig.offset,o.left+=s.left-e.renderer.scrollLeft,o.left+=r.gutterWidth,this.popup.show(o,i)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&e.relatedTarget==this.tooltipNode,i=this.popup&&this.popup.container;t==n||t.parentNode==i||r||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){var t=this.popup.getRow(),n=this.popup.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.popup.setRow(t)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText)for(var n,r=this.editor.selection.getAllRanges(),i=0;n=r[i];i++)n.start.column-=this.completions.filterText.length,this.editor.session.remove(n);e.snippet?c.insertSnippet(this.editor,e.snippet):e.upperCaseMatch?this.editor.execCommand("insertstring",e.upperCaseValue):this.editor.execCommand("insertstring",e.value||e),this.editor.renderer.scrollCursorIntoView()}this.detach()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),i=n.getLine(r.row),s=o.retrievePrecedingIdentifier(i,r.column);this.base=n.doc.createAnchor(r.row,r.column-s.length),this.base.$insertRight=!0;var a=[],c=e.completers.length+n.getCompleters().length;return e.completers.concat(n.getCompleters()).forEach((function(i,l){i.getCompletions(e,n,r,s,(function(r,i){r||(a=a.concat(i));var s=e.getCursorPosition(),l=n.getLine(s.row);t(null,{prefix:o.retrievePrecedingIdentifier(l,s.column,i[0]&&i[0].identifierRegex),matches:a,finished:0==--c})}))})),!0},this.showPopup=function(e){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(e){if(e&&this.base&&this.completions){var t=this.editor.getCursorPosition(),n=this.editor.session.getTextRange({start:this.base,end:t});if(n==this.completions.filterText)return;return this.completions.setFilter(n),this.completions.filtered.length&&(1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet)?void this.openPopup(this.editor,n,e):this.detach()}var r=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var i=function(){if(n.finished)return this.detach()}.bind(this),o=n.prefix,s=n&&n.matches;if(!s||!s.length)return i();if(0===o.indexOf(n.prefix)&&r==this.gatherCompletionsId){this.completions=new u(s),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(o);var a=this.completions.filtered;return a.length&&(1!=a.length||a[0].value!=o||a[0].snippet)?this.autoInsert&&1==a.length&&n.finished?this.insertMatch(a[0]):void this.openPopup(this.editor,o,e):i()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(r=e.getDocTooltip(n)),r})),r||(r=n),"string"==typeof r&&(r={docText:r}),r&&(r.docHTML||r.docText)?void this.showDocTooltip(r):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=a.createElement("div"),this.tooltipNode.className="autocomplete-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,r=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,window.innerWidth-r.right<320?(t.style.right=window.innerWidth-r.left+"px",t.style.left=""):(t.style.left=r.right+1+"px",t.style.right=""),t.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}}}).call(l.prototype),l.startCommand={name:"startAutocomplete",exec:function(e){if(e.useHueAutocompleter){var t=e.renderer,n=t.layerConfig.lineHeight,r=t.$cursorLayer.getPixelPosition(this.base,!0),i=e.container.getBoundingClientRect();return r.top+=i.top-t.layerConfig.offset,r.left+=i.left-e.renderer.scrollLeft,r.left+=t.gutterWidth,void e._signal("showAutocomplete",{position:r,lineHeight:n})}e.completer||(e.completer=new l),e.completer.autoInsert=!1,e.completer.autoSelect=!0,e.completer.showPopup(e),e.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){if(e.completeMatch&&!t.completeMatch)return-1;if(!e.completeMatch&&t.completeMatch)return 1;if(e.completeMatch&&t.completeMatch&&e.weight&&t.weight&&t.weight!==e.weight)return t.weight-e.weight;if(e.completeMatch&&t.completeMatch&&e.startsWith&&!t.startsWith)return-1;if(e.completeMatch&&t.completeMatch&&!e.startsWith&&t.startsWith)return 1;if(e.prioritizeScore&&t.prioritizeScore)return t.score-e.score;if(e.prioritizeScore)return-1;if(t.prioritizeScore)return 1;var n=0;return e.caption>t.caption&&(n=1),e.caption<t.caption&&(n=-1),n+t.exactMatch-e.exactMatch||n+t.score-e.score}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),i=t.toLowerCase();e:for(var o,s=0;o=e[s];s++){var a=o.value||o.caption||o.snippet;if(a){var c,l,u=-1,h=0,d=0,p=0;if(this.exactMatch&&o.ignoreCase){if(r!==o.upperCaseValue.substr(0,t.length))continue e;o.upperCaseMatch=t===r,o.caption=o.upperCaseMatch?o.upperCaseValue:o.value}else{if(this.exactMatch&&t!==a.substr(0,t.length))continue e;(p=a.toUpperCase().indexOf(r))>-1&&(u=p-1);for(var f=0;f<t.length;f++){var g=a.indexOf(i[f],u+1),m=a.indexOf(r[f],u+1);if((c=g>=0&&(m<0||g<m)?g:m)<0)continue e;(l=c-u-1)>0&&(d+=l),h|=1<<c,u=c}}o.matchMask=h,o.exactMatch=d?0:1,o.score=(o.score||0)-d,o.startsWith=0===p,o.completeMatch=p>-1,n.push(o)}}return n}}).call(u.prototype),t.Autocomplete=l,t.FilteredList=u})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var r=e("../range").Range,i=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/,o=!1;function s(e){return o?e.replace(/(--.*$|\/\*[\s\S]*?\*\/)/gm," "):e}t.setSqlMode=function(e){o=e},t.getCompletions=function(e,t,n,o,a){var c=function(e,t){var n=function(e,t){return s(e.getTextRange(r.fromPoints({row:0,column:0},t))).split(i).length-1}(e,t),o=s(e.getValue()).split(i),a=Object.create(null),c=o[n];return o.forEach((function(e,t){if(e&&e!==c){var r=Math.abs(n-t),i=o.length-r;a[e]?a[e]=Math.max(i,a[e]):a[e]=i}})),a}(t,n);a(null,Object.keys(c).map((function(e){return{caption:e,value:e,score:c[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,i=e("../autocomplete").Autocomplete,o=e("../config"),s=e("../lib/lang"),a=e("../autocomplete/util"),c=e("../autocomplete/text_completer"),l={getCompletions:function(e,t,n,r,i){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,r,i);var o=e.session.getState(n.row);i(null,t.$mode.getCompletions(o,t,n,r))}},u={getCompletions:function(e,t,n,i,o){var s=r.snippetMap,a=[];r.getActiveScopes(e).forEach((function(e){for(var t=s[e]||[],n=t.length;n--;){var r=t[n],i=r.name||r.tabTrigger;i&&a.push({caption:i,snippet:r.content,meta:r.tabTrigger&&!r.name?r.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),o(null,a)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",s.escapeHTML(e.caption),"</b>","<hr></hr>",s.escapeHTML(e.snippet)].join(""))}},h=[u,c,l];t.setCompleters=function(e){h=e||[]},t.addCompleter=function(e){h.push(e)},t.textCompleter=c,t.keyWordCompleter=l,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},p=function(e,t){f(t.session.$mode)},f=function e(t){var n=t.$id;r.files||(r.files={}),g(n),t.modes&&t.modes.forEach(e)},g=function e(t){if(t&&!r.files[t]){var n=t.replace("mode","snippets");r.files[t]={},o.loadModule(n,(function(n){n&&(r.files[t]=n,!n.snippets&&n.snippetText&&(n.snippets=r.parseSnippetFile(n.snippetText)),r.register(n.snippets||[],n.scope),n.includeScopes&&(r.snippetMap[n.scope].includeScopes=n.includeScopes,n.includeScopes.forEach((function(t){e("ace/mode/"+t)}))))}))}},m=function(e){var t=e.editor,n=function(e){var t,n=e.getCursorPosition(),r=e.session.getLine(n.row);return e.completers.forEach((function(e){e.identifierRegexps&&e.identifierRegexps.forEach((function(e){!t&&e&&(t=a.retrievePrecedingIdentifier(r,n.column,e))}))})),t||a.retrievePrecedingIdentifier(r,n.column)}(t);if(t.useHueAutocompleter)if(n&&"insertstring"===e.command.name){var r=t.renderer,o=r.layerConfig.lineHeight,s=r.$cursorLayer.getPixelPosition(this.base,!0),c=t.container.getBoundingClientRect();s.top+=c.top-r.layerConfig.offset,s.left+=c.left-t.renderer.scrollLeft,s.left+=r.gutterWidth,t._signal("showAutocomplete",{position:s,lineHeight:o})}else"backspace"!==e.command.name||n||t._signal("hideAutocomplete");else{var l=t.completer&&t.completer.activated;"backspace"===e.command.name?l&&!n&&t.completer.detach():"insertstring"===e.command.name&&n&&!l&&(t.completer||(t.completer=new i),t.completer.autoInsert=!1,t.completer.showPopup(t))}},E=e("../editor").Editor;e("../config").defineOptions(E.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.addCommand(i.startCommand)):this.commands.removeCommand(i.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:h),this.commands.on("afterExec",m)):this.commands.removeListener("afterExec",m)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(d),this.on("changeMode",p),p(0,this)):(this.commands.removeCommand(d),this.off("changeMode",p))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(){}))},4469:()=>{ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/lang"),o=e("../lib/event"),s=e("../keyboard/hash_handler").HashHandler,a=e("../lib/keys");r.importCssString(".ace_search {background-color: #ddd;border: 1px solid #cbcbcb;border-top: 0 none;max-width: 325px;overflow: hidden;margin: 0;padding: 4px;padding-right: 6px;padding-bottom: 0;position: absolute;top: 0px;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {border-radius: 3px;border: 1px solid #cbcbcb;float: left;margin-bottom: 4px;overflow: hidden;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {background-color: white;border-right: 1px solid #cbcbcb;border: 0 none;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;float: left;height: 22px;outline: 0;padding: 0 7px;width: 214px;margin: 0;}.ace_searchbtn,.ace_replacebtn {background: #fff;border: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;float: left;height: 22px;margin: 0;position: relative;}.ace_searchbtn:last-child,.ace_replacebtn:last-child {border-top-right-radius: 3px;border-bottom-right-radius: 3px;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn {background-position: 50% 50%;background-repeat: no-repeat;width: 27px;}.ace_searchbtn.prev {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADFJREFUeNpiSU1NZUAC/6E0I0yACYskCpsJiySKIiY0SUZk40FyTEgCjGgKwTRAgAEAQJUIPCE+qfkAAAAASUVORK5CYII=); }.ace_searchbtn.next {background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADRJREFUeNpiTE1NZQCC/0DMyIAKwGJMUAYDEo3M/s+EpvM/mkKwCQxYjIeLMaELoLMBAgwAU7UJObTKsvAAAAAASUVORK5CYII=); }.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;float: right;font: 16px/16px Arial;height: 14px;margin: 5px 1px 9px 5px;padding: 0;text-align: center;width: 14px;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_replacebtn.prev {width: 54px}.ace_replacebtn.next {width: 27px}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;-moz-box-sizing: border-box;box-sizing: border-box;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;}","ace_searchbox");var c='<div class="ace_search right"> <button type="button" action="hide" class="ace_searchbtn_close"></button> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <button type="button" action="findNext" class="ace_searchbtn next"></button> <button type="button" action="findPrev" class="ace_searchbtn prev"></button> <button type="button" action="findAll" class="ace_searchbtn" title="Alt-Enter">All</button> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <button type="button" action="replaceAndFindNext" class="ace_replacebtn">Replace</button> <button type="button" action="replaceAll" class="ace_replacebtn">All</button> </div> <div class="ace_search_options"> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> </div></div>'.replace(/>\s+/g,">"),l=function(e,t,n){var i=r.createElement("div");i.innerHTML=c,this.element=i.firstChild,this.$init(),this.setEditor(e)};(function(){this.setEditor=function(e){e.searchBox=this,e.container.appendChild(this.element),this.editor=e},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOptions=e.querySelector(".ace_search_options"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field")},this.$init=function(){var e=this.element;this.$initElements(e);var t=this;o.addListener(e,"mousedown",(function(e){setTimeout((function(){t.activeInput.focus()}),0),o.stopPropagation(e)})),o.addListener(e,"click",(function(e){var n=(e.target||e.srcElement).getAttribute("action");n&&t[n]?t[n]():t.$searchBarKb.commands[n]&&t.$searchBarKb.commands[n].exec(t),o.stopPropagation(e)})),o.addCommandKeyListener(e,(function(e,n,r){var i=a.keyCodeToString(r),s=t.$searchBarKb.findKeyCommand(n,i);s&&s.exec&&(s.exec(t),o.stopEvent(e))})),this.$onChange=i.delayedCall((function(){t.find(!1,!1)})),o.addListener(this.searchInput,"input",(function(){t.$onChange.schedule(20)})),o.addListener(this.searchInput,"focus",(function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()})),o.addListener(this.replaceInput,"focus",(function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()}))},this.$closeSearchBarKb=new s([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new s,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.replaceBox.style.display="",e.replaceInput.focus()},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout((function(){e.hide()}))},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}}]),this.$syncOptions=function(){r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.find(!1,!1)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,n){var i=!this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:n})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",i),this.editor._emit("findSearchBox",{match:!i}),this.highlight()},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=!this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked})&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",e),this.editor._emit("findSearchBox",{match:!e}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.element.style.display="",this.replaceBox.style.display=t?"":"none",this.isReplace=t,e&&(this.searchInput.value=e),this.find(!1,!1,!0),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(l.prototype),t.SearchBox=l,t.Search=function(e,t){(e.searchBox||new l(e)).show(e.session.getTextRange(),t)}})),ace.require(["ace/ext/searchbox"],(function(){}))},1557:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}ace.define("ace/ext/menu_tools/element_generator",["require","exports","module"],(function(e,t,n){"use strict";n.exports.createOption=function(e){var t,n=document.createElement("option");for(t in e)e.hasOwnProperty(t)&&("selected"===t?n.setAttribute(t,e[t]):n[t]=e[t]);return n},n.exports.createCheckbox=function(e,t,n){var r=document.createElement("input");return r.setAttribute("type","checkbox"),r.setAttribute("id",e),r.setAttribute("name",e),r.setAttribute("value",t),r.setAttribute("class",n),t&&r.setAttribute("checked","checked"),r},n.exports.createInput=function(e,t,n){var r=document.createElement("input");return r.setAttribute("type","text"),r.setAttribute("id",e),r.setAttribute("name",e),r.setAttribute("value",t),r.setAttribute("class",n),r},n.exports.createLabel=function(e,t){var n=document.createElement("label");return n.setAttribute("for",t),n.textContent=e,n},n.exports.createSelection=function(e,t,r){var i=document.createElement("select");return i.setAttribute("id",e),i.setAttribute("name",e),i.setAttribute("class",r),t.forEach((function(e){i.appendChild(n.exports.createOption(e))})),i}})),ace.define("ace/ext/modelist",["require","exports","module"],(function(e,t,n){"use strict";var r=[],i=function(e,t,n){var r;this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n,r=/\^/.test(n)?n.replace(/\|(\^)?/g,(function(e,t){return"$|"+(t?"^":"^.*\\.")}))+"$":"^.*\\.("+n+")$",this.extRe=new RegExp(r,"gi")};i.prototype.supportsFile=function(e){return e.match(this.extRe)};var o={ABAP:["abap"],ABC:["abc"],ActionScript:["as"],ADA:["ada|adb"],Apache_Conf:["^htaccess|^htgroups|^htpasswd|^conf|htaccess|htgroups|htpasswd"],AsciiDoc:["asciidoc|adoc"],Assembly_x86:["asm|a"],AutoHotKey:["ahk"],BatchFile:["bat|cmd"],C_Cpp:["cpp|c|cc|cxx|h|hh|hpp|ino"],C9Search:["c9search_results"],Cirru:["cirru|cr"],Clojure:["clj|cljs"],Cobol:["CBL|COB"],coffee:["coffee|cf|cson|^Cakefile"],ColdFusion:["cfm"],CSharp:["cs"],CSS:["css"],Curly:["curly"],D:["d|di"],Dart:["dart"],Diff:["diff|patch"],Dockerfile:["^Dockerfile"],Dot:["dot"],Dummy:["dummy"],DummySyntax:["dummy"],Eiffel:["e|ge"],EJS:["ejs"],Elixir:["ex|exs"],Elm:["elm"],Erlang:["erl|hrl"],Forth:["frt|fs|ldr"],FTL:["ftl"],Gcode:["gcode"],Gherkin:["feature"],Gitignore:["^.gitignore"],Glsl:["glsl|frag|vert"],golang:["go"],Groovy:["groovy"],HAML:["haml"],Handlebars:["hbs|handlebars|tpl|mustache"],Haskell:["hs"],haXe:["hx"],Hive:["hql|q|ql"],HTML:["html|htm|xhtml"],HTML_Ruby:["erb|rhtml|html.erb"],HTML_Elixir:["eex|html.eex"],INI:["ini|conf|cfg|prefs"],Io:["io"],Jack:["jack"],Jade:["jade"],Java:["java"],JavaScript:["js|jsm|jsx"],JSON:["json"],JSONiq:["jq"],JSP:["jsp"],JSX:["jsx"],Julia:["jl"],LaTeX:["tex|latex|ltx|bib"],Lean:["lean|hlean"],LESS:["less"],Liquid:["liquid"],Lisp:["lisp"],LiveScript:["ls"],LogiQL:["logic|lql"],LSL:["lsl"],Lua:["lua"],LuaPage:["lp"],Lucene:["lucene"],Makefile:["^Makefile|^GNUmakefile|^makefile|^OCamlMakefile|make"],Markdown:["md|markdown"],Mask:["mask"],MATLAB:["matlab"],Maze:["mz"],MEL:["mel"],MUSHCode:["mc|mush"],MySQL:["mysql"],Nix:["nix"],ObjectiveC:["m|mm"],OCaml:["ml|mli"],Pascal:["pas|p"],Perl:["pl|pm"],pgSQL:["pgsql"],PHP:["php|phtml|shtml|php3|php4|php5|phps|phpt|aw|ctp"],PigLatin:["pig"],Powershell:["ps1"],Praat:["praat|praatscript|psc|proc"],Prolog:["plg|prolog"],Properties:["properties"],Protobuf:["proto"],Python:["py"],R:["r"],RDoc:["Rd"],RHTML:["Rhtml"],Ruby:["rb|ru|gemspec|rake|^Guardfile|^Rakefile|^Gemfile"],Rust:["rs"],SASS:["sass"],SCAD:["scad"],Scala:["scala"],Scheme:["scm|sm|rkt|oak|scheme"],SCSS:["scss"],SH:["sh|bash|^.bashrc"],SJS:["sjs"],Smarty:["smarty|tpl"],snippets:["snippets"],Soy_Template:["soy"],Space:["space"],SQL:["sql"],SQLServer:["sqlserver"],Stylus:["styl|stylus"],SVG:["svg"],Swift:["swift"],Tcl:["tcl"],Tex:["tex"],Text:["txt"],Textile:["textile"],Toml:["toml"],Twig:["twig|swig"],Typescript:["ts|typescript|str"],Vala:["vala"],VBScript:["vbs|vb"],Velocity:["vm"],Verilog:["v|vh|sv|svh"],VHDL:["vhd|vhdl"],XML:["xml|rdf|rss|wsdl|xslt|atom|mathml|mml|xul|xbl|xaml"],XQuery:["xq"],YAML:["yaml|yml"],Django:["html"]},s={ObjectiveC:"Objective-C",CSharp:"C#",golang:"Go",C_Cpp:"C and C++",coffee:"CoffeeScript",HTML_Ruby:"HTML (Ruby)",HTML_Elixir:"HTML (Elixir)",FTL:"FreeMarker"},a={};for(var c in o){var l=o[c],u=(s[c]||c).replace(/_/g," "),h=c.toLowerCase(),d=new i(h,u,l[0]);a[h]=d,r.push(d)}n.exports={getModeForPath:function(e){for(var t=a.text,n=e.split(/[\/\\]/).pop(),i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t},modes:r,modesByName:a}})),ace.define("ace/ext/themelist",["require","exports","module","ace/lib/fixoldbrowsers"],(function(e,t,n){"use strict";e("ace/lib/fixoldbrowsers"),t.themesByName={},t.themes=[["Chrome"],["Clouds"],["Crimson Editor"],["Dawn"],["Dreamweaver"],["Eclipse"],["GitHub"],["IPlastic"],["Solarized Light"],["TextMate"],["Tomorrow"],["XCode"],["Kuroir"],["KatzenMilch"],["SQL Server","sqlserver","light"],["Ambiance","ambiance","dark"],["Chaos","chaos","dark"],["Clouds Midnight","clouds_midnight","dark"],["Cobalt","cobalt","dark"],["idle Fingers","idle_fingers","dark"],["krTheme","kr_theme","dark"],["Merbivore","merbivore","dark"],["Merbivore Soft","merbivore_soft","dark"],["Mono Industrial","mono_industrial","dark"],["Monokai","monokai","dark"],["Pastel on dark","pastel_on_dark","dark"],["Solarized Dark","solarized_dark","dark"],["Terminal","terminal","dark"],["Tomorrow Night","tomorrow_night","dark"],["Tomorrow Night Blue","tomorrow_night_blue","dark"],["Tomorrow Night Bright","tomorrow_night_bright","dark"],["Tomorrow Night 80s","tomorrow_night_eighties","dark"],["Twilight","twilight","dark"],["Vibrant Ink","vibrant_ink","dark"]].map((function(e){var n=e[1]||e[0].replace(/ /g,"_").toLowerCase(),r={caption:e[0],theme:"ace/theme/"+n,isDark:"dark"==e[2],name:n};return t.themesByName[n]=r,r}))})),ace.define("ace/ext/menu_tools/add_editor_menu_options",["require","exports","module","ace/ext/modelist","ace/ext/themelist"],(function(e,t,n){"use strict";n.exports.addEditorMenuOptions=function(t){var n=e("../modelist"),r=e("../themelist");t.menuOptions={setNewLineMode:[{textContent:"unix",value:"unix"},{textContent:"windows",value:"windows"},{textContent:"auto",value:"auto"}],setTheme:[],setMode:[],setKeyboardHandler:[{textContent:"ace",value:""},{textContent:"vim",value:"ace/keyboard/vim"},{textContent:"emacs",value:"ace/keyboard/emacs"},{textContent:"textarea",value:"ace/keyboard/textarea"},{textContent:"sublime",value:"ace/keyboard/sublime"}]},t.menuOptions.setTheme=r.themes.map((function(e){return{textContent:e.caption,value:e.theme}})),t.menuOptions.setMode=n.modes.map((function(e){return{textContent:e.name,value:e.mode}}))}})),ace.define("ace/ext/menu_tools/get_set_functions",["require","exports","module"],(function(e,t,n){"use strict";n.exports.getSetFunctions=function(e){var t=[],n={editor:e,session:e.session,renderer:e.renderer},r=[],i=["setOption","setUndoManager","setDocument","setValue","setBreakpoints","setScrollTop","setScrollLeft","setSelectionStyle","setWrapLimitRange"];return["renderer","session","editor"].forEach((function(e){var o=n[e],s=e;for(var a in o)-1===i.indexOf(a)&&/^set/.test(a)&&-1===r.indexOf(a)&&(r.push(a),t.push({functionName:a,parentObj:o,parentName:s}))})),t}})),ace.define("ace/ext/menu_tools/generate_settings_menu",["require","exports","module","ace/ext/menu_tools/element_generator","ace/ext/menu_tools/add_editor_menu_options","ace/ext/menu_tools/get_set_functions"],(function(t,n,r){"use strict";var i=t("./element_generator"),o=t("./add_editor_menu_options").addEditorMenuOptions,s=t("./get_set_functions").getSetFunctions;r.exports.generateSettingsMenu=function(t){var n,r=[];function a(e,n,r,o){var s,a=document.createElement("div");return a.setAttribute("contains",r),a.setAttribute("class","ace_optionsMenuEntry"),a.setAttribute("style","clear: both;"),a.appendChild(i.createLabel(r.replace(/^set/,"").replace(/([A-Z])/g," $1").trim(),r)),Array.isArray(o)?(s=i.createSelection(r,o,n)).addEventListener("change",(function(n){try{t.menuOptions[n.target.id].forEach((function(e){e.textContent!==n.target.textContent&&delete e.selected})),e[n.target.id](n.target.value)}catch(e){throw new Error(e)}})):"boolean"==typeof o?(s=i.createCheckbox(r,o,n)).addEventListener("change",(function(t){try{e[t.target.id](!!t.target.checked)}catch(e){throw new Error(e)}})):(s=i.createInput(r,o,n)).addEventListener("change",(function(t){try{"true"===t.target.value?e[t.target.id](!0):"false"===t.target.value?e[t.target.id](!1):e[t.target.id](t.target.value)}catch(e){throw new Error(e)}})),s.style.cssText="float:right;",a.appendChild(s),a}function c(n){var i,o=n.functionName,s=n.parentObj,c=n.parentName,l=o.replace(/^set/,"get");if(void 0!==t.menuOptions[o])r.push(function(n,r,i,o){var s=t.menuOptions[n],c=r[o]();return"object"==e(c)&&(c=c.$id),s.forEach((function(e){e.value===c&&(e.selected="selected")})),a(r,i,n,s)}(o,s,c,l));else if("function"==typeof s[l])try{"object"===e(i=s[l]())&&(i=i.$id),r.push(a(s,c,o,i))}catch(e){}}return o(t),s(t).forEach((function(e){t.enabledMenuOptions&&!t.enabledMenuOptions[e.functionName]||c(e)})),t.customMenuOptions&&s(t.customMenuOptions).forEach((function(e){c(e)})),r.sort((function(e,t){var n=e.getAttribute("contains"),r=t.getAttribute("contains");return n.localeCompare(r)})),(n=document.createElement("div")).setAttribute("id","ace_settingsmenu"),r.forEach((function(e){n.appendChild(e)})),n}})),ace.define("ace/ext/menu_tools/overlay_page",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../../lib/dom");r.importCssString("#ace_settingsmenu, #kbshortcutmenu {background-color: #F7F7F7;color: black;box-shadow: -5px 4px 5px rgba(126, 126, 126, 0.55);padding: 1em 0.5em 2em 1em;overflow: auto;position: absolute;margin: 0;bottom: 0;right: 0;top: 0;z-index: 9991;cursor: default;}.ace_dark #ace_settingsmenu, .ace_dark #kbshortcutmenu {box-shadow: -20px 10px 25px rgba(126, 126, 126, 0.25);background-color: rgba(255, 255, 255, 0.6);color: black;}.ace_optionsMenuEntry:hover {background-color: rgba(100, 100, 100, 0.1);-webkit-transition: all 0.5s;transition: all 0.3s}.ace_closeButton {background: rgba(245, 146, 146, 0.5);border: 1px solid #F48A8A;border-radius: 50%;padding: 7px;position: absolute;right: -8px;top: -8px;z-index: 1000;}.ace_closeButton{background: rgba(245, 146, 146, 0.9);}.ace_optionsMenuKey {color: darkslateblue;font-weight: bold;}.ace_optionsMenuCommand {color: darkcyan;font-weight: normal;}"),n.exports.overlayPage=function(e,t,n,i,o,s){n=n?"top: "+n+";":"",o=o?"bottom: "+o+";":"",i=i?"right: "+i+";":"",s=s?"left: "+s+";":"";var a=document.createElement("div"),c=document.createElement("div");function l(e){27===e.keyCode&&a.click()}a.style.cssText="margin: 0; padding: 0; position: fixed; top:0; bottom:0; left:0; right:0;z-index: 9990; background-color: rgba(0, 0, 0, 0.3);",a.addEventListener("click",(function(){document.removeEventListener("keydown",l),a.parentNode.removeChild(a),e.focus(),a=null})),document.addEventListener("keydown",l),c.style.cssText=n+i+o+s,c.addEventListener("click",(function(e){e.stopPropagation()}));var u=r.createElement("div");u.style.position="relative";var h=r.createElement("div");h.className="ace_closeButton",h.addEventListener("click",(function(){a.click()})),u.appendChild(h),c.appendChild(u),c.appendChild(t),a.appendChild(c),document.body.appendChild(a),e.blur()}})),ace.define("ace/ext/settings_menu",["require","exports","module","ace/ext/menu_tools/generate_settings_menu","ace/ext/menu_tools/overlay_page","ace/editor"],(function(e,t,n){"use strict";var r=e("./menu_tools/generate_settings_menu").generateSettingsMenu,i=e("./menu_tools/overlay_page").overlayPage;n.exports.init=function(t){e("ace/editor").Editor.prototype.showSettingsMenu=function(){!function(e){document.getElementById("ace_settingsmenu")||i(e,r(e),"0","0","0")}(this)}}})),ace.require(["ace/ext/settings_menu"],(function(){}))},1986:()=>{ace.define("ace/mode/bigquery_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["bql","bq"],name:"BigQuery",scopeName:"source.bigquery"},r.inherits(o,i),t.BigQueryHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/bigquery",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/bigquery_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./bigquery_highlight_rules").BigQueryHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/bigquery",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},9930:()=>{ace.define("ace/mode/dasksql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hql","q","ql"],name:"Dasksql",scopeName:"source.dasksql"},r.inherits(o,i),t.DasksqlHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/dasksql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/dasksql_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./dasksql_highlight_rules").DasksqlHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/dasksql",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},4157:()=>{ace.define("ace/mode/druid_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["druid","ql"],name:"Druid",scopeName:"source.druid"},r.inherits(o,i),t.DruidHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/druid",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/druid_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./druid_highlight_rules").DruidHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/druid",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},2049:()=>{ace.define("ace/mode/elasticsearch_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["esql","es"],name:"ElasticSearch",scopeName:"source.elasticsearch"},r.inherits(o,i),t.ElasticSearchHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/elasticsearch",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/elasticsearch_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./elasticsearch_highlight_rules").ElasticSearchHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/elasticsearch",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},6515:()=>{ace.define("ace/mode/flink_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COUNT|COVAR_POP|COVAR_SAMP|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOP_END|HOP_PROCTIME|HOP_ROWTIME|HOP_START|HOUR|IF|IN_FILE|INITCAP|INLINE|INSTR|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LCASE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LISTAGG|LN|LOCATE|LOG|LOG2|LOG10|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|PROCTIME|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SENTENCES|SESSION_END|SESSION_PROCTIME|SESSION_ROWTIME|SESSION_START|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SOUNDEX|SPACE|SPLIT|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STR_TO_MAP|STRUCT|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|TUMBLE_END|TUMBLE_PROCTIME|TUMBLE_ROWTIME|TUMBLE_START|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOP|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SESSION|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|TUMBLE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["flink","ql"],name:"Flink",scopeName:"source.flink"},r.inherits(o,i),t.FlinkHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/flink",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/flink_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./flink_highlight_rules").FlinkHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/flink",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},3605:()=>{ace.define("ace/mode/hive_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DAYOFWEEK|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEK|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ABORT|ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AST|AUTHORIZATION|BETWEEN|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CBO|CHANGE|CHECK|CLUSTER|CLUSTERED|COLLECTION|COLUMN|COLUMNS|COMMENT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONNECTOR|CONNECTORS|CONSTRAINT|COST|CREATE|CROSS|CUBE|CURRENT|DATA|DATABASE|DATABASES|DBPROPERTIES|DCPROPERTIES|DEFAULT|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DETAIL|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DISTRIBUTED|DIV|DROP|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXISTS|EXPLAIN|EXPORT|EXPRESSION|EXTENDED|EXTERNAL|FIELDS|FILE|FILEFORMAT|FIRST|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|IDXPROPERTIES|IF|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTFORMAT|INSERT|INTO|IS|ITEMS|JAR|JOIN|JOINCOST|KEY|KEYS|LAST|LATERAL|LEFT|LIKE|LIMIT|LINES|LITERAL|LOAD|LOCAL|LOCATION|LOCK|LOCKS|MACRO|MATCHED|MATERIALIZED|MERGE|METADATA|MSCK|NO_DROP|NONE|NORELY|NOSCAN|NOT|NOVALIDATE|NULLS|OF|OFFLINE|ON|ONLY|OPERATOR|OPTION|OR|ORDER|OUT|OUTER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PRECEDING|PRIMARY|PRIVILEGES|PURGE|QUARTER|RANGE|REBUILD|RECOVER|REFERENCES|REGEXP|RELOAD|RELY|REMOTE|RENAME|REPAIR|REPLACE|REPLICATION|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SELECT|SEMI|SERDEPROPERTIES|SET|SETS|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SPEC|STATISTICS|STORED|SUMMARY|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRUNCATE|TYPE|UNARCHIVE|UNBOUNDED|UNION|UNIQUE|UPDATE|URL|USE|USER|USING|VALUES|VECTORIZATION|VIEW|VIEWS|WAIT|WHEN|WHERE|WINDOW|WITH","constant.language":"AVRO|DELIMITED|FALSE|ICEBERG|JSONFILE|NULL|ORC|PARQUET|RCFILE|SEQUENCEFILE|SERDE|TEXTFILE|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DOUBLE|FLOAT|INT|INTEGER|MAP|PRECISION|SMALLINT|STRING|STRUCT|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hql","q","ql"],name:"Hive",scopeName:"source.hive"},r.inherits(o,i),t.HiveHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/hive",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/hive_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./hive_highlight_rules").HiveHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/hive",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},2821:()=>{ace.define("ace/mode/hplsql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"CAST|CHAR|COALESCE|CONCAT|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE|DBMS_OUTPUT|PUT_LINE|DECODE|FROM_UNIXTIME|INSTR|LEN|LENGTH|LOWER|MAX_PART_DATE|MAX_PART_INT|MAX_PART_STRING|MIN_PART_DATE|MIN_PART_INT|MIN_PART_STRING|NOW|NVL|NVL2|PART_COUNT|PART_COUNT_BY|PART_LOC|REPLACE|SUBSTR|SUBSTRING|SYSDATE|TIMESTAMP_ISO|TO_CHAR|TO_TIMESTAMP|TRIM|UNIX_TIMESTAMP|UPPER",keyword:"ALLOCATE|ASSOCIATE|BREAK|CALL|CLOSE|CMP|CONDITION|COPY|CREATE|CURSOR|DATABASE|DECLARE|DESCRIBE|DIAGNOSTICS|DIRECTORY|DROP|EXEC|EXECUTE|EXIT|FETCH|FOR|FROM|FTP|FUNCTION|GET|HANDLER|HIVE|HOST|IF|IMMEDIATE|INCLUDE|INSERT|INTO|LEAVE|LOCAL|LOCATOR|LOOP|MAP|NULL|OBJECT|OPEN|PACKAGE|PRINT|PROCEDURE|RESIGNAL|RESULT|RETURN|SELECT|SET|SIGNAL|SUMMARY|TABLE|TEMPORARY|TRUNCATE|UPDATE|USE|VALUES|VOLATILE|WHEN|WHILE|.IF|.QUIT","constant.language":"FALSE|NULL|TRUE","storage.type":"BIGINT|BINARY_DOUBLE|BINARY_FLOAT|BINARY_INTEGER|BIT|BOOL|BOOLEAN|CHAR|CHARACTER|DATE|DATETIME|DECIMAL|DOUBLE|FLOAT|INT|INT2|INT8|INTEGER|NCHAR|NUMBER|NUMERIC|NVARCHAR|PLS_INTEGER|PRECISION|REAL|RECORD|SIMPLE_DOUBLE|SIMPLE_FLOAT|SIMPLE_INTEGER|SMALLINT|SYS_REFCURSOR|TIMESTAMP|TINYINT|VARCHAR|VARCHAR2|UTL_FILE|FILE_TYPE"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hplsql"],name:"Hplsql",scopeName:"source.hplsql"},r.inherits(o,i),t.HplsqlHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/hplsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/hplsql_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./hplsql_highlight_rules").HplsqlHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/hplsql",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},7527:()=>{ace.define("ace/mode/impala_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|ADDDATE|APPX_MEDIAN|ASCII|ASIN|ATAN|AVG|BIN|BYTES|CAST|CEIL|CEILING|CHAR_LENGTH|CHARACTER_LENGTH|COALESCE|CONCAT|CONCAT_WS|CONV|COS|COUNT|CURRENT_DATABASE|CURRENT_TIMESTAMP|DATE_ADD|DATE_PART|DATE_SUB|DATEDIFF|DAY|DAYNAME|DAYOFMONTH|DAYOFWEEK|DAYOFYEAR|DAYS_ADD|DAYS_SUB|DECODE|DEGREES|DENSE_RANK|E|EXP|EXTRACT|FIND_IN_SET|FIRST_VALUE|FLOOR|FMOD|FNV_HASH|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GREATEST|GROUP_CONCAT|HEX|HOUR|HOURS_ADD|HOURS_SUB|IF|IFNULL|INITCAP|INSTR|IS_INF|IS_NAN|ISNULL|LAG|LAST_VALUE|LCASE|LEAD|LEAST|LENGTH|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAX|MAX_BIGINT|MAX_INT|MAX_SMALLINT|MAX_TINYINT|MICROSECONDS_ADD|MICROSECONDS_SUB|MILLISECONDS_ADD|MILLISECONDS_SUB|MIN|MIN_BIGINT|MIN_INT|MIN_SMALLINT|MIN_TINYINT|MINUTE|MINUTES_ADD|MINUTES_SUB|MONTH|MONTHS_ADD|MONTHS_SUB|NANOSECONDS_ADD|NANOSECONDS_SUB|NDV|NEGATIVE|NOW|NULLIF|NULLIFZERO|NVL|PARSE_URL|PI|PID|PMOD|POSITIVE|POW|POWER|PRECISION|QUOTIENT|RADIANS|RAND|RANK|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SCALE|SECOND|SECONDS_ADD|SECONDS_SUB|SIGN|SIN|SPACE|SQRT|STDDEV|STDDEV_POP|STDDEV_SAMP|STRLEFT|STRRIGHT|SUBDATE|SUBSTR|SUBSTRING|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNHEX|UNIX_TIMESTAMP|UPPER|USER|VAR_POP|VAR_SAMP|VARIANCE|VARIANCE_POP|VARIANCE_SAMP|VERSION|WEEKOFYEAR|WEEKS_ADD|WEEKS_SUB|YEAR|YEARS_ADD|YEARS_SUB|ZEROIFNULL",keyword:"ADD|AGGREGATE|ALL|ALLOCATE|ALTER|ANALYTIC|AND|ANTI|ANY|API_VERSION|ARE|ARRAY_AGG|ARRAY_MAX_CARDINALITY|AS|ASC|ASENSITIVE|ASYMMETRIC|AT|ATOMIC|AUTHORIZATION|BEGIN_FRAME|BEGIN_PARTITION|BETWEEN|BINARY|BLOB|BLOCK_SIZE|BOTH|BY|CACHED|CALLED|CARDINALITY|CASCADE|CASCADED|CASE|CAST|CHANGE|CHARACTER|CLASS|CLOB|CLOSE_FN|COLLATE|COLLECT|COLUMN|COLUMNS|COMMENT|COMMIT|COMPRESSION|COMPUTE|CONDITION|CONNECT|CONSTRAINT|CONTAINS|CONVERT|COPY|CORR|CORRESPONDING|COVAR_POP|COVAR_SAMP|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_DEFAULT_TRANSFORM_GROUP|CURRENT_PATH|CURRENT_ROLE|CURRENT_ROW|CURRENT_SCHEMA|CURRENT_TIME|CURRENT_TRANSFORM_GROUP_FOR_TYPE|CURSOR|CYCLE|DATA|DATABASE|DATABASES|DATE|DATETIME|DEALLOCATE|DEC|DECFLOAT|DECLARE|DEFAULT|DEFINE|DELETE|DELIMITED|DEREF|DESC|DESCRIBE|DETERMINISTIC|DISCONNECT|DISTINCT|DIV|DROP|DYNAMIC|EACH|ELEMENT|ELSE|EMPTY|ENCODING|END|END_FRAME|END_PARTITION|EQUALS|ESCAPE|ESCAPED|EVERY|EXCEPT|EXEC|EXECUTE|EXISTS|EXPLAIN|EXTENDED|EXTERNAL|FETCH|FIELDS|FILEFORMAT|FILES|FILTER|FINALIZE_FN|FIRST|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FRAME_ROW|FREE|FROM|FULL|FUNCTION|FUNCTIONS|FUSION|GET|GLOBAL|GRANT|GROUP|GROUPING|GROUPS|HASH|HAVING|HISTORY|HOLD|IF|IGNORE|ILIKE|IN|INCREMENTAL|INDICATOR|INIT_FN|INITIAL|INNER|INOUT|INPATH|INSENSITIVE|INSERT|INTEGER|INTERMEDIATE|INTERSECT|INTERSECTION|INTERVAL|INTO|INVALIDATE|IREGEXP|IS|JOIN|JSON_ARRAY|JSON_ARRAYAGG|JSON_EXISTS|JSON_OBJECT|JSON_OBJECTAGG|JSON_QUERY|JSON_TABLE|JSON_TABLE_PRIMITIVE|JSON_VALUE|KEY|LARGE|LAST|LATERAL|LEADING|LEFT|LIKE|LIKE_REGEX|LIMIT|LINES|LISTAGG|LOAD|LOCAL|LOCALTIMESTAMP|LOCATION|MATCH|MATCH_NUMBER|MATCH_RECOGNIZE|MATCHES|MERGE|MERGE_FN|METADATA|METHOD|MODIFIES|MULTISET|NATIONAL|NATURAL|NCHAR|NCLOB|NO|NONE|NORMALIZE|NOT|NTH_VALUE|NULLS|NUMERIC|OCCURRENCES_REGEX|OCTET_LENGTH|OF|OFFSET|OMIT|ON|ONE|ONLY|OR|ORDER|OUT|OUTER|OVER|OVERLAPS|OVERLAY|OVERWRITE|PARTITION|PARTITIONED|PARTITIONS|PATTERN|PER|PERCENT|PERCENTILE_CONT|PERCENTILE_DISC|PORTION|POSITION|POSITION_REGEX|PRECEDES|PRECEDING|PREPARE|PREPARE_FN|PRIMARY|PROCEDURE|PRODUCED|PTF|PURGE|RANGE|READS|RECOVER|RECURSIVE|REF|REFERENCES|REFERENCING|REFRESH|REGEXP|REGR_AVGX|REGR_AVGY|REGR_COUNT|REGR_INTERCEPT|REGR_R2REGR_SLOPE|REGR_SXX|REGR_SXY|REGR_SYY|RELEASE|RENAME|REPEATABLE|REPLACE|REPLICATION|RESTRICT|RETURNS|REVOKE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|RUNNING|SAVEPOINT|SCHEMA|SCHEMAS|SCOPE|SCROLL|SEARCH|SEEK|SELECT|SEMI|SENSITIVE|SERDEPROPERTIES|SERIALIZE_FN|SET|SHOW|SIMILAR|SKIP|SOME|SORT|SPECS|PECIFIC|SPECIFICTYPE|SQLEXCEPTION|SQLSTATE|SQLWARNING|STATIC|STATS|STORED|STRAIGHT_JOIN|SUBMULTISET|SUBSET|SUBSTRING_REGEX|SUCCEEDS|SYMBOL|SYMMETRIC|SYSTEM_TIME|SYSTEM_USER|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TERMINATED|THEN|TIMEZONE_HOUR|TIMEZONE_MINUTE|TO|TRAILING|TRANSLATE_REGEX|TRANSLATION|TREAT|TRIGGER|TRIM_ARRAY|TRUNCATE|UESCAPE|UNBOUNDED|UNCACHED|UNION|UNIQUE|UNNEST|UNSET|UPDATE|UPDATE_FN|UPSERT|USE|USING|VALUE_OF|VALUES|VARBINARY|VARYING|VERSIONING|VIEW|WHEN|WHENEVER|WHERE|WIDTH_BUCKET|WINDOW|WITH|WITHIN|WITHOUT","constant.language":"AVRO|DAY|DAYS|FALSE|HOUR|HOURS|ICEBERG|KUDU|MINUTE|MINUTES|MICROSECOND|MICROSECONDS|MILLISECOND|MILLISECONDS|MONTH|MONTHS|NANOSECOND|NANOSECONDS|NULL|ORC|PARQUET|PARQUETFILE|RCFILE|SECOND|SECONDS|SEQUENCEFILE|SYSTEM_TIME|SYSTEM_VERSION|TEXTFILE|TRUE|UNKNOWN|WEEK|WEEKS|YEAR|YEARS","storage.type":"ARRAY|BIGINT|BOOLEAN|CHAR|DECIMAL|DOUBLE|FLOAT|INT|MAP|REAL|SMALLINT|STRING|STRUCT|TIMESTAMP|TINYINT|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["iql"],name:"Impala",scopeName:"source.impala"},r.inherits(o,i),t.ImpalaHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/impala",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/impala_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./impala_highlight_rules").ImpalaHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/impala",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},8336:()=>{ace.define("ace/mode/ksql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ARRAYCONTAINS|CEIL|CONCAT|DATETOSTRING|ELT|EXTRACTJSONFIELD|FIELD|FLOOR|GEO_DISTANCE|IFNULL|LCASE|LEN|MASK|MASK_KEEP_LEFT|MASK_KEEP_RIGHT|MASK_LEFT|MASK_RIGHT|RANDOM|ROUND|SPLIT|STRINGTODATE|STRINGTOTIMESTAMP|SUBSTRING|TIMESTAMPTOSTRING|TRIM|UCASE|URL_DECODE_PARAM|URL_ENCODE_PARAM|URL_EXTRACT_FRAGMENT|URL_EXTRACT_HOST|URL_EXTRACT_PARAMETER|URL_EXTRACT_PATH|URL_EXTRACT_PORT|URL_EXTRACT_PROTOCOL|URL_EXTRACT_QUERY|COLLECT_LIST|COLLECT_SET|COUNT|HISTOGRAM|MAX|MIN|SUM|TOPK|TOPKDISTINCT|WindowStart|WindowEnd",keyword:"EMIT|CHANGES|SELECT|FROM|AS|DISTINCT|WHERE|WITHIN|WINDOW|GROUP|BY|HAVING|LIMIT|AT|OR|AND|IN|NOT|EXISTS|BETWEEN|LIKE|IS|INTEGER|DATE|TIME|TIMESTAMP|INTERVAL|YEAR|MONTH|DAY|HOUR|MINUTE|SECOND|MILLISECOND|YEARS|MONTHS|DAYS|HOURS|MINUTES|SECONDS|MILLISECONDS|ZONE|TUMBLING|HOPPING|SIZE|ADVANCE|CASE|WHEN|THEN|ELSE|END|JOIN|FULL|OUTER|INNER|LEFT|RIGHT|ON|PARTITION|STRUCT|WITH|VALUES|CREATE|TABLE|TOPIC|STREAM|STREAMS|INSERT|DELETE|INTO|DESCRIBE|EXTENDED|PRINT|EXPLAIN|ANALYZE|TYPE|TYPES|CAST|SHOW|LIST|TABLES|TOPICS|QUERY|QUERIES|TERMINATE|LOAD|COLUMNS|COLUMN|PARTITIONS|FUNCTIONS|FUNCTION|DROP|TO|RENAME|ARRAY|MAP|SET|RESET|SESSION|SAMPLE|EXPORT|CATALOG|PROPERTIES|BEGINNING|UNSET|RUN|SCRIPT|DECIMAL|KEY|CONNECTOR|CONNECTORS|SINK|SOURCE|IF","constant.language":"FALSE|NULL|TRUE","storage.type":"BOOLEAN|INTEGER|INT|BIGINT|DOUBLE|VARCHAR|STRING|ARRAY|MAP|STRUCT"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["ksql"],name:"ksql",scopeName:"source.ksql"},r.inherits(o,i),t.KsqlHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/ksql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ksql_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./ksql_highlight_rules").KsqlHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/ksql",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},5517:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function e(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},e.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,o=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*\\b",a=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+s+")(\\.)(prototype)(\\.)("+s+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?\:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[i.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){return this.next="{"==e?this.nextState:"","{"==e&&n.length?(n.unshift("start",t),"paren"):"}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx"))?"paren.quasi.end":"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&e.noJSX||c.call(this)),this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=s.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},n,{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[n,{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]}],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(a,o),t.JavaScriptHighlightRules=a})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var i=n[1].length,o=e.findMatchingBracket({row:t,column:i});if(!o||o.row==t)return 0;var s=this.$getIndent(e.getLine(o.row));e.replace(new r(t,0,t,i-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,s=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),c=["text","paren.rparen","punctuation.operator"],l=["text","paren.rparen","punctuation.operator","comment"],u={},h=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},p=function e(){this.add("braces","insertion",(function(t,n,i,o,s){var c=i.getCursorPosition(),l=o.doc.getLine(c.row);if("{"==s){h(i);var u=i.getSelectionRange(),p=o.doc.getTextRange(u);if(""!==p&&"{"!==p&&i.getWrapBehavioursEnabled())return d(u,p,"{","}");if(e.isSaneInsertion(i,o))return/[\]\}\)]/.test(l[c.column])||i.inMultiSelectMode?(e.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(e.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==s){if(h(i),"}"==l.substring(c.column,c.column+1)&&null!==o.$findOpeningBracket("}",{column:c.column+1,row:c.row})&&e.isAutoInsertedClosing(c,l,s))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==s||"\r\n"==s){h(i);var f="";if(e.isMaybeInsertedClosing(c,l)&&(f=a.stringRepeat("}",r.maybeInsertedBrackets),e.clearMaybeInsertedClosing()),"}"===l.substring(c.column,c.column+1)){var g=o.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!g)return null;var m=this.$getIndent(o.getLine(g.row))}else{if(!f)return void e.clearMaybeInsertedClosing();m=this.$getIndent(l)}var E=m+o.getTabString();return{text:"\n"+E+"\n"+m+f,selection:[1,E.length,1,E.length]}}e.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,i,o){var s=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==s){if(h(n),"}"==i.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(t,n,r,i,o){if("("==o){h(r);var s=r.getSelectionRange(),a=i.doc.getTextRange(s);if(""!==a&&r.getWrapBehavioursEnabled())return d(s,a,"(",")");if(e.isSaneInsertion(r,i))return e.recordAutoInsert(r,i,")"),{text:"()",selection:[1,1]}}else if(")"==o){h(r);var c=r.getCursorPosition(),l=i.doc.getLine(c.row);if(")"==l.substring(c.column,c.column+1)&&null!==i.$findOpeningBracket(")",{column:c.column+1,row:c.row})&&e.isAutoInsertedClosing(c,l,o))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o&&(h(n),")"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("brackets","insertion",(function(t,n,r,i,o){if("["==o){h(r);var s=r.getSelectionRange(),a=i.doc.getTextRange(s);if(""!==a&&r.getWrapBehavioursEnabled())return d(s,a,"[","]");if(e.isSaneInsertion(r,i))return e.recordAutoInsert(r,i,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){h(r);var c=r.getCursorPosition(),l=i.doc.getLine(c.row);if("]"==l.substring(c.column,c.column+1)&&null!==i.$findOpeningBracket("]",{column:c.column+1,row:c.row})&&e.isAutoInsertedClosing(c,l,o))return e.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o&&(h(n),"]"==r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)))return i.end.column++,i})),this.add("string_dquotes","insertion",(function(e,t,n,r,i){if('"'==i||"'"==i){h(n);var o=i,s=n.getSelectionRange(),a=r.doc.getTextRange(s);if(""!==a&&"'"!==a&&'"'!=a&&n.getWrapBehavioursEnabled())return d(s,a,o,o);if(!a){var c=n.getCursorPosition(),l=r.doc.getLine(c.row),u=l.substring(c.column-1,c.column),p=l.substring(c.column,c.column+1),f=r.getTokenAt(c.row,c.column),g=r.getTokenAt(c.row,c.column+1);if("\\"==u&&f&&/escape/.test(f.type))return null;var m,E=f&&/string|escape/.test(f.type),y=!g||/string|escape/.test(g.type);if(p==o)m=E!==y;else{if(E&&!y)return null;if(E&&y)return null;var v=r.$mode.tokenRe;v.lastIndex=0;var b=v.test(u);v.lastIndex=0;var A=v.test(u);if(b||A)return null;if(p&&!/[\s;,.})\]\\]/.test(p))return null;m=!0}return{text:m?o+o:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&('"'==o||"'"==o)&&(h(n),r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==o))return i.end.column++,i}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new s(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",c)){var i=new s(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",c))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",l)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(p,o),t.CstyleBehaviour=p})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=(e("../range").Range,e("../worker/worker_client").WorkerClient),c=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,u=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=new c,this.foldingRules=new l};r.inherits(u,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),o=i.tokens,s=i.state;if(o.length&&"comment"==o[o.length-1].type)return r;if("start"==e||"no_regex"==e)(a=t.match(/^.*(?:\bcase\b.*\:|[\{\(\[])\s*$/))&&(r+=n);else if("doc-start"==e){if("start"==s||"no_regex"==s)return"";var a;(a=t.match(/^\s*(\/?)\*/))&&(a[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript"}.call(u.prototype),t.Mode=u})),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function e(t){var n="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.xml-decl.xml","keyword.xml-decl.xml"],regex:"(<\\?)(xml)(?=[\\s])",next:"xml_decl",caseInsensitive:!0},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+n+")",next:"processing_instruction"},{token:"comment.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],xml_decl:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:"(?:"+n+":)?"+n},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],processing_instruction:[{token:"punctuation.instruction.xml",regex:"\\?>",next:"start"},{defaultToken:"instruction.xml"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+n+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.xml",regex:"--\x3e",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+n+":)?"+n+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:"(?:"+n+":)?"+n},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===e&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(i.prototype),r.inherits(o,i),t.XmlHighlightRules=o})),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../behaviour").Behaviour,o=e("../../token_iterator").TokenIterator;function s(e,t){return e.type.lastIndexOf(t+".xml")>-1}e("../../lib/lang");var a=function(){this.add("string_dquotes","insertion",(function(e,t,n,r,i){if('"'==i||"'"==i){var a=i,c=r.doc.getTextRange(n.getSelectionRange());if(""!==c&&"'"!==c&&'"'!=c&&n.getWrapBehavioursEnabled())return{text:a+c+a,selection:!1};var l=n.getCursorPosition(),u=r.doc.getLine(l.row).substring(l.column,l.column+1),h=new o(r,l.row,l.column),d=h.getCurrentToken();if(u==a&&(s(d,"attribute-value")||s(d,"string")))return{text:"",selection:[1,1]};if(d||(d=h.stepBackward()),!d)return;for(;s(d,"tag-whitespace")||s(d,"whitespace");)d=h.stepBackward();var p=!u||u.match(/\s/);if(s(d,"attribute-equals")&&(p||">"==u)||s(d,"decl-attribute-equals")&&(p||"?"==u))return{text:a+a,selection:[1,1]}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&('"'==o||"'"==o)&&r.doc.getLine(i.start.row).substring(i.start.column+1,i.start.column+2)==o)return i.end.column++,i})),this.add("autoclosing","insertion",(function(e,t,n,r,i){if(">"==i){var a=n.getCursorPosition(),c=new o(r,a.row,a.column),l=c.getCurrentToken()||c.stepBackward();if(!l||!(s(l,"tag-name")||s(l,"tag-whitespace")||s(l,"attribute-name")||s(l,"attribute-equals")||s(l,"attribute-value")))return;if(s(l,"reference.attribute-value"))return;if(s(l,"attribute-value")){var u=l.value.charAt(0);if('"'==u||"'"==u){var h=l.value.charAt(l.value.length-1),d=c.getCurrentTokenColumn()+l.value.length;if(d>a.column||d==a.column&&u!=h)return}}for(;!s(l,"tag-name");)l=c.stepBackward();var p=c.getCurrentTokenRow(),f=c.getCurrentTokenColumn();if(s(c.stepBackward(),"end-tag-open"))return;var g=l.value;if(p==a.row&&(g=g.substring(0,a.column-f)),this.voidElements.hasOwnProperty(g.toLowerCase()))return;return{text:"></"+g+">",selection:[1,1]}}})),this.add("autoindent","insertion",(function(e,t,n,r,i){if("\n"==i){var s=n.getCursorPosition(),a=r.getLine(s.row),c=new o(r,s.row,s.column),l=c.getCurrentToken();if(l&&-1!==l.type.indexOf("tag-close")){if("/>"==l.value)return;for(;l&&-1===l.type.indexOf("tag-name");)l=c.stepBackward();if(!l)return;var u=l.value,h=c.getCurrentTokenRow();if(!(l=c.stepBackward())||-1!==l.type.indexOf("end-tag"))return;if(this.voidElements&&!this.voidElements[u]){var d=r.getTokenAt(s.row,s.column+1),p=(a=r.getLine(h),this.$getIndent(a)),f=p+r.getTabString();return d&&"</"===d.value?{text:"\n"+f+"\n"+p,selection:[1,f.length,1,f.length]}:{text:"\n"+f}}}}}))};r.inherits(a,i),t.XmlBehaviour=a})),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../../lib/lang"),e("../../range").Range),o=e("./fold_mode").FoldMode,s=e("../../token_iterator").TokenIterator,a=t.FoldMode=function(e,t){o.call(this),this.voidElements=e||{},this.optionalEndTags=r.mixin({},this.voidElements),t&&r.mixin(this.optionalEndTags,t)};r.inherits(a,o);var c=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function l(e,t){return e.type.lastIndexOf(t+".xml")>-1}(function(){this.getFoldWidget=function(e,t,n){var r=this._getFirstTagInLine(e,n);return r?r.closing||!r.tagName&&r.selfClosing?"markbeginend"==t?"end":"":!r.tagName||r.selfClosing||this.voidElements.hasOwnProperty(r.tagName.toLowerCase())||this._findEndTagInLine(e,n,r.tagName,r.end.column)?"":"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),r=new c,i=0;i<n.length;i++){var o=n[i];if(l(o,"tag-open")){if(r.end.column=r.start.column+o.value.length,r.closing=l(o,"end-tag-open"),!(o=n[++i]))return null;for(r.tagName=o.value,r.end.column+=o.value.length,i++;i<n.length;i++)if(o=n[i],r.end.column+=o.value.length,l(o,"tag-close")){r.selfClosing="/>"==o.value;break}return r}if(l(o,"tag-close"))return r.selfClosing="/>"==o.value,r;r.start.column+=o.value.length}return null},this._findEndTagInLine=function(e,t,n,r){for(var i=e.getTokens(t),o=0,s=0;s<i.length;s++){var a=i[s];if(!((o+=a.value.length)<r)&&l(a,"end-tag-open")&&(a=i[s+1])&&a.value==n)return!0}return!1},this._readTagForward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new c;do{if(l(t,"tag-open"))n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn();else if(l(t,"tag-name"))n.tagName=t.value;else if(l(t,"tag-close"))return n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length,e.stepForward(),n}while(t=e.stepForward());return null},this._readTagBackward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new c;do{if(l(t,"tag-open"))return n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn(),e.stepBackward(),n;l(t,"tag-name")?n.tagName=t.value:l(t,"tag-close")&&(n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length)}while(t=e.stepBackward());return null},this._pop=function(e,t){for(;e.length;){var n=e[e.length-1];if(t&&n.tagName!=t.tagName){if(this.optionalEndTags.hasOwnProperty(n.tagName)){e.pop();continue}return null}return e.pop()}},this.getFoldWidgetRange=function(e,t,n){var r=this._getFirstTagInLine(e,n);if(!r)return null;var o,a=[];if(r.closing||r.selfClosing){l=new s(e,n,r.end.column);for(var c={row:n,column:r.start.column};o=this._readTagBackward(l);){if(o.selfClosing){if(a.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,i.fromPoints(o.start,o.end)}if(o.closing)a.push(o);else if(this._pop(a,o),0==a.length)return o.start.column+=o.tagName.length+2,o.start.row==o.end.row&&o.start.column<o.end.column&&(o.start.column=o.end.column),i.fromPoints(o.start,c)}}else{var l=new s(e,n,r.start.column),u={row:n,column:r.start.column+r.tagName.length+2};for(r.start.row==r.end.row&&(u.column=r.end.column);o=this._readTagForward(l);){if(o.selfClosing){if(a.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,i.fromPoints(o.start,o.end)}if(o.closing){if(this._pop(a,o),0==a.length)return i.fromPoints(u,o.start)}else a.push(o)}}}}).call(a.prototype)})),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./text").Mode,s=e("./xml_highlight_rules").XmlHighlightRules,a=e("./behaviour/xml").XmlBehaviour,c=e("./folding/xml").FoldMode,l=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=s,this.$behaviour=new a,this.foldingRules=new c};r.inherits(u,o),function(){this.voidElements=i.arrayToMap([]),this.blockComment={start:"\x3c!--",end:"--\x3e"},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/xml_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("error",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/xml"}.call(u.prototype),t.Mode=u})),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=t.supportFunction="rgb|rgba|url|attr|counter|counters",a=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero",c=t.supportConstantColor="aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow",l=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=t.numRe="\\-?(?:(?:[0-9]+)|(?:[0-9]*\\.[0-9]+))",h=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",d=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":s,"support.constant":a,"support.type":o,"support.constant.color":c,"support.constant.fonts":l},"text",!0);this.$rules={start:[{token:"comment",regex:"\\/\\*",push:"comment"},{token:"paren.lparen",regex:"\\{",push:"ruleset"},{token:"string",regex:"@.*?{",push:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{token:"comment",regex:"\\/\\*",push:"comment"},{token:"paren.lparen",regex:"\\{",push:"ruleset"},{token:"string",regex:"\\}",next:"pop"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],comment:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}],ruleset:[{token:"paren.rparen",regex:"\\}",next:"pop"},{token:"comment",regex:"\\/\\*",push:"comment"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:h},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:d},{token:["support.function","string","support.function"],regex:"(url\\()(.*)(\\))"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}]},this.normalizeRules()};r.inherits(p,i),t.CssHighlightRules=p})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(t,n,r){"use strict";var i={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},o=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));i.hasOwnProperty(n)||(i[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,r){if(this.completionsDefined||this.defineCompletions(),!t.getTokenAt(n.row,n.column))return[];if("ruleset"===e){var i=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(i)?(/([\w\-]+):[^:]*$/.test(i),this.getPropertyValueCompletions(e,t,n,r)):this.getPropertyCompletions(e,t,n,r)}return[]},this.getPropertyCompletions=function(e,t,n,r){return Object.keys(i).map((function(e){return{caption:e,snippet:e+": $0",meta:"property",score:Number.MAX_VALUE}}))},this.getPropertyValueCompletions=function(t,n,r,o){var s=n.getLine(r.row).substr(0,r.column),a=(/([\w\-]+):[^:]*$/.exec(s)||{})[1];if(!a)return[];var c=[];return a in i&&"object"===e(i[a])&&(c=Object.keys(i[a])),c.map((function(e){return{caption:e,snippet:e,meta:"property value",score:Number.MAX_VALUE}}))}}).call(o.prototype),n.CssCompletions=o})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),o=e("../../token_iterator").TokenIterator,s=function(){this.inherit(i),this.add("colon","insertion",(function(e,t,n,r,i){if(":"===i){var s=n.getCursorPosition(),a=new o(r,s.row,s.column),c=a.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=a.stepBackward()),c&&"support.type"===c.type){var l=r.doc.getLine(s.row);if(":"===l.substring(s.column,s.column+1))return{text:"",selection:[1,1]};if(!l.substring(s.column).match(/^\s*;/))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,r,i){var s=r.doc.getTextRange(i);if(!i.isMultiLine()&&":"===s){var a=n.getCursorPosition(),c=new o(r,a.row,a.column),l=c.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=c.stepBackward()),l&&"support.type"===l.type&&";"===r.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i}})),this.add("semicolon","insertion",(function(e,t,n,r,i){if(";"===i){var o=n.getCursorPosition();if(";"===r.doc.getLine(o.row).substring(o.column,o.column+1))return{text:"",selection:[1,1]}}}))};r.inherits(s,i),t.CssBehaviour=s})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("../worker/worker_client").WorkerClient,c=e("./css_completions").CssCompletions,l=e("./behaviour/css").CssBehaviour,u=e("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=new l,this.$completer=new c,this.foldingRules=new u};r.inherits(h,i),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;return i.length&&"comment"==i[i.length-1].type||t.match(/^.*\{\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){var t=new a(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css"}.call(h.prototype),t.Mode=h})),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./css_highlight_rules").CssHighlightRules,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,a=e("./xml_highlight_rules").XmlHighlightRules,c=i.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function e(){a.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=c[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(o,"css-","style"),this.embedTagRules(new s({noJSX:!0}).getRules(),"js-","script"),this.constructor===e&&this.normalizeRules()};r.inherits(l,a),t.HtmlHighlightRules=l})),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,o=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};r.inherits(o,i),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,r){var i=this.$getMode(e);return i?i.getFoldWidget(t,n,r):""},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var r=this.$getMode(e.getState(n-1));return r&&r.getFoldWidget(e,t,n)||(r=this.$getMode(e.getState(n))),r&&r.getFoldWidget(e,t,n)||(r=this.defaultMode),r.getFoldWidgetRange(e,t,n)}}.call(o.prototype)})),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./mixed").FoldMode,o=e("./xml").FoldMode,s=e("./cstyle").FoldMode,a=t.FoldMode=function(e,t){i.call(this,new o(e,t),{"js-":new s,"css-":new s})};r.inherits(a,i)})),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],(function(t,n,r){"use strict";var i=t("../token_iterator").TokenIterator,o=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"].concat(["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"]),s={html:{manifest:1},head:{},title:{},base:{href:1,target:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},noscript:{href:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},section:{},nav:{},article:{pubdate:1},aside:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},header:{},footer:{},address:{},main:{},p:{},hr:{},pre:{},blockquote:{cite:1},ol:{start:1,reversed:1},ul:{},li:{value:1},dl:{},dt:{},dd:{},figure:{},figcaption:{},div:{},a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},em:{},strong:{},small:{},s:{},cite:{},q:{cite:1},dfn:{},abbr:{},data:{},time:{datetime:1},code:{},var:{},samp:{},kbd:{},sub:{},sup:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{},bdo:{},span:{},br:{},wbr:{},ins:{cite:1,datetime:1},del:{cite:1,datetime:1},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},embed:{src:1,height:1,width:1,type:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},param:{name:1,value:1},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},source:{src:1,type:1,media:1},track:{kind:1,src:1,srclang:1,label:1,default:1},canvas:{width:1,height:1},map:{name:1},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},svg:{},math:{},table:{summary:1},caption:{},colgroup:{span:1},col:{span:1},tbody:{},thead:{},tfoot:{},tr:{},td:{headers:1,rowspan:1,colspan:1},th:{headers:1,rowspan:1,colspan:1,scope:1},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},fieldset:{disabled:1,form:1,name:1},legend:{},label:{form:1,for:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},pattern:1,placeholder:1,readonly:{readonly:1},required:{required:1},size:1,src:1,step:1,width:1,files:1,value:1},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},datalist:{},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},required:{required:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},output:{for:1,form:1,name:1},progress:{value:1,max:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},details:{open:1},summary:{},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},menu:{type:1,label:1},dialog:{open:1}},a=Object.keys(s);function c(e,t){return e.type.lastIndexOf(t+".xml")>-1}function l(e,t){for(var n=new i(e,t.row,t.column),r=n.getCurrentToken();r&&!c(r,"tag-name");)r=n.stepBackward();if(r)return r.value}var u=function(){};(function(){this.getCompletions=function(e,t,n,r){var i=t.getTokenAt(n.row,n.column);if(!i)return[];if(c(i,"tag-name")||c(i,"tag-open")||c(i,"end-tag-open"))return this.getTagCompletions(e,t,n,r);if(c(i,"tag-whitespace")||c(i,"attribute-name"))return this.getAttributeCompletions(e,t,n,r);if(c(i,"attribute-value"))return this.getAttributeValueCompletions(e,t,n,r);var o=t.getLine(n.row).substr(0,n.column);return/&[A-z]*$/i.test(o)?this.getHTMLEntityCompletions(e,t,n,r):[]},this.getTagCompletions=function(e,t,n,r){return a.map((function(e){return{value:e,meta:"tag",score:Number.MAX_VALUE}}))},this.getAttributeCompletions=function(e,t,n,r){var i=l(t,n);if(!i)return[];var a=o;return i in s&&(a=a.concat(Object.keys(s[i]))),a.map((function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:Number.MAX_VALUE}}))},this.getAttributeValueCompletions=function(t,n,r,o){var a=l(n,r),u=function(e,t){for(var n=new i(e,t.row,t.column),r=n.getCurrentToken();r&&!c(r,"attribute-name");)r=n.stepBackward();if(r)return r.value}(n,r);if(!a)return[];var h=[];return a in s&&u in s[a]&&"object"===e(s[a][u])&&(h=Object.keys(s[a][u])),h.map((function(e){return{caption:e,snippet:e,meta:"attribute value",score:Number.MAX_VALUE}}))},this.getHTMLEntityCompletions=function(e,t,n,r){return["&Aacute;","&aacute;","&Acirc;","&acirc;","&acute;","&AElig;","&aelig;","&Agrave;","&agrave;","&alefsym;","&Alpha;","&alpha;","&amp;","&and;","&ang;","&Aring;","&aring;","&asymp;","&Atilde;","&atilde;","&Auml;","&auml;","&bdquo;","&Beta;","&beta;","&brvbar;","&bull;","&cap;","&Ccedil;","&ccedil;","&cedil;","&cent;","&Chi;","&chi;","&circ;","&clubs;","&cong;","&copy;","&crarr;","&cup;","&curren;","&Dagger;","&dagger;","&dArr;","&darr;","&deg;","&Delta;","&delta;","&diams;","&divide;","&Eacute;","&eacute;","&Ecirc;","&ecirc;","&Egrave;","&egrave;","&empty;","&emsp;","&ensp;","&Epsilon;","&epsilon;","&equiv;","&Eta;","&eta;","&ETH;","&eth;","&Euml;","&euml;","&euro;","&exist;","&fnof;","&forall;","&frac12;","&frac14;","&frac34;","&frasl;","&Gamma;","&gamma;","&ge;","&gt;","&hArr;","&harr;","&hearts;","&hellip;","&Iacute;","&iacute;","&Icirc;","&icirc;","&iexcl;","&Igrave;","&igrave;","&image;","&infin;","&int;","&Iota;","&iota;","&iquest;","&isin;","&Iuml;","&iuml;","&Kappa;","&kappa;","&Lambda;","&lambda;","&lang;","&laquo;","&lArr;","&larr;","&lceil;","&ldquo;","&le;","&lfloor;","&lowast;","&loz;","&lrm;","&lsaquo;","&lsquo;","&lt;","&macr;","&mdash;","&micro;","&middot;","&minus;","&Mu;","&mu;","&nabla;","&nbsp;","&ndash;","&ne;","&ni;","&not;","&notin;","&nsub;","&Ntilde;","&ntilde;","&Nu;","&nu;","&Oacute;","&oacute;","&Ocirc;","&ocirc;","&OElig;","&oelig;","&Ograve;","&ograve;","&oline;","&Omega;","&omega;","&Omicron;","&omicron;","&oplus;","&or;","&ordf;","&ordm;","&Oslash;","&oslash;","&Otilde;","&otilde;","&otimes;","&Ouml;","&ouml;","&para;","&part;","&permil;","&perp;","&Phi;","&phi;","&Pi;","&pi;","&piv;","&plusmn;","&pound;","&Prime;","&prime;","&prod;","&prop;","&Psi;","&psi;","&quot;","&radic;","&rang;","&raquo;","&rArr;","&rarr;","&rceil;","&rdquo;","&real;","&reg;","&rfloor;","&Rho;","&rho;","&rlm;","&rsaquo;","&rsquo;","&sbquo;","&Scaron;","&scaron;","&sdot;","&sect;","&shy;","&Sigma;","&sigma;","&sigmaf;","&sim;","&spades;","&sub;","&sube;","&sum;","&sup;","&sup1;","&sup2;","&sup3;","&supe;","&szlig;","&Tau;","&tau;","&there4;","&Theta;","&theta;","&thetasym;","&thinsp;","&THORN;","&thorn;","&tilde;","&times;","&trade;","&Uacute;","&uacute;","&uArr;","&uarr;","&Ucirc;","&ucirc;","&Ugrave;","&ugrave;","&uml;","&upsih;","&Upsilon;","&upsilon;","&Uuml;","&uuml;","&weierp;","&Xi;","&xi;","&Yacute;","&yacute;","&yen;","&Yuml;","&yuml;","&Zeta;","&zeta;","&zwj;","&zwnj;"].map((function(e){return{caption:e,snippet:e.substr(1),meta:"html entity",score:Number.MAX_VALUE}}))}}).call(u.prototype),n.HtmlCompletions=u})),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./text").Mode,s=e("./javascript").Mode,a=e("./css").Mode,c=e("./html_highlight_rules").HtmlHighlightRules,l=e("./behaviour/xml").XmlBehaviour,u=e("./folding/html").FoldMode,h=e("./html_completions").HtmlCompletions,d=e("../worker/worker_client").WorkerClient,p=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],f=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],g=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=c,this.$behaviour=new l,this.$completer=new h,this.createModeDelegates({"js-":s,"css-":a}),this.foldingRules=new u(this.voidElements,i.arrayToMap(f))};r.inherits(g,o),function(){this.blockComment={start:"\x3c!--",end:"--\x3e"},this.voidElements=i.arrayToMap(p),this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){if(this.constructor==g){var t=new d(["ace"],"ace/mode/html_worker","Worker");return t.attachToDocument(e.getDocument()),this.fragmentContext&&t.call("setOptions",[{context:this.fragmentContext}]),t.on("error",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t}},this.$id="ace/mode/html"}.call(g.prototype),t.Mode=g})),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules","ace/mode/html_highlight_rules","ace/mode/css_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./text_highlight_rules").TextHighlightRules,s=e("./javascript_highlight_rules").JavaScriptHighlightRules,a=e("./xml_highlight_rules").XmlHighlightRules,c=e("./html_highlight_rules").HtmlHighlightRules,l=e("./css_highlight_rules").CssHighlightRules,u=function(e){return"(?:[^"+i.escapeRegExp(e)+"\\\\]|\\\\.)*"};function h(e,t){return{token:"support.function",regex:"^\\s*```"+e+"\\s*$",push:t+"start"}}var d=function(){c.call(this),this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(e){return"markup.heading."+e.length},regex:/^#{1,6}(?=\s*[^ #]|\s+#.)/,next:"header"},h("(?:javascript|js)","jscode-"),h("xml","xmlcode-"),h("html","htmlcode-"),h("css","csscode-"),{token:"support.function",regex:"^\\s*```\\s*\\S*(?:{.*?\\})?\\s*$",next:"githubblock"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,2}(?:(?: ?\\* ?){3,}|(?: ?\\- ?){3,}|(?: ?\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+u("]")+")(\\]s*\\[)("+u("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\[)("+u("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+u('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:"(<)((?:https?|ftp|dict):[^'\">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)"}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},{token:"support.function",regex:"^\\s*```\\s*[a-zA-Z]*(?:{.*?\\})?\\s*$",next:"githubblock"},{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:[{token:"support.function",regex:"^\\s*```",next:"start"},{token:"support.function",regex:".+"}]}),this.embedRules(s,"jscode-",[{token:"support.function",regex:"^\\s*```",next:"pop"}]),this.embedRules(c,"htmlcode-",[{token:"support.function",regex:"^\\s*```",next:"pop"}]),this.embedRules(l,"csscode-",[{token:"support.function",regex:"^\\s*```",next:"pop"}]),this.embedRules(a,"xmlcode-",[{token:"support.function",regex:"^\\s*```",next:"pop"}]),this.normalizeRules()};r.inherits(d,o),t.MarkdownHighlightRules=d})),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,o=e("../../range").Range,s=t.FoldMode=function(){};r.inherits(s,i),function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"`"==r[0]&&"start"==e.bgTokenizer.getState(n)?"end":"start":""},this.getFoldWidgetRange=function(e,t,n){var r=e.getLine(n),i=r.length,s=e.getLength(),a=n,c=n;if(r.match(this.foldingStartMarker)){if("`"==r[0]){if("start"!==e.bgTokenizer.getState(n)){for(;++n<s&&!("`"==(r=e.getLine(n))[0]&"```"==r.substring(0,3)););return new o(a,i,n,0)}for(;n-- >0&&!("`"==(r=e.getLine(n))[0]&"```"==r.substring(0,3)););return new o(n,r.length,a,0)}var l,u="markup.heading";if(p(n)){for(var h=f();++n<s&&!(p(n)&&f()>=h););if((c=n-(l&&-1!=["=","-"].indexOf(l.value[0])?2:1))>a)for(;c>a&&/^\s*$/.test(e.getLine(c));)c--;if(c>a){var d=e.getLine(c).length;return new o(a,i,c,d)}}}function p(t){return(l=e.getTokens(t)[0])&&0===l.type.lastIndexOf(u,0)}function f(){var e=l.value[0];return"="==e?6:"-"==e?5:7-l.value.search(/[^#]/)}}}.call(s.prototype)})),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript","ace/mode/xml","ace/mode/html","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./javascript").Mode,s=e("./xml").Mode,a=e("./html").Mode,c=e("./markdown_highlight_rules").MarkdownHighlightRules,l=e("./folding/markdown").FoldMode,u=function(){this.HighlightRules=c,this.createModeDelegates({"js-":o,"xml-":s,"html-":a}),this.foldingRules=new l};r.inherits(u,i),function(){this.type="text",this.blockComment={start:"\x3c!--",end:"--\x3e"},this.getNextLineIndent=function(e,t,n){if("listblock"==e){var r=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(t);if(!r)return"";var i=r[2];return i||(i=parseInt(r[3],10)+1+"."),r[1]+i+r[4]}return this.$getIndent(t)},this.$id="ace/mode/markdown"}.call(u.prototype),t.Mode=u}))},2092:()=>{ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function e(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},e.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o})),ace.define("ace/mode/mysql_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){var r=e("../lib/oop"),i=(e("../lib/lang"),e("./doc_comment_highlight_rules").DocCommentHighlightRules),o=e("./text_highlight_rules").TextHighlightRules,s=function(){var e=this.createKeywordMapper({"support.function":"by|bool|boolean|bit|blob|decimal|double|enum|float|long|longblob|longtext|medium|mediumblob|mediumint|mediumtext|time|timestamp|tinyblob|tinyint|tinytext|text|bigint|int|int1|int2|int3|int4|int8|integer|float|float4|float8|double|char|varbinary|varchar|varcharacter|precision|date|datetime|year|unsigned|signed|numeric|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",keyword:"alter|and|as|asc|between|count|create|delete|desc|distinct|drop|from|having|in|insert|into|is|join|like|not|on|or|order|select|set|table|union|update|values|where|accessible|action|add|after|algorithm|all|analyze|asensitive|at|authors|auto_increment|autocommit|avg|avg_row_length|before|binary|binlog|both|btree|cache|call|cascade|cascaded|case|catalog_name|chain|change|changed|character|check|checkpoint|checksum|class_origin|client_statistics|close|coalesce|code|collate|collation|collations|column|columns|comment|commit|committed|completion|concurrent|condition|connection|consistent|constraint|contains|continue|contributors|convert|cross|current_date|current_time|current_timestamp|current_user|cursor|data|database|databases|day_hour|day_microsecond|day_minute|day_second|deallocate|dec|declare|default|delay_key_write|delayed|delimiter|des_key_file|describe|deterministic|dev_pop|dev_samp|deviance|directory|disable|discard|distinctrow|div|dual|dumpfile|each|elseif|enable|enclosed|end|ends|engine|engines|enum|errors|escape|escaped|even|event|events|every|execute|exists|exit|explain|extended|fast|fetch|field|fields|first|flush|for|force|foreign|found_rows|full|fulltext|function|general|global|grant|grants|group|groupby_concat|handler|hash|help|high_priority|hosts|hour_microsecond|hour_minute|hour_second|if|ignore|ignore_server_ids|import|index|index_statistics|infile|inner|innodb|inout|insensitive|insert_method|install|interval|invoker|isolation|iterate|key|keys|kill|language|last|leading|leave|left|level|limit|linear|lines|list|load|local|localtime|localtimestamp|lock|logs|low_priority|master|master_heartbeat_period|master_ssl_verify_server_cert|masters|match|max|max_rows|maxvalue|message_text|middleint|migrate|min|min_rows|minute_microsecond|minute_second|mod|mode|modifies|modify|mutex|mysql_errno|natural|next|no|no_write_to_binlog|offline|offset|one|online|open|optimize|option|optionally|out|outer|outfile|pack_keys|parser|partition|partitions|password|phase|plugin|plugins|prepare|preserve|prev|primary|privileges|procedure|processlist|profile|profiles|purge|query|quick|range|read|read_write|reads|real|rebuild|recover|references|regexp|relaylog|release|remove|rename|reorganize|repair|repeatable|replace|require|resignal|restrict|resume|return|returns|revoke|right|rlike|rollback|rollup|row|row_format|rtree|savepoint|schedule|schema|schema_name|schemas|second_microsecond|security|sensitive|separator|serializable|server|session|share|show|signal|slave|slow|smallint|snapshot|soname|spatial|specific|sql|sql_big_result|sql_buffer_result|sql_cache|sql_calc_found_rows|sql_no_cache|sql_small_result|sqlexception|sqlstate|sqlwarning|ssl|start|starting|starts|status|std|stddev|stddev_pop|stddev_samp|storage|straight_join|subclass_origin|sum|suspend|table_name|table_statistics|tables|tablespace|temporary|terminated|to|trailing|transaction|trigger|triggers|truncate|uncommitted|undo|uninstall|unique|unlock|upgrade|usage|use|use_frm|user|user_resources|user_statistics|using|utc_date|utc_time|utc_timestamp|value|variables|varying|view|views|warnings|when|while|with|work|write|xa|xor|year_month|zerofill|begin|do|then|else|loop|repeat",constant:"false|true|null|unknown|date|time|timestamp|ODBCdotTable|zerolessFloat","variable.language":"charset|clear|connect|edit|ego|exit|go|help|nopager|notee|nowarning|pager|print|prompt|quit|rehash|source|status|system|tee"},"identifier",!0);function t(e){var t=e.start;return{token:"string.start",regex:t,next:[{token:"constant.language.escape",regex:e.escape},{token:"string.end",next:"start",regex:t},{defaultToken:"string"}]}}this.$rules={start:[{token:"comment",regex:"(?:-- |#).*$"},t({start:'"',escape:/\\[0'"bnrtZ\\%_]?/}),t({start:"'",escape:/\\[0'"bnrtZ\\%_]?/}),i.getStartRule("doc-start"),{token:"comment",regex:/\/\*/,next:"comment"},{token:"constant.numeric",regex:/0[xX][0-9a-fA-F]+|[xX]'[0-9a-fA-F]+'|0[bB][01]+|[bB]'[01]+'/},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"constant.class",regex:"@@?[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"constant.buildin",regex:"`[^`]*`"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]},this.embedRules(i,"doc-",[i.getEndRule("start")]),this.normalizeRules()};r.inherits(s,o),t.MysqlHighlightRules=s})),ace.define("ace/mode/mysql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/mysql_highlight_rules","ace/range"],(function(e,t,n){var r=e("../lib/oop"),i=e("../mode/text").Mode,o=e("./mysql_highlight_rules").MysqlHighlightRules,s=(e("../range").Range,function(){this.HighlightRules=o});r.inherits(s,i),function(){this.lineCommentStart=["--","#"],this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/mysql"}.call(s.prototype),t.Mode=s}))},262:()=>{ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function e(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},e.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o})),ace.define("ace/mode/perl_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({keyword:"base|constant|continue|else|elsif|for|foreach|format|goto|if|last|local|my|next|no|package|parent|redo|require|scalar|sub|unless|until|while|use|vars","constant.language":"ARGV|ENV|INC|SIG","support.function":"getprotobynumber|getprotobyname|getservbyname|gethostbyaddr|gethostbyname|getservbyport|getnetbyaddr|getnetbyname|getsockname|getpeername|setpriority|getprotoent|setprotoent|getpriority|endprotoent|getservent|setservent|endservent|sethostent|socketpair|getsockopt|gethostent|endhostent|setsockopt|setnetent|quotemeta|localtime|prototype|getnetent|endnetent|rewinddir|wantarray|getpwuid|closedir|getlogin|readlink|endgrent|getgrgid|getgrnam|shmwrite|shutdown|readline|endpwent|setgrent|readpipe|formline|truncate|dbmclose|syswrite|setpwent|getpwnam|getgrent|getpwent|ucfirst|sysread|setpgrp|shmread|sysseek|sysopen|telldir|defined|opendir|connect|lcfirst|getppid|binmode|syscall|sprintf|getpgrp|readdir|seekdir|waitpid|reverse|unshift|symlink|dbmopen|semget|msgrcv|rename|listen|chroot|msgsnd|shmctl|accept|unpack|exists|fileno|shmget|system|unlink|printf|gmtime|msgctl|semctl|values|rindex|substr|splice|length|msgget|select|socket|return|caller|delete|alarm|ioctl|index|undef|lstat|times|srand|chown|fcntl|close|write|umask|rmdir|study|sleep|chomp|untie|print|utime|mkdir|atan2|split|crypt|flock|chmod|BEGIN|bless|chdir|semop|shift|reset|link|stat|chop|grep|fork|dump|join|open|tell|pipe|exit|glob|warn|each|bind|sort|pack|eval|push|keys|getc|kill|seek|sqrt|send|wait|rand|tied|read|time|exec|recv|eof|chr|int|ord|exp|pos|pop|sin|log|abs|oct|hex|tie|cos|vec|END|ref|map|die|uc|lc|do"},"identifier");this.$rules={start:[{token:"comment.doc",regex:"^=(?:begin|item)\\b",next:"block_comment"},{token:"string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:'["].*\\\\$',next:"qqstring"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"string",regex:"['].*\\\\$",next:"qstring"},{token:"constant.numeric",regex:"0x[0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"%#|\\$#|\\.\\.\\.|\\|\\|=|>>=|<<=|<=>|&&=|=>|!~|\\^=|&=|\\|=|\\.=|x=|%=|\\/=|\\*=|\\-=|\\+=|=~|\\*\\*|\\-\\-|\\.\\.|\\|\\||&&|\\+\\+|\\->|!=|==|>=|<=|>>|<<|,|=|\\?\\:|\\^|\\||x|%|\\/|\\*|<|&|\\\\|~|!|>|\\.|\\-|\\+|\\-C|\\-b|\\-S|\\-u|\\-t|\\-p|\\-l|\\-d|\\-f|\\-g|\\-s|\\-z|\\-k|\\-e|\\-O|\\-T|\\-B|\\-M|\\-A|\\-X|\\-W|\\-c|\\-R|\\-o|\\-x|\\-w|\\-r|\\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)"},{token:"comment",regex:"#.*$"},{token:"lparen",regex:"[[({]"},{token:"rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qqstring:[{token:"string",regex:'(?:(?:\\\\.)|(?:[^"\\\\]))*?"',next:"start"},{token:"string",regex:".+"}],qstring:[{token:"string",regex:"(?:(?:\\\\.)|(?:[^'\\\\]))*?'",next:"start"},{token:"string",regex:".+"}],block_comment:[{token:"comment.doc",regex:"^=cut\\b",next:"start"},{defaultToken:"comment.doc"}]}};r.inherits(o,i),t.PerlHighlightRules=o})),ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":"abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern","constant.language":"True|False|None|NotImplemented|Ellipsis|__debug__",keyword:"and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield"},"identifier"),t="(?:r|u|ur|R|U|UR|Ur|uR)?",n="(?:(?:(?:[1-9]\\d*)|(?:0))|(?:0[oO]?[0-7]+)|(?:0[xX][\\dA-Fa-f]+)|(?:0[bB][01]+))",r="(?:(?:(?:(?:(?:(?:\\d+)?(?:\\.\\d+))|(?:(?:\\d+)\\.))|(?:\\d+))(?:[eE][+-]?\\d+))|(?:(?:(?:\\d+)?(?:\\.\\d+))|(?:(?:\\d+)\\.)))",i="\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'\"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})";this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:t+'"{3}',next:"qqstring3"},{token:"string",regex:t+'"(?=.)',next:"qqstring"},{token:"string",regex:t+"'{3}",next:"qstring3"},{token:"string",regex:t+"'(?=.)",next:"qstring"},{token:"constant.numeric",regex:"(?:"+r+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:r},{token:"constant.numeric",regex:n+"[lL]\\b"},{token:"constant.numeric",regex:n+"\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:"text",regex:"\\s+"}],qqstring3:[{token:"constant.language.escape",regex:i},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:i},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:i},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}]}};r.inherits(o,i),t.PythonHighlightRules=o})),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'[^"\\\\]+'},{token:"string",regex:'"',next:"start"},{token:"string",regex:"",next:"start"}]}};r.inherits(o,i),t.JsonHighlightRules=o})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,o=e("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*\\b",a=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/[+-]?\d[\d_]*(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?\b/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+s+")(\\.)(prototype)(\\.)("+s+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?\:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[i.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){return this.next="{"==e?this.nextState:"","{"==e&&n.length?(n.unshift("start",t),"paren"):"}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx"))?"paren.quasi.end":"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&e.noJSX||c.call(this)),this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=s.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},n,{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[n,{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]}],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(a,o),t.JavaScriptHighlightRules=a})),ace.define("ace/mode/pgsql_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules","ace/mode/perl_highlight_rules","ace/mode/python_highlight_rules","ace/mode/json_highlight_rules","ace/mode/javascript_highlight_rules"],(function(e,t,n){var r=e("../lib/oop"),i=(e("../lib/lang"),e("./doc_comment_highlight_rules").DocCommentHighlightRules),o=e("./text_highlight_rules").TextHighlightRules,s=e("./perl_highlight_rules").PerlHighlightRules,a=e("./python_highlight_rules").PythonHighlightRules,c=e("./json_highlight_rules").JsonHighlightRules,l=e("./javascript_highlight_rules").JavaScriptHighlightRules,u=function(){var e=[{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"variable.language",regex:'".*?"'},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:this.createKeywordMapper({"support.function":"RI_FKey_cascade_del|RI_FKey_cascade_upd|RI_FKey_check_ins|RI_FKey_check_upd|RI_FKey_noaction_del|RI_FKey_noaction_upd|RI_FKey_restrict_del|RI_FKey_restrict_upd|RI_FKey_setdefault_del|RI_FKey_setdefault_upd|RI_FKey_setnull_del|RI_FKey_setnull_upd|abbrev|abs|abstime|abstimeeq|abstimege|abstimegt|abstimein|abstimele|abstimelt|abstimene|abstimeout|abstimerecv|abstimesend|aclcontains|acldefault|aclexplode|aclinsert|aclitemeq|aclitemin|aclitemout|aclremove|acos|age|any_in|any_out|anyarray_in|anyarray_out|anyarray_recv|anyarray_send|anyelement_in|anyelement_out|anyenum_in|anyenum_out|anynonarray_in|anynonarray_out|anyrange_in|anyrange_out|anytextcat|area|areajoinsel|areasel|array_agg|array_agg_finalfn|array_agg_transfn|array_append|array_cat|array_dims|array_eq|array_fill|array_ge|array_gt|array_in|array_larger|array_le|array_length|array_lower|array_lt|array_ndims|array_ne|array_out|array_prepend|array_recv|array_remove|array_replace|array_send|array_smaller|array_to_json|array_to_string|array_typanalyze|array_upper|arraycontained|arraycontains|arraycontjoinsel|arraycontsel|arrayoverlap|ascii|ascii_to_mic|ascii_to_utf8|asin|atan|atan2|avg|big5_to_euc_tw|big5_to_mic|big5_to_utf8|bit_and|bit_in|bit_length|bit_or|bit_out|bit_recv|bit_send|bitand|bitcat|bitcmp|biteq|bitge|bitgt|bitle|bitlt|bitne|bitnot|bitor|bitshiftleft|bitshiftright|bittypmodin|bittypmodout|bitxor|bool|bool_and|bool_or|booland_statefunc|booleq|boolge|boolgt|boolin|boolle|boollt|boolne|boolor_statefunc|boolout|boolrecv|boolsend|box|box_above|box_above_eq|box_add|box_below|box_below_eq|box_center|box_contain|box_contain_pt|box_contained|box_distance|box_div|box_eq|box_ge|box_gt|box_in|box_intersect|box_le|box_left|box_lt|box_mul|box_out|box_overabove|box_overbelow|box_overlap|box_overleft|box_overright|box_recv|box_right|box_same|box_send|box_sub|bpchar_larger|bpchar_pattern_ge|bpchar_pattern_gt|bpchar_pattern_le|bpchar_pattern_lt|bpchar_smaller|bpcharcmp|bpchareq|bpcharge|bpchargt|bpchariclike|bpcharicnlike|bpcharicregexeq|bpcharicregexne|bpcharin|bpcharle|bpcharlike|bpcharlt|bpcharne|bpcharnlike|bpcharout|bpcharrecv|bpcharregexeq|bpcharregexne|bpcharsend|bpchartypmodin|bpchartypmodout|broadcast|btabstimecmp|btarraycmp|btbeginscan|btboolcmp|btbpchar_pattern_cmp|btbuild|btbuildempty|btbulkdelete|btcanreturn|btcharcmp|btcostestimate|btendscan|btfloat48cmp|btfloat4cmp|btfloat4sortsupport|btfloat84cmp|btfloat8cmp|btfloat8sortsupport|btgetbitmap|btgettuple|btinsert|btint24cmp|btint28cmp|btint2cmp|btint2sortsupport|btint42cmp|btint48cmp|btint4cmp|btint4sortsupport|btint82cmp|btint84cmp|btint8cmp|btint8sortsupport|btmarkpos|btnamecmp|btnamesortsupport|btoidcmp|btoidsortsupport|btoidvectorcmp|btoptions|btrecordcmp|btreltimecmp|btrescan|btrestrpos|btrim|bttext_pattern_cmp|bttextcmp|bttidcmp|bttintervalcmp|btvacuumcleanup|bytea_string_agg_finalfn|bytea_string_agg_transfn|byteacat|byteacmp|byteaeq|byteage|byteagt|byteain|byteale|bytealike|bytealt|byteane|byteanlike|byteaout|bytearecv|byteasend|cash_cmp|cash_div_cash|cash_div_flt4|cash_div_flt8|cash_div_int2|cash_div_int4|cash_eq|cash_ge|cash_gt|cash_in|cash_le|cash_lt|cash_mi|cash_mul_flt4|cash_mul_flt8|cash_mul_int2|cash_mul_int4|cash_ne|cash_out|cash_pl|cash_recv|cash_send|cash_words|cashlarger|cashsmaller|cbrt|ceil|ceiling|center|char|char_length|character_length|chareq|charge|chargt|charin|charle|charlt|charne|charout|charrecv|charsend|chr|cideq|cidin|cidout|cidr|cidr_in|cidr_out|cidr_recv|cidr_send|cidrecv|cidsend|circle|circle_above|circle_add_pt|circle_below|circle_center|circle_contain|circle_contain_pt|circle_contained|circle_distance|circle_div_pt|circle_eq|circle_ge|circle_gt|circle_in|circle_le|circle_left|circle_lt|circle_mul_pt|circle_ne|circle_out|circle_overabove|circle_overbelow|circle_overlap|circle_overleft|circle_overright|circle_recv|circle_right|circle_same|circle_send|circle_sub_pt|clock_timestamp|close_lb|close_ls|close_lseg|close_pb|close_pl|close_ps|close_sb|close_sl|col_description|concat|concat_ws|contjoinsel|contsel|convert|convert_from|convert_to|corr|cos|cot|count|covar_pop|covar_samp|cstring_in|cstring_out|cstring_recv|cstring_send|cume_dist|current_database|current_query|current_schema|current_schemas|current_setting|current_user|currtid|currtid2|currval|cursor_to_xml|cursor_to_xmlschema|database_to_xml|database_to_xml_and_xmlschema|database_to_xmlschema|date|date_cmp|date_cmp_timestamp|date_cmp_timestamptz|date_eq|date_eq_timestamp|date_eq_timestamptz|date_ge|date_ge_timestamp|date_ge_timestamptz|date_gt|date_gt_timestamp|date_gt_timestamptz|date_in|date_larger|date_le|date_le_timestamp|date_le_timestamptz|date_lt|date_lt_timestamp|date_lt_timestamptz|date_mi|date_mi_interval|date_mii|date_ne|date_ne_timestamp|date_ne_timestamptz|date_out|date_part|date_pl_interval|date_pli|date_recv|date_send|date_smaller|date_sortsupport|date_trunc|daterange|daterange_canonical|daterange_subdiff|datetime_pl|datetimetz_pl|dcbrt|decode|degrees|dense_rank|dexp|diagonal|diameter|dispell_init|dispell_lexize|dist_cpoly|dist_lb|dist_pb|dist_pc|dist_pl|dist_ppath|dist_ps|dist_sb|dist_sl|div|dlog1|dlog10|domain_in|domain_recv|dpow|dround|dsimple_init|dsimple_lexize|dsnowball_init|dsnowball_lexize|dsqrt|dsynonym_init|dsynonym_lexize|dtrunc|elem_contained_by_range|encode|enum_cmp|enum_eq|enum_first|enum_ge|enum_gt|enum_in|enum_larger|enum_last|enum_le|enum_lt|enum_ne|enum_out|enum_range|enum_recv|enum_send|enum_smaller|eqjoinsel|eqsel|euc_cn_to_mic|euc_cn_to_utf8|euc_jis_2004_to_shift_jis_2004|euc_jis_2004_to_utf8|euc_jp_to_mic|euc_jp_to_sjis|euc_jp_to_utf8|euc_kr_to_mic|euc_kr_to_utf8|euc_tw_to_big5|euc_tw_to_mic|euc_tw_to_utf8|event_trigger_in|event_trigger_out|every|exp|factorial|family|fdw_handler_in|fdw_handler_out|first_value|float4|float48div|float48eq|float48ge|float48gt|float48le|float48lt|float48mi|float48mul|float48ne|float48pl|float4_accum|float4abs|float4div|float4eq|float4ge|float4gt|float4in|float4larger|float4le|float4lt|float4mi|float4mul|float4ne|float4out|float4pl|float4recv|float4send|float4smaller|float4um|float4up|float8|float84div|float84eq|float84ge|float84gt|float84le|float84lt|float84mi|float84mul|float84ne|float84pl|float8_accum|float8_avg|float8_corr|float8_covar_pop|float8_covar_samp|float8_regr_accum|float8_regr_avgx|float8_regr_avgy|float8_regr_intercept|float8_regr_r2|float8_regr_slope|float8_regr_sxx|float8_regr_sxy|float8_regr_syy|float8_stddev_pop|float8_stddev_samp|float8_var_pop|float8_var_samp|float8abs|float8div|float8eq|float8ge|float8gt|float8in|float8larger|float8le|float8lt|float8mi|float8mul|float8ne|float8out|float8pl|float8recv|float8send|float8smaller|float8um|float8up|floor|flt4_mul_cash|flt8_mul_cash|fmgr_c_validator|fmgr_internal_validator|fmgr_sql_validator|format|format_type|gb18030_to_utf8|gbk_to_utf8|generate_series|generate_subscripts|get_bit|get_byte|get_current_ts_config|getdatabaseencoding|getpgusername|gin_cmp_prefix|gin_cmp_tslexeme|gin_extract_tsquery|gin_extract_tsvector|gin_tsquery_consistent|ginarrayconsistent|ginarrayextract|ginbeginscan|ginbuild|ginbuildempty|ginbulkdelete|gincostestimate|ginendscan|gingetbitmap|gininsert|ginmarkpos|ginoptions|ginqueryarrayextract|ginrescan|ginrestrpos|ginvacuumcleanup|gist_box_compress|gist_box_consistent|gist_box_decompress|gist_box_penalty|gist_box_picksplit|gist_box_same|gist_box_union|gist_circle_compress|gist_circle_consistent|gist_point_compress|gist_point_consistent|gist_point_distance|gist_poly_compress|gist_poly_consistent|gistbeginscan|gistbuild|gistbuildempty|gistbulkdelete|gistcostestimate|gistendscan|gistgetbitmap|gistgettuple|gistinsert|gistmarkpos|gistoptions|gistrescan|gistrestrpos|gistvacuumcleanup|gtsquery_compress|gtsquery_consistent|gtsquery_decompress|gtsquery_penalty|gtsquery_picksplit|gtsquery_same|gtsquery_union|gtsvector_compress|gtsvector_consistent|gtsvector_decompress|gtsvector_penalty|gtsvector_picksplit|gtsvector_same|gtsvector_union|gtsvectorin|gtsvectorout|has_any_column_privilege|has_column_privilege|has_database_privilege|has_foreign_data_wrapper_privilege|has_function_privilege|has_language_privilege|has_schema_privilege|has_sequence_privilege|has_server_privilege|has_table_privilege|has_tablespace_privilege|has_type_privilege|hash_aclitem|hash_array|hash_numeric|hash_range|hashbeginscan|hashbpchar|hashbuild|hashbuildempty|hashbulkdelete|hashchar|hashcostestimate|hashendscan|hashenum|hashfloat4|hashfloat8|hashgetbitmap|hashgettuple|hashinet|hashinsert|hashint2|hashint2vector|hashint4|hashint8|hashmacaddr|hashmarkpos|hashname|hashoid|hashoidvector|hashoptions|hashrescan|hashrestrpos|hashtext|hashvacuumcleanup|hashvarlena|height|host|hostmask|iclikejoinsel|iclikesel|icnlikejoinsel|icnlikesel|icregexeqjoinsel|icregexeqsel|icregexnejoinsel|icregexnesel|inet_client_addr|inet_client_port|inet_in|inet_out|inet_recv|inet_send|inet_server_addr|inet_server_port|inetand|inetmi|inetmi_int8|inetnot|inetor|inetpl|initcap|int2|int24div|int24eq|int24ge|int24gt|int24le|int24lt|int24mi|int24mul|int24ne|int24pl|int28div|int28eq|int28ge|int28gt|int28le|int28lt|int28mi|int28mul|int28ne|int28pl|int2_accum|int2_avg_accum|int2_mul_cash|int2_sum|int2abs|int2and|int2div|int2eq|int2ge|int2gt|int2in|int2larger|int2le|int2lt|int2mi|int2mod|int2mul|int2ne|int2not|int2or|int2out|int2pl|int2recv|int2send|int2shl|int2shr|int2smaller|int2um|int2up|int2vectoreq|int2vectorin|int2vectorout|int2vectorrecv|int2vectorsend|int2xor|int4|int42div|int42eq|int42ge|int42gt|int42le|int42lt|int42mi|int42mul|int42ne|int42pl|int48div|int48eq|int48ge|int48gt|int48le|int48lt|int48mi|int48mul|int48ne|int48pl|int4_accum|int4_avg_accum|int4_mul_cash|int4_sum|int4abs|int4and|int4div|int4eq|int4ge|int4gt|int4in|int4inc|int4larger|int4le|int4lt|int4mi|int4mod|int4mul|int4ne|int4not|int4or|int4out|int4pl|int4range|int4range_canonical|int4range_subdiff|int4recv|int4send|int4shl|int4shr|int4smaller|int4um|int4up|int4xor|int8|int82div|int82eq|int82ge|int82gt|int82le|int82lt|int82mi|int82mul|int82ne|int82pl|int84div|int84eq|int84ge|int84gt|int84le|int84lt|int84mi|int84mul|int84ne|int84pl|int8_accum|int8_avg|int8_avg_accum|int8_sum|int8abs|int8and|int8div|int8eq|int8ge|int8gt|int8in|int8inc|int8inc_any|int8inc_float8_float8|int8larger|int8le|int8lt|int8mi|int8mod|int8mul|int8ne|int8not|int8or|int8out|int8pl|int8pl_inet|int8range|int8range_canonical|int8range_subdiff|int8recv|int8send|int8shl|int8shr|int8smaller|int8um|int8up|int8xor|integer_pl_date|inter_lb|inter_sb|inter_sl|internal_in|internal_out|interval_accum|interval_avg|interval_cmp|interval_div|interval_eq|interval_ge|interval_gt|interval_hash|interval_in|interval_larger|interval_le|interval_lt|interval_mi|interval_mul|interval_ne|interval_out|interval_pl|interval_pl_date|interval_pl_time|interval_pl_timestamp|interval_pl_timestamptz|interval_pl_timetz|interval_recv|interval_send|interval_smaller|interval_transform|interval_um|intervaltypmodin|intervaltypmodout|intinterval|isclosed|isempty|isfinite|ishorizontal|iso8859_1_to_utf8|iso8859_to_utf8|iso_to_koi8r|iso_to_mic|iso_to_win1251|iso_to_win866|isopen|isparallel|isperp|isvertical|johab_to_utf8|json_agg|json_agg_finalfn|json_agg_transfn|json_array_element|json_array_element_text|json_array_elements|json_array_length|json_each|json_each_text|json_extract_path|json_extract_path_op|json_extract_path_text|json_extract_path_text_op|json_in|json_object_field|json_object_field_text|json_object_keys|json_out|json_populate_record|json_populate_recordset|json_recv|json_send|justify_days|justify_hours|justify_interval|koi8r_to_iso|koi8r_to_mic|koi8r_to_utf8|koi8r_to_win1251|koi8r_to_win866|koi8u_to_utf8|lag|language_handler_in|language_handler_out|last_value|lastval|latin1_to_mic|latin2_to_mic|latin2_to_win1250|latin3_to_mic|latin4_to_mic|lead|left|length|like|like_escape|likejoinsel|likesel|line|line_distance|line_eq|line_horizontal|line_in|line_interpt|line_intersect|line_out|line_parallel|line_perp|line_recv|line_send|line_vertical|ln|lo_close|lo_creat|lo_create|lo_export|lo_import|lo_lseek|lo_lseek64|lo_open|lo_tell|lo_tell64|lo_truncate|lo_truncate64|lo_unlink|log|loread|lower|lower_inc|lower_inf|lowrite|lpad|lseg|lseg_center|lseg_distance|lseg_eq|lseg_ge|lseg_gt|lseg_horizontal|lseg_in|lseg_interpt|lseg_intersect|lseg_le|lseg_length|lseg_lt|lseg_ne|lseg_out|lseg_parallel|lseg_perp|lseg_recv|lseg_send|lseg_vertical|ltrim|macaddr_and|macaddr_cmp|macaddr_eq|macaddr_ge|macaddr_gt|macaddr_in|macaddr_le|macaddr_lt|macaddr_ne|macaddr_not|macaddr_or|macaddr_out|macaddr_recv|macaddr_send|makeaclitem|masklen|max|md5|mic_to_ascii|mic_to_big5|mic_to_euc_cn|mic_to_euc_jp|mic_to_euc_kr|mic_to_euc_tw|mic_to_iso|mic_to_koi8r|mic_to_latin1|mic_to_latin2|mic_to_latin3|mic_to_latin4|mic_to_sjis|mic_to_win1250|mic_to_win1251|mic_to_win866|min|mktinterval|mod|money|mul_d_interval|name|nameeq|namege|namegt|nameiclike|nameicnlike|nameicregexeq|nameicregexne|namein|namele|namelike|namelt|namene|namenlike|nameout|namerecv|nameregexeq|nameregexne|namesend|neqjoinsel|neqsel|netmask|network|network_cmp|network_eq|network_ge|network_gt|network_le|network_lt|network_ne|network_sub|network_subeq|network_sup|network_supeq|nextval|nlikejoinsel|nlikesel|notlike|now|npoints|nth_value|ntile|numeric_abs|numeric_accum|numeric_add|numeric_avg|numeric_avg_accum|numeric_cmp|numeric_div|numeric_div_trunc|numeric_eq|numeric_exp|numeric_fac|numeric_ge|numeric_gt|numeric_in|numeric_inc|numeric_larger|numeric_le|numeric_ln|numeric_log|numeric_lt|numeric_mod|numeric_mul|numeric_ne|numeric_out|numeric_power|numeric_recv|numeric_send|numeric_smaller|numeric_sqrt|numeric_stddev_pop|numeric_stddev_samp|numeric_sub|numeric_transform|numeric_uminus|numeric_uplus|numeric_var_pop|numeric_var_samp|numerictypmodin|numerictypmodout|numnode|numrange|numrange_subdiff|obj_description|octet_length|oid|oideq|oidge|oidgt|oidin|oidlarger|oidle|oidlt|oidne|oidout|oidrecv|oidsend|oidsmaller|oidvectoreq|oidvectorge|oidvectorgt|oidvectorin|oidvectorle|oidvectorlt|oidvectorne|oidvectorout|oidvectorrecv|oidvectorsend|oidvectortypes|on_pb|on_pl|on_ppath|on_ps|on_sb|on_sl|opaque_in|opaque_out|overlaps|overlay|path|path_add|path_add_pt|path_center|path_contain_pt|path_distance|path_div_pt|path_in|path_inter|path_length|path_mul_pt|path_n_eq|path_n_ge|path_n_gt|path_n_le|path_n_lt|path_npoints|path_out|path_recv|path_send|path_sub_pt|pclose|percent_rank|pg_advisory_lock|pg_advisory_lock_shared|pg_advisory_unlock|pg_advisory_unlock_all|pg_advisory_unlock_shared|pg_advisory_xact_lock|pg_advisory_xact_lock_shared|pg_available_extension_versions|pg_available_extensions|pg_backend_pid|pg_backup_start_time|pg_cancel_backend|pg_char_to_encoding|pg_client_encoding|pg_collation_for|pg_collation_is_visible|pg_column_is_updatable|pg_column_size|pg_conf_load_time|pg_conversion_is_visible|pg_create_restore_point|pg_current_xlog_insert_location|pg_current_xlog_location|pg_cursor|pg_database_size|pg_describe_object|pg_encoding_max_length|pg_encoding_to_char|pg_event_trigger_dropped_objects|pg_export_snapshot|pg_extension_config_dump|pg_extension_update_paths|pg_function_is_visible|pg_get_constraintdef|pg_get_expr|pg_get_function_arguments|pg_get_function_identity_arguments|pg_get_function_result|pg_get_functiondef|pg_get_indexdef|pg_get_keywords|pg_get_multixact_members|pg_get_ruledef|pg_get_serial_sequence|pg_get_triggerdef|pg_get_userbyid|pg_get_viewdef|pg_has_role|pg_identify_object|pg_indexes_size|pg_is_in_backup|pg_is_in_recovery|pg_is_other_temp_schema|pg_is_xlog_replay_paused|pg_last_xact_replay_timestamp|pg_last_xlog_receive_location|pg_last_xlog_replay_location|pg_listening_channels|pg_lock_status|pg_ls_dir|pg_my_temp_schema|pg_node_tree_in|pg_node_tree_out|pg_node_tree_recv|pg_node_tree_send|pg_notify|pg_opclass_is_visible|pg_operator_is_visible|pg_opfamily_is_visible|pg_options_to_table|pg_postmaster_start_time|pg_prepared_statement|pg_prepared_xact|pg_read_binary_file|pg_read_file|pg_relation_filenode|pg_relation_filepath|pg_relation_is_updatable|pg_relation_size|pg_reload_conf|pg_rotate_logfile|pg_sequence_parameters|pg_show_all_settings|pg_size_pretty|pg_sleep|pg_start_backup|pg_stat_clear_snapshot|pg_stat_file|pg_stat_get_activity|pg_stat_get_analyze_count|pg_stat_get_autoanalyze_count|pg_stat_get_autovacuum_count|pg_stat_get_backend_activity|pg_stat_get_backend_activity_start|pg_stat_get_backend_client_addr|pg_stat_get_backend_client_port|pg_stat_get_backend_dbid|pg_stat_get_backend_idset|pg_stat_get_backend_pid|pg_stat_get_backend_start|pg_stat_get_backend_userid|pg_stat_get_backend_waiting|pg_stat_get_backend_xact_start|pg_stat_get_bgwriter_buf_written_checkpoints|pg_stat_get_bgwriter_buf_written_clean|pg_stat_get_bgwriter_maxwritten_clean|pg_stat_get_bgwriter_requested_checkpoints|pg_stat_get_bgwriter_stat_reset_time|pg_stat_get_bgwriter_timed_checkpoints|pg_stat_get_blocks_fetched|pg_stat_get_blocks_hit|pg_stat_get_buf_alloc|pg_stat_get_buf_fsync_backend|pg_stat_get_buf_written_backend|pg_stat_get_checkpoint_sync_time|pg_stat_get_checkpoint_write_time|pg_stat_get_db_blk_read_time|pg_stat_get_db_blk_write_time|pg_stat_get_db_blocks_fetched|pg_stat_get_db_blocks_hit|pg_stat_get_db_conflict_all|pg_stat_get_db_conflict_bufferpin|pg_stat_get_db_conflict_lock|pg_stat_get_db_conflict_snapshot|pg_stat_get_db_conflict_startup_deadlock|pg_stat_get_db_conflict_tablespace|pg_stat_get_db_deadlocks|pg_stat_get_db_numbackends|pg_stat_get_db_stat_reset_time|pg_stat_get_db_temp_bytes|pg_stat_get_db_temp_files|pg_stat_get_db_tuples_deleted|pg_stat_get_db_tuples_fetched|pg_stat_get_db_tuples_inserted|pg_stat_get_db_tuples_returned|pg_stat_get_db_tuples_updated|pg_stat_get_db_xact_commit|pg_stat_get_db_xact_rollback|pg_stat_get_dead_tuples|pg_stat_get_function_calls|pg_stat_get_function_self_time|pg_stat_get_function_total_time|pg_stat_get_last_analyze_time|pg_stat_get_last_autoanalyze_time|pg_stat_get_last_autovacuum_time|pg_stat_get_last_vacuum_time|pg_stat_get_live_tuples|pg_stat_get_numscans|pg_stat_get_tuples_deleted|pg_stat_get_tuples_fetched|pg_stat_get_tuples_hot_updated|pg_stat_get_tuples_inserted|pg_stat_get_tuples_returned|pg_stat_get_tuples_updated|pg_stat_get_vacuum_count|pg_stat_get_wal_senders|pg_stat_get_xact_blocks_fetched|pg_stat_get_xact_blocks_hit|pg_stat_get_xact_function_calls|pg_stat_get_xact_function_self_time|pg_stat_get_xact_function_total_time|pg_stat_get_xact_numscans|pg_stat_get_xact_tuples_deleted|pg_stat_get_xact_tuples_fetched|pg_stat_get_xact_tuples_hot_updated|pg_stat_get_xact_tuples_inserted|pg_stat_get_xact_tuples_returned|pg_stat_get_xact_tuples_updated|pg_stat_reset|pg_stat_reset_shared|pg_stat_reset_single_function_counters|pg_stat_reset_single_table_counters|pg_stop_backup|pg_switch_xlog|pg_table_is_visible|pg_table_size|pg_tablespace_databases|pg_tablespace_location|pg_tablespace_size|pg_terminate_backend|pg_timezone_abbrevs|pg_timezone_names|pg_total_relation_size|pg_trigger_depth|pg_try_advisory_lock|pg_try_advisory_lock_shared|pg_try_advisory_xact_lock|pg_try_advisory_xact_lock_shared|pg_ts_config_is_visible|pg_ts_dict_is_visible|pg_ts_parser_is_visible|pg_ts_template_is_visible|pg_type_is_visible|pg_typeof|pg_xlog_location_diff|pg_xlog_replay_pause|pg_xlog_replay_resume|pg_xlogfile_name|pg_xlogfile_name_offset|pi|plainto_tsquery|plpgsql_call_handler|plpgsql_inline_handler|plpgsql_validator|point|point_above|point_add|point_below|point_distance|point_div|point_eq|point_horiz|point_in|point_left|point_mul|point_ne|point_out|point_recv|point_right|point_send|point_sub|point_vert|poly_above|poly_below|poly_center|poly_contain|poly_contain_pt|poly_contained|poly_distance|poly_in|poly_left|poly_npoints|poly_out|poly_overabove|poly_overbelow|poly_overlap|poly_overleft|poly_overright|poly_recv|poly_right|poly_same|poly_send|polygon|popen|position|positionjoinsel|positionsel|postgresql_fdw_validator|pow|power|prsd_end|prsd_headline|prsd_lextype|prsd_nexttoken|prsd_start|pt_contained_circle|pt_contained_poly|query_to_xml|query_to_xml_and_xmlschema|query_to_xmlschema|querytree|quote_ident|quote_literal|quote_nullable|radians|radius|random|range_adjacent|range_after|range_before|range_cmp|range_contained_by|range_contains|range_contains_elem|range_eq|range_ge|range_gist_compress|range_gist_consistent|range_gist_decompress|range_gist_penalty|range_gist_picksplit|range_gist_same|range_gist_union|range_gt|range_in|range_intersect|range_le|range_lt|range_minus|range_ne|range_out|range_overlaps|range_overleft|range_overright|range_recv|range_send|range_typanalyze|range_union|rangesel|rank|record_eq|record_ge|record_gt|record_in|record_le|record_lt|record_ne|record_out|record_recv|record_send|regclass|regclassin|regclassout|regclassrecv|regclasssend|regconfigin|regconfigout|regconfigrecv|regconfigsend|regdictionaryin|regdictionaryout|regdictionaryrecv|regdictionarysend|regexeqjoinsel|regexeqsel|regexnejoinsel|regexnesel|regexp_matches|regexp_replace|regexp_split_to_array|regexp_split_to_table|regoperatorin|regoperatorout|regoperatorrecv|regoperatorsend|regoperin|regoperout|regoperrecv|regopersend|regprocedurein|regprocedureout|regprocedurerecv|regproceduresend|regprocin|regprocout|regprocrecv|regprocsend|regr_avgx|regr_avgy|regr_count|regr_intercept|regr_r2|regr_slope|regr_sxx|regr_sxy|regr_syy|regtypein|regtypeout|regtyperecv|regtypesend|reltime|reltimeeq|reltimege|reltimegt|reltimein|reltimele|reltimelt|reltimene|reltimeout|reltimerecv|reltimesend|repeat|replace|reverse|right|round|row_number|row_to_json|rpad|rtrim|scalargtjoinsel|scalargtsel|scalarltjoinsel|scalarltsel|schema_to_xml|schema_to_xml_and_xmlschema|schema_to_xmlschema|session_user|set_bit|set_byte|set_config|set_masklen|setseed|setval|setweight|shell_in|shell_out|shift_jis_2004_to_euc_jis_2004|shift_jis_2004_to_utf8|shobj_description|sign|similar_escape|sin|sjis_to_euc_jp|sjis_to_mic|sjis_to_utf8|slope|smgreq|smgrin|smgrne|smgrout|spg_kd_choose|spg_kd_config|spg_kd_inner_consistent|spg_kd_picksplit|spg_quad_choose|spg_quad_config|spg_quad_inner_consistent|spg_quad_leaf_consistent|spg_quad_picksplit|spg_range_quad_choose|spg_range_quad_config|spg_range_quad_inner_consistent|spg_range_quad_leaf_consistent|spg_range_quad_picksplit|spg_text_choose|spg_text_config|spg_text_inner_consistent|spg_text_leaf_consistent|spg_text_picksplit|spgbeginscan|spgbuild|spgbuildempty|spgbulkdelete|spgcanreturn|spgcostestimate|spgendscan|spggetbitmap|spggettuple|spginsert|spgmarkpos|spgoptions|spgrescan|spgrestrpos|spgvacuumcleanup|split_part|sqrt|statement_timestamp|stddev|stddev_pop|stddev_samp|string_agg|string_agg_finalfn|string_agg_transfn|string_to_array|strip|strpos|substr|substring|sum|suppress_redundant_updates_trigger|table_to_xml|table_to_xml_and_xmlschema|table_to_xmlschema|tan|text|text_ge|text_gt|text_larger|text_le|text_lt|text_pattern_ge|text_pattern_gt|text_pattern_le|text_pattern_lt|text_smaller|textanycat|textcat|texteq|texticlike|texticnlike|texticregexeq|texticregexne|textin|textlen|textlike|textne|textnlike|textout|textrecv|textregexeq|textregexne|textsend|thesaurus_init|thesaurus_lexize|tideq|tidge|tidgt|tidin|tidlarger|tidle|tidlt|tidne|tidout|tidrecv|tidsend|tidsmaller|time_cmp|time_eq|time_ge|time_gt|time_hash|time_in|time_larger|time_le|time_lt|time_mi_interval|time_mi_time|time_ne|time_out|time_pl_interval|time_recv|time_send|time_smaller|time_transform|timedate_pl|timemi|timenow|timeofday|timepl|timestamp_cmp|timestamp_cmp_date|timestamp_cmp_timestamptz|timestamp_eq|timestamp_eq_date|timestamp_eq_timestamptz|timestamp_ge|timestamp_ge_date|timestamp_ge_timestamptz|timestamp_gt|timestamp_gt_date|timestamp_gt_timestamptz|timestamp_hash|timestamp_in|timestamp_larger|timestamp_le|timestamp_le_date|timestamp_le_timestamptz|timestamp_lt|timestamp_lt_date|timestamp_lt_timestamptz|timestamp_mi|timestamp_mi_interval|timestamp_ne|timestamp_ne_date|timestamp_ne_timestamptz|timestamp_out|timestamp_pl_interval|timestamp_recv|timestamp_send|timestamp_smaller|timestamp_sortsupport|timestamp_transform|timestamptypmodin|timestamptypmodout|timestamptz_cmp|timestamptz_cmp_date|timestamptz_cmp_timestamp|timestamptz_eq|timestamptz_eq_date|timestamptz_eq_timestamp|timestamptz_ge|timestamptz_ge_date|timestamptz_ge_timestamp|timestamptz_gt|timestamptz_gt_date|timestamptz_gt_timestamp|timestamptz_in|timestamptz_larger|timestamptz_le|timestamptz_le_date|timestamptz_le_timestamp|timestamptz_lt|timestamptz_lt_date|timestamptz_lt_timestamp|timestamptz_mi|timestamptz_mi_interval|timestamptz_ne|timestamptz_ne_date|timestamptz_ne_timestamp|timestamptz_out|timestamptz_pl_interval|timestamptz_recv|timestamptz_send|timestamptz_smaller|timestamptztypmodin|timestamptztypmodout|timetypmodin|timetypmodout|timetz_cmp|timetz_eq|timetz_ge|timetz_gt|timetz_hash|timetz_in|timetz_larger|timetz_le|timetz_lt|timetz_mi_interval|timetz_ne|timetz_out|timetz_pl_interval|timetz_recv|timetz_send|timetz_smaller|timetzdate_pl|timetztypmodin|timetztypmodout|timezone|tinterval|tintervalct|tintervalend|tintervaleq|tintervalge|tintervalgt|tintervalin|tintervalle|tintervalleneq|tintervallenge|tintervallengt|tintervallenle|tintervallenlt|tintervallenne|tintervallt|tintervalne|tintervalout|tintervalov|tintervalrecv|tintervalrel|tintervalsame|tintervalsend|tintervalstart|to_ascii|to_char|to_date|to_hex|to_json|to_number|to_timestamp|to_tsquery|to_tsvector|transaction_timestamp|translate|trigger_in|trigger_out|trunc|ts_debug|ts_headline|ts_lexize|ts_match_qv|ts_match_tq|ts_match_tt|ts_match_vq|ts_parse|ts_rank|ts_rank_cd|ts_rewrite|ts_stat|ts_token_type|ts_typanalyze|tsmatchjoinsel|tsmatchsel|tsq_mcontained|tsq_mcontains|tsquery_and|tsquery_cmp|tsquery_eq|tsquery_ge|tsquery_gt|tsquery_le|tsquery_lt|tsquery_ne|tsquery_not|tsquery_or|tsqueryin|tsqueryout|tsqueryrecv|tsquerysend|tsrange|tsrange_subdiff|tstzrange|tstzrange_subdiff|tsvector_cmp|tsvector_concat|tsvector_eq|tsvector_ge|tsvector_gt|tsvector_le|tsvector_lt|tsvector_ne|tsvector_update_trigger|tsvector_update_trigger_column|tsvectorin|tsvectorout|tsvectorrecv|tsvectorsend|txid_current|txid_current_snapshot|txid_snapshot_in|txid_snapshot_out|txid_snapshot_recv|txid_snapshot_send|txid_snapshot_xip|txid_snapshot_xmax|txid_snapshot_xmin|txid_visible_in_snapshot|uhc_to_utf8|unique_key_recheck|unknownin|unknownout|unknownrecv|unknownsend|unnest|upper|upper_inc|upper_inf|utf8_to_ascii|utf8_to_big5|utf8_to_euc_cn|utf8_to_euc_jis_2004|utf8_to_euc_jp|utf8_to_euc_kr|utf8_to_euc_tw|utf8_to_gb18030|utf8_to_gbk|utf8_to_iso8859|utf8_to_iso8859_1|utf8_to_johab|utf8_to_koi8r|utf8_to_koi8u|utf8_to_shift_jis_2004|utf8_to_sjis|utf8_to_uhc|utf8_to_win|uuid_cmp|uuid_eq|uuid_ge|uuid_gt|uuid_hash|uuid_in|uuid_le|uuid_lt|uuid_ne|uuid_out|uuid_recv|uuid_send|var_pop|var_samp|varbit_in|varbit_out|varbit_recv|varbit_send|varbit_transform|varbitcmp|varbiteq|varbitge|varbitgt|varbitle|varbitlt|varbitne|varbittypmodin|varbittypmodout|varchar_transform|varcharin|varcharout|varcharrecv|varcharsend|varchartypmodin|varchartypmodout|variance|version|void_in|void_out|void_recv|void_send|width|width_bucket|win1250_to_latin2|win1250_to_mic|win1251_to_iso|win1251_to_koi8r|win1251_to_mic|win1251_to_win866|win866_to_iso|win866_to_koi8r|win866_to_mic|win866_to_win1251|win_to_utf8|xideq|xideqint4|xidin|xidout|xidrecv|xidsend|xml|xml_in|xml_is_well_formed|xml_is_well_formed_content|xml_is_well_formed_document|xml_out|xml_recv|xml_send|xmlagg|xmlcomment|xmlconcat2|xmlexists|xmlvalidate|xpath|xpath_exists",keyword:"abort|absolute|abstime|access|aclitem|action|add|admin|after|aggregate|all|also|alter|always|analyse|analyze|and|any|anyarray|anyelement|anyenum|anynonarray|anyrange|array|as|asc|assertion|assignment|asymmetric|at|attribute|authorization|backward|before|begin|between|bigint|binary|bit|bool|boolean|both|box|bpchar|by|bytea|cache|called|cascade|cascaded|case|cast|catalog|chain|char|character|characteristics|check|checkpoint|cid|cidr|circle|class|close|cluster|coalesce|collate|collation|column|comment|comments|commit|committed|concurrently|configuration|connection|constraint|constraints|content|continue|conversion|copy|cost|create|cross|cstring|csv|current|current_catalog|current_date|current_role|current_schema|current_time|current_timestamp|current_user|cursor|cycle|data|database|date|daterange|day|deallocate|dec|decimal|declare|default|defaults|deferrable|deferred|definer|delete|delimiter|delimiters|desc|dictionary|disable|discard|distinct|do|document|domain|double|drop|each|else|enable|encoding|encrypted|end|enum|escape|event|event_trigger|except|exclude|excluding|exclusive|execute|exists|explain|extension|external|extract|false|family|fdw_handler|fetch|first|float|float4|float8|following|for|force|foreign|forward|freeze|from|full|function|functions|global|grant|granted|greatest|group|gtsvector|handler|having|header|hold|hour|identity|if|ilike|immediate|immutable|implicit|in|including|increment|index|indexes|inet|inherit|inherits|initially|inline|inner|inout|input|insensitive|insert|instead|int|int2|int2vector|int4|int4range|int8|int8range|integer|internal|intersect|interval|into|invoker|is|isnull|isolation|join|json|key|label|language|language_handler|large|last|lateral|lc_collate|lc_ctype|leading|leakproof|least|left|level|like|limit|line|listen|load|local|localtime|localtimestamp|location|lock|lseg|macaddr|mapping|match|materialized|maxvalue|minute|minvalue|mode|money|month|move|name|names|national|natural|nchar|next|no|none|not|nothing|notify|notnull|nowait|null|nullif|nulls|numeric|numrange|object|of|off|offset|oid|oids|oidvector|on|only|opaque|operator|option|options|or|order|out|outer|over|overlaps|overlay|owned|owner|parser|partial|partition|passing|password|path|pg_attribute|pg_auth_members|pg_authid|pg_class|pg_database|pg_node_tree|pg_proc|pg_type|placing|plans|point|polygon|position|preceding|precision|prepare|prepared|preserve|primary|prior|privileges|procedural|procedure|program|quote|range|read|real|reassign|recheck|record|recursive|ref|refcursor|references|refresh|regclass|regconfig|regdictionary|regoper|regoperator|regproc|regprocedure|regtype|reindex|relative|release|reltime|rename|repeatable|replace|replica|reset|restart|restrict|returning|returns|revoke|right|role|rollback|row|rows|rule|savepoint|schema|scroll|search|second|security|select|sequence|sequences|serializable|server|session|session_user|set|setof|share|show|similar|simple|smallint|smgr|snapshot|some|stable|standalone|start|statement|statistics|stdin|stdout|storage|strict|strip|substring|symmetric|sysid|system|table|tables|tablespace|temp|template|temporary|text|then|tid|time|timestamp|timestamptz|timetz|tinterval|to|trailing|transaction|treat|trigger|trim|true|truncate|trusted|tsquery|tsrange|tstzrange|tsvector|txid_snapshot|type|types|unbounded|uncommitted|unencrypted|union|unique|unknown|unlisten|unlogged|until|update|user|using|uuid|vacuum|valid|validate|validator|value|values|varbit|varchar|variadic|varying|verbose|version|view|void|volatile|when|where|whitespace|window|with|without|work|wrapper|write|xid|xml|xmlattributes|xmlconcat|xmlelement|xmlexists|xmlforest|xmlparse|xmlpi|xmlroot|xmlserialize|year|yes|zone"},"identifier",!0),regex:"[a-zA-Z_][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"!|!!|!~|!~\\*|!~~|!~~\\*|#|##|#<|#<=|#<>|#=|#>|#>=|%|\\&|\\&\\&|\\&<|\\&<\\||\\&>|\\*|\\+|\\-|/|<|<#>|<\\->|<<|<<=|<<\\||<=|<>|<\\?>|<@|<\\^|=|>|>=|>>|>>=|>\\^|\\?#|\\?\\-|\\?\\-\\||\\?\\||\\?\\|\\||@|@\\-@|@>|@@|@@@|\\^|\\||\\|\\&>|\\|/|\\|>>|\\|\\||\\|\\|/|~|~\\*|~<=~|~<~|~=|~>=~|~>~|~~|~~\\*"},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}];this.$rules={start:[{token:"comment",regex:"--.*$"},i.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"keyword.statementBegin",regex:"^[a-zA-Z]+",next:"statement"},{token:"support.buildin",regex:"^\\\\[\\S]+.*$"}],statement:[{token:"comment",regex:"--.*$"},{token:"comment",regex:"\\/\\*",next:"commentStatement"},{token:"statementEnd",regex:";",next:"start"},{token:"string",regex:"\\$perl\\$",next:"perl-start"},{token:"string",regex:"\\$python\\$",next:"python-start"},{token:"string",regex:"\\$json\\$",next:"json-start"},{token:"string",regex:"\\$(js|javascript)\\$",next:"javascript-start"},{token:"string",regex:"\\$[\\w_0-9]*\\$$",next:"dollarSql"},{token:"string",regex:"\\$[\\w_0-9]*\\$",next:"dollarStatementString"}].concat(e),dollarSql:[{token:"comment",regex:"--.*$"},{token:"comment",regex:"\\/\\*",next:"commentDollarSql"},{token:"string",regex:"^\\$[\\w_0-9]*\\$",next:"statement"},{token:"string",regex:"\\$[\\w_0-9]*\\$",next:"dollarSqlString"}].concat(e),comment:[{token:"comment",regex:".*?\\*\\/",next:"start"},{token:"comment",regex:".+"}],commentStatement:[{token:"comment",regex:".*?\\*\\/",next:"statement"},{token:"comment",regex:".+"}],commentDollarSql:[{token:"comment",regex:".*?\\*\\/",next:"dollarSql"},{token:"comment",regex:".+"}],dollarStatementString:[{token:"string",regex:".*?\\$[\\w_0-9]*\\$",next:"statement"},{token:"string",regex:".+"}],dollarSqlString:[{token:"string",regex:".*?\\$[\\w_0-9]*\\$",next:"dollarSql"},{token:"string",regex:".+"}]},this.embedRules(i,"doc-",[i.getEndRule("start")]),this.embedRules(s,"perl-",[{token:"string",regex:"\\$perl\\$",next:"statement"}]),this.embedRules(a,"python-",[{token:"string",regex:"\\$python\\$",next:"statement"}]),this.embedRules(c,"json-",[{token:"string",regex:"\\$json\\$",next:"statement"}]),this.embedRules(l,"javascript-",[{token:"string",regex:"\\$(js|javascript)\\$",next:"statement"}])};r.inherits(u,o),t.PgsqlHighlightRules=u})),ace.define("ace/mode/pgsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/pgsql_highlight_rules","ace/range"],(function(e,t,n){var r=e("../lib/oop"),i=e("../mode/text").Mode,o=e("./pgsql_highlight_rules").PgsqlHighlightRules,s=(e("../range").Range,function(){this.HighlightRules=o});r.inherits(s,i),function(){this.lineCommentStart="--",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){return"start"==e||"keyword.statementEnd"==e?"":this.$getIndent(t)},this.$id="ace/mode/pgsql"}.call(s.prototype),t.Mode=s}))},8128:()=>{ace.define("ace/mode/phoenix_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["pql"],name:"Phoenix",scopeName:"source.phoenix"},r.inherits(o,i),t.PhoenixHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/phoenix",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/phoenix_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./phoenix_highlight_rules").PhoenixHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/phoenix",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},7911:()=>{ace.define("ace/mode/presto_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ARRAY|ARRAY_CONTAINS|ASCII|ASIN|ATAN|AVG|BASE64|BIN|BINARY|BROUND|CAST|CBRT|CEIL|CEILING|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT|CONCAT_WS|CONTEXT_NGRAMS|CONV|CORR|COS|COVAR_POP|COVAR_SAMP|COUNT|CRC32|CREATE_UNION|CUME_DIST|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_USER|DATE_ADD|DATE_FORMAT|DATE_SUB|DATEDIFF|DAY|DAYOFMONTH|DECODE|DEGREES|DENSE_RANK|E|ENCODE|EXP|EXPLODE|FACTORIAL|FIND_IN_SET|FIRST_VALUE|FLOOR|FORMAT_NUMBER|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GREATEST|HASH|HEX|HISTOGRAM_NUMERIC|HOUR|IF|IN_FILE|INLINE|INSTR|INITCAP|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_TUPLE|LAG|LAST_DAY|LAST_VALUE|LEAD|LEAST|LENGTH|LEVENSHTEIN|LCASE|LN|LOCATE|LOG|LOG10|LOG2|LOWER|LPAD|LTRIM|MAP|MAP_KEYS|MAP_VALUES|MAX|MD5|MIN|MINUTE|MONTH|MONTHS_BETWEEN|NAMED_STRUCT|NEGATIVE|NEXT_DAY|NGRAMS|NTILE|NVL|PARSE_URL|PARSE_URL_TUPLE|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANK|REFLECT|REGEXP_EXTRACT|REGEXP_REPLACE|REPEAT|REVERSE|ROUND|ROW_NUMBER|RPAD|RTRIM|SECOND|SHA|SHA1|SHA2|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SIGN|SIN|SIZE|SORT_ARRAY|SQRT|STACK|STDDEV_POP|STDDEV_SAMP|STRUCT|SENTENCES|SOUNDEX|SPACE|SPLIT|STR_TO_MAP|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TO_DATE|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|UCASE|UNBASE64|UNHEX|UNIX_TIMESTAMP|UPPER|VAR_POP|VAR_SAMP|VARIANCE|WEEKOFYEAR|XPATH|XPATH_BOOLEAN|XPATH_DOUBLE|XPATH_FLOAT|XPATH_INT|XPATH_LONG|XPATH_NUMBER|XPATH_SHORT|XPATH_STRING|YEAR",keyword:"ADD|ADMIN|AFTER|ALL|ALTER|ANALYZE|AND|ARCHIVE|AS|ASC|AUTHORIZATION|BEFORE|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CHANGE|CLUSTER|CLUSTERED|CLUSTERSTATUS|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONF|CONSTRAINT|CONTINUE|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIMESTAMP|CURSOR|DATA|DATABASE|DATABASES|DATETIME|DAY|DAYOFWEEK|DBPROPERTIES|DEFERRED|DEFINED|DELETE|DEPENDENCY|DESC|DESCRIBE|DIRECTORIES|DIRECTORY|DISABLE|DISTINCT|DISTRIBUTE|DROP|ELEM_TYPE|ELSE|ENABLE|END|ESCAPED|EXCHANGE|EXCLUSIVE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILE|FILEFORMAT|FIRST|FLOOR|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GRANT|GROUP|GROUPING|HAVING|HOLD_DDLTIME|HOUR|IDXPROPERTIES|IF|IGNORE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTDRIVER|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JAR|JOIN|KEY|KEYS|KEY_TYPE|LATERAL|LEFT|LESS|LIKE|LIMIT|LINES|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|LONG|MACRO|MAPJOIN|MATERIALIZED|MINUS|MINUTE|MONTH|MORE|MSCK|NONE|NOSCAN|NOVALIDATE|NOT|NO_DROP|OF|OFFLINE|ON|ONLY|OPTION|OR|ORDER|OUT|OUTER|OUTPUTDRIVER|OUTPUTFORMAT|OVER|OVERWRITE|OWNER|PARTIALSCAN|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PLUS|PRECEDING|PRECISION|PRESERVE|PRETTY|PRIMARY|PRINCIPALS|PROCEDURE|PROTECTION|PURGE|RANGE|READ|READONLY|READS|REBUILD|RECORDREADER|RECORDWRITER|REDUCE|REFERENCES|REGEXP|RELOAD|RENAME|REPAIR|REPLACE|RESTRICT|REVOKE|REWRITE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SECOND|SELECT|SEMI|SERDEPROPERTIES|SERVER|SET|SETS|SHARED|SHOW|SHOW_DATABASE|SKEWED|SORT|SORTED|SSL|START|STATISTICS|STORED|STREAMTABLE|SYNC|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMPORARY|TERMINATED|THEN|TO|TOUCH|TRANSACTIONAL|TRANSACTIONS|TRANSFORM|TRIGGER|TRUNCATE|UNARCHIVE|UNBOUNDED|UNDO|UNION|UNIQUEJOIN|UNLOCK|UNSET|UNSIGNED|UTC_TIMESTAMP|UPDATE|URI|USE|USER|USING|UTC|UTCTIMESTAMP|VALUES|VALUE_TYPE|VIEW|VIEWS|WHEN|WHERE|WHILE|WINDOW|WITH|YEAR","constant.language":"FALSE|NULL|TRUE","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|CHAR|DATE|DECIMAL|DELIMITED|DOUBLE|FLOAT|INT|INTEGER|JSONFILE|MAP|NUMERIC|PRECISION|RCFILE|SEQUENCEFILE|SERDE|SMALLINT|STRING|STRUCT|TEXTFILE|TIME|TIMESTAMP|TINYINT|UNIONTYPE|VARCHAR"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hql","q","ql"],name:"Presto",scopeName:"source.presto"},r.inherits(o,i),t.PrestoHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/presto",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/presto_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./presto_highlight_rules").PrestoHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/presto",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},5366:()=>{ace.define("ace/mode/solr_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|AVG|CHILDFIELD|DEF|DIST|DIV|DOCFREQ|EQ|EXISTS|FIELD|GT|GTE|HLL|HSIN|IDF|IF|LINEAR|LOG|LT|LTE|MAP|MAX|MAX|MAXDOC|MIN|MIN|MS|MUL|NORM|NUMDOCS|ORD|PAYLOAD|PERCENTILE|POW|PRODUCT|QUERY|RECIP|RORD|SCALE|SQEDIST|SQRT|STDDEV|STRDIST|SUB|SUM|SUM|SUMSQ|SUMTOTALTERMFREQ|TERMFREQ|TF|TOP|TOTALTERMFREQ|UNIQUE|VARIANCE|XOR",keyword:"AND|OR|NOT|TO|NOW|HOUR|HOURS|DAY|DAYS|MONTH|MONTHS|YEAR|YEARS"},"identifier",!0);this.$rules={start:[{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:'\\+|\\-|\\/|\\?|&|\\^|~|:|\\*|\\||!|"|\\[|\\]'},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["solr"],name:"Solr",scopeName:"source.solr"},r.inherits(o,i),t.SolrHighlightRules=o})),ace.define("ace/mode/solr",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/solr_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./solr_highlight_rules").SolrHighlightRules,s=function(){this.HighlightRules=o};r.inherits(s,i),function(){this.$id="ace/mode/solr",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!1,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(s.prototype),t.Mode=s}))},7060:()=>{ace.define("ace/mode/sparksql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"ABS|ACOS|ACOSH|ADD_MONTHS|AES_DECRYPT|AES_ENCRYPT|ANY|APPROX_COUNT_DISTINCT|APPROX_PERCENTILE|ARRAY|ARRAY_AGG|ARRAY_CONTAINS|ARRAY_DISTINCT|ARRAY_EXCEPT|ARRAY_INTERSECT|ARRAY_JOIN|ARRAY_MAX|ARRAY_MIN|ARRAY_POSITION|ARRAY_REMOVE|ARRAY_REPEAT|ARRAY_UNION|ARRAYS_OVERLAP|ARRAYS_ZIP|ASCII|ASIN|ASINH|ASSERT_TRUE|ATAN|ATAN2|ATANH|AVG|BASE64|BIGINT|BIN|BINARY|BIT_AND|BIT_COUNT|BIT_GET|BIT_LENGTH|BIT_OR|BIT_XOR|BOOL_AND|BOOL_OR|BOOLEAN|BROUND|BTRIM|CAST|CBRT|CEIL|CEILING|CHAR|CHAR_LENGTH|CHARACTER_LENGTH|CHR|COALESCE|COLLECT_LIST|COLLECT_SET|CONCAT_WS|CONTAINS|CONV|CORR|COS|COSH|COT|COUNT|COUNT_MIN_SKETCH|COVAR_POP|COVAR_SAMP|CSC|CUME_DIST|CURRENT_CATALOG|CURRENT_DATABASE|CURRENT_DATE|CURRENT_TIMESTAMP|CURRENT_TIMEZONE|CURRENT_USER|DATE|DATE_ADD|DATE_FORMAT|DATE_FROM_UNIX_DATE|DATE_PART|DATE_SUB|DATE_TRUNC|DATEDIFF|DAY|DAYOFMONTH|DAYOFWEEK|DAYOFYEAR|DECIMAL|DECODE|DEGREES|DENSE_RANK|DOUBLE|E|ELEMENT_AT|ELT|ENCODE|ENDSWITH|EVERY|EXP|EXPLODE|EXPLODE_OUTER|EXPM1|EXPR1|EXTRACT|FACTORIAL|FIND_IN_SET|FIRST|FIRST_VALUE|FLATTEN|FLOAT|FLOOR|FORMAT_NUMBER|FORMAT_STRING|FROM_JSON|FROM_UNIXTIME|FROM_UTC_TIMESTAMP|GET_JSON_OBJECT|GETBIT|GREATEST|GROUPING|GROUPING_ID|HEX|HISTOGRAM_NUMERIC|HOUR|HYPOT|IF|IFNULL|INITCAP|INLINE|INLINE_OUTER|INPUT_FILE_BLOCK_LENGTH|INPUT_FILE_BLOCK_START|INPUT_FILE_NAME|INSTR|INT|ISNAN|ISNOTNULL|ISNULL|JAVA_METHOD|JSON_ARRAY_LENGTH|JSON_OBJECT_KEYS|JSON_TUPLE|KURTOSIS|LAG|LAST|LAST_DAY|LAST_VALUE|LCASE|LEAD|LEAST|LEFT|LENGTH|LEVENSHTEIN|LN|LOCATE|LOG|LOG10|LOG1P|LOG2|LOWER|LPAD|LTRIM|MAKE_DATE|MAKE_DT_INTERVAL|MAKE_INTERVAL|MAKE_TIMESTAMP|MAKE_YM_INTERVAL|MAP|MAP_CONCAT|MAP_CONTAINS_KEY|MAP_ENTRIES|MAP_FROM_ARRAYS|MAP_FROM_ENTRIES|MAP_KEYS|MAP_VALUES|MAX|MAX_BY|MEAN|MIN|MIN_BY|MINUTE|MONOTONICALLY_INCREASING_ID|MONTH|MONTHS_BETWEEN|NANVL|NEGATIVE|NEXT_DAY|NOW|NTH_VALUE|NTILE|NULLIF|NVL|NVL2|OCTET_LENGTH|OVERLAY|PARSE_URL|PERCENT_RANK|PERCENTILE|PERCENTILE_APPROX|PI|PMOD|POSEXPLODE|POSEXPLODE_OUTER|POSITION|POSITIVE|POW|POWER|PRINTF|QUARTER|RADIANS|RAND|RANDN|RANDOM|RANK|REFLECT|REGEXP|REGEXP_EXTRACT|REGEXP_EXTRACT_ALL|REGEXP_LIKE|REGEXP_REPLACE|REGR_AVGX|REGR_AVGY|REGR_COUNT|REGR_R2|REPEAT|REPLACE|RIGHT|RINT|RLIKE|ROUND|ROW_NUMBER|RPAD|RTRIM|SCHEMA_OF_JSON|SEC|SECOND|SENTENCES|SEQUENCE|SESSION_WINDOW|SHIFTLEFT|SHIFTRIGHT|SHIFTRIGHTUNSIGNED|SHUFFLE|SIGN|SIGNUM|SIN|SINH|SKEWNESS|SLICE|SMALLINT|SOME|SORT_ARRAY|SOUNDEX|SPACE|SPARK_PARTITION_ID|SPLIT|SPLIT_PART|SQRT|STACK|STARTSWITH|STD|STDDEV|STDDEV_POP|STDDEV_SAMP|STR_TO_MAP|STRING|SUBSTR|SUBSTRING|SUBSTRING_INDEX|SUM|TAN|TANH|TIMESTAMP|TIMESTAMP_MICROS|TIMESTAMP_MILLIS|TIMESTAMP_SECONDS|TINYINT|TO_BINARY|TO_DATE|TO_JSON|TO_NUMBER|TO_TIMESTAMP|TO_UNIX_TIMESTAMP|TO_UTC_TIMESTAMP|TRANSLATE|TRIM|TRUNC|TRY_ADD|TRY_AVG|TRY_DIVIDE|TRY_ELEMENT_AT|TRY_MULTIPLY|TRY_SUBTRACT|TRY_SUM|TRY_TO_BINARY|TRY_TO_NUMBER|TYPEOF|UCASE|UNBASE64|UNHEX|UNIX_DATE|UNIX_MICROS|UNIX_MILLIS|UNIX_SECONDS|UNIX_TIMESTAMP|UPPER|UUID|VAR_POP|VAR_SAMP|VARIANCE|VERSION|WEEKDAY|WEEKOFYEAR|WIDTH_BUCKET|WINDOW|YEAR",keyword:"ADD|AFTER|ALL|ALTER|ANALYZE|AND|ANTI|ANY|ARCHIVE|AS|ASC|AT|AUTHORIZATION|BETWEEN|BOTH|BUCKET|BUCKETS|BY|CACHE|CASCADE|CASE|CAST|CATALOG|CATALOGS|CHANGE|CHECK|CLEAR|CLUSTER|CLUSTERED|CODEGEN|COLLATE|COLLECTION|COLUMN|COLUMNS|COMMENT|COMMIT|COMPACT|COMPACTIONS|COMPUTE|CONCATENATE|CONSTRAINT|COST|CREATE|CROSS|CUBE|CURRENT|CURRENT_DATE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|DATA|DATABASE|DATABASES|DATEADD|DATEDIFF|DAYOFYEAR|DBPROPERTIES|DEFINED|DELETE|DELIMITED|DESC|DESCRIBE|DFS|DIRECTORIES|DIRECTORY|DISTINCT|DISTRIBUTE|DIV|DROP|ELSE|END|ESCAPE|ESCAPED|EXCEPT|EXCHANGE|EXISTS|EXPLAIN|EXPORT|EXTENDED|EXTERNAL|EXTRACT|FETCH|FIELDS|FILEFORMAT|FILTER|FIRST|FOLLOWING|FOR|FOREIGN|FORMAT|FORMATTED|FROM|FULL|FUNCTION|FUNCTIONS|GLOBAL|GRANT|GROUP|GROUPING|HAVING|IF|IGNORE|ILIKE|IMPORT|IN|INDEX|INDEXES|INNER|INPATH|INPUTFORMAT|INSERT|INTERSECT|INTERVAL|INTO|IS|ITEMS|JOIN|KEYS|LAST|LATERAL|LAZY|LEADING|LEFT|LIKE|LIMIT|LINES|LIST|LOAD|LOCAL|LOCATION|LOCK|LOCKS|LOGICAL|MACRO|MATCHED|MERGE|MICROSECOND|MILLISECOND|MINUS|MSCK|NAMESPACE|NAMESPACES|NATURAL|NO|NOT|NULLS|OF|ON|ONLY|OPTION|OPTIONS|OR|ORDER|OUT|OUTER|OUTPUTFORMAT|OVER|OVERLAPS|OVERLAY|OVERWRITE|PARTITION|PARTITIONED|PARTITIONS|PERCENT|PERCENTILE_CONT|PERCENTILE_DISC|PIVOT|PLACING|POSITION|PRECEDING|PRIMARY|PRINCIPALS|PROPERTIES|PURGE|QUARTER|QUERY|RANGE|RECORDREADER|RECORDWRITER|RECOVER|REDUCE|REFERENCES|REFRESH|REGEXP|RENAME|REPAIR|REPEATABLE|REPLACE|RESET|RESPECT|RESTRICT|REVOKE|RIGHT|RLIKE|ROLE|ROLES|ROLLBACK|ROLLUP|ROW|ROWS|SCHEMA|SCHEMAS|SELECT|SEMI|SEPARATED|SERDE|SERDEPROPERTIES|SESSION_USER|SET|SETS|SHOW|SKEWED|SOME|SORT|SORTED|START|STATISTICS|STORED|STRATIFY|SUBSTR|SUBSTRING|SYNC|SYSTEM_TIME|SYSTEM_VERSION|TABLE|TABLES|TABLESAMPLE|TBLPROPERTIES|TEMP|TEMPORARY|TERMINATED|THEN|TIME|TIMESTAMPADD|TIMESTAMPDIFF|TO|TOUCH|TRAILING|TRANSACTION|TRANSACTIONS|TRANSFORM|TRIM|TRUNCATE|TRY_CAST|TYPE|UNARCHIVE|UNBOUNDED|UNCACHE|UNION|UNIQUE|UNKNOWN|UNLOCK|UNSET|UPDATE|USE|USER|USING|VALUES|VERSION|VIEW|VIEWS|WEEK|WHEN|WHERE|WINDOW|WITH|WITHIN|ZONE","constant.language":"AVRO|DAY|FALSE|HOUR|KUDU|MINUTE|MONTH|NULL|ORC|PARQUET|RCFILE|SECOND|SEQUENCEFILE|TEXTFILE|TRUE|YEAR","storage.type":"ARRAY|BIGINT|BINARY|BOOLEAN|BYTE|DATE|DEC|DECIMAL|DOUBLE|FLOAT|INT|INTEGER|LONG|MAP|NUMERIC|REAL|SHORT|SMALLINT|STRING|STRUCT|TIMESTAMP|TINYINT"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};o.metaData={fileTypes:["hql","q","ql"],name:"Sparksql",scopeName:"source.sparksql"},r.inherits(o,i),t.SparksqlHighlightRules=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,s=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(s,o),function(){this.foldingStartMarker=/(\{|\[)[^\}\]]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{]*(\}|\])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i,o=e.getLine(n);if(this.startRegionRe.test(o))return this.getCommentRegionBlock(e,o,n);if(i=o.match(this.foldingStartMarker)){var s=i.index;if(i[1])return this.openingBracketBlock(e,i[1],n,s);var a=e.getCommentFoldRange(n,s+i[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}return"markbegin"!==t&&(i=o.match(this.foldingStopMarker))?(s=i.index+i[0].length,i[1]?this.closingBracketBlock(e,i[1],n,s):e.getCommentFoldRange(n,s,-1)):void 0},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),o=t,s=n.length,a=t+=1,c=e.getLength();++t<c;){var l=(n=e.getLine(t)).search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}a=t}}return new i(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),o=e.getLength(),s=n,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;++n<o;){t=e.getLine(n);var l=a.exec(t);if(l&&(l[1]?c--:c++,!c))break}if(n>s)return new i(s,r,n,t.length)}}.call(s.prototype)})),ace.define("ace/mode/folding/sqlserver",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./cstyle").FoldMode,s=t.FoldMode=function(){};r.inherits(s,o),function(){this.foldingStartMarker=/(\bCASE\b|\bBEGIN\b)|^\s*(\/\*)/i,this.startRegionRe=/^\s*(\/\*|--)#?region\b/,this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var s=o.index;if(o[1])return this.getBeginEndBlock(e,n,s,o[1]);var a=e.getCommentFoldRange(n,s+o[0].length,1);return a&&!a.isMultiLine()&&(r?a=this.getSectionRange(e,n):"all"!=t&&(a=null)),a}},this.getBeginEndBlock=function(e,t,n,r){for(var o,s={row:t,column:n+r.length},a=e.getLength(),c=1,l=/(\bCASE\b|\bBEGIN\b)|(\bEND\b)/i;++t<a;){o=e.getLine(t);var u=l.exec(o);if(u&&(u[1]?c++:c--,!c))break}if(t>s.row)return new i(s.row,s.column,t,o.length)}}.call(s.prototype)})),ace.define("ace/mode/sparksql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sparksql_highlight_rules","ace/mode/folding/sqlserver"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./sparksql_highlight_rules").SparksqlHighlightRules,s=e("./folding/sqlserver").FoldMode,a=function(){this.HighlightRules=o,this.foldingRules=new s};r.inherits(a,i),function(){this.lineCommentStart="--",this.$id="ace/mode/sparksql",this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{ignoreCase:!0,name:e,value:e,upperCaseValue:e.toUpperCase(),score:1,meta:"keyword"}}))}}.call(a.prototype),t.Mode=a}))},2448:()=>{ace.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){var e=this.createKeywordMapper({"support.function":"avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",keyword:"select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|foreign|not|references|default|null|inner|cross|natural|database|drop|grant","constant.language":"true|false","storage.type":"int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|money|real|number|integer"},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:e,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};r.inherits(o,i),t.SqlHighlightRules=o})),ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./sql_highlight_rules").SqlHighlightRules,s=(e("../range").Range,function(){this.HighlightRules=o});r.inherits(s,i),function(){this.lineCommentStart="--",this.$id="ace/mode/sql"}.call(s.prototype),t.Mode=s}))},2224:()=>{ace.define("ace/snippets/bigquery",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="bigquery"}))},5394:()=>{ace.define("ace/snippets/dasksql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="dasksql"}))},4762:()=>{ace.define("ace/snippets/druid",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="druid"}))},267:()=>{ace.define("ace/snippets/elasticsearch",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="elasticsearch"}))},4998:()=>{ace.define("ace/snippets/flink",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="flink"}))},4689:()=>{ace.define("ace/snippets/hive",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet tbl\n\tcreate table ${1:table_name} (\n\t\t${2:columns}\n\t);\nsnippet s*\n\tselect * from ${1:table_name}\nsnippet showcolumns\n\tSHOW COLUMNS (FROM|IN) table_name [(FROM|IN) db_name];\nsnippet showcompactions\n\tSHOW COMPACTIONS;\nsnippet showconf\n\tSHOW CONF <configuration_name>;\nsnippet showcreate\n\tSHOW CREATE TABLE ([db_name.]table_name|view_name);\nsnippet showcurrentroles\n\tSHOW CURRENT ROLES;\nsnippet showdatabases\n\tSHOW (DATABASES|SCHEMAS) [LIKE 'identifier_with_wildcards'];\nsnippet showdblocks\n\tSHOW LOCKS (DATABASE|SCHEMA) database_name;\nsnippet showfunctions\n\tSHOW FUNCTIONS \"a.*\";\nsnippet showgrant\n\tSHOW GRANT;\nsnippet showindex\n\tSHOW [FORMATTED] (INDEX|INDEXES) ON ${1:table_with_index} [(FROM|IN) ${2:db_name}];\nsnippet showlocks\n\tSHOW LOCKS ${1:table_name} PARTITION (${2:partition_spec}) EXTENDED;\nsnippet showpartitions\n\tSHOW PARTITIONS ${1:table_name} PARTITION(ds='2010-03-03', hr='12');\nsnippet showprincipals\n\tSHOW PRINCIPALS;\nsnippet showrolegrant\n\tSHOW ROLE GRANT;\nsnippet showroles\n\tSHOW ROLES;\nsnippet showtableextended\n\tSHOW TABLE EXTENDED [IN|FROM ${1:database_name}] LIKE 'identifier_with_wildcards' [PARTITION(${2:partition_spec})];\nsnippet showtables\n\tSHOW TABLES [IN ${1:database_name}] ['identifier_with_wildcards'];\nsnippet showtblproperties\n\tSHOW TBLPROPERTIES ${1:table_name};\nsnippet showtransactions\n\tSHOW TRANSACTIONS;\n",t.scope="hive"}))},4042:()=>{ace.define("ace/snippets/hplsql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="hplsql"}))},5258:()=>{ace.define("ace/snippets/impala",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet tbl\n\tcreate table ${1:table} (\n\t\t${2:columns}\n\t);\nsnippet s*\n\tselect * from ${1:table}\n",t.scope="impala"}))},5409:()=>{ace.define("ace/snippets/ksql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="ksql"}))},1489:()=>{ace.define("ace/snippets/markdown",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='# Markdown\n\n# Includes octopress (http://octopress.org/) snippets\n\nsnippet [\n\t[${1:text}](http://${2:address} "${3:title}")\nsnippet [*\n\t[${1:link}](${2:`@*`} "${3:title}")${4}\n\nsnippet [:\n\t[${1:id}]: http://${2:url} "${3:title}"\nsnippet [:*\n\t[${1:id}]: ${2:`@*`} "${3:title}"\n\nsnippet ![\n\t![${1:alttext}](${2:/images/image.jpg} "${3:title}")\nsnippet ![*\n\t![${1:alt}](${2:`@*`} "${3:title}")${4}\n\nsnippet ![:\n\t![${1:id}]: ${2:url} "${3:title}"\nsnippet ![:*\n\t![${1:id}]: ${2:`@*`} "${3:title}"\n\nsnippet ===\nregex /^/=+/=*//\n\t${PREV_LINE/./=/g}\n\t\n\t${0}\nsnippet ---\nregex /^/-+/-*//\n\t${PREV_LINE/./-/g}\n\t\n\t${0}\nsnippet blockquote\n\t{% blockquote %}\n\t${1:quote}\n\t{% endblockquote %}\n\nsnippet blockquote-author\n\t{% blockquote ${1:author}, ${2:title} %}\n\t${3:quote}\n\t{% endblockquote %}\n\nsnippet blockquote-link\n\t{% blockquote ${1:author} ${2:URL} ${3:link_text} %}\n\t${4:quote}\n\t{% endblockquote %}\n\nsnippet bt-codeblock-short\n\t```\n\t${1:code_snippet}\n\t```\n\nsnippet bt-codeblock-full\n\t``` ${1:language} ${2:title} ${3:URL} ${4:link_text}\n\t${5:code_snippet}\n\t```\n\nsnippet codeblock-short\n\t{% codeblock %}\n\t${1:code_snippet}\n\t{% endcodeblock %}\n\nsnippet codeblock-full\n\t{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}\n\t${5:code_snippet}\n\t{% endcodeblock %}\n\nsnippet gist-full\n\t{% gist ${1:gist_id} ${2:filename} %}\n\nsnippet gist-short\n\t{% gist ${1:gist_id} %}\n\nsnippet img\n\t{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}\n\nsnippet youtube\n\t{% youtube ${1:video_id} %}\n\n# The quote should appear only once in the text. It is inherently part of it.\n# See http://octopress.org/docs/plugins/pullquote/ for more info.\n\nsnippet pullquote\n\t{% pullquote %}\n\t${1:text} {" ${2:quote} "} ${3:text}\n\t{% endpullquote %}\n',t.scope="markdown"}))},708:()=>{ace.define("ace/snippets/mysql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="mysql"}))},2426:()=>{ace.define("ace/snippets/pgsql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="pgsql"}))},7586:()=>{ace.define("ace/snippets/phoenix",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="phoenix"}))},9783:()=>{ace.define("ace/snippets/presto",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="presto"}))},6282:()=>{ace.define("ace/snippets/solr",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="solr"}))},1802:()=>{ace.define("ace/snippets/sql",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet tbl\n\tcreate table ${1:table} (\n\t\t${2:columns}\n\t);\nsnippet col\n\t${1:name}\t${2:type}\t${3:default ''}\t${4:not null}\nsnippet ccol\n\t${1:name}\tvarchar2(${2:size})\t${3:default ''}\t${4:not null}\nsnippet ncol\n\t${1:name}\tnumber\t${3:default 0}\t${4:not null}\nsnippet dcol\n\t${1:name}\tdate\t${3:default sysdate}\t${4:not null}\nsnippet ind\n\tcreate index ${3:$1_$2} on ${1:table}(${2:column});\nsnippet uind\n\tcreate unique index ${1:name} on ${2:table}(${3:column});\nsnippet tblcom\n\tcomment on table ${1:table} is '${2:comment}';\nsnippet colcom\n\tcomment on column ${1:table}.${2:column} is '${3:comment}';\nsnippet addcol\n\talter table ${1:table} add (${2:column} ${3:type});\nsnippet seq\n\tcreate sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\nsnippet s*\n\tselect * from ${1:table}\n",t.scope="sql"}))},1220:()=>{ace.define("ace/snippets/text",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="text"}))},3492:()=>{ace.define("ace/theme/hue",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!1,t.cssClass="ace-hue",t.cssText=".ace_hidden-cursors .ace_cursor {opacity: 0;}.ace-hue .ace_print-margin {width: 1px;background: #f6f6f6}.ace-hue {background-color: #FFFFFF;color: #4D4D4C}.ace-hue .ace_cursor {color: #AEAFAD}.ace-hue .ace_marker-layer .ace_selection {background: #D6D6D6}.ace-hue.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #FFFFFF;}.ace-hue .ace_marker-layer .ace_step {background: rgb(255, 255, 0)}.ace-hue .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #D1D1D1}.ace-hue .ace_marker-layer .ace_selected-word {border: 1px solid #D6D6D6}.ace-hue .ace_marker-layer .ace_error-line {position: absolute;background-color: #f2dede;width: 100% !important;margin-left: -3px;}.ace-hue .ace_marker-layer .ace_warning-line {position: absolute;background-color: #fcf8e3;width: 100% !important;margin-left: -3px;}.ace-hue .ace_invisible {color: #BBB}.ace-hue .ace_keyword,.ace-hue .ace_meta,.ace-hue .ace_storage,.ace-hue .ace_storage.ace_type,.ace-hue .ace_support.ace_type {color: #8959A8}.ace-hue .ace_keyword.ace_operator {color: #3E999F}.ace_gutter {background: #F1F1F1;}.ace_gutter > .ace_layer {border-left: 1px solid #DBE8F1;color: #737373;}.ace_gutter-cell.ace_error {background-color: #f2dede;border-left:1px solid #d6616b;background-image: none !important;}.ace_gutter-cell.ace_warning {background-color: #fcf8e3;border-left:1px solid #f0c36d;background-image: none !important;}.ace_gutter-cell {padding-left: 0 !important;padding-right: 3px !important;}.ace-hue .ace_constant.ace_character,.ace-hue .ace_constant.ace_language,.ace-hue .ace_constant.ace_numeric,.ace-hue .ace_keyword.ace_other.ace_unit,.ace-hue .ace_support.ace_constant,.ace-hue .ace_variable.ace_parameter {color: #F5871F}.ace-hue .ace_constant.ace_other {color: #666969}.ace-hue .ace_invalid {color: #FFFFFF;background-color: #C82829}.ace-hue .ace_invalid.ace_deprecated {color: #FFFFFF;background-color: #8959A8}.ace-hue .ace_fold {background-color: #4271AE;border-color: #4D4D4C}.ace-hue .ace_entity.ace_name.ace_function,.ace-hue .ace_support.ace_function,.ace-hue .ace_variable {color: #4271AE}.ace-hue .ace_support.ace_class,.ace-hue .ace_support.ace_type {color: #C99E00}.ace-hue .ace_heading,.ace-hue .ace_markup.ace_heading,.ace-hue .ace_string {color: #718C00}.ace-hue .ace_entity.ace_name.ace_tag,.ace-hue .ace_entity.ace_other.ace_attribute-name,.ace-hue .ace_meta.ace_tag,.ace-hue .ace_string.ace_regexp,.ace-hue .ace_variable {color: #C82829}.ace-hue .ace_comment {color: #8E908C}.ace-hue .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==) right repeat-y}.ace-spinner, .ace-inline-button {position: absolute;z-index: 1030;}.ace-inline-button {opacity: 0.7;}.ace-inline-button:hover {opacity: 1;}.ace_tooltip {background: #F7F7F7 !important;border: none !important;color: #333;padding: 3px !important;}.ace_tooltip hr {margin: 3px !important;}.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line, .ace_editor.ace_autocomplete .ace_marker-layer .ace_line-hover {background-color: #DBE8F1;z-index: 1;}",e("../lib/dom").importCssString(t.cssText,t.cssClass)}))},9180:()=>{ace.define("ace/theme/hue_dark",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-hue-dark",t.cssText=".ace-hue-dark .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace-hue-dark .ace_print-margin {width: 1px;background: #232323;}.ace-hue-dark {background-color: #141414;color: #E7E7E7;}.ace-hue-dark .ace_cursor {color: #A7A7A7;}.ace-hue-dark .ace_marker-layer .ace_selection {background: rgba(221, 240, 255, 0.20);}.ace-hue-dark.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0 #141414;}.ace-hue-dark .ace_marker-layer .ace_step {background: rgb(102, 82, 0);}.ace-hue-dark .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.25);}.ace-hue-dark .ace_marker-layer .ace_selected-word {border: 1px solid rgba(221, 240, 255, 0.20);}.ace-hue-dark .ace_marker-layer .ace_error-line {position: absolute;background-color: #FFB2B2;width: 100% !important;margin-left: -3px;border-radius: 0 !important;}.ace-hue-dark .ace_marker-layer .ace_warning-line {position: absolute;background-color: #fcf8e3;width: 100% !important;margin-left: -3px;border-radius: 0 !important;}.ace-hue-dark .ace_invisible {color: rgba(255, 255, 255, 0.25);}.ace-hue-dark .ace_keyword,.ace-hue-dark .ace_meta,.ace-hue-dark .ace_storage,.ace-hue-dark .ace_storage.ace_type,.ace-hue-dark .ace_support.ace_type {color: #B294BB;}.ace-hue .ace_keyword.ace_operator {color: #8ABEB7;}.ace-hue-dark .ace_gutter {background: #232323;color: #E2E2E2;}.ace-hue-dark .ace_gutter > .ace_layer {border-left: 1px solid #DBE8F1;color: #737373;}.ace-hue-dark .ace_gutter-cell.ace_error {background-color: #916062;border-left:1px solid #916062;background-image: none !important;}.ace-hue-dark .ace_gutter-cell.ace_warning {background-color: #fcf8e3;border-left:1px solid #f0c36d;background-image: none !important;}.ace-hue-dark .ace_gutter-cell {padding-left: 0 !important;padding-right: 3px !important;}.ace-hue-dark .ace_constant.ace_character,.ace-hue-dark .ace_constant.ace_language,.ace-hue-dark .ace_constant.ace_numeric,.ace-hue-dark .ace_keyword.ace_other.ace_unit,.ace-hue-dark .ace_support.ace_constant,.ace-hue-dark .ace_variable.ace_parameter {color: #7ECAEB;}.ace-hue-dark .ace_constant.ace_other {color: #666969;}.ace-hue-dark .ace_invalid {color: #E7E7E7;background-color: rgba(86, 45, 86, 0.75);}.ace-hue-dark .ace_invalid.ace_deprecated {color: #E7E7E7;background-color: rgba(86, 45, 86, 0.75);}.ace-hue-dark .ace_fold {background-color: #AC885B;border-color: #E7E7E7;}.ace-hue-dark .ace_entity.ace_name.ace_function,.ace-hue-dark .ace_support.ace_function,.ace-hue-dark .ace_variable {color: #81A2BE;}.ace-hue-dark .ace_support.ace_class,.ace-hue-dark .ace_support.ace_type {color: #9B859D;}.ace-hue-dark .ace_heading,.ace-hue-dark .ace_markup.ace_heading,.ace-hue-dark .ace_string {color: #8F9D6A;}.ace-hue-dark .ace_entity.ace_name.ace_tag,.ace-hue-dark .ace_entity.ace_other.ace_attribute-name,.ace-hue-dark .ace_meta.ace_tag,.ace-hue-dark .ace_string.ace_regexp,.ace-hue-dark .ace_variable {color: #AC885B;}.ace-hue-dark .ace_comment {color: #5F5A60;}.ace-hue-dark .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWMQERFpYLC1tf0PAAgOAnPnhxyiAAAAAElFTkSuQmCC) right repeat-y;}.ace-hue-dark .ace-spinner, .ace-inline-button {position: absolute;z-index: 1030;}.ace-hue-dark .ace-inline-button {opacity: 0.7;}.ace-hue-dark .ace-inline-button:hover {opacity: 1;}.ace-hue-dark .ace_tooltip {background: #DCDCDC !important;border: none !important;color: #333;padding: 3px !important;}.ace-hue-dark .ace_tooltip hr {margin: 3px !important;}.ace-hue-dark .ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line,.ace-hue-dark .ace_editor.ace_autocomplete .ace_marker-layer .ace_line-hover {background-color: #DBE8F1;z-index: 1;}",e("../lib/dom").importCssString(t.cssText,t.cssClass)}))},841:()=>{try{ace.originalEdit=ace.edit;var e=ace.require("ace/range").Range;ace.edit=function(t){var n=ace.originalEdit(t);return n.enableAutocomplete=function(){n.setOptions({enableBasicAutocompletion:!0,enableLiveAutocompletion:!0})},n.disableAutocomplete=function(){n.setOptions({enableBasicAutocompletion:!1,enableLiveAutocompletion:!1})},n.removeTextBeforeCursor=function(t){var r=new e(this.getCursorPosition().row,this.getCursorPosition().column-t,this.getCursorPosition().row,this.getCursorPosition().column);n.getSession().getDocument().remove(r)},n.getTextBeforeCursor=function(t){var n=new e(0,0,this.getCursorPosition().row,this.getCursorPosition().column);return t?this.session.getTextRange(n).split(t).pop():this.session.getTextRange(n)},n.removeTextAfterCursor=function(t){var r=new e(this.getCursorPosition().row,this.getCursorPosition().column,this.getCursorPosition().row,this.getCursorPosition().column+t);n.getSession().getDocument().remove(r)},n.getTextAfterCursor=function(t){var n=new e(this.getCursorPosition().row,this.getCursorPosition().column,this.session.getLength(),this.session.getRowLength(this.session.getLength()));return t?this.session.getTextRange(n).split(t).shift():this.session.getTextRange(n)},n.getCursorScreenPosition=function(){return this.renderer.textToScreenCoordinates(this.getCursorPosition())},n.showSpinner=function(){var e=this.getCursorScreenPosition();0==$(".ace-spinner").length&&$("<i class='fa fa-spinner fa-spin ace-spinner'></i>").appendTo("body"),$(".ace-spinner").css("top",e.pageY+"px").css("left",e.pageX-4+"px").show()},n.hideSpinner=function(){$(".ace-spinner").hide()},n.showFileButton=function(){var e=this.getCursorScreenPosition();return 0==$(".ace-inline-button").length&&$("<a class='btn btn-mini ace-inline-button'><i class='fa fa-ellipsis-h'></i></a>").appendTo("body"),$(".ace-inline-button").css("top",e.pageY+"px").css("left",e.pageX+4+"px").show(),$(".ace-inline-button").off("click"),$(".ace-inline-button")},n.hideFileButton=function(){$(".ace-inline-button").hide()},n.clearAnnotations=function(e){"error"===e?this.session.setAnnotations(this.session.getAnnotations().filter((function(e){return"warning"===e.type}))):"warning"===e?this.session.setAnnotations(this.session.getAnnotations().filter((function(e){return"error"===e.type}))):this.session.clearAnnotations()},n.clearErrorsAndWarnings=function(e){for(var t in this.session.getMarkers()){var r=this.session.getMarkers()[t],i="ace_error-line"==r.clazz||"ace_warning-line"==r.clazz;"error"===e&&(i="ace_error-line"==r.clazz),"warning"===e&&(i="ace_warning-line"==r.clazz),i&&this.session.removeMarker(r.id)}n.clearAnnotations(e)},n.clearErrors=function(){n.clearErrorsAndWarnings("error")},n.clearWarnings=function(){n.clearErrorsAndWarnings("warning")},n.addError=function(t,n){var r=new e(n,0,n,this.session.getLine(n).length);this.session.addMarker(r,"ace_error-line");var i=this.session.getAnnotations();i.push({row:r.start.row,column:r.start.column,raw:t,text:t,type:"error"}),this.session.setAnnotations(i)},n.addWarning=function(t,n){var r=new e(n,0,n,this.session.getLine(n).length);this.session.addMarker(r,"ace_warning-line");var i=this.session.getAnnotations();i.push({row:r.start.row,column:r.start.column,raw:t,text:t,type:"warning"}),this.session.setAnnotations(i)},n}}catch(e){console.error("You need to include ace.js before including this snippet.")}},7759:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2062),i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[2,4,5,8,12,16,30,32,39,43,54,55,63,77,79,81,85,95,96,107,108,109,112,113,125,126,129,140,142,154,162,163,174,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,241,250,256,265,267,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,321,324,340,344,346,351,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399],n=[2,673],i=[344,351],o=[2,646],s=[1,5],a=[1,143],c=[1,140],l=[1,146],u=[1,150],h=[1,92],d=[1,22],p=[1,17],f=[1,100],g=[1,27],m=[1,93],E=[1,46],y=[1,87],v=[1,66],b=[1,10],A=[1,11],T=[1,13],C=[1,71],R=[1,72],S=[1,26],_=[1,16],x=[1,18],w=[1,68],I=[1,98],N=[1,79],L=[1,34],O=[1,82],k=[1,108],D=[1,38],F=[1,81],M=[1,169],P=[1,62],B=[1,142],U=[1,53],$=[1,55],H=[1,56],G=[1,40],W=[1,64],V=[1,54],j=[1,77],q=[1,60],z=[1,65],K=[1,91],Y=[1,85],X=[1,73],J=[1,67],Q=[1,112],Z=[1,76],ee=[1,28],te=[1,166],ne=[1,44],re=[1,12],ie=[1,105],oe=[1,115],se=[1,15],ae=[1,104],ce=[1,50],le=[1,162],ue=[1,29],he=[1,69],de=[1,70],pe=[1,95],fe=[1,96],ge=[1,109],me=[1,110],Ee=[1,113],ye=[1,39],ve=[1,99],be=[1,23],Ae=[1,58],Te=[1,36],Ce=[1,78],Re=[1,165],Se=[1,163],_e=[1,124],xe=[1,74],we=[1,84],Ie=[1,9],Ne=[1,14],Le=[1,19],Oe=[1,20],ke=[1,21],De=[1,24],Fe=[1,25],Me=[1,30],Pe=[1,31],Be=[1,32],Ue=[1,33],$e=[1,35],He=[1,37],Ge=[1,41],We=[1,42],Ve=[1,43],je=[1,45],qe=[1,47],ze=[1,48],Ke=[1,49],Ye=[1,51],Xe=[1,52],Je=[1,57],Qe=[1,59],Ze=[1,61],et=[1,63],tt=[1,75],nt=[1,80],rt=[1,83],it=[1,86],ot=[1,88],st=[1,89],at=[1,90],ct=[1,94],lt=[1,97],ut=[1,101],ht=[1,102],dt=[1,103],pt=[1,106],ft=[1,107],gt=[1,111],mt=[1,114],Et=[1,141],yt=[2,770],vt=[1,175],bt=[1,182],At=[1,184],Tt=[1,180],Ct=[1,183],Rt=[1,179],St=[1,188],_t=[81,344,351],xt=[2,473],wt=[1,196],It=[2,796],Nt=[1,203],Lt=[1,209],Ot=[1,212],kt=[1,213],Dt=[1,216],Ft=[2,81,344,351],Mt=[1,221],Pt=[1,224],Bt=[1,227],Ut=[1,246],$t=[2,421],Ht=[1,248],Gt=[1,249],Wt=[2,4,8,12,16,30,32,39,43,54,55,63,77,79,81,85,95,96,107,108,109,112,113,125,126,129,140,142,154,162,163,174,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,241,250,256,265,267,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,321,324,340,344,351,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398],Vt=[32,270],jt=[2,5,16,32,43,50,54,55,63,77,79,81,85,95,107,108,109,112,113,120,125,129,140,142,154,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,246,256,265,267,270,344,351,355,356,358,362,363,364,365,366,367,369,372,373,374,375,377,380,381,382,383,385,386,388,390,391,392,393,394,397,398,412,448],qt=[2,474],zt=[2,81,265,344,351],Kt=[2,272],Yt=[2,79,81,241,344,351],Xt=[2,5,79,81,85,241,344,351],Jt=[1,271],Qt=[1,272],Zt=[2,822],en=[1,283],tn=[5,63,113,228,355,356,364],nn=[5,63,113,228,309,344,351,355,356,364],rn=[5,63,113,228,344,351,355,356,364],on=[2,818],sn=[1,291],an=[1,300],cn=[2,29],ln=[2,641],un=[5,16,344,351],hn=[16,344,351],dn=[5,16,63,113,228,344,351,355,356,364],pn=[2,896],fn=[16,63,113,228,344,351,355,356,364],gn=[1,330],mn=[1,399],En=[1,400],yn=[1,340],vn=[1,335],bn=[1,347],An=[1,352],Tn=[1,354],Cn=[1,329],Rn=[1,397],Sn=[1,401],_n=[1,402],xn=[1,355],wn=[1,388],In=[1,389],Nn=[1,390],Ln=[1,391],On=[1,392],kn=[1,393],Dn=[1,394],Fn=[1,395],Mn=[1,379],Pn=[1,380],Bn=[1,369],Un=[1,353],$n=[1,370],Hn=[1,331],Gn=[1,336],Wn=[1,338],Vn=[1,337],jn=[1,341],qn=[1,339],zn=[1,396],Kn=[1,398],Yn=[2,5,54,55,63,79,81,85,95,96,107,112,113,228,241,256,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,348,355,356,357,358,361,364,368,376,395,396,399],Xn=[2,259],Jn=[1,404],Qn=[1,416],Zn=[1,411],er=[1,412],tr=[1,408],nr=[1,417],rr=[1,413],ir=[1,415],or=[1,414],sr=[1,430],ar=[1,431],cr=[2,79,81,85,241,344,351],lr=[125,344,351],ur=[2,870],hr=[2,43,54,55,63,81,85,113,125,140,154,190,201,214,215,216,217,218,219,220,221,222,226,228,232,265,267,344,351,355,356,364],dr=[2,54],pr=[1,466],fr=[1,490],gr=[1,485],mr=[1,500],Er=[1,501],yr=[1,497],vr=[1,498],br=[1,486],Ar=[1,488],Tr=[1,487],Cr=[1,491],Rr=[1,489],Sr=[1,515],_r=[1,522],xr=[2,16,32,43,50,54,55,63,77,79,81,85,95,108,109,113,125,140,142,154,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,256,265,267,270,344,351,355,356,358,362,363,364,365,374,375,380,383,385,386,392,398,448],wr=[81,265,344,351],Ir=[2,407],Nr=[1,531],Lr=[1,525],Or=[1,536],kr=[1,540],Dr=[1,550],Fr=[1,539],Mr=[1,549],Pr=[1,541],Br=[1,542],Ur=[1,543],$r=[1,546],Hr=[1,545],Gr=[1,547],Wr=[1,544],Vr=[1,552],jr=[1,551],qr=[2,5,81,85,182,246,265,344,351],zr=[2,656],Kr=[2,81,182,265,344,351],Yr=[2,1142],Xr=[1,559],Jr=[1,575],Qr=[1,578],Zr=[1,563],ei=[1,560],ti=[1,561],ni=[1,562],ri=[1,569],ii=[1,568],oi=[1,567],si=[1,570],ai=[1,565],ci=[1,564],li=[1,558],ui=[1,566],hi=[1,580],di=[1,579],pi=[2,444],fi=[85,182],gi=[2,81,85,182,265,344,351],mi=[1,585],Ei=[1,598],yi=[1,589],vi=[1,586],bi=[1,587],Ai=[1,588],Ti=[1,595],Ci=[1,594],Ri=[1,593],Si=[1,596],_i=[1,591],xi=[1,590],wi=[1,592],Ii=[1,599],Ni=[2,5,32,43,54,55,63,77,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,382,383,385,386,388,392,398,448],Li=[1,606],Oi=[1,610],ki=[1,616],Di=[1,627],Fi=[1,630],Mi=[2,32,43,54,55,63,77,81,85,95,108,109,113,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,383,385,386,392,398,448],Pi=[2,575],Bi=[1,633],Ui=[2,5,32,43,54,55,63,77,79,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,382,383,385,386,388,392,398,448],$i=[2,1069],Hi=[2,604],Gi=[1,641],Wi=[1,646],Vi=[2,5,32,43,50,54,55,63,77,79,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,270,344,351,355,356,358,362,363,364,365,374,375,380,382,383,385,386,388,392,398,448],ji=[2,5,32,43,54,55,63,77,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,321,344,351,355,356,358,362,363,364,365,374,375,380,382,383,385,386,388,392,398,448],qi=[1,657],zi=[1,656],Ki=[1,660],Yi=[1,659],Xi=[1,665],Ji=[63,113,228,344,351,355,356],Qi=[2,5,43,50,81,85,95,96,109,182,190,201,214,215,216,217,218,219,220,221,222,226,232,246,265,267,344,351],Zi=[1,690],eo=[174,241],to=[2,1120],no=[5,344,351],ro=[2,46],io=[1,707],oo=[5,43,344,351],so=[2,161],ao=[43,344,351],co=[1,714],lo=[5,43,125,344,351],uo=[2,77],ho=[43,125,344,351],po=[1,722],fo=[1,723],go=[5,43,50,77,79,125,344,351],mo=[2,875],Eo=[43,50,77,79,125,344,351],yo=[5,43,50],vo=[2,213],bo=[43,50],Ao=[1,733],To=[2,816],Co=[1,736],Ro=[2,237],So=[1,740],_o=[1,748],xo=[1,752],wo=[1,749],Io=[1,750],No=[1,751],Lo=[1,758],Oo=[1,757],ko=[1,756],Do=[1,759],Fo=[1,754],Mo=[1,753],Po=[1,747],Bo=[1,755],Uo=[1,764],$o=[1,768],Ho=[2,32,43,54,55,63,77,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,382,383,385,386,388,392,398,448],Go=[1,769],Wo=[81,85],Vo=[2,502],jo=[5,267,344,351],qo=[2,637],zo=[267,344,351],Ko=[1,788],Yo=[5,85,182,267,344,351],Xo=[182,267,344,351],Jo=[85,182,267,344,351],Qo=[2,5,32,50,81,85],Zo=[1,794],es=[81,190,201,226,232,265,344,351],ts=[2,486],ns=[1,809],rs=[2,81,190,201,226,232,265,344,351],is=[1,813],os=[1,836],ss=[1,853],as=[96,250,272,273],cs=[2,1096],ls=[2,5,81,85,182,190,201,214,215,216,217,218,219,220,221,222,226,232,246,265,267,344,351],us=[2,81,85,182,190,201,214,215,216,217,218,219,220,221,222,226,232,265,267,344,351],hs=[1,905],ds=[1,913],ps=[2,5,43,54,55,63,81,85,95,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,265,267,344,351,355,356,362,364,365,374,375,383,388,392,398,448],fs=[2,938],gs=[2,43,54,55,63,81,85,95,113,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,265,267,344,351,355,356,362,364,365,374,375,383,392,398,448],ms=[2,43,54,55,63,81,85,95,113,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,265,267,344,351,355,356,358,362,364,365,374,375,380,383,392,398,448],Es=[1,929],ys=[2,939],vs=[2,940],bs=[1,930],As=[2,5,32,43,54,55,63,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,344,351,355,356,358,362,363,364,365,374,375,383,388,392,398,448],Ts=[2,941],Cs=[2,32,43,54,55,63,81,85,95,108,109,113,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,256,265,267,344,351,355,356,358,362,363,364,365,374,375,383,392,398,448],Rs=[1,935],Ss=[1,938],_s=[1,937],xs=[1,949],ws=[1,945],Is=[1,948],Ns=[1,947],Ls=[1,952],Os=[2,5,374,375,398],ks=[2,374,375],Ds=[1,965],Fs=[1,971],Ms=[1,972],Ps=[1,980],Bs=[1,985],Us=[1,991],$s=[1,990],Hs=[1,994],Gs=[1,998],Ws=[2,5,32,43,50,54,55,63,77,81,85,95,96,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,246,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,382,383,385,386,388,392,398,448],Vs=[2,32,43,54,55,63,77,81,85,95,108,109,113,142,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,383,385,386,392,398,448],js=[1,999],qs=[1,1002],zs=[1,1006],Ks=[63,113,228,355,356,364],Ys=[1,1010],Xs=[2,55],Js=[2,199],Qs=[1,1048],Zs=[1,1068],ea=[2,231],ta=[2,43,54,55,63,81,85,95,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,265,267,344,351,355,356,362,364,365,374,375,383,388,392,398,448],na=[2,32,43,54,55,63,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,344,351,355,356,358,362,363,364,365,374,375,383,388,392,398,448],ra=[54,55,63,79,95,96,107,112,113,228,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,355,356,357,358,361,364,368,376,395,396],ia=[2,657],oa=[2,81,190,201,214,215,216,217,218,219,220,221,226,232,265,344,351],sa=[2,328],aa=[1,1137],ca=[1,1140],la=[1,1138],ua=[1,1142],ha=[1,1139],da=[1,1141],pa=[1,1144],fa=[1,1143],ga=[81,201,226,232,265,344,351],ma=[2,294],Ea=[1,1148],ya=[2,81,201,214,215,216,217,218,219,220,221,226,232,265,344,351],va=[1,1151],ba=[2,487],Aa=[2,5,81,190,201,214,215,216,217,218,219,220,221,226,232,265,344,351],Ta=[2,284],Ca=[2,81,190,201,226,232,265,267,344,351],Ra=[2,5,81,85,190,201,226,232,265,267,344,351],Sa=[2,81,85,190,201,226,232,265,267,344,351],_a=[5,81,85,190,201,226,232,265,267,344,351],xa=[2,1100],wa=[1,1167],Ia=[1,1168],Na=[1,1171],La=[1,1169],Oa=[1,1170],ka=[1,1173],Da=[1,1172],Fa=[2,5,81,85,190,201,214,215,216,217,218,219,220,221,222,226,232,265,267,344,351],Ma=[2,81,85,190,201,214,215,216,217,218,219,220,221,222,226,232,265,267,344,351],Pa=[2,5,43,54,55,63,81,85,113,190,201,214,215,216,217,218,219,220,221,222,226,228,232,265,267,344,351,355,356,364],Ba=[2,43,54,55,63,81,85,113,190,201,214,215,216,217,218,219,220,221,222,226,228,232,265,267,344,351,355,356,364],Ua=[1,1182],$a=[2,1204],Ha=[2,1205],Ga=[2,1206],Wa=[1,1185],Va=[2,659],ja=[1,1186],qa=[1,1187],za=[1,1188],Ka=[2,1097],Ya=[2,5,32,43,54,55,63,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,265,267,344,351,355,356,362,364,365,374,375,383,388,392,398,448],Xa=[2,948],Ja=[2,32,43,54,55,63,81,85,95,108,109,113,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,265,267,344,351,355,356,362,364,365,374,375,383,392,398,448],Qa=[2,949],Za=[2,950],ec=[2,951],tc=[1,1206],nc=[2,43,54,55,63,81,85,113,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,265,267,344,351,355,356,358,362,364,365,374,375,380,383,392,398,448],rc=[2,5,43,54,55,63,81,85,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,265,267,344,351,355,356,362,364,374,375,383,388,392,398,448],ic=[2,958],oc=[2,43,54,55,63,81,85,113,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,265,267,344,351,355,356,362,364,374,375,383,392,398,448],sc=[2,959],ac=[2,960],cc=[2,961],lc=[2,962],uc=[2,32,43,50,54,55,63,77,79,81,85,95,108,109,113,125,142,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,241,256,265,267,321,344,351,355,356,358,362,363,364,365,374,375,380,383,385,386,392,398,448],hc=[1,1223],dc=[2,374,375,398],pc=[1,1243],fc=[1,1245],gc=[1,1247],mc=[5,81,85],Ec=[2,591],yc=[2,81],vc=[81,232],bc=[2,1157],Ac=[1,1258],Tc=[5,321],Cc=[1,1259],Rc=[1,1270],Sc=[1,1284],_c=[2,203],xc=[1,1307],wc=[2,85],Ic=[1,1337],Nc=[1,1338],Lc=[1,1339],Oc=[1,1325],kc=[1,1326],Dc=[1,1327],Fc=[1,1328],Mc=[1,1329],Pc=[1,1330],Bc=[1,1331],Uc=[1,1332],$c=[1,1333],Hc=[1,1334],Gc=[1,1335],Wc=[1,1336],Vc=[1,1340],jc=[2,81,85],qc=[1,1342],zc=[1,1343],Kc=[1,1344],Yc=[1,1348],Xc=[1,1353],Jc=[2,32,43,54,55,63,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,265,267,344,351,355,356,362,364,365,374,375,383,388,392,398,448],Qc=[2,43,54,55,63,81,85,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,265,267,344,351,355,356,362,364,374,375,383,388,392,398,448],Zc=[1,1364],el=[2,610],tl=[2,635],nl=[1,1380],rl=[1,1381],il=[1,1383],ol=[2,5,63,79,81,113,214,215,216,217,218,219,220,221,228,265,344,351,355,356,364],sl=[1,1385],al=[1,1388],cl=[1,1390],ll=[1,1393],ul=[81,226,232,265,344,351],hl=[2,323],dl=[1,1397],pl=[2,81,214,215,216,217,218,219,220,221,226,232,265,344,351],fl=[1,1400],gl=[2,295],ml=[2,491],El=[2,1104],yl=[1,1420],vl=[2,81,85,190,201,214,215,216,217,218,219,220,221,226,232,265,267,344,351],bl=[1,1450],Al=[1,1448],Tl=[1,1449],Cl=[1,1454],Rl=[5,81,85,232],Sl=[2,1054],_l=[2,81,232],xl=[1,1465],wl=[2,81,85,232],Il=[2,5,32,43,54,55,63,77,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,222,226,228,232,239,240,246,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,382,383,385,386,388,392,398,448],Nl=[1,1471],Ll=[1,1485],Ol=[2,1163],kl=[1,1497],Dl=[1,1500],Fl=[2,32,43,54,55,63,77,81,85,95,108,109,113,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,256,265,267,321,344,351,355,356,358,362,363,364,365,374,375,380,383,385,386,392,398,448],Ml=[1,1515],Pl=[1,1519],Bl=[1,1523],Ul=[1,1527],$l=[85,344,351],Hl=[2,99],Gl=[1,1553],Wl=[1,1554],Vl=[1,1558],jl=[2,5,50,81,85,95,96,109],ql=[2,50,81,85,95,96,109],zl=[2,932],Kl=[1,1561],Yl=[2,217],Xl=[1,1589],Jl=[2,660],Ql=[2,376],Zl=[1,1592],eu=[1,1593],tu=[1,1594],nu=[1,1595],ru=[1,1596],iu=[1,1597],ou=[1,1598],su=[1,1599],au=[81,226,265,344,351],cu=[2,389],lu=[2,81,214,215,216,217,218,219,220,221,226,265,344,351],uu=[2,324],hu=[226,232],du=[5,81,85,190,201,214,215,216,217,218,219,220,221,226,232,265,267,344,351],pu=[1,1633],fu=[2,63,79,81,85,113,190,201,214,215,216,217,218,219,220,221,226,228,232,265,267,344,351,355,356,364],gu=[2,658],mu=[1,1656],Eu=[1,1664],yu=[2,957],vu=[2,43,54,55,63,81,85,113,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,265,267,344,351,355,356,362,364,365,374,375,383,392,398,448],bu=[2,1235],Au=[2,592],Tu=[2,1168],Cu=[1,1686],Ru=[1,1685],Su=[1,1712],_u=[2,86],xu=[2,100],wu=[2,5,50,81,85,95,96],Iu=[1,1729],Nu=[2,109],Lu=[1,1733],Ou=[1,1737],ku=[1,1747],Du=[1,1741],Fu=[2,5,81,85,190,201,214,215,216,217,218,219,220,221,226,232,265,267,344,351],Mu=[2,382],Pu=[2,81,214,215,216,217,218,219,220,221,265,344,351],Bu=[1,1765],Uu=[2,390],$u=[2,325],Hu=[2,296],Gu=[2,5,81,85,201,226,232,265,344,351],Wu=[2,311],Vu=[1,1783],ju=[2,81,85,201,214,215,216,217,218,219,220,221,226,232,265,344,351],qu=[2,945],zu=[2,956],Ku=[2,1055],Yu=[5,365,503],Xu=[2,1159],Ju=[1,1825],Qu=[1,1830],Zu=[1,1833],eh=[1,1835],th=[1,1845],nh=[1,1844],rh=[1,1850],ih=[2,85,109],oh=[1,1856],sh=[2,63,85,109,113,228,355,356,364],ah=[1,1858],ch=[2,218],lh=[2,377],uh=[2,383],hh=[1,1864],dh=[1,1866],ph=[1,1870],fh=[5,81,362,370,395,503],gh=[2,1178],mh=[2,391],Eh=[2,5,81,85,129,214,215,216,217,218,219,220,221,226,265,344,351,388],yh=[2,404],vh=[1,1899],bh=[1,1900],Ah=[2,81,85,214,215,216,217,218,219,220,221,226,265,344,351],Th=[2,81,362,370,395,503],Ch=[1,1905],Rh=[1,1907],Sh=[1,1908],_h=[43,79,344,351],xh=[2,5,81,214,215,216,217,218,219,220,221,265,344,351],wh=[2,312],Ih=[5,81,362],Nh=[2,1188],Lh=[1,1946],Oh=[1,1947],kh=[1,1948],Dh=[2,81,362],Fh=[1,1955],Mh=[1,1963],Ph=[1,1964],Bh=[2,1193],Uh=[1,1995],$h=[1,1996],Hh=[1,1998],Gh=[5,378,384],Wh=[2,197],Vh=[2,198],jh=[5,54,55,63,79,95,96,107,112,113,228,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,355,356,357,358,361,364,368,376,395,396],qh=[2,1170],zh=[2,5,81,362],Kh=[2,185],Yh=[2,184],Xh=[1,2029],Jh=[1,2031],Qh=[2,5,81],Zh=[2,183],ed={trace:function(){},yy:{},symbols_:{error:2,DataDefinition_EDIT:3,ALTER:4,CURSOR:5,AlterTable_EDIT:6,AlterView_EDIT:7,CREATE:8,DatabaseDefinition_EDIT:9,TableDefinition_EDIT:10,ViewDefinition_EDIT:11,DROP:12,DropDatabaseStatement_EDIT:13,DropTableStatement_EDIT:14,DropViewStatement_EDIT:15,SET:16,TruncateTableStatement_EDIT:17,UseStatement_EDIT:18,DataDefinition:19,AlterTable:20,AlterView:21,DatabaseDefinition:22,RoleDefinition:23,TableDefinition:24,ViewDefinition:25,DropDatabaseStatement:26,DropRoleStatement:27,DropTableStatement:28,DropViewStatement:29,ALL:30,SetOption:31,"=":32,SetValue:33,TruncateTableStatement:34,UseStatement:35,AlterTableLeftSide:36,PartitionSpec:37,AlterTableLeftSide_EDIT:38,TABLE:39,SchemaQualifiedTableIdentifier:40,SchemaQualifiedTableIdentifier_EDIT:41,AlterViewLeftSide:42,AS:43,QuerySpecification:44,AlterViewLeftSide_EDIT:45,QuerySpecification_EDIT:46,VIEW:47,OptionalComment:48,Comment:49,COMMENT:50,QuotedValue:51,OptionalComment_INVALID:52,Comment_INVALID:53,SINGLE_QUOTE:54,DOUBLE_QUOTE:55,VALUE:56,DatabaseOrSchema:57,OptionalIfNotExists:58,RegularIdentifier:59,DatabaseDefinitionOptionals:60,OptionalIfNotExists_EDIT:61,DatabaseDefinitionOptionals_EDIT:62,ROLE:63,TableDefinitionRightPart:64,TableDefinitionRightPart_EDIT:65,TableIdentifierAndOptionalColumnSpecification:66,OptionalPartitionedBy:67,OptionalAsSelectStatement:68,TableIdentifierAndOptionalColumnSpecification_EDIT:69,PartitionedBy_EDIT:70,OptionalAsSelectStatement_EDIT:71,SchemaQualifiedIdentifier:72,OptionalColumnSpecificationsOrLike:73,OptionalColumnSpecificationsOrLike_EDIT:74,SchemaQualifiedIdentifier_EDIT:75,ParenthesizedColumnSpecificationList:76,LIKE:77,ParenthesizedColumnSpecificationList_EDIT:78,"(":79,ColumnSpecificationList:80,")":81,ColumnSpecificationList_EDIT:82,RightParenthesisOrError:83,ColumnSpecification:84,",":85,ColumnSpecification_EDIT:86,ColumnIdentifier:87,ColumnDataType:88,OptionalColumnOptions:89,ColumnDataType_EDIT:90,ColumnOptions_EDIT:91,ColumnOptions:92,ColumnOption:93,ColumnOption_EDIT:94,NOT:95,NULL:96,PrimitiveType:97,ArrayType:98,MapType:99,StructType:100,ArrayType_INVALID:101,MapType_INVALID:102,StructType_INVALID:103,ArrayType_EDIT:104,MapType_EDIT:105,StructType_EDIT:106,ARRAY:107,"<":108,">":109,AnyCursor:110,GreaterThanOrError:111,MAP:112,STRUCT:113,StructDefinitionList:114,StructDefinitionList_EDIT:115,StructDefinition:116,StructDefinition_EDIT:117,Commas:118,RegularOrBacktickedIdentifier:119,":":120,ColumnDataTypeList:121,ColumnDataTypeList_EDIT:122,ColumnDataTypeListInner_EDIT:123,PartitionedBy:124,PARTITION:125,BY:126,RangeClause:127,RangeClause_EDIT:128,RANGE:129,ParenthesizedColumnList:130,ParenthesizedPartitionValuesList:131,ParenthesizedColumnList_EDIT:132,ParenthesizedPartitionValuesList_EDIT:133,PartitionValueList:134,PartitionValueList_EDIT:135,PartitionValue:136,PartitionValue_EDIT:137,ValueExpression:138,LessThanOrEqualTo:139,VALUES:140,ValueExpression_EDIT:141,COMPARISON_OPERATOR:142,CommitLocations:143,OptionalParenthesizedViewColumnList:144,ParenthesizedViewColumnList_EDIT:145,ParenthesizedViewColumnList:146,ViewColumnList:147,ViewColumnList_EDIT:148,ColumnReference:149,OptionalIfExists:150,OptionalCascade:151,OptionalIfExists_EDIT:152,OptionalPurge:153,PURGE:154,DataManipulation:155,InsertStatement:156,UpdateStatement:157,InsertValuesStatement:158,DataManipulation_EDIT:159,InsertValuesStatement_EDIT:160,UpdateStatement_EDIT:161,INSERT:162,INTO:163,OptionalTable:164,InsertValuesList:165,ParenthesizedRowValuesList:166,InValueList:167,CommonTableExpression:168,SelectStatement:169,OptionalUnions:170,SelectStatement_EDIT:171,OptionalUnions_EDIT:172,CommonTableExpression_EDIT:173,WITH:174,WithQueries:175,WithQueries_EDIT:176,WithQuery:177,WithQuery_EDIT:178,TableSubQueryInner:179,TableSubQueryInner_EDIT:180,FromClause:181,FROM:182,TableReferenceList:183,FromClause_EDIT:184,TableReferenceList_EDIT:185,TableReference:186,TableReference_EDIT:187,OptionalGroupByClause:188,GroupByClause:189,GROUP:190,GroupByColumnList:191,GroupByClause_EDIT:192,GroupByColumnList_EDIT:193,ColumnGroupingSets:194,ColumnGroupingSets_EDIT:195,ColumnGroupingSet_EDIT:196,ColumnReference_EDIT:197,GroupByColumnListPartTwo_EDIT:198,OptionalHavingClause:199,HavingClause:200,HAVING:201,HavingClause_EDIT:202,OptionalJoins:203,Joins:204,Joins_INVALID:205,JoinType:206,TablePrimary:207,OptionalJoinCondition:208,Join_EDIT:209,JoinType_EDIT:210,TablePrimary_EDIT:211,JoinCondition_EDIT:212,Joins_EDIT:213,CROSS:214,JOIN:215,FULL:216,OUTER:217,INNER:218,LEFT:219,SEMI:220,RIGHT:221,ON:222,UsingColList:223,OptionalLimitClause:224,LimitClause:225,LIMIT:226,UnsignedNumericLiteral:227,VARIABLE_REFERENCE:228,LimitClause_EDIT:229,OptionalOrderByClause:230,OrderByClause:231,ORDER:232,OrderByColumnList:233,OrderByClause_EDIT:234,OrderByColumnList_EDIT:235,OrderByIdentifier:236,OrderByIdentifier_EDIT:237,OptionalAscOrDesc:238,ASC:239,DESC:240,SELECT:241,OptionalAllOrDistinct:242,SelectList:243,TableExpression:244,SelectList_ERROR:245,TableExpression_ERROR:246,SelectList_EDIT:247,TableExpression_EDIT:248,SelectList_ERROR_EDIT:249,DISTINCT:250,OptionalSelectConditions:251,OptionalSelectConditions_EDIT:252,SelectSpecification:253,SelectSpecification_EDIT:254,OptionalCorrelationName:255,"*":256,OptionalCorrelationName_EDIT:257,OptionalWhereClause:258,WhereClause_EDIT:259,WhereClause:260,Unions:261,Unions_EDIT:262,UnionClause:263,UnionClause_EDIT:264,UNION:265,NewStatement:266,WHERE:267,SearchCondition:268,SearchCondition_EDIT:269,".":270,SignedInteger:271,TRUE:272,FALSE:273,TRUNCATE:274,OptionalPartitionSpec:275,UserDefinedFunction:276,AggregateFunction:277,OptionalOverClause:278,AnalyticFunction:279,OverClause:280,CastFunction:281,UserDefinedFunction_EDIT:282,AggregateFunction_EDIT:283,OptionalOverClause_EDIT:284,AnalyticFunction_EDIT:285,OverClause_EDIT:286,CastFunction_EDIT:287,OtherAggregateFunction:288,CountFunction:289,SumFunction:290,OtherAggregateFunction_EDIT:291,CountFunction_EDIT:292,SumFunction_EDIT:293,OtherAggregateFunction_Type:294,UdfArgumentList:295,UdfArgumentList_EDIT:296,AVG:297,MAX:298,MIN:299,STDDEV_POP:300,STDDEV_SAMP:301,VAR_POP:302,VAR_SAMP:303,VARIANCE:304,COUNT:305,SUM:306,ANALYTIC:307,ArbitraryFunctionName:308,IF:309,CAST:310,NonParenthesizedValueExpressionPrimary:311,ColumnOrArbitraryFunctionRef:312,ArbitraryFunctionRightPart:313,UnsignedValueSpecification:314,NonParenthesizedValueExpressionPrimary_EDIT:315,ArbitraryFunctionRightPart_EDIT:316,UnsignedValueSpecification_EDIT:317,ColumnOrArbitraryFunctionRef_EDIT:318,ArbitraryFunction:319,ArbitraryFunction_EDIT:320,OVER:321,WindowExpression:322,WindowExpression_EDIT:323,UPDATE:324,TargetTable:325,SetClauseList:326,OptionalFromJoinedTable:327,TargetTable_EDIT:328,SetClauseList_EDIT:329,FromJoinedTable_EDIT:330,TableName:331,TableName_EDIT:332,LocalOrSchemaQualifiedName:333,LocalOrSchemaQualifiedName_EDIT:334,SetClause:335,SetClause_EDIT:336,SetTarget:337,UpdateSource:338,UpdateSource_EDIT:339,USE:340,SqlStatements:341,NonStartingToken:342,SqlStatement:343,";":344,SqlStatement_EDIT:345,SetSpecification_EDIT:346,ErrorList:347,Errors:348,SetSpecification:349,SqlSyntax:350,EOF:351,SqlAutocomplete:352,SqlStatements_EDIT:353,NonReservedKeyword:354,OPTION:355,REGULAR_IDENTIFIER:356,"!":357,"-":358,"[":359,"]":360,"~":361,AND:362,ARITHMETIC_OPERATOR:363,BACKTICK:364,BETWEEN:365,BIGINT:366,BOOLEAN:367,CASE:368,CHAR:369,CURRENT:370,DATABASE:371,DECIMAL:372,DOUBLE:373,ELSE:374,END:375,EXISTS:376,FLOAT:377,FOLLOWING:378,HDFS_START_QUOTE:379,IN:380,INT:381,IS:382,OR:383,PRECEDING:384,REGEXP:385,RLIKE:386,ROW:387,ROWS:388,SCHEMA:389,SMALLINT:390,STRING:391,THEN:392,TIMESTAMP:393,TINYINT:394,UNSIGNED_INTEGER:395,UNSIGNED_INTEGER_E:396,VARCHAR:397,WHEN:398,PARTIAL_CURSOR:399,FromOrIn:400,SingleQuotedValue:401,SingleQuotedValue_EDIT:402,PARTIAL_VALUE:403,DoubleQuotedValue:404,DoubleQuotedValue_EDIT:405,QuotedValue_EDIT:406,OptionalFromOrInDatabase:407,FromOrInDatabases:408,DatabaseIdentifier:409,FromOrInDatabase_EDIT:410,DatabaseIdentifier_EDIT:411,CASCADE:412,IfExists_EDIT:413,IfNotExists_EDIT:414,OptionalInDatabase:415,OptionalPartitionSpec_EDIT:416,PartitionSpec_EDIT:417,PartitionSpecList:418,PartitionSpecList_EDIT:419,RangePartitionSpec:420,RangePartitionComparisonOperator:421,RangePartitionSpec_EDIT:422,ConfigurationName:423,PartialBacktickedOrAnyCursor:424,PartialBacktickedIdentifier:425,PartialBacktickedOrCursor:426,PartialBacktickedOrPartialCursor:427,OptionalParenthesizedColumnList:428,OptionalParenthesizedColumnList_EDIT:429,ColumnList:430,ColumnList_EDIT:431,ParenthesizedSimpleValueList:432,SimpleValueList:433,PartitionExpression:434,PartitionExpression_EDIT:435,RegularOrBackTickedSchemaQualifiedName:436,RegularOrBackTickedSchemaQualifiedName_EDIT:437,BasicIdentifierChain:438,BasicIdentifierChain_EDIT:439,DerivedColumnChain:440,DerivedColumnChain_EDIT:441,PartialBacktickedIdentifierOrPartialCursor:442,OptionalTypeLength:443,OptionalTypePrecision:444,OptionalNot:445,TableSubQuery:446,ValueExpressionList:447,BETWEEN_AND:448,LikeRightPart:449,CaseRightPart:450,TableSubQuery_EDIT:451,ValueExpressionInSecondPart_EDIT:452,LikeRightPart_EDIT:453,CaseRightPart_EDIT:454,EndOrError:455,ValueExpressionList_EDIT:456,"+":457,UnsignedLiteral:458,UnsignedLiteral_EDIT:459,GeneralLiteral:460,GeneralLiteral_EDIT:461,ExactNumericLiteral:462,ApproximateNumericLiteral:463,TruthValue:464,TablePrimaryOrJoinedTable:465,TablePrimaryOrJoinedTable_EDIT:466,JoinedTable:467,JoinedTable_EDIT:468,TableOrQueryName:469,DerivedTable:470,TableOrQueryName_EDIT:471,DerivedTable_EDIT:472,OptionalOnColumn:473,OptionalOnColumn_EDIT:474,PushQueryState:475,PopQueryState:476,SubQuery:477,SubQuery_EDIT:478,QueryExpression:479,QueryExpression_EDIT:480,QueryExpressionBody:481,QueryExpressionBody_EDIT:482,NonJoinQueryExpression:483,NonJoinQueryExpression_EDIT:484,NonJoinQueryTerm:485,NonJoinQueryTerm_EDIT:486,NonJoinQueryPrimary:487,NonJoinQueryPrimary_EDIT:488,SimpleTable:489,SimpleTable_EDIT:490,OptionalPartitionBy:491,OptionalOrderByAndWindow:492,PartitionBy_EDIT:493,OptionalOrderByAndWindow_EDIT:494,PartitionBy:495,OptionalWindowSpec:496,WindowSpec_EDIT:497,WindowSpec:498,RowsOrRange:499,PopLexerState:500,OptionalCurrentOrPreceding:501,OptionalAndFollowing:502,UNBOUNDED:503,OptionalCurrentOrPreceding_EDIT:504,OptionalAndFollowing_EDIT:505,PushHdfsLexerState:506,HdfsPath:507,HDFS_PATH:508,HDFS_END_QUOTE:509,HdfsPath_EDIT:510,IntegerOrUnbounded:511,CaseWhenThenList:512,CaseWhenThenList_EDIT:513,CaseWhenThenListPartTwo:514,CaseWhenThenListPartTwo_EDIT:515,$accept:0,$end:1},terminals_:{2:"error",4:"ALTER",5:"CURSOR",8:"CREATE",12:"DROP",16:"SET",30:"ALL",32:"=",39:"TABLE",43:"AS",47:"VIEW",50:"COMMENT",54:"SINGLE_QUOTE",55:"DOUBLE_QUOTE",56:"VALUE",63:"ROLE",77:"LIKE",79:"(",81:")",85:",",95:"NOT",96:"NULL",107:"ARRAY",108:"<",109:">",112:"MAP",113:"STRUCT",120:":",125:"PARTITION",126:"BY",129:"RANGE",140:"VALUES",142:"COMPARISON_OPERATOR",154:"PURGE",162:"INSERT",163:"INTO",174:"WITH",182:"FROM",190:"GROUP",201:"HAVING",214:"CROSS",215:"JOIN",216:"FULL",217:"OUTER",218:"INNER",219:"LEFT",220:"SEMI",221:"RIGHT",222:"ON",226:"LIMIT",228:"VARIABLE_REFERENCE",232:"ORDER",239:"ASC",240:"DESC",241:"SELECT",246:"TableExpression_ERROR",250:"DISTINCT",256:"*",265:"UNION",267:"WHERE",270:".",272:"TRUE",273:"FALSE",274:"TRUNCATE",297:"AVG",298:"MAX",299:"MIN",300:"STDDEV_POP",301:"STDDEV_SAMP",302:"VAR_POP",303:"VAR_SAMP",304:"VARIANCE",305:"COUNT",306:"SUM",307:"ANALYTIC",309:"IF",310:"CAST",321:"OVER",324:"UPDATE",340:"USE",344:";",346:"SetSpecification_EDIT",348:"Errors",351:"EOF",355:"OPTION",356:"REGULAR_IDENTIFIER",357:"!",358:"-",359:"[",360:"]",361:"~",362:"AND",363:"ARITHMETIC_OPERATOR",364:"BACKTICK",365:"BETWEEN",366:"BIGINT",367:"BOOLEAN",368:"CASE",369:"CHAR",370:"CURRENT",371:"DATABASE",372:"DECIMAL",373:"DOUBLE",374:"ELSE",375:"END",376:"EXISTS",377:"FLOAT",378:"FOLLOWING",379:"HDFS_START_QUOTE",380:"IN",381:"INT",382:"IS",383:"OR",384:"PRECEDING",385:"REGEXP",386:"RLIKE",387:"ROW",388:"ROWS",389:"SCHEMA",390:"SMALLINT",391:"STRING",392:"THEN",393:"TIMESTAMP",394:"TINYINT",395:"UNSIGNED_INTEGER",396:"UNSIGNED_INTEGER_E",397:"VARCHAR",398:"WHEN",399:"PARTIAL_CURSOR",403:"PARTIAL_VALUE",412:"CASCADE",448:"BETWEEN_AND",457:"+",503:"UNBOUNDED",508:"HDFS_PATH",509:"HDFS_END_QUOTE"},productions_:[0,[3,2],[3,1],[3,1],[3,2],[3,1],[3,1],[3,1],[3,2],[3,1],[3,1],[3,1],[3,2],[3,1],[3,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,1],[19,2],[19,4],[19,1],[19,1],[20,2],[6,1],[6,2],[6,2],[6,3],[36,3],[38,3],[38,3],[21,3],[7,1],[7,2],[7,3],[7,3],[7,3],[42,3],[45,3],[45,3],[48,0],[48,1],[49,2],[52,1],[53,2],[53,2],[53,3],[53,3],[22,3],[22,5],[9,4],[9,3],[9,5],[9,4],[9,6],[9,6],[60,1],[62,1],[23,3],[24,4],[10,4],[10,4],[10,3],[64,3],[65,3],[65,3],[65,3],[65,3],[66,2],[69,2],[69,2],[73,0],[73,1],[73,2],[74,1],[74,2],[74,2],[76,3],[78,3],[80,1],[80,3],[82,1],[82,3],[82,3],[82,5],[82,2],[82,4],[82,4],[82,6],[84,3],[86,3],[86,3],[86,3],[89,0],[89,1],[92,1],[92,2],[91,1],[91,2],[91,2],[91,3],[93,2],[93,1],[93,1],[94,2],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[90,1],[90,1],[90,1],[98,4],[101,3],[104,4],[104,4],[99,6],[102,3],[105,6],[105,4],[105,6],[105,5],[100,4],[103,3],[106,4],[114,1],[114,3],[115,1],[115,2],[115,3],[115,3],[115,5],[116,4],[117,5],[117,4],[117,4],[117,4],[117,3],[117,3],[121,1],[121,3],[122,1],[122,2],[122,3],[122,3],[122,5],[123,2],[123,2],[123,1],[123,1],[111,1],[111,1],[67,0],[67,1],[124,3],[70,2],[70,3],[70,3],[127,3],[128,2],[128,2],[128,3],[128,3],[128,3],[131,3],[133,3],[133,3],[134,1],[134,3],[135,1],[135,3],[135,5],[135,3],[135,5],[136,6],[136,4],[136,4],[137,2],[137,2],[137,3],[137,4],[137,4],[137,5],[137,6],[137,6],[137,3],[137,4],[137,4],[139,1],[139,1],[68,0],[68,3],[71,3],[71,3],[143,0],[25,8],[11,4],[11,9],[11,3],[11,6],[11,7],[11,8],[11,8],[11,8],[144,0],[144,1],[146,3],[145,3],[147,2],[147,4],[148,3],[148,5],[148,5],[148,7],[26,5],[13,3],[13,3],[13,4],[13,5],[13,5],[13,6],[27,3],[28,5],[14,3],[14,4],[14,5],[14,5],[14,6],[153,0],[153,1],[29,4],[15,4],[15,5],[15,3],[15,4],[15,4],[155,1],[155,1],[156,1],[159,1],[159,1],[158,6],[160,2],[160,4],[160,4],[160,5],[160,6],[165,1],[165,3],[166,3],[164,0],[164,1],[44,3],[44,5],[44,2],[46,4],[46,3],[46,3],[46,1],[46,4],[46,3],[46,2],[46,2],[168,2],[173,2],[175,1],[175,3],[176,1],[176,3],[176,3],[176,5],[177,5],[178,2],[178,5],[178,5],[181,2],[184,2],[184,2],[183,1],[183,3],[185,1],[185,3],[185,3],[185,5],[185,3],[188,0],[188,1],[189,3],[192,3],[192,3],[192,2],[194,0],[194,1],[194,3],[194,3],[195,1],[195,3],[195,3],[195,5],[195,3],[196,1],[196,1],[191,1],[191,3],[193,1],[193,2],[193,3],[193,3],[193,3],[193,4],[193,5],[198,1],[198,2],[198,1],[199,0],[199,1],[200,2],[202,2],[202,2],[203,0],[203,1],[203,1],[204,3],[204,4],[205,1],[205,2],[209,3],[209,1],[209,3],[209,3],[209,3],[213,1],[213,2],[213,2],[213,3],[206,2],[206,2],[206,3],[206,2],[206,1],[206,3],[206,2],[206,3],[206,3],[206,2],[206,3],[206,2],[206,3],[206,3],[206,2],[210,2],[210,3],[210,3],[210,2],[210,3],[210,3],[210,3],[210,3],[210,2],[210,3],[210,3],[210,3],[210,3],[210,2],[210,3],[210,3],[210,3],[208,0],[208,2],[223,1],[223,3],[212,2],[212,2],[224,0],[224,1],[225,2],[225,4],[225,2],[225,4],[229,2],[230,0],[230,1],[231,3],[234,3],[234,2],[233,1],[233,3],[235,1],[235,2],[235,3],[235,4],[235,5],[236,2],[237,2],[237,2],[238,0],[238,1],[238,1],[169,3],[169,4],[169,4],[169,4],[171,3],[171,3],[171,4],[171,4],[171,4],[171,5],[171,6],[171,4],[171,4],[171,4],[242,0],[242,1],[242,1],[244,2],[248,2],[248,4],[248,3],[243,1],[243,3],[247,1],[247,2],[247,3],[247,3],[247,3],[247,4],[247,3],[247,3],[247,4],[247,4],[247,4],[247,5],[247,5],[253,2],[253,1],[254,2],[254,3],[254,2],[251,5],[252,5],[252,5],[252,5],[252,5],[252,5],[252,6],[252,6],[252,6],[252,6],[252,6],[252,7],[252,7],[252,7],[252,7],[252,6],[252,6],[252,6],[252,6],[252,6],[252,6],[252,6],[252,6],[252,6],[252,6],[170,0],[170,1],[172,1],[261,1],[261,2],[262,1],[262,2],[262,2],[262,3],[263,4],[264,3],[264,4],[264,4],[258,0],[258,1],[260,2],[259,2],[259,2],[268,1],[269,1],[31,1],[31,3],[33,1],[33,1],[33,2],[33,1],[33,1],[33,1],[33,1],[34,4],[17,2],[17,4],[17,3],[17,4],[17,5],[17,5],[17,5],[276,2],[276,2],[276,1],[282,1],[282,2],[282,1],[282,2],[282,2],[282,2],[282,1],[277,1],[277,1],[277,1],[283,1],[283,1],[283,1],[288,4],[288,5],[291,5],[291,6],[291,5],[294,1],[294,1],[294,1],[294,1],[294,1],[294,1],[294,1],[294,1],[289,4],[289,3],[289,5],[292,5],[292,6],[292,5],[290,5],[290,3],[293,5],[293,6],[293,5],[279,3],[279,4],[285,4],[285,5],[285,4],[308,1],[308,1],[308,1],[308,1],[281,6],[281,3],[287,6],[287,5],[287,4],[287,6],[287,5],[287,4],[287,6],[287,5],[287,6],[287,5],[311,2],[311,2],[311,1],[311,1],[311,1],[311,1],[315,2],[315,2],[315,1],[315,1],[315,1],[319,2],[319,2],[320,2],[320,2],[313,2],[313,3],[316,3],[316,4],[316,3],[295,1],[295,3],[296,1],[296,3],[296,3],[296,5],[296,3],[296,5],[296,4],[296,3],[296,2],[296,2],[296,4],[278,0],[278,1],[284,1],[280,2],[280,2],[286,2],[157,6],[161,6],[161,6],[161,6],[161,6],[161,7],[161,3],[161,2],[161,2],[161,2],[325,1],[328,1],[331,1],[332,1],[326,1],[326,3],[329,1],[329,3],[329,3],[329,5],[335,3],[336,3],[336,2],[336,1],[337,1],[338,1],[339,1],[327,0],[327,2],[330,2],[330,2],[35,2],[18,2],[18,3],[341,1],[341,2],[341,0],[341,1],[341,4],[345,2],[345,1],[345,2],[345,1],[345,1],[345,1],[345,1],[245,1],[245,3],[245,5],[245,3],[245,5],[249,3],[249,5],[249,7],[249,3],[249,5],[249,7],[349,4],[347,1],[347,3],[350,3],[352,3],[352,3],[266,0],[353,1],[353,4],[353,4],[353,7],[343,1],[343,1],[343,1],[354,1],[354,1],[354,1],[59,1],[59,1],[59,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[342,1],[118,1],[118,2],[110,1],[110,1],[400,1],[400,1],[57,1],[57,1],[401,3],[401,2],[402,2],[404,3],[404,2],[405,2],[51,1],[51,1],[406,1],[406,1],[407,0],[407,1],[408,2],[410,2],[151,0],[151,1],[150,0],[150,2],[413,1],[152,2],[58,0],[58,3],[414,1],[61,2],[61,3],[415,0],[415,2],[415,2],[275,0],[275,1],[416,1],[37,4],[417,4],[420,5],[422,2],[422,3],[422,4],[422,5],[422,5],[422,5],[421,1],[421,1],[421,1],[421,1],[423,1],[423,1],[424,1],[424,1],[426,1],[426,1],[427,1],[427,1],[425,2],[83,1],[83,1],[428,0],[428,1],[429,1],[130,3],[132,3],[132,3],[430,1],[430,3],[431,3],[431,5],[432,3],[433,1],[433,3],[40,1],[40,3],[41,1],[41,3],[41,3],[72,1],[72,3],[75,1],[75,3],[75,3],[409,1],[411,1],[418,1],[418,3],[419,1],[419,3],[419,3],[419,5],[434,3],[435,3],[435,3],[435,3],[435,1],[119,1],[119,3],[119,2],[436,1],[436,3],[437,1],[437,3],[333,1],[333,2],[334,1],[334,2],[149,1],[149,3],[197,1],[438,1],[438,3],[439,3],[439,5],[440,1],[440,3],[441,1],[441,3],[441,5],[441,3],[87,1],[442,1],[442,1],[97,1],[97,1],[97,2],[97,2],[97,1],[97,1],[97,1],[97,1],[97,1],[97,1],[97,1],[97,2],[443,0],[443,3],[444,0],[444,3],[444,5],[138,1],[138,2],[138,2],[138,2],[138,2],[138,4],[138,4],[138,4],[138,6],[138,2],[138,3],[138,3],[138,3],[138,3],[138,3],[138,6],[138,6],[138,5],[138,5],[138,6],[138,5],[138,3],[138,3],[138,3],[138,3],[138,3],[138,2],[138,3],[138,2],[138,3],[141,1],[141,3],[141,2],[141,2],[141,2],[141,2],[141,2],[141,2],[141,2],[141,2],[141,3],[141,4],[141,5],[141,4],[141,4],[141,4],[141,6],[141,6],[141,2],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,4],[141,3],[141,6],[141,6],[141,5],[141,5],[141,6],[141,6],[141,6],[141,6],[141,5],[141,4],[141,5],[141,5],[141,5],[141,5],[141,4],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,3],[141,2],[141,3],[141,2],[141,3],[141,2],[141,3],[141,2],[141,3],[141,3],[141,4],[141,3],[141,3],[141,3],[447,1],[447,3],[456,1],[456,3],[456,3],[456,5],[456,3],[456,5],[456,4],[456,3],[456,2],[456,2],[456,4],[167,1],[167,3],[312,1],[312,3],[318,1],[271,1],[271,2],[271,2],[314,1],[317,1],[458,1],[458,1],[459,1],[227,1],[227,1],[462,1],[462,2],[462,3],[462,2],[463,2],[463,3],[463,4],[460,1],[460,1],[460,1],[461,1],[461,1],[464,1],[464,1],[445,0],[445,1],[186,1],[187,1],[465,1],[465,1],[466,1],[466,1],[467,2],[468,2],[468,2],[207,2],[207,2],[211,2],[211,2],[211,2],[469,1],[471,1],[470,1],[472,1],[473,0],[473,2],[474,2],[474,2],[475,0],[476,0],[446,3],[446,4],[451,3],[451,3],[179,2],[180,3],[477,1],[478,1],[479,1],[480,1],[481,1],[482,1],[483,1],[484,1],[485,1],[486,1],[487,1],[488,1],[489,1],[490,1],[255,0],[255,1],[255,1],[255,2],[255,2],[257,1],[257,1],[257,2],[257,2],[257,2],[322,4],[323,4],[323,4],[323,5],[323,7],[491,0],[491,1],[495,3],[493,2],[493,3],[493,3],[492,0],[492,2],[494,1],[494,3],[494,2],[496,0],[496,1],[498,5],[498,5],[497,2],[497,6],[497,5],[497,5],[497,5],[497,4],[500,0],[506,0],[507,3],[510,5],[510,4],[510,3],[510,3],[510,2],[499,1],[499,1],[501,0],[501,2],[501,2],[504,2],[504,2],[502,0],[502,3],[502,3],[505,2],[505,3],[505,3],[511,1],[511,1],[452,3],[452,3],[452,3],[449,2],[449,2],[449,2],[453,2],[453,2],[453,2],[453,2],[453,2],[453,2],[450,2],[450,4],[454,2],[454,4],[454,4],[454,3],[454,4],[454,3],[454,4],[454,4],[454,3],[454,4],[454,3],[455,1],[455,1],[512,1],[512,2],[513,1],[513,2],[513,3],[513,3],[513,2],[514,4],[515,2],[515,3],[515,4],[515,4],[515,3],[515,3],[515,4],[515,2],[515,3],[515,2],[515,3],[515,3],[515,4],[515,3],[515,4],[515,4],[515,5],[515,4],[515,3]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:ed.suggestKeywords(["TABLE","VIEW"]);break;case 4:case 8:ed.suggestKeywords(["DATABASE","ROLE","SCHEMA","TABLE","VIEW"]);break;case 12:ed.suggestSetOptions();break;case 34:case 43:case 239:case 243:case 502:case 622:ed.addTablePrimary(o[a]);break;case 35:case 234:ed.yy.result.suggestTables&&(ed.yy.result.suggestTables.onlyTables=!0);break;case 36:ed.suggestTables({onlyTables:!0}),ed.suggestDatabases({appendDot:!0});break;case 39:case 281:ed.suggestKeywords(["AS"]);break;case 41:case 201:case 210:case 282:case 651:case 1125:ed.suggestKeywords(["SELECT"]);break;case 44:case 244:ed.yy.result.suggestTables&&(ed.yy.result.suggestTables.onlyViews=!0);break;case 45:ed.suggestTables({onlyViews:!0}),ed.suggestDatabases({appendDot:!0});break;case 55:ed.addNewDatabaseLocation(s[a-1],[{name:o[a-1]}]);break;case 56:case 67:o[a-1]||ed.suggestKeywords(["IF NOT EXISTS"]);break;case 58:o[a-2]||ed.suggestKeywords(["IF NOT EXISTS"]),ed.addNewDatabaseLocation(s[a],[{name:o[a]}]);break;case 59:ed.addNewDatabaseLocation(s[a],[{name:o[a]}]);break;case 60:ed.addNewDatabaseLocation(s[a-2],[{name:o[a-2]}]);break;case 62:o[a]||ed.suggestKeywords(["COMMENT"]);break;case 73:var c=[];o[a-2]||o[a-1]?(o[a-1]||c.push({value:"PARTITIONED BY",weight:12}),c.push({value:"AS",weight:1})):c.push({value:"LIKE",weight:1}),c.length>0&&ed.suggestKeywords(c);break;case 74:ed.addNewTableLocation(s[a-1],o[a-1],o[a]),this.$=o[a];break;case 79:this.$=[];break;case 81:case 619:case 639:case 872:case 285:case 293:ed.suggestTables(),ed.suggestDatabases({appendDot:!0});break;case 83:case 219:case 221:case 263:case 440:case 587:case 590:case 802:case 805:case 894:case 947:case 1122:case 986:this.$=o[a-1];break;case 85:case 274:case 428:this.$=[o[a]];break;case 86:this.$=o[a-2].concat(o[a]);break;case 91:case 93:ed.checkForKeywords(o[a-1]);break;case 92:case 94:ed.checkForKeywords(o[a-3]);break;case 95:this.$=o[a-2],this.$.type=o[a-1],c=[],o[a].comment||c.push("COMMENT"),c.length>0&&(this.$.suggestKeywords=c);break;case 96:case 123:case 129:case 130:case 143:case 146:case 155:case 157:ed.suggestKeywords(ed.getColumnDataTypeKeywords());break;case 99:this.$={};break;case 101:this.$={},this.$[o[a]]=!0;break;case 102:o[a-1][o[a]]=!0;break;case 107:case 108:this.$="null";break;case 109:this.$="comment";break;case 110:ed.suggestKeywords(["NULL"]);break;case 128:ed.suggestKeywords(ed.getTypeKeywords());break;case 142:case 145:ed.suggestKeywords(["COMMENT"]);break;case 164:case 1160:ed.suggestKeywords(["BY"]);break;case 165:ed.suggestKeywords(["RANGE"]);break;case 174:case 179:case 180:ed.suggestKeywords(["PARTITION"]);break;case 186:ed.suggestKeywords(["VALUE","VALUES"]);break;case 187:o[a].endsWithLessThanOrEqual&&ed.suggestKeywords(["VALUES"]);break;case 188:case 191:case 194:ed.suggestKeywords(["<","<="]);break;case 189:case 837:case 840:ed.suggestKeywords(["VALUES"]);break;case 192:case 195:ed.suggestFunctions();break;case 203:ed.commitLocations();break;case 205:o[a-1]||ed.suggestKeywords(["IF NOT EXISTS"]),ed.suggestDatabases({appendDot:!0});break;case 206:o[a-6]||ed.suggestKeywords(["IF NOT EXISTS"]);break;case 209:c=[{value:"AS",weight:1}],o[a-1]||c.push({value:"COMMENT",weight:3}),ed.suggestKeywords(c);break;case 216:o[a-1]||ed.suggestKeywords(["COMMENT"]);break;case 220:case 222:this.$=o[a-3];break;case 226:o[a-1]||ed.suggestKeywords(["IF EXISTS"]),ed.suggestDatabases();break;case 227:ed.suggestKeywords(["CASCADE"]);break;case 229:o[a-3]||ed.suggestKeywords(["IF EXISTS"]);break;case 231:case 507:ed.addTablePrimary(o[a-1]);break;case 233:o[a-1]||ed.suggestKeywords(["IF EXISTS"]),ed.suggestTables({onlyTables:!0}),ed.suggestDatabases({appendDot:!0});break;case 236:ed.addTablePrimary(o[a-2]),o[a-1]||ed.suggestKeywords(["PURGE"]);break;case 240:o[a-1]||ed.suggestKeywords(["IF EXISTS"]),ed.suggestTables({onlyViews:!0}),ed.suggestDatabases({appendDot:!0});break;case 241:ed.addTablePrimary(o[a]),o[a-2]||ed.suggestKeywords(["IF EXISTS"]);break;case 250:o[a-2].owner="insert",ed.addTablePrimary(o[a-2]);break;case 251:ed.suggestKeywords(["INTO"]);break;case 252:o[a-1]||ed.suggestKeywords(["TABLE"]),ed.suggestTables(),ed.suggestDatabases({appendDot:!0});break;case 254:o[a-1].owner="insert",ed.addTablePrimary(o[a-1]),ed.suggestKeywords(["VALUES"]);break;case 262:case 442:this.$=o[a-2];break;case 264:ed.addCommonTableExpressions(o[a-3]);break;case 265:case 266:case 277:ed.addCommonTableExpressions(o[a-2]);break;case 272:case 288:case 312:case 391:case 395:case 437:case 447:case 488:case 638:case 661:case 662:case 663:case 1047:case 1049:case 1104:case 1159:case 1234:this.$=o[a];break;case 275:this.$=o[a-2].concat([o[a]]);break;case 279:ed.addCommonTableExpressions(o[a-4]);break;case 280:ed.addCteAliasLocation(s[a-4],o[a-4]),o[a-1].alias=o[a-4],this.$=o[a-1];break;case 284:this.$={tableReferenceList:o[a]};break;case 296:case 377:this.$={valueExpression:o[a]};break;case 297:case 402:ed.suggestSelectListAliases();break;case 298:ed.valueExpressionSuggest(),ed.suggestSelectListAliases(),ed.suggestGroupBys({tablePrimaries:ed.yy.latestTablePrimaries.concat()});break;case 299:ed.suggestKeywords(["BY"]),ed.suggestGroupBys({prefix:"BY",tablePrimaries:ed.yy.latestTablePrimaries.concat()});break;case 309:case 633:case 862:case 865:case 866:case 891:case 892:case 913:case 916:ed.suggestColumns();break;case 314:case 315:case 321:case 322:case 890:case 1118:case 1161:ed.valueExpressionSuggest();break;case 326:ed.valueExpressionSuggest(),ed.suggestAggregateFunctions(),ed.suggestSelectListAliases(!0);break;case 327:ed.suggestAggregateFunctions(),ed.suggestSelectListAliases(!0);break;case 331:o[a]&&o[a].valueExpression?this.$=o[a].valueExpression:this.$={},this.$.joinType=o[a-2],o[a].noJoinCondition&&(this.$.suggestJoinConditions={prependOn:!0,tablePrimaries:ed.yy.latestTablePrimaries.concat()}),o[a].suggestKeywords&&(this.$.suggestKeywords=o[a].suggestKeywords),ed.yy.latestTablePrimaries.length>0&&(ed.yy.latestTablePrimaries[ed.yy.latestTablePrimaries.length-1].join=!0);break;case 332:o[a]&&o[a].valueExpression?this.$=o[a].valueExpression:this.$={},this.$.joinType=o[a-3],o[a].noJoinCondition&&(this.$.suggestJoinConditions={prependOn:!0,tablePrimaries:ed.yy.latestTablePrimaries.concat()}),o[a].suggestKeywords&&(this.$.suggestKeywords=o[a].suggestKeywords),ed.yy.latestTablePrimaries.length>0&&(ed.yy.latestTablePrimaries[ed.yy.latestTablePrimaries.length-1].join=!0);break;case 333:this.$={joinType:o[a]};break;case 334:this.$={joinType:o[a-1]};break;case 335:o[a-2].suggestKeywords&&ed.suggestKeywords(o[a-2].suggestKeywords);break;case 336:o[a].suggestKeywords&&ed.suggestKeywords(o[a].suggestKeywords);break;case 339:if(ed.yy.latestTablePrimaries.length>0){var l=ed.yy.latestTablePrimaries.length-1,u=[];do{(m=ed.yy.latestTablePrimaries[l]).subQueryAlias||u.unshift(m.alias?{identifierChain:m.identifierChain,alias:m.alias}:{identifierChain:m.identifierChain}),l--}while(l>=0&&m.join&&!m.subQueryAlias);u.length>0&&ed.suggestJoins({prependJoin:!1,joinType:o[a-2],tables:u})}ed.suggestTables(),ed.suggestDatabases({appendDot:!0});break;case 344:this.$="CROSS JOIN";break;case 345:this.$="FULL JOIN";break;case 346:this.$="FULL OUTER JOIN";break;case 347:this.$="INNER JOIN";break;case 348:this.$="JOIN";break;case 349:this.$="LEFT INNER JOIN";break;case 350:this.$="LEFT JOIN";break;case 351:this.$="LEFT OUTER JOIN";break;case 352:this.$="LEFT SEMI JOIN";break;case 353:this.$="OUTER JOIN";break;case 354:case 356:this.$="RIGHT OUTER JOIN";break;case 355:this.$="RIGHT JOIN";break;case 357:this.$="RIGHT SEMI JOIN";break;case 358:this.$="SEMI JOIN";break;case 359:case 361:case 362:case 364:case 365:case 366:case 367:case 369:case 370:case 371:case 372:this.$={suggestKeywords:["JOIN"]};break;case 360:case 363:case 368:this.$={suggestKeywords:["OUTER"]};break;case 373:case 374:case 375:ed.suggestKeywords(["JOIN","OUTER JOIN"]);break;case 376:this.$={noJoinCondition:!0,suggestKeywords:["ON"]};break;case 381:ed.valueExpressionSuggest(),ed.suggestJoinConditions({prependOn:!1});break;case 388:ed.suggestKeywords([{value:"10",weight:1e4},{value:"100",weight:1e4},{value:"1000",weight:1e4},{value:"5000",weight:1e4},{value:"10000",weight:1e4}]);break;case 392:o[a].emptyOrderBy&&ed.suggestOrderBys({tablePrimaries:ed.yy.latestTablePrimaries.concat()});break;case 393:ed.suggestKeywords(["BY"]),ed.suggestOrderBys({prefix:"BY",tablePrimaries:ed.yy.latestTablePrimaries.concat()});break;case 397:this.$={emptyOrderBy:!1},ed.valueExpressionSuggest(),ed.suggestAnalyticFunctions(),ed.suggestSelectListAliases();break;case 398:case 399:case 400:this.$={emptyOrderBy:!1};break;case 401:this.$=ed.mergeSuggestKeywords(o[a]);break;case 403:this.$={emptyOrderBy:!0},ed.valueExpressionSuggest(),ed.suggestAnalyticFunctions(),ed.suggestSelectListAliases();break;case 404:this.$={suggestKeywords:["ASC","DESC"]};break;case 407:ed.addClauseLocation("selectList",ed.firstDefined(o[a-1],s[a-1],o[a-2],s[a-2]),s[a]),this.$={selectList:o[a]};break;case 408:ed.addClauseLocation("selectList",ed.firstDefined(o[a-2],s[a-2],o[a-3],s[a-3]),s[a-1]),this.$={selectList:o[a-1],tableExpression:o[a]};break;case 411:ed.addClauseLocation("selectList",ed.firstDefined(o[a-1],s[a-1],o[a-2],s[a-2]),s[a]),o[a].cursorAtStart?(c=ed.getSelectListKeywords(),o[a-1]||(c=c.concat(ed.SELECT_FIRST_OPTIONAL_KEYWORDS)),ed.suggestKeywords(c)):ed.checkForSelectListKeywords(o[a]),o[a].suggestFunctions&&ed.suggestFunctions(),o[a].suggestColumns&&ed.suggestColumns({identifierChain:[],source:"select"}),o[a].suggestTables&&ed.suggestTables({prependQuestionMark:!0,prependFrom:!0}),o[a].suggestDatabases&&ed.suggestDatabases({prependQuestionMark:!0,prependFrom:!0,appendDot:!0}),!o[a].suggestAggregateFunctions||o[a-1]&&"ALL"!==o[a-1]||(ed.suggestAggregateFunctions(),ed.suggestAnalyticFunctions());break;case 412:ed.addClauseLocation("selectList",ed.firstDefined(o[a-1],s[a-1],o[a-2],s[a-2]),s[a],!0),c=ed.getSelectListKeywords(),o[a-1]&&"ALL"!==o[a-1]||(ed.suggestAggregateFunctions(),ed.suggestAnalyticFunctions()),o[a-1]||(c=c.concat(ed.SELECT_FIRST_OPTIONAL_KEYWORDS)),ed.suggestKeywords(c),ed.suggestFunctions(),ed.suggestColumns({identifierChain:[],source:"select"}),ed.suggestTables({prependQuestionMark:!0,prependFrom:!0}),ed.suggestDatabases({prependQuestionMark:!0,prependFrom:!0,appendDot:!0});break;case 413:ed.addClauseLocation("selectList",ed.firstDefined(o[a-2],s[a-2],o[a-3],s[a-3]),s[a-1]);break;case 414:ed.addClauseLocation("selectList",ed.firstDefined(o[a-2],s[a-2],o[a-3],s[a-3]),s[a-1]),ed.selectListNoTableSuggest(o[a-1],o[a-2]),ed.yy.result.suggestColumns&&(ed.yy.result.suggestColumns.source="select");break;case 415:ed.addClauseLocation("selectList",ed.firstDefined(o[a-2],s[a-2],o[a-3],s[a-3]),s[a-1],!0),c=ed.getSelectListKeywords(),o[a-2]&&"ALL"!==o[a-2]||(ed.suggestAggregateFunctions(),ed.suggestAnalyticFunctions()),o[a-2]||(c=c.concat(ed.SELECT_FIRST_OPTIONAL_KEYWORDS)),ed.suggestKeywords(c),ed.suggestFunctions(),ed.suggestColumns({identifierChain:[],source:"select"}),ed.suggestTables({prependQuestionMark:!0,prependFrom:!0}),ed.suggestDatabases({prependQuestionMark:!0,prependFrom:!0,appendDot:!0});break;case 416:ed.addClauseLocation("selectList",ed.firstDefined(o[a-3],s[a-3],o[a-4],s[a-4]),s[a-2]),ed.checkForSelectListKeywords(o[a-2]);break;case 417:ed.addClauseLocation("selectList",ed.firstDefined(o[a-4],s[a-4],o[a-5],s[a-5]),s[a-3]),ed.checkForSelectListKeywords(o[a-3]);break;case 418:ed.addClauseLocation("selectList",ed.firstDefined(o[a-2],s[a-2],o[a-3],s[a-3]),s[a-1]),ed.checkForSelectListKeywords(o[a-1]),c=["FROM"],ed.yy.result.suggestKeywords&&(c=ed.yy.result.suggestKeywords.concat(c)),ed.suggestKeywords(c),ed.suggestTables({prependFrom:!0}),ed.suggestDatabases({prependFrom:!0,appendDot:!0});break;case 419:ed.selectListNoTableSuggest(o[a-1],o[a-2]);break;case 424:case 425:ed.addClauseLocation("whereClause",s[a-1],o[a].whereClauseLocation),ed.addClauseLocation("limitClause",o[a].limitClausePreceding||s[a-1],o[a].limitClauseLocation);break;case 426:if(c=[],ed.addClauseLocation("whereClause",s[a-3],o[a-1].whereClauseLocation),ed.addClauseLocation("limitClause",o[a-2].limitClausePreceding||s[a-3],o[a-2].limitClauseLocation),o[a-3]&&(void 0===o[a-3].tableReferenceList.hasJoinCondition||o[a-3].tableReferenceList.hasJoinCondition||c.push({value:"ON",weight:3}),o[a-3].suggestKeywords&&(c=ed.createWeightedKeywords(o[a-3].suggestKeywords,3)),o[a-3].tableReferenceList.suggestJoinConditions&&ed.suggestJoinConditions(o[a-3].tableReferenceList.suggestJoinConditions),o[a-3].tableReferenceList.suggestJoins&&ed.suggestJoins(o[a-3].tableReferenceList.suggestJoins),o[a-3].tableReferenceList.suggestKeywords&&(c=c.concat(ed.createWeightedKeywords(o[a-3].tableReferenceList.suggestKeywords,3))),c.forEach((function(e){"TABLESAMPLE"===e.value&&(e.weight=1.1)})),o[a-3].tableReferenceList.types)){var h=ed.getValueExpressionKeywords(o[a-3].tableReferenceList);c=c.concat(h.suggestKeywords),h.suggestColRefKeywords&&(ed.suggestColRefKeywords(h.suggestColRefKeywords),ed.addColRefIfExists(o[a-3].tableReferenceList))}if(o[a-1].empty&&o[a]&&"JOIN"===o[a].joinType.toUpperCase())return c=c.concat(["FULL","FULL OUTER","INNER","LEFT","LEFT OUTER","RIGHT","RIGHT OUTER"]),void ed.suggestKeywords(c);o[a-1].suggestKeywords&&(c=c.concat(ed.createWeightedKeywords(o[a-1].suggestKeywords,2))),o[a-1].suggestFilters&&ed.suggestFilters(o[a-1].suggestFilters),o[a-1].suggestGroupBys&&ed.suggestGroupBys(o[a-1].suggestGroupBys),o[a-1].suggestOrderBys&&ed.suggestOrderBys(o[a-1].suggestOrderBys),o[a-1].empty&&c.push({value:"UNION",weight:2.11}),c=c.concat([{value:"FULL JOIN",weight:1},{value:"FULL OUTER JOIN",weight:1},{value:"INNER JOIN",weight:1},{value:"JOIN",weight:1},{value:"LEFT JOIN",weight:1},{value:"LEFT OUTER JOIN",weight:1},{value:"RIGHT JOIN",weight:1},{value:"RIGHT OUTER JOIN",weight:1}]),ed.suggestKeywords(c);break;case 427:if(!o[a-1])return ed.addClauseLocation("whereClause",s[a-2]),void ed.addClauseLocation("limitClause",s[a-2]);ed.addClauseLocation("whereClause",s[a-2],o[a-1].whereClauseLocation),ed.addClauseLocation("limitClause",o[a-1].limitClausePreceding||s[a-2],o[a-1].limitClauseLocation),c=[],o[a-1].suggestColRefKeywords&&(ed.suggestColRefKeywords(o[a-1].suggestColRefKeywords),ed.addColRefIfExists(o[a-1])),o[a-1].suggestKeywords&&o[a-1].suggestKeywords.length&&(c=c.concat(ed.createWeightedKeywords(o[a-1].suggestKeywords,2))),o[a-1].cursorAtEnd&&c.push({value:"UNION",weight:2.11}),ed.suggestKeywords(c);break;case 429:o[a-2].push(o[a]);break;case 431:case 432:case 666:this.$={cursorAtStart:!0,suggestFunctions:!0,suggestColumns:!0,suggestAggregateFunctions:!0};break;case 434:ed.checkForSelectListKeywords(o[a-2]);break;case 435:ed.checkForSelectListKeywords(o[a-3]);break;case 436:this.$={suggestKeywords:ed.getSelectListKeywords(),suggestTables:!0,suggestDatabases:!0,suggestFunctions:!0,suggestColumns:!0,suggestAggregateFunctions:!0};break;case 438:case 439:case 441:this.$={suggestKeywords:ed.getSelectListKeywords(),suggestFunctions:!0,suggestColumns:!0,suggestAggregateFunctions:!0};break;case 443:o[a]?(ed.addColumnAliasLocation(o[a].location,o[a].alias,s[a-1]),this.$={valueExpression:o[a-1],alias:o[a].alias},ed.yy.selectListAliases||(ed.yy.selectListAliases=[]),ed.yy.selectListAliases.push(o[a-1].function&&o[a-1].types&&o[a-1].types.length&&"UDFREF"===o[a-1].types[0]?{name:o[a].alias,udfRef:o[a-1].function,types:o[a-1].types}:{name:o[a].alias,types:o[a-1].types||["T"]})):this.$={valueExpression:o[a-1]};break;case 444:ed.addAsteriskLocation(s[a],[{asterisk:!0}]),this.$={asterisk:!0};break;case 445:o[a]&&ed.addColumnAliasLocation(o[a].location,o[a].alias,s[a-1]);break;case 446:ed.suggestFunctions(),ed.suggestColumns(),ed.addColumnAliasLocation(s[a],o[a],s[a-2]),this.$={suggestAggregateFunctions:!0};break;case 448:(c=ed.getKeywordsForOptionalsLR([o[a-4],o[a-3],o[a-2],o[a-1],o[a]],[{value:"WHERE",weight:7},{value:"GROUP BY",weight:6},{value:"HAVING",weight:5},{value:"ORDER BY",weight:4},{value:"LIMIT",weight:3}],[!0,!0,!0,!0,!0])).length>0?this.$={suggestKeywords:c,empty:!(o[a-4]||o[a-3]||o[a-2]||o[a-1]||o[a])}:this.$={},this.$.whereClauseLocation=o[a-4]?s[a-4]:void 0,this.$.limitClausePreceding=ed.firstDefined(o[a-1],s[a-1],o[a-2],s[a-2],o[a-3],s[a-3],o[a-4],s[a-4]),this.$.limitClauseLocation=o[a]?s[a]:void 0,o[a-4]||o[a-3]||o[a-2]||o[a-1]||o[a]||(this.$.suggestFilters={prefix:"WHERE",tablePrimaries:ed.yy.latestTablePrimaries.concat()}),o[a-3]||o[a-2]||o[a-1]||o[a]||(this.$.suggestGroupBys={prefix:"GROUP BY",tablePrimaries:ed.yy.latestTablePrimaries.concat()}),o[a-1]||o[a]||(this.$.suggestOrderBys={prefix:"ORDER BY",tablePrimaries:ed.yy.latestTablePrimaries.concat()});break;case 449:ed.yy.result.suggestColumns&&(ed.yy.result.suggestColumns.source="where");break;case 450:ed.yy.result.suggestColumns&&(ed.yy.result.suggestColumns.source="group by");break;case 452:ed.yy.result.suggestColumns&&(ed.yy.result.suggestColumns.source="order by");break;case 454:c=ed.getKeywordsForOptionalsLR([o[a-3],o[a-2],o[a-1],o[a]],[{value:"GROUP BY",weight:8},{value:"HAVING",weight:7},{value:"ORDER BY",weight:5},{value:"LIMIT",weight:3}],[!0,!0,!0,!0]),o[a-5].suggestKeywords&&(c=c.concat(ed.createWeightedKeywords(o[a-5].suggestKeywords,1))),this.$=ed.getValueExpressionKeywords(o[a-5],c),this.$.cursorAtEnd=!(o[a-3]||o[a-2]||o[a-1]||o[a]),o[a-5].columnReference&&(this.$.columnReference=o[a-5].columnReference),o[a-3]||ed.suggestGroupBys({prefix:"GROUP BY",tablePrimaries:ed.yy.latestTablePrimaries.concat()}),o[a-3]||o[a-2]||o[a-1]||ed.suggestOrderBys({prefix:"ORDER BY",tablePrimaries:ed.yy.latestTablePrimaries.concat()}),this.$.whereClauseLocation=o[a-5]?s[a-5]:void 0,this.$.limitClausePreceding=ed.firstDefined(o[a-1],s[a-1],o[a-2],s[a-2],o[a-3],s[a-3],o[a-5],s[a-5]),this.$.limitClauseLocation=o[a]?s[a]:void 0;break;case 455:c=ed.getKeywordsForOptionalsLR([o[a-2],o[a-1],o[a]],[{value:"HAVING",weight:7},{value:"ORDER BY",weight:5},{value:"LIMIT",weight:3}],[!0,!0,!0]),o[a-4].suggestKeywords&&(c=c.concat(ed.createWeightedKeywords(o[a-4].suggestKeywords,8))),o[a-4].valueExpression?(this.$=ed.getValueExpressionKeywords(o[a-4].valueExpression,c),o[a-4].valueExpression.columnReference&&(this.$.columnReference=o[a-4].valueExpression.columnReference)):this.$={suggestKeywords:c},this.$.cursorAtEnd=!o[a-2]&&!o[a-1]&&!o[a],o[a-2]||o[a-1]||ed.suggestOrderBys({prefix:"ORDER BY",tablePrimaries:ed.yy.latestTablePrimaries.concat()}),this.$.whereClauseLocation=o[a-5]?s[a-5]:void 0,this.$.limitClausePreceding=ed.firstDefined(o[a-1],s[a-1],o[a-2],s[a-2],o[a-4],s[a-4]),this.$.limitClauseLocation=o[a]?s[a]:void 0;break;case 456:c=ed.getKeywordsForOptionalsLR([o[a-1],o[a]],[{value:"ORDER BY",weight:5},{value:"LIMIT",weight:3}],[!0,!0]),this.$={suggestKeywords:c,cursorAtEnd:!o[a-1]&&!o[a]},o[a-1]||ed.suggestOrderBys({prefix:"ORDER BY",tablePrimaries:ed.yy.latestTablePrimaries.concat()}),this.$.whereClauseLocation=o[a-5]?s[a-5]:void 0,this.$.limitClausePreceding=ed.firstDefined(o[a-1],s[a-1],o[a-3],s[a-3]),this.$.limitClauseLocation=o[a]?s[a]:void 0;break;case 457:c=ed.getKeywordsForOptionalsLR([o[a]],[{value:"LIMIT",weight:3}],[!0]),o[a-2].suggestKeywords&&(c=c.concat(ed.createWeightedKeywords(o[a-2].suggestKeywords,4))),this.$={suggestKeywords:c,cursorAtEnd:!o[a]},this.$.whereClauseLocation=o[a-5]?s[a-5]:void 0,this.$.limitClausePreceding=ed.firstDefined(o[a-2],s[a-2]),this.$.limitClauseLocation=o[a]?s[a]:void 0;break;case 458:this.$={suggestKeywords:[],cursorAtEnd:!0},this.$.whereClauseLocation=o[a-5]?s[a-5]:void 0,this.$.limitClausePreceding=ed.firstDefined(o[a-2],s[a-2],o[a-3],s[a-3],o[a-4],s[a-4],o[a-5],s[a-5]),this.$.limitClauseLocation=s[a-1];break;case 459:this.$={suggestKeywords:ed.getKeywordsForOptionalsLR([o[a-3],o[a-2],o[a-1],o[a]],[{value:"GROUP BY",weight:8},{value:"HAVING",weight:7},{value:"ORDER BY",weight:5},{value:"LIMIT",weight:3}],[!0,!0,!0,!0]),cursorAtEnd:!(o[a-3]||o[a-2]||o[a-1]||o[a])};break;case 460:this.$={suggestKeywords:ed.getKeywordsForOptionalsLR([o[a-1],o[a]],[{value:"ORDER BY",weight:5},{value:"LIMIT",weight:3}],[!0,!0]),cursorAtEnd:!o[a-1]&&!o[a]};break;case 461:this.$={suggestKeywords:ed.getKeywordsForOptionalsLR([o[a]],[{value:"LIMIT",weight:3}],[!0]),cursorAtEnd:!o[a]};break;case 483:ed.suggestKeywords(["ALL","DISTINCT","SELECT"]);break;case 484:ed.suggestKeywords(["ALL","DISTINCT"]);break;case 489:o[a].suggestFilters&&ed.suggestFilters({tablePrimaries:ed.yy.latestTablePrimaries.concat()});break;case 490:ed.suggestFunctions(),ed.suggestColumns(),ed.suggestKeywords(["EXISTS","NOT EXISTS"]),ed.suggestFilters({tablePrimaries:ed.yy.latestTablePrimaries.concat()});break;case 503:ed.suggestKeywords(["TABLE"]);break;case 504:ed.suggestTables(),ed.suggestDatabases({appendDot:!0}),o[a-1]||ed.suggestKeywords(["IF EXISTS"]);break;case 508:ed.addTablePrimary(o[a-1]),o[a-2]||ed.suggestKeywords(["IF EXISTS"]);break;case 510:o[a]||(o[a-1].suggestKeywords=["OVER"]);break;case 517:ed.suggestKeywords(["OVER"]);break;case 526:this.$={function:o[a-3],types:["UDFREF"]};break;case 527:case 545:case 541:ed.addFunctionArgumentLocations(o[a-4],o[a-1].expressions),this.$={function:o[a-4],types:["UDFREF"]};break;case 528:ed.valueExpressionSuggest(),c=ed.getSelectListKeywords(!0),o[a-2]||("group_concat"===o[a-4].toLowerCase()?c.push("ALL"):c.push("DISTINCT")),ed.yy.result.suggestKeywords&&(c=ed.yy.result.suggestKeywords.concat(c)),ed.suggestKeywords(c),ed.applyArgumentTypesToSuggestions(o[a-4],1),this.$={function:o[a-4],types:["UDFREF"]};break;case 529:case 543:ed.suggestValueExpressionKeywords(o[a-2].expressions[o[a-2].expressions.length-1].expression),this.$={function:o[a-5],types:["UDFREF"]};break;case 530:o[a-1].cursorAtStart&&(c=ed.getSelectListKeywords(!0),o[a-2]||("group_concat"===o[a-4].toLowerCase()?c.push("ALL"):c.push("DISTINCT")),ed.yy.result.suggestKeywords&&(c=ed.yy.result.suggestKeywords.concat(c)),ed.suggestKeywords(c)),ed.yy.result.suggestFunctions&&!ed.yy.result.suggestFunctions.types&&ed.applyArgumentTypesToSuggestions(o[a-4],o[a-1].activePosition),this.$={function:o[a-4],types:["UDFREF"]};break;case 539:ed.addFunctionArgumentLocations(o[a-3],[{expression:{text:o[a-1]},location:s[a-1]}]),this.$={function:o[a-3],types:["UDFREF"]};break;case 540:case 546:case 550:this.$={function:o[a-2],types:["UDFREF"]};break;case 542:ed.valueExpressionSuggest(),c=ed.getSelectListKeywords(),o[a-2]||(c.push("DISTINCT"),ed.yy.result.suggestKeywords&&(c=ed.yy.result.suggestKeywords.concat(c))),ed.suggestKeywords(c),this.$={function:o[a-4],types:["UDFREF"]};break;case 544:o[a-1].cursorAtStart&&(c=ed.getSelectListKeywords(),o[a-2]||c.push("DISTINCT"),ed.suggestKeywords(c)),this.$={function:o[a-4],types:["UDFREF"]};break;case 547:ed.valueExpressionSuggest(),ed.applyArgumentTypesToSuggestions(o[a-4],1),c=ed.getSelectListKeywords(!0),o[a-2]||c.push("DISTINCT"),ed.yy.result.suggestKeywords&&(c=ed.yy.result.suggestKeywords.concat(c)),ed.suggestKeywords(c),this.$={function:o[a-4],types:["UDFREF"]};break;case 548:ed.suggestValueExpressionKeywords(o[a-2]),this.$={function:o[a-5],types:["UDFREF"]};break;case 549:ed.yy.result.suggestFunctions&&!ed.yy.result.suggestFunctions.types&&ed.applyArgumentTypesToSuggestions(o[a-4],1),this.$={function:o[a-4],types:["UDFREF"]};break;case 551:ed.addFunctionArgumentLocations(o[a-3],o[a-1].expressions),this.$={function:o[a-3],expression:o[a-1].expressions[o[a-1].expressions.length-1].expression,types:["UDFREF"]};break;case 552:ed.valueExpressionSuggest(),ed.applyArgumentTypesToSuggestions(o[a-3],1),this.$={function:o[a-3],types:["UDFREF"]};break;case 553:ed.addFunctionArgumentLocations(o[a-4],o[a-2].expressions),ed.suggestValueExpressionKeywords(o[a-2].expressions[o[a-2].expressions.length-1].expression),this.$={function:o[a-4],types:["UDFREF"]};break;case 554:ed.addFunctionArgumentLocations(o[a-3],o[a-1].expressions),ed.applyArgumentTypesToSuggestions(o[a-3],o[a-1].activePosition),this.$={function:o[a-3],types:["UDFREF"]};break;case 559:var d=o[a-3];ed.extractExpressionText(d,o[a-3],o[a-2],o[a-1]),ed.addFunctionArgumentLocations(o[a-5],[{expression:d,location:{first_line:s[a-3].first_line,last_line:s[a-1].last_line,first_column:s[a-3].first_column,last_column:s[a-1].last_column}}]),this.$={types:[o[a-1].toUpperCase()]};break;case 560:case 565:case 566:case 1053:this.$={types:["T"]};break;case 561:ed.valueExpressionSuggest(),this.$={types:[o[a-1].toUpperCase()]};break;case 562:case 563:ed.valueExpressionSuggest(),this.$={types:["T"]};break;case 564:this.$={types:[o[a-1].toUpperCase()]};break;case 567:ed.suggestValueExpressionKeywords(o[a-3],[{value:"AS",weight:2}]),this.$={types:[o[a-1].toUpperCase()]};break;case 568:ed.suggestValueExpressionKeywords(o[a-2],[{value:"AS",weight:2}]),this.$={types:["T"]};break;case 569:case 570:ed.suggestKeywords(ed.getTypeKeywords()),this.$={types:["T"]};break;case 571:var p=o[a-1].chain[o[a-1].chain.length-1].name.toLowerCase();ed.addFunctionArgumentLocations(p,o[a].expressions,o[a-1].chain),o[a-1].lastLoc&&o[a-1].lastLoc.location&&(o[a-1].lastLoc.type="function",o[a-1].lastLoc.function=p,o[a-1].lastLoc.location={first_line:o[a-1].lastLoc.location.first_line,last_line:o[a-1].lastLoc.location.last_line,first_column:o[a-1].lastLoc.location.first_column,last_column:o[a-1].lastLoc.location.last_column-1},o[a-1].lastLoc!==o[a-1].firstLoc?o[a-1].firstLoc.type="database":delete o[a-1].lastLoc.identifierChain),o[a].expressions&&o[a].expressions.length?this.$={function:p,expression:o[a].expressions[o[a].expressions.length-1].expression,types:["UDFREF"]}:this.$={function:p,types:["UDFREF"]};break;case 572:ed.addFunctionLocation(s[a-1],o[a-1]),o[a].expressions&&o[a].expressions.length?this.$={function:o[a-1],expression:o[a].expressions[o[a].expressions.length-1].expression,types:["UDFREF"]}:this.$={function:o[a-1],types:["UDFREF"]};break;case 575:this.$={types:["COLREF"],columnReference:o[a].chain};break;case 576:this.$={types:["NULL"],text:o[a]};break;case 577:p=o[a-1].chain[o[a-1].chain.length-1].name.toLowerCase(),ed.addFunctionArgumentLocations(p,o[a].expressions,o[a-1].chain),o[a-1].lastLoc.type="function",o[a-1].lastLoc.function=p,o[a-1].lastLoc.location={first_line:o[a-1].lastLoc.location.first_line,last_line:o[a-1].lastLoc.location.last_line,first_column:o[a-1].lastLoc.location.first_column,last_column:o[a-1].lastLoc.location.last_column-1},o[a-1].lastLoc!==o[a-1].firstLoc?o[a-1].firstLoc.type="database":delete o[a-1].lastLoc.identifierChain,o[a].activePosition&&ed.applyArgumentTypesToSuggestions(p,o[a].activePosition),this.$={function:p,types:["UDFREF"]};break;case 578:case 584:case 585:ed.addFunctionLocation(s[a-1],o[a-1]),ed.addFunctionArgumentLocations(o[a-1],o[a].expressions),o[a].activePosition&&ed.applyArgumentTypesToSuggestions(o[a-1],o[a].activePosition),this.$={function:o[a-1],types:["UDFREF"]};break;case 581:o[a].suggestKeywords?this.$={types:["COLREF"],columnReference:o[a],suggestKeywords:o[a].suggestKeywords}:this.$={types:["COLREF"],columnReference:o[a]};break;case 582:case 583:ed.addFunctionLocation(s[a-1],o[a-1]),ed.addFunctionArgumentLocations(o[a-1],o[a].expressions),o[a].expressions&&o[a].expressions.length?this.$={function:o[a-1],expression:o[a].expressions[o[a].expressions.length-1].expression,types:["UDFREF"]}:this.$={function:o[a-1],types:["UDFREF"]};break;case 588:ed.valueExpressionSuggest(),this.$={activePosition:1,expressions:[{expression:{text:""},location:s[a-1]}]};break;case 589:ed.suggestValueExpressionKeywords(o[a-2].expressions[o[a-2].expressions.length-1].expression),this.$=o[a-3];break;case 591:case 593:this.$={activePosition:1,expressions:[{expression:o[a],location:s[a]}]};break;case 592:case 594:this.$={activePosition:o[a-2].activePosition+1,expressions:o[a-2].expressions.concat([{expression:o[a],location:s[a]}])};break;case 595:this.$={activePosition:1,expressions:[{expression:o[a-2],location:s[a-2]}].concat(o[a].expressions)};break;case 596:this.$={activePosition:o[a-4].activePosition+1,expressions:o[a-4].expressions.concat([{expression:o[a-2],location:s[a-2]}]).concat(o[a].expressions)};break;case 597:ed.valueExpressionSuggest(),this.$={activePosition:o[a-2].activePosition+1,expressions:o[a-2].expressions.concat([{expression:{text:""},location:s[a]}])};break;case 598:ed.valueExpressionSuggest(),this.$={activePosition:o[a-4].activePosition+1,expressions:o[a-4].expressions.concat([{expression:{text:""},location:s[a-2]}]).concat(o[a].expressions)};break;case 599:ed.suggestValueExpressionKeywords(o[a-3].expressions[o[a-3].expressions.length-1].expression),this.$={activePosition:o[a-3].activePosition,expressions:o[a-3].expressions.concat(o[a].expressions)};break;case 600:ed.valueExpressionSuggest(),this.$={cursorAtStart:!0,activePosition:1,expressions:[{expression:{text:""},location:s[a-2]}].concat(o[a].expressions)};break;case 601:ed.valueExpressionSuggest(),this.$={cursorAtStart:!0,activePosition:1,expressions:[{expression:{text:""},location:s[a-1]},{expression:{text:""},location:s[a]}]};break;case 602:ed.valueExpressionSuggest(),this.$={activePosition:2,expressions:[{expression:{text:""},location:s[a-1]},{expression:{text:""},location:s[a]}]};break;case 603:ed.valueExpressionSuggest(),this.$={activePosition:2,expressions:[{expression:{text:""},location:s[a-3]},{expression:{text:""},location:s[a-2]}].concat(o[a].expressions)};break;case 615:ed.suggestKeywords(["WHERE"]);break;case 616:ed.suggestKeywords(["SET"]);break;case 632:ed.suggestKeywords(["="]);break;case 641:ed.yy.cursorFound||(ed.yy.result.useDatabase=o[a]);break;case 642:case 881:ed.suggestDatabases();break;case 643:ed.yy.result.useDatabase=o[a-1],o[a-1]===atob("aHVlX2F1dG9jb21wbGV0ZV9wYXJzZXI=")&&console.warn(atob("Q2xvdWRlcmEgMjAxNi0yMDIyIC0gSm9oYW4gQWhsZW4="));break;case 647:case 674:case 676:ed.addStatementLocation(s[a]);break;case 649:case 650:ed.suggestDdlAndDmlKeywords();break;case 664:case 665:this.$={cursorAtStart:!1,suggestFunctions:!0,suggestColumns:!0,suggestAggregateFunctions:!0};break;case 671:case 672:return ed.yy.result;case 673:ed.prepareNewStatement();break;case 675:case 677:ed.addStatementLocation(s[a-3]);break;case 803:case 806:case 895:this.$="";break;case 819:case 823:ed.yy.correlatedSubQuery=!1;break;case 821:case 826:ed.suggestKeywords(["EXISTS"]);break;case 825:ed.suggestKeywords(["NOT EXISTS"]);break;case 836:case 838:case 839:case 841:ed.suggestKeywords(["<","<=","<>","=",">",">="]);break;case 870:case 896:ed.addTableLocation(s[a],[{name:o[a]}]),this.$={identifierChain:[{name:o[a]}]};break;case 871:case 897:ed.addDatabaseLocation(s[a-2],[{name:o[a-2]}]),ed.addTableLocation(s[a],[{name:o[a-2]},{name:o[a]}]),this.$={identifierChain:[{name:o[a-2]},{name:o[a]}]};break;case 873:case 878:ed.suggestDatabases(),this.$={identifierChain:[{name:o[a-2]}]};break;case 874:case 899:ed.suggestTablesOrColumns(o[a-2]);break;case 875:this.$=[{name:o[a]}];break;case 876:this.$=[{name:o[a-2]},{name:o[a-1]}];break;case 877:ed.suggestDatabases({appendDot:!0});break;case 898:ed.suggestTables(),ed.suggestDatabases({prependDot:!0});break;case 901:this.$={identifierChain:o[a-1].identifierChain,alias:o[a]};break;case 904:ed.yy.locations[ed.yy.locations.length-1].type="column";break;case 905:case 1070:ed.addAsteriskLocation(s[a],o[a-2].concat({asterisk:!0}));break;case 907:this.$=[o[a].identifier],ed.yy.firstChainLocation=ed.addUnknownLocation(o[a].location,[o[a].identifier]);break;case 908:ed.yy.firstChainLocation&&(ed.yy.firstChainLocation.firstInChain=!0,delete ed.yy.firstChainLocation),o[a-2].push(o[a].identifier),ed.addUnknownLocation(o[a].location,o[a-2].concat());break;case 909:ed.suggestColumns({identifierChain:o[a-2]}),this.$={suggestKeywords:[{value:"*",weight:1e4}]};break;case 910:ed.suggestColumns({identifierChain:o[a-4]}),this.$={suggestKeywords:[{value:"*",weight:1e4}]};break;case 911:this.$=[o[a].identifier];break;case 912:o[a-2].push(o[a].identifier);break;case 914:ed.suggestColumns({identifierChain:o[a-2]});break;case 915:ed.suggestColumns({identifierChain:o[a-4]});break;case 917:this.$={identifier:{name:o[a]},location:s[a]};break;case 938:case 939:case 963:this.$={types:["BOOLEAN"]},ed.extractExpressionText(this.$,o[a-1],o[a]);break;case 940:case 965:this.$=o[a],ed.extractExpressionText(this.$,o[a-1],o[a]);break;case 941:this.$=o[a],o[a].types=["NUMBER"],ed.extractExpressionText(this.$,o[a-1],o[a]);break;case 942:case 943:case 944:this.$={types:["BOOLEAN"]},ed.extractExpressionText(this.$,o[a-3],o[a-2],o[a-1],o[a]);break;case 945:case 956:this.$={types:["BOOLEAN"]},ed.extractExpressionText(this.$,o[a-5],o[a-4],o[a-3],o[a-2],o[a-1],o[a]);break;case 946:this.$={types:["BOOLEAN"]},ed.yy.correlatedSubQuery=!1;break;case 948:case 949:case 950:case 951:ed.addColRefToVariableIfExists(o[a-2],o[a]),this.$={types:["BOOLEAN"]},ed.extractExpressionText(this.$,o[a-2],o[a-1],o[a]);break;case 952:case 953:case 954:case 955:case 985:case 1043:case 1044:case 979:this.$={types:["BOOLEAN"]};break;case 957:this.$={types:["BOOLEAN"]},ed.extractExpressionText(this.$,o[a-4],o[a-3],o[a-2],o[a-1],o[a]);break;case 958:case 959:case 964:this.$={types:["BOOLEAN"]},ed.extractExpressionText(this.$,o[a-2],o[a-1],o[a]);break;case 960:case 961:case 962:this.$={types:["NUMBER"]},ed.extractExpressionText(this.$,o[a-2],o[a-1],o[a]);break;case 966:this.$=o[a],ed.extractExpressionText(this.$,o[a-2],o[a-1],o[a]);break;case 968:ed.suggestKeywords(["BETWEEN","EXISTS","IN","LIKE","REGEXP","RLIKE"]),this.$={types:["BOOLEAN"]};break;case 969:case 971:case 984:this.$={types:["BOOLEAN"],suggestFilters:o[a].suggestFilters};break;case 970:ed.suggestFunctions(),ed.suggestColumns(),ed.suggestKeywords(["EXISTS"]),this.$={types:["BOOLEAN"]};break;case 972:ed.suggestFunctions({types:["BOOLEAN"]}),ed.suggestColumns({types:["BOOLEAN"]}),this.$={types:["BOOLEAN"]};break;case 973:this.$={types:["T"],suggestFilters:o[a].suggestFilters};break;case 974:ed.suggestFunctions(),ed.suggestColumns(),this.$={types:["T"]};break;case 975:o[a].typeSet||ed.applyTypeToSuggestions({types:["NUMBER"]}),this.$={types:["NUMBER"],suggestFilters:o[a].suggestFilters};break;case 976:ed.suggestFunctions({types:["NUMBER"]}),ed.suggestColumns({types:["NUMBER"]}),this.$={types:["NUMBER"]};break;case 977:ed.suggestKeywords(["FALSE","NOT NULL","NOT TRUE","NOT FALSE","NULL","TRUE"]),this.$={types:["BOOLEAN"]};break;case 978:ed.suggestKeywords(["FALSE","NULL","TRUE"]),this.$={types:["BOOLEAN"]};break;case 980:case 981:case 982:ed.suggestKeywords(["NOT"]),this.$={types:["BOOLEAN"]};break;case 983:ed.valueExpressionSuggest(o[a-5],o[a-3]?"IS NOT DISTINCT FROM":"IS DISTINCT FROM"),this.$={types:["BOOLEAN"]};break;case 987:case 1223:ed.valueExpressionSuggest(),this.$={types:["T"],typeSet:!0};break;case 988:case 989:case 990:case 991:ed.valueExpressionSuggest(o[a],o[a-1]),ed.applyTypeToSuggestions(o[a]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 992:case 993:case 994:case 995:o[a-2].typeSet||(ed.applyTypeToSuggestions(o[a]),ed.addColRefIfExists(o[a])),this.$={types:["BOOLEAN"],suggestFilters:o[a-2].suggestFilters};break;case 996:case 998:case 1021:ed.valueExpressionSuggest(o[a-2],o[a-1]),ed.applyTypeToSuggestions(o[a-2]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 997:ed.valueExpressionSuggest(o[a-2],o[a-1]),ed.applyTypeToSuggestions(o[a-2]),this.$={types:["BOOLEAN"],typeSet:!0,endsWithLessThanOrEqual:!0};break;case 999:ed.valueExpressionSuggest(o[a-2],o[a-1]),ed.applyTypeToSuggestions(o[a-2]),this.$={types:["BOOLEAN"],typeSet:!0,endsWithLessThanOrEqual:"<="===o[a-1]};break;case 1e3:case 1001:case 1002:case 1003:o[a].typeSet||(ed.applyTypeToSuggestions(o[a-2]),ed.addColRefIfExists(o[a-2])),this.$={types:["BOOLEAN"],suggestFilters:o[a].suggestFilters};break;case 1004:o[a].inValueEdit&&(ed.valueExpressionSuggest(o[a-3],o[a-2]+" "+o[a-1]),ed.applyTypeToSuggestions(o[a-3])),o[a].cursorAtStart&&ed.suggestKeywords(["SELECT"]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1005:o[a].inValueEdit&&(ed.valueExpressionSuggest(o[a-2],o[a-1]),ed.applyTypeToSuggestions(o[a-2])),o[a].cursorAtStart&&ed.suggestKeywords(["SELECT"]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1006:case 1007:this.$={types:["BOOLEAN"],suggestFilters:o[a-5].suggestFilters};break;case 1008:case 1009:this.$={types:["BOOLEAN"],suggestFilters:o[a-4].suggestFilters};break;case 1010:o[a-2].types[0]!==o[a].types[0]||o[a-5].typeSet||ed.applyTypeToSuggestions(o[a-2]),this.$={types:["BOOLEAN"],suggestFilters:o[a-5].suggestFilters};break;case 1011:o[a-5].types[0]!==o[a].types[0]||o[a-2].typeSet||ed.applyTypeToSuggestions(o[a-5]),this.$={types:["BOOLEAN"],suggestFilters:o[a-2].suggestFilters};break;case 1012:o[a-5].types[0]!==o[a-2].types[0]||o[a].typeSet||ed.applyTypeToSuggestions(o[a-5]),this.$={types:["BOOLEAN"],suggestFilters:o[a].suggestFilters};break;case 1013:ed.valueExpressionSuggest(o[a-5],o[a-1]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1014:case 1020:ed.suggestValueExpressionKeywords(o[a-1],["AND"]),this.$={types:["BOOLEAN"]};break;case 1015:ed.valueExpressionSuggest(o[a-3],o[a-2]+" "+o[a-1]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1016:o[a-4].types[0]!==o[a-2].types[0]||o[a-4].typeSet||ed.applyTypeToSuggestions(o[a-4]),this.$={types:["BOOLEAN"],suggestFilters:o[a-4].suggestFilters};break;case 1017:o[a-4].types[0]!==o[a-2].types[0]||o[a-2].typeSet||ed.applyTypeToSuggestions(o[a-4]),this.$={types:["BOOLEAN"],suggestFilters:o[a-2].suggestFilters};break;case 1018:o[a-4].types[0]!==o[a-2].types[0]||o[a].typeSet||ed.applyTypeToSuggestions(o[a-4]),this.$={types:["BOOLEAN"],suggestFilters:o[a].suggestFilters};break;case 1019:ed.valueExpressionSuggest(o[a-4],o[a-1]),ed.applyTypeToSuggestions(o[a-4]),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1022:case 1024:case 1026:case 1028:ed.valueExpressionSuggest(void 0,o[a-1]),this.$={types:["BOOLEAN"],typeSet:!0,suggestFilters:!0};break;case 1023:case 1027:ed.addColRefIfExists(o[a]),this.$={types:["BOOLEAN"],suggestFilters:o[a-2].suggestFilters};break;case 1025:case 1029:ed.addColRefIfExists(o[a-2]),this.$={types:["BOOLEAN"],suggestFilters:o[a].suggestFilters};break;case 1030:case 1031:case 1035:case 1036:case 1037:ed.valueExpressionSuggest(void 0,o[a-1]),ed.applyTypeToSuggestions({types:["NUMBER"]}),this.$={types:["NUMBER"],typeSet:!0};break;case 1032:case 1033:case 1034:o[a-2].typeSet||(ed.applyTypeToSuggestions({types:["NUMBER"]}),ed.addColRefIfExists(o[a])),this.$={types:["NUMBER"],suggestFilters:o[a-2].suggestFilters};break;case 1038:case 1039:case 1040:o[a].typeSet||(ed.applyTypeToSuggestions({types:["NUMBER"]}),ed.addColRefIfExists(o[a-2])),this.$={types:["NUMBER"],suggestFilters:o[a].suggestFilters};break;case 1041:this.$={types:["BOOLEAN"],suggestFilters:o[a-1].suggestFilters};break;case 1042:this.$={types:["BOOLEAN"],suggestFilters:o[a-2].suggestFilters};break;case 1045:ed.valueExpressionSuggest(void 0,o[a]),ed.applyTypeToSuggestions({types:["STRING"]}),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1046:ed.valueExpressionSuggest(void 0,o[a-1]+" "+o[a]),ed.applyTypeToSuggestions({types:["STRING"]}),this.$={types:["BOOLEAN"],typeSet:!0};break;case 1048:ed.valueExpressionSuggest(),ed.suggestKeywords(["WHEN"]),this.$={types:["T"],typeSet:!0};break;case 1050:ed.suggestValueExpressionKeywords(o[a-2],["WHEN"]),this.$={types:["T"],typeSet:!0};break;case 1051:this.$=o[a],this.$.suggestFilters=o[a-1].suggestFilters;break;case 1052:this.$={types:["T"],suggestFilters:o[a-1].suggestFilters};break;case 1054:case 1056:o[a].position=1;break;case 1055:o[a].position=o[a-2].position+1,this.$=o[a];break;case 1057:o[a-2].position+=1;break;case 1058:o[a-2].position=1;break;case 1059:o[a-4].position+=1;break;case 1060:ed.valueExpressionSuggest(),o[a-2].position+=1;break;case 1061:ed.valueExpressionSuggest(),o[a-4].position+=1;break;case 1062:ed.suggestValueExpressionKeywords(o[a-3]);break;case 1063:case 1064:ed.valueExpressionSuggest(),this.$={cursorAtStart:!0,position:1};break;case 1065:case 1066:ed.valueExpressionSuggest(),this.$={position:2};break;case 1069:var f=ed.yy.locations[ed.yy.locations.length-1];"variable"!==f.type&&(f.type="column");var g=ed.yy.locations[ed.yy.locations.length-o[a].length];this.$={chain:o[a],firstLoc:g,lastLoc:f};break;case 1076:ed.suggestValues(o[a]);break;case 1077:this.$={types:["NUMBER"],text:o[a]};break;case 1083:case 1085:case 1086:this.$=o[a-1]+o[a];break;case 1084:case 1087:this.$=o[a-2]+o[a-1]+o[a];break;case 1088:this.$=o[a-3]+o[a-2]+o[a-1]+o[a];break;case 1089:/\$\{[^}]*\}/.test(o[a])?(ed.addVariableLocation(s[a],o[a]),this.$={types:["STRING"],columnReference:[{name:o[a]}],text:"'"+o[a]+"'"}):this.$={types:["STRING"]};break;case 1090:/\$\{[^}]*\}/.test(o[a])?(ed.addVariableLocation(s[a],o[a]),this.$={types:["STRING"],columnReference:[{name:o[a]}],text:'"'+o[a]+'"'}):this.$={types:["STRING"],text:'"'+o[a]+'"'};break;case 1091:this.$={types:["BOOLEAN"],text:o[a]};break;case 1092:this.$={partialQuote:"'",missingEndQuote:ed.yy.missingEndQuote};break;case 1093:this.$={partialQuote:'"',missingEndQuote:ed.yy.missingEndQuote};break;case 1100:if(this.$=o[a],ed.yy.latestTablePrimaries.length>0){l=ed.yy.latestTablePrimaries.length-1,u=[];do{var m;(m=ed.yy.latestTablePrimaries[l]).subQueryAlias||u.unshift(m.alias?{identifierChain:m.identifierChain,alias:m.alias}:{identifierChain:m.identifierChain}),l--}while(l>=0&&m.join&&!m.subQueryAlias);u.length>0&&(this.$.suggestJoins={prependJoin:!0,tables:u})}break;case 1107:this.$={primary:o[a-1]},o[a-1].identifierChain&&(o[a]&&(o[a-1].alias=o[a].alias,ed.addTableAliasLocation(o[a].location,o[a].alias,o[a-1].identifierChain)),ed.addTablePrimary(o[a-1])),c=[],o[a]?o[a].suggestKeywords&&(c=o[a].suggestKeywords):c=["AS"],c.length>0&&(this.$.suggestKeywords=c);break;case 1108:this.$={primary:o[a-1]},o[a]&&(this.$.primary.alias=o[a].alias,ed.addTablePrimary({subQueryAlias:o[a].alias}),ed.addSubqueryAliasLocation(o[a].location,o[a].alias,o[a-1].identifierChain)),c=[],o[a]||(c=["AS"]),c.length>0&&(this.$.suggestKeywords=c);break;case 1109:o[a]&&ed.addTableAliasLocation(o[a].location,o[a].alias,o[a-1].identifierChain);break;case 1110:o[a]&&(ed.addTablePrimary({subQueryAlias:o[a].alias}),ed.addSubqueryAliasLocation(o[a].location,o[a].alias));break;case 1120:ed.pushQueryState();break;case 1121:ed.popQueryState();break;case 1123:o[a-1]&&(o[a-2].alias=o[a-1].alias,ed.addTablePrimary({subQueryAlias:o[a-1].alias}),ed.addSubqueryAliasLocation(o[a-1].location,o[a-1].alias,o[a-2].identifierChain)),this.$=o[a-2];break;case 1126:var E=ed.getSubQuery(o[a]);E.columns.forEach((function(e){ed.expandIdentifierChain({wrapper:e}),delete e.linked})),ed.popQueryState(E),this.$=E;break;case 1143:case 1144:case 1145:case 1146:this.$={alias:o[a],location:s[a]};break;case 1153:case 1154:ed.yy.result.suggestFunctions&&ed.suggestAggregateFunctions();break;case 1155:o[a-2]||o[a-1]?o[a-2]||ed.suggestKeywords(["PARTITION BY"]):ed.suggestKeywords([{value:"PARTITION BY",weight:2},{value:"ORDER BY",weight:1}]);break;case 1156:o[a-1]?ed.suggestValueExpressionKeywords(o[a-3]):ed.suggestValueExpressionKeywords(o[a-3],[{value:"ORDER BY",weight:2}]);break;case 1165:delete ed.yy.result.suggestAnalyticFunctions;break;case 1166:c=[],o[a-2].suggestKeywords&&(c=ed.createWeightedKeywords(o[a-2].suggestKeywords,2)),o[a]||(c=c.concat([{value:"RANGE BETWEEN",weight:1},{value:"ROWS BETWEEN",weight:1}])),ed.suggestKeywords(c);break;case 1172:ed.suggestKeywords(["BETWEEN"]);break;case 1173:o[a-2]||o[a-1]?o[a-1]||ed.suggestKeywords(["AND"]):ed.suggestKeywords(["CURRENT ROW","UNBOUNDED PRECEDING"]);break;case 1178:td.popState();break;case 1179:td.begin("hdfs");break;case 1181:ed.suggestHdfs({path:o[a-3]});break;case 1182:ed.suggestHdfs({path:o[a-2]});break;case 1183:ed.suggestHdfs({path:o[a-1]});break;case 1184:case 1185:ed.suggestHdfs({path:""});break;case 1191:ed.suggestKeywords(["PRECEDING"]);break;case 1192:case 1197:ed.suggestKeywords(["ROW"]);break;case 1196:ed.suggestKeywords(["CURRENT ROW","UNBOUNDED FOLLOWING"]);break;case 1198:ed.suggestKeywords(["FOLLOWING"]);break;case 1202:this.$={inValueEdit:!0};break;case 1203:this.$={inValueEdit:!0,cursorAtStart:!0};break;case 1204:case 1205:case 1206:this.$={suggestKeywords:["NOT"]},ed.extractExpressionText(this.$,o[a-1],o[a]);break;case 1210:case 1211:case 1212:ed.suggestFunctions({types:["STRING"]}),ed.suggestColumns({types:["STRING"]}),this.$={types:["BOOLEAN"]};break;case 1213:this.$=ed.findCaseType(o[a-1]),ed.extractExpressionText(this.$,o[a-1],o[a]);break;case 1214:o[a-3].caseTypes.push(o[a-1]),this.$=ed.findCaseType(o[a-3]),ed.extractExpressionText(this.$,o[a-3],o[a-2],o[a-1],o[a]);break;case 1215:this.$=ed.findCaseType(o[a-1]);break;case 1216:ed.suggestValueExpressionKeywords(o[a-1],["END"]),o[a-3].caseTypes.push(o[a-1]),this.$=ed.findCaseType(o[a-3]);break;case 1217:o[a-3].caseTypes.push(o[a-1]),this.$=ed.findCaseType(o[a-3]);break;case 1218:this.$=ed.findCaseType(o[a-2]);break;case 1219:"end"!==o[a].toLowerCase()?ed.suggestValueExpressionKeywords(o[a-3],[{value:"END",weight:3},{value:"ELSE",weight:2},{value:"WHEN",weight:1}]):ed.suggestValueExpressionKeywords(o[a-3],[{value:"ELSE",weight:2},{value:"WHEN",weight:1}]),this.$=ed.findCaseType(o[a-3]);break;case 1220:"end"!==o[a].toLowerCase()?ed.suggestValueExpressionKeywords(o[a-2],[{value:"END",weight:3},{value:"ELSE",weight:2},{value:"WHEN",weight:1}]):ed.suggestValueExpressionKeywords(o[a-2],[{value:"ELSE",weight:2},{value:"WHEN",weight:1}]),this.$=ed.findCaseType(o[a-2]);break;case 1221:o[a-3].caseTypes.push(o[a-1]),this.$=ed.findCaseType(o[a-3]),this.$.suggestFilters=o[a-1].suggestFilters;break;case 1222:ed.valueExpressionSuggest(),this.$=ed.findCaseType(o[a-3]);break;case 1224:ed.valueExpressionSuggest(),ed.suggestKeywords(["WHEN"]),this.$=o[a-1];break;case 1225:ed.valueExpressionSuggest(),ed.suggestKeywords(["WHEN"]),this.$={types:["T"]};break;case 1228:this.$={caseTypes:[o[a]],lastType:o[a]},ed.extractExpressionText(this.$,o[a]);break;case 1229:o[a-1].caseTypes.push(o[a]),this.$={caseTypes:o[a-1].caseTypes,lastType:o[a]},ed.extractExpressionText(this.$,o[a-1],o[a]);break;case 1233:ed.suggestValueExpressionKeywords(o[a-2],["WHEN"]);break;case 1235:this.$=o[a],ed.extractExpressionText(this.$,o[a-3],o[a-2],o[a-1],o[a]);break;case 1236:this.$={caseTypes:[{types:["T"]}],suggestFilters:o[a].suggestFilters};break;case 1237:this.$={caseTypes:[{types:["T"]}],suggestFilters:o[a-1].suggestFilters};break;case 1238:this.$={caseTypes:[o[a]],suggestFilters:o[a-2].suggestFilters};break;case 1239:case 1240:this.$={caseTypes:[o[a]],suggestFilters:o[a].suggestFilters};break;case 1241:ed.suggestKeywords(["WHEN"]),this.$={caseTypes:[{types:["T"]}]};break;case 1242:ed.suggestKeywords(["WHEN"]),this.$={caseTypes:[o[a]]};break;case 1243:case 1244:ed.valueExpressionSuggest(),ed.suggestKeywords(["WHEN"]),this.$={caseTypes:[{types:["T"]}]};break;case 1245:case 1247:ed.valueExpressionSuggest(),this.$={caseTypes:[{types:["T"]}],suggestFilters:!0};break;case 1246:ed.valueExpressionSuggest(),ed.suggestKeywords(["THEN"]),this.$={caseTypes:[{types:["T"]}],suggestFilters:!0};break;case 1248:ed.valueExpressionSuggest(),this.$={caseTypes:[o[a]],suggestFilters:!0};break;case 1249:ed.suggestValueExpressionKeywords(o[a-1],["THEN"]),this.$={caseTypes:[{types:["T"]}]};break;case 1250:ed.suggestValueExpressionKeywords(o[a-2],["THEN"]),this.$={caseTypes:[{types:["T"]}]};break;case 1251:case 1252:case 1253:case 1254:ed.valueExpressionSuggest(),this.$={caseTypes:[{types:["T"]}]}}},table:[e(t,n,{352:1,266:2}),{1:[3]},e(i,o,{341:3,353:4,342:6,343:7,345:8,19:116,155:117,44:118,110:119,168:120,3:121,159:122,46:123,20:125,21:126,22:127,23:128,24:129,25:130,26:131,27:132,28:133,29:134,34:135,35:136,156:137,157:138,169:139,6:144,7:145,9:147,10:148,11:149,13:151,14:152,15:153,17:154,18:155,160:156,161:157,173:158,171:159,36:160,42:161,158:164,38:167,45:168,2:s,4:a,5:c,8:l,12:u,16:h,30:d,32:p,39:f,43:g,54:m,55:E,63:y,77:v,79:b,81:A,85:T,95:C,96:R,107:S,108:_,109:x,112:w,113:I,125:N,126:L,129:O,140:k,142:D,154:F,162:M,163:P,174:B,182:U,190:$,201:H,214:G,215:W,216:V,217:j,218:q,219:z,220:K,221:Y,222:X,226:J,228:Q,232:Z,239:ee,241:te,250:ne,256:re,265:ie,267:oe,270:se,272:ae,273:ce,274:le,297:ue,298:he,299:de,300:pe,301:fe,302:ge,303:me,304:Ee,305:ye,306:ve,307:be,309:Ae,310:Te,321:Ce,324:Re,340:Se,346:_e,355:xe,356:we,357:Ie,358:Ne,359:Le,360:Oe,361:ke,362:De,363:Fe,364:Me,365:Pe,366:Be,367:Ue,368:$e,369:He,370:Ge,371:We,372:Ve,373:je,374:qe,375:ze,376:Ke,377:Ye,378:Xe,379:Je,380:Qe,381:Ze,382:et,383:tt,384:nt,385:rt,386:it,387:ot,388:st,389:at,390:ct,391:lt,392:ut,393:ht,394:dt,395:pt,396:ft,397:gt,398:mt,399:Et}),{344:[1,171],351:[1,170]},{351:[1,172]},e(i,[2,644]),{2:[1,173]},e(i,[2,647]),{344:[1,174],351:[2,674]},{2:[2,687]},{2:[2,688]},{2:[2,689]},{2:[2,690]},{2:[2,691]},{2:[2,692]},{2:[2,693]},{2:[2,694]},{2:[2,695]},{2:[2,696]},{2:[2,697]},{2:[2,698]},{2:[2,699]},{2:[2,700]},{2:[2,701]},{2:[2,702]},{2:[2,703]},{2:[2,704]},{2:[2,705]},{2:[2,706]},{2:[2,707]},{2:[2,708]},{2:[2,709]},{2:[2,710]},{2:[2,711]},{2:[2,712]},{2:[2,713]},{2:[2,714]},{2:[2,715]},{2:[2,716]},{2:[2,717]},{2:[2,718]},{2:[2,719]},{2:[2,720]},{2:[2,721]},{2:[2,722]},{2:[2,723]},{2:[2,724]},{2:[2,725]},{2:[2,726]},{2:[2,727]},{2:[2,728]},{2:[2,729]},{2:[2,730]},{2:[2,731]},{2:[2,732]},{2:[2,733]},{2:[2,734]},{2:[2,735]},{2:[2,736]},{2:[2,737]},{2:[2,738]},{2:[2,739]},{2:[2,740]},{2:[2,741]},{2:[2,742]},{2:[2,743]},{2:[2,744]},{2:[2,745]},{2:[2,746]},{2:[2,747]},{2:[2,748]},{2:[2,749]},{2:[2,750]},{2:[2,751]},{2:[2,752]},{2:[2,753]},{2:[2,754]},{2:[2,755]},{2:[2,756]},{2:[2,757]},{2:[2,758]},{2:[2,759]},{2:[2,760]},{2:[2,761]},{2:[2,762]},{2:[2,763]},{2:[2,764]},{2:[2,765]},{2:[2,766]},{2:[2,767]},{2:[2,768]},{2:[2,769]},{2:yt,5:[1,177],30:vt,31:176,59:178,63:bt,113:At,228:Tt,354:181,355:Ct,356:Rt},{2:[2,771]},{2:[2,772]},{2:[2,773]},{2:[2,774]},{2:[2,775]},{2:[2,776]},{2:[2,777]},{2:[2,778]},{2:[2,779]},{2:[2,780]},{2:[2,781]},{2:[2,782]},{2:[2,783]},{2:[2,784]},{2:[2,785]},{2:[2,786]},{2:[2,787]},{2:[2,788]},{2:[2,789]},{2:[2,790]},{2:[2,791]},{2:[2,792]},{2:[2,793]},e(i,[2,678]),e(i,[2,679]),e(i,[2,680]),e(i,[2,650],{2:[1,185]}),{5:[1,186],79:St,169:187,171:189,241:te},e(i,[2,652]),e(i,[2,653]),e(i,[2,654]),e(i,[2,655]),e(i,[2,15]),e(i,[2,16]),e(i,[2,17]),e(i,[2,18]),e(i,[2,19]),e(i,[2,20]),e(i,[2,21]),e(i,[2,22]),e(i,[2,23]),e(i,[2,24]),e(i,[2,27]),e(i,[2,28]),e(i,[2,245]),e(i,[2,246]),e(_t,xt,{170:190,172:191,261:192,262:193,263:194,264:195,265:wt}),e([2,81,85,109,125,182,190,201,226,232,265,267,344,351],It),e([2,32,43,54,55,63,77,79,81,85,95,96,107,108,109,112,113,125,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,256,265,267,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,344,351,355,356,357,358,361,362,363,364,365,368,374,375,376,380,383,385,386,392,395,396,398,448],[2,797]),{59:202,63:bt,113:At,119:201,175:197,176:198,177:199,178:200,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{5:[1,204],39:[1,205],47:[1,206]},e(i,[2,2]),e(i,[2,3]),{5:[1,207],39:[1,210],47:[1,211],57:208,63:Lt,371:Ot,389:kt},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),{5:[1,214],39:[1,217],47:[1,218],57:215,63:Dt,371:Ot,389:kt},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),e(i,[2,13]),e(i,[2,14]),e(i,[2,248]),e(i,[2,249]),e(Ft,[2,267],{169:220,79:[1,219],241:Mt}),e(Ft,xt,{263:194,170:222,261:223,265:Pt}),{5:[1,226],37:225,125:Bt},{5:[1,229],16:[1,230],43:[1,228]},{5:[1,232],39:[1,231]},{5:[1,234],59:233,63:bt,113:At,228:Tt,354:181,355:Ct,356:Rt},e(i,[2,247]),{5:[1,237],59:202,63:bt,113:At,119:244,228:Tt,325:235,328:236,331:238,332:239,333:240,334:241,354:181,355:Ct,356:Rt,364:Ut,425:245,436:242,437:243},e([2,5,54,55,63,79,95,96,107,112,113,228,256,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,348,355,356,357,358,361,364,368,376,395,396,399],$t,{242:247,30:Ht,250:Gt}),e(i,[2,30],{37:250,125:Bt}),e(i,[2,38]),{5:[1,251],163:[1,252]},{1:[2,671]},e(t,n,{266:253}),{1:[2,672]},e(i,[2,645]),e(Wt,n,{266:254}),e(i,[2,25]),{32:[1,255],270:[1,256]},e(i,[2,12]),e(Vt,[2,493]),e(jt,[2,684]),e(jt,[2,685]),e(jt,[2,686]),e(jt,[2,681]),e(jt,[2,682]),e(jt,[2,683]),e(i,[2,649]),e(i,[2,651]),e(_t,xt,{261:192,262:193,263:194,264:195,170:257,172:258,265:wt}),{44:259,46:260,168:261,169:139,171:159,173:158,174:B,241:te},e(Ft,xt,{263:194,261:223,170:262,265:Pt}),e(Ft,[2,263]),e(Ft,[2,271]),e(_t,qt,{263:263,264:264,265:wt}),e(Ft,[2,475]),e(zt,[2,476]),e(Ft,[2,478],{263:194,261:265,265:Pt}),e([5,30,241,250],n,{266:266}),e([5,79,241],Kt,{85:[1,267]}),e(Yt,[2,273]),e(Xt,[2,274]),e(Yt,[2,276],{85:[1,268]}),{5:[1,270],43:[1,269]},e(jt,[2,893]),{56:Jt,364:Qt},e(i,[2,1]),{5:[1,275],40:273,41:274,59:202,63:bt,113:At,119:276,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277},{5:[1,280],40:278,41:279,59:202,63:bt,113:At,119:276,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277},e(i,[2,4]),e([5,63,113,228,344,351,355,356],Zt,{58:281,61:282,309:en}),{59:284,63:bt,113:At,228:Tt,354:181,355:Ct,356:Rt},e(tn,Zt,{58:285,61:286,309:en}),e(tn,Zt,{58:287,61:288,309:en}),e(nn,[2,800]),e(nn,[2,801]),e(i,[2,8]),e(rn,on,{150:289,152:290,309:sn}),{59:292,63:bt,113:At,228:Tt,354:181,355:Ct,356:Rt},e(tn,on,{150:293,152:294,309:sn}),e(tn,on,{150:295,152:296,309:sn}),{44:297,168:298,169:299,174:an,241:Mt},e(Ft,xt,{263:194,261:223,170:301,265:Pt}),e([2,54,55,63,79,95,96,107,112,113,228,256,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,348,355,356,357,358,361,364,368,376,395,396],$t,{242:302,30:Ht,250:Gt}),e(Ft,[2,270]),e(Ft,qt,{263:263,265:Pt}),e([30,241,250],n,{266:303}),e(i,cn,{5:[1,304]}),e(i,[2,32]),{79:[1,305]},{5:[1,307],44:306,46:308,168:261,169:139,171:159,173:158,174:B,241:te},e(i,[2,39]),{5:[1,309]},e(tn,on,{150:310,152:311,309:sn}),e(i,[2,503]),e(i,ln,{5:[1,312]}),e(i,[2,642]),e(i,[2,618],{5:[1,314],16:[1,313]}),e(i,[2,617],{16:[1,315]}),e(i,[2,619]),e(un,[2,620]),e(hn,[2,621]),e(un,[2,622]),e(hn,[2,623]),e(un,[2,900],{354:181,59:202,119:316,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(hn,[2,902],{354:181,59:202,119:317,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(dn,pn,{270:[1,318]}),e(fn,[2,898]),{56:Jt,364:Qt,403:[1,319]},{2:gn,5:[1,323],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:333,112:Tn,113:At,119:377,138:328,141:332,227:371,228:Tt,243:320,245:321,247:322,249:324,253:325,254:327,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,347:326,348:Hn,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Yn,[2,422]),e(Yn,[2,423]),e(i,[2,31]),e(i,[2,251]),e(tn,Xn,{164:403,39:Jn}),e(i,o,{342:6,343:7,19:116,155:117,44:118,110:119,168:120,3:121,159:122,46:123,20:125,21:126,22:127,23:128,24:129,25:130,26:131,27:132,28:133,29:134,34:135,35:136,156:137,157:138,169:139,6:144,7:145,9:147,10:148,11:149,13:151,14:152,15:153,17:154,18:155,160:156,161:157,173:158,171:159,36:160,42:161,158:164,38:167,45:168,341:405,345:406,2:s,4:a,5:c,8:l,12:u,16:h,30:d,32:p,39:f,43:g,54:m,55:E,63:y,77:v,79:b,81:A,85:T,95:C,96:R,107:S,108:_,109:x,112:w,113:I,125:N,126:L,129:O,140:k,142:D,154:F,162:M,163:P,174:B,182:U,190:$,201:H,214:G,215:W,216:V,217:j,218:q,219:z,220:K,221:Y,222:X,226:J,228:Q,232:Z,239:ee,241:te,250:ne,256:re,265:ie,267:oe,270:se,272:ae,273:ce,274:le,297:ue,298:he,299:de,300:pe,301:fe,302:ge,303:me,304:Ee,305:ye,306:ve,307:be,309:Ae,310:Te,321:Ce,324:Re,340:Se,346:_e,355:xe,356:we,357:Ie,358:Ne,359:Le,360:Oe,361:ke,362:De,363:Fe,364:Me,365:Pe,366:Be,367:Ue,368:$e,369:He,370:Ge,371:We,372:Ve,373:je,374:qe,375:ze,376:Ke,377:Ye,378:Xe,379:Je,380:Qe,381:Ze,382:et,383:tt,384:nt,385:rt,386:it,387:ot,388:st,389:at,390:ct,391:lt,392:ut,393:ht,394:dt,395:pt,396:ft,397:gt,398:mt,399:Et}),e(i,o,{342:6,343:7,19:116,155:117,44:118,20:125,21:126,22:127,23:128,24:129,25:130,26:131,27:132,28:133,29:134,34:135,35:136,156:137,157:138,158:164,168:298,169:299,341:407,36:409,42:410,2:s,4:Qn,8:Zn,12:er,16:tr,30:d,32:p,39:f,43:g,54:m,55:E,63:y,77:v,79:b,81:A,85:T,95:C,96:R,107:S,108:_,109:x,112:w,113:I,125:N,126:L,129:O,140:k,142:D,154:F,162:nr,163:P,174:an,182:U,190:$,201:H,214:G,215:W,216:V,217:j,218:q,219:z,220:K,221:Y,222:X,226:J,228:Q,232:Z,239:ee,241:Mt,250:ne,256:re,265:ie,267:oe,270:se,272:ae,273:ce,274:rr,297:ue,298:he,299:de,300:pe,301:fe,302:ge,303:me,304:Ee,305:ye,306:ve,307:be,309:Ae,310:Te,321:Ce,324:ir,340:or,355:xe,356:we,357:Ie,358:Ne,359:Le,360:Oe,361:ke,362:De,363:Fe,364:Me,365:Pe,366:Be,367:Ue,368:$e,369:He,370:Ge,371:We,372:Ve,373:je,374:qe,375:ze,376:Ke,377:Ye,378:Xe,379:Je,380:Qe,381:Ze,382:et,383:tt,384:nt,385:rt,386:it,387:ot,388:st,389:at,390:ct,391:lt,392:ut,393:ht,394:dt,395:pt,396:ft,397:gt,398:mt}),{33:418,51:421,54:sr,55:ar,59:419,63:bt,96:[1,424],113:At,227:425,228:Tt,270:Rn,271:420,272:[1,422],273:[1,423],354:181,355:Ct,356:Rt,358:[1,426],395:zn,396:Kn,401:428,404:429,457:[1,427],462:381,463:382},{59:432,63:bt,113:At,228:Tt,354:181,355:Ct,356:Rt},e(Ft,[2,261]),e(Ft,[2,266]),{81:[1,433]},{81:[1,434]},{79:St,169:187,171:189,241:te},e(Ft,[2,265]),e(zt,[2,477]),e(Ft,[2,479],{263:194,261:435,265:Pt}),e(Ft,[2,480],{263:263,265:Pt}),{5:[1,437],30:Ht,241:$t,242:436,250:Gt},{59:202,63:bt,113:At,119:201,177:438,178:439,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{59:202,63:bt,113:At,119:441,175:440,177:199,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{79:[1,442]},e(cr,[2,281]),{364:[1,443]},e(jt,[2,895]),e([5,125],[2,34]),e(lr,[2,35]),e(lr,[2,36]),e([5,16,43,54,55,63,81,85,113,125,140,154,190,201,214,215,216,217,218,219,220,221,222,226,228,232,265,267,344,351,355,356,364],ur,{270:[1,444]}),e(hr,[2,872],{270:[1,445]}),e([5,16,43],[2,43]),e(i,[2,44]),e(i,[2,45]),e(i,dr,{354:181,59:446,5:[1,447],63:bt,113:At,228:Tt,355:Ct,356:Rt}),e(i,[2,57],{354:181,59:448,63:bt,113:At,228:Tt,355:Ct,356:Rt}),{5:[1,450],95:[1,449]},e(i,[2,64]),{5:[1,453],59:202,63:bt,64:451,65:452,66:454,69:455,72:456,75:457,113:At,119:458,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:459},e(i,[2,68]),{5:[1,461],59:202,63:bt,72:460,75:462,113:At,119:458,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:459},e(i,[2,207]),e(i,[2,224],{354:181,59:202,119:463,5:[1,464],63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(i,[2,225],{354:181,59:202,119:465,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),{5:[1,467],376:pr},e(i,[2,230]),{5:[1,469],40:468,41:470,59:202,63:bt,113:At,119:276,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277},e(i,[2,232],{354:181,59:202,40:471,119:472,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),{5:[1,474],40:473,41:475,59:202,63:bt,113:At,119:276,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277},e(i,[2,242],{354:181,59:202,119:472,40:476,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),{81:[1,477]},{79:[1,479],169:478,241:Mt},e(Ft,xt,{170:190,263:194,261:223,265:Pt}),{59:202,63:bt,113:At,119:441,175:480,177:199,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(Ft,[2,269]),{2:gn,54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,243:481,245:482,253:325,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,347:483,348:Hn,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{30:Ht,241:$t,242:502,250:Gt},e(i,[2,33]),{59:202,63:bt,87:505,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt,418:503,434:504},e(i,[2,37]),e(i,[2,41]),e(i,[2,42]),e(i,[2,40]),{5:[1,507],40:506,41:508,59:202,63:bt,113:At,119:276,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277},e(i,[2,505],{354:181,59:202,119:472,40:509,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(i,[2,643]),{5:Sr,59:202,63:bt,87:365,113:At,119:377,149:516,228:Tt,326:510,329:511,335:512,336:513,337:514,354:181,355:Ct,356:Rt,364:Nt,438:517},e(i,[2,616]),{59:202,63:bt,87:365,113:At,119:377,149:516,228:Tt,326:518,335:512,337:519,354:181,355:Ct,356:Rt,364:Nt,438:517},e(un,[2,901]),e(hn,[2,903]),{59:202,63:bt,113:At,119:520,228:Tt,354:181,355:Ct,356:Rt,364:Ut,399:_r,425:523,427:521},e(xr,[2,854]),e(wr,Ir,{244:524,248:526,181:529,184:530,5:[1,527],85:[1,528],182:Nr,246:Lr}),{181:529,182:Nr,184:530,244:532,248:533},e(zt,[2,411],{244:534,181:535,182:Or}),e(zt,[2,412],{354:181,59:202,253:325,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,138:484,312:492,308:493,438:494,277:495,279:496,294:499,181:535,244:537,243:538,449:548,32:kr,43:It,54:sr,55:ar,63:bt,77:Dr,79:fr,85:Fr,95:Mr,96:bn,107:An,108:Pr,109:Br,112:Tn,113:At,142:Ur,182:Or,228:Tt,256:$r,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,362:Hr,363:Gr,364:Nt,368:Cr,376:Rr,383:Wr,385:Vr,386:jr,395:zn,396:Kn}),{181:535,182:Or,244:553},e(qr,[2,428]),{85:[1,554],182:zr},e(Kr,[2,430],{85:[1,555]}),e([5,81,85,182,246,265,344,351],Yr,{354:181,59:202,401:428,404:429,255:556,257:557,449:571,453:572,119:573,51:574,425:576,406:577,402:581,405:582,32:Xr,43:Jr,54:mn,55:En,63:bt,77:Qr,95:Zr,108:ei,109:ti,113:At,142:ni,228:Tt,256:ri,355:Ct,356:Rt,358:ii,362:oi,363:si,364:Ut,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(qr,pi),e(fi,[2,668]),{85:[1,583]},e(gi,Yr,{354:181,59:202,401:428,404:429,119:573,51:574,255:584,449:597,32:mi,43:Ei,54:sr,55:ar,63:bt,77:Dr,95:yi,108:vi,109:bi,113:At,142:Ai,228:Tt,256:Ti,355:Ct,356:Rt,358:Ci,362:Ri,363:Si,364:Nt,365:_i,380:xi,383:wi,385:Vr,386:jr}),{43:Ii},e(Ni,[2,937]),{5:[1,602],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:600,141:601,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:605,112:Tn,113:At,119:377,138:603,141:604,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Oi,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:607,141:608,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:[1,609],401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Oi,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:611,141:612,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:[1,613],401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{79:ki,446:614,451:615},{5:[1,619],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:617,141:618,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:[1,623],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:621,141:624,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,374:Di,376:qn,395:zn,396:Kn,398:Fi,401:383,402:386,404:384,405:387,438:351,439:364,450:620,454:622,458:359,459:363,460:372,461:376,462:381,463:382,464:385,512:625,513:626,514:628,515:629},e(Mi,[2,967]),e(Ni,Pi,{313:631,316:632,79:Bi}),{79:Bi,313:634,316:635},e(Ni,[2,573]),e(Ni,[2,574]),e(Ni,[2,576]),e(Mi,[2,579]),e(Mi,[2,580]),e(Mi,[2,581]),e(Ui,$i,{270:[1,636]}),{79:[2,555]},{79:[2,556]},{79:[2,557]},{79:[2,558]},e(Ni,Hi,{278:637,284:638,280:639,286:640,321:Gi}),{5:[1,643],280:642,286:644,321:Gi},e(Ni,[2,512]),e(Ni,[2,1075]),e(Mi,[2,513]),e(Mi,[2,515],{280:645,321:Wi}),e(Mi,[2,519]),e(Mi,[2,1076]),e(Mi,[2,1071]),e(Vi,[2,907]),e(ji,[2,520]),e(ji,[2,521]),e(ji,[2,522]),{79:[1,647]},{79:[1,648]},e(Ni,[2,1077]),e(Ni,[2,1078]),e(Mi,[2,523]),e(Mi,[2,524]),e(Mi,[2,525]),e(Mi,[2,1079]),e([2,5,32,43,50,54,55,63,77,79,81,85,95,107,108,109,112,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,270,344,351,355,356,358,362,363,364,365,366,367,369,372,373,374,375,377,380,381,382,383,385,386,388,390,391,392,393,394,397,398,448],[2,917]),{79:[1,649]},{79:[1,650]},{79:[1,651]},e(Ni,[2,1080]),e(Ni,[2,1081]),e(Ni,[2,1089]),e(Ni,[2,1090]),e(Ni,[2,1091]),e(Mi,[2,1092]),e(Mi,[2,1093]),{79:[2,531]},{79:[2,532]},{79:[2,533]},{79:[2,534]},{79:[2,535]},{79:[2,536]},{79:[2,537]},{79:[2,538]},e(Ni,[2,1082],{270:[1,652]}),{395:[1,653],396:[1,654]},{395:[1,655]},{54:qi,56:zi,403:[1,658]},{55:Ki,56:Yi,403:[1,661]},e(Ni,[2,1094]),e(Ni,[2,1095]),{5:[1,662],40:664,41:663,59:202,63:bt,113:At,119:276,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277},e(tn,[2,260]),e(i,[2,648]),{344:[1,666],351:[2,676]},{344:Xi,351:[2,675]},{2:yt,30:vt,31:176,59:178,63:bt,113:At,228:Tt,354:181,355:Ct,356:Rt},{37:667,125:Bt},{43:[1,668]},{39:[1,670],47:[1,671],57:669,63:Lt,371:Ot,389:kt},{39:[1,673],47:[1,674],57:672,63:Dt,371:Ot,389:kt},{39:[1,675]},{59:676,63:bt,113:At,228:Tt,354:181,355:Ct,356:Rt},{59:202,63:bt,113:At,119:678,228:Tt,325:677,331:238,333:240,354:181,355:Ct,356:Rt,364:Nt,436:242},{39:[1,679],47:[1,680]},{163:[1,681]},e(i,[2,26]),e(i,[2,495]),e(i,[2,496],{354:181,59:682,63:bt,113:At,228:Tt,355:Ct,356:Rt}),e(i,[2,498]),e(i,[2,499]),e(i,[2,500]),e(i,[2,501]),e(Ji,[2,1072]),{227:683,270:Rn,395:zn,396:Kn,462:381,463:382},{227:684,270:Rn,395:zn,396:Kn,462:381,463:382},e(Qi,[2,808]),e(Qi,[2,809]),{54:qi,56:zi},{55:Ki,56:Yi},e(Vt,[2,494]),e(Ft,xt,{263:194,261:223,170:685,265:Pt}),e(Ft,[2,264]),e(Ft,[2,481],{263:263,265:Pt}),{169:686,171:687,241:te},e(zt,[2,483],{169:688,241:Mt}),e(Xt,[2,275]),e(Yt,[2,277],{85:[1,689]}),e(Yt,[2,278],{85:Zi}),{43:[1,691]},e(eo,to,{179:692,110:693,180:694,475:695,5:c,399:Et}),e(jt,[2,894]),{59:202,63:bt,113:At,119:696,228:Tt,354:181,355:Ct,356:Rt,364:Ut,399:_r,425:523,427:697},{59:202,63:bt,113:At,119:698,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(no,ro,{60:699,62:700,48:701,52:702,49:703,53:704,50:[1,705]}),e(i,[2,56],{354:181,59:706,63:bt,113:At,228:Tt,355:Ct,356:Rt}),e(i,[2,59]),{5:[1,708],376:io},e(Ji,[2,825]),e(i,[2,65]),e(i,[2,66]),e(i,[2,67]),e(oo,so,{67:709,70:710,124:711,125:[1,712]}),e(ao,so,{124:711,67:713,125:co}),e(lo,uo,{73:715,74:716,76:717,78:719,77:[1,718],79:[1,720]}),e(ho,uo,{76:717,73:721,77:po,79:fo}),e(go,mo,{270:[1,724]}),e(Eo,[2,877],{270:[1,725]}),e(yo,vo,{144:726,145:727,146:728,79:[1,729]}),e(i,[2,205],{354:181,59:202,72:730,119:731,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(bo,vo,{146:728,144:732,79:Ao}),e(i,To,{151:734,5:[1,735],412:Co}),e(i,[2,226],{354:181,59:202,119:737,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(i,To,{151:738,412:Co}),e(rn,[2,819]),e([63,113,228,344,351,355,356,364],[2,821]),e(no,Ro,{153:739,154:So}),e(i,[2,233]),e(i,Ro,{153:741,154:So}),e(i,Ro,{153:742,154:So}),e(hr,ur,{270:[1,743]}),e(i,[2,239]),e(i,[2,240],{354:181,59:202,119:472,40:744,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(i,[2,244]),e(i,[2,243]),e(Ft,[2,268]),e(Ft,xt,{263:194,261:223,170:257,265:Pt}),{44:259,168:298,169:299,174:an,241:Mt},e([79,241],Kt,{85:Zi}),e(zt,Ir,{244:524,181:535,85:[1,745],182:Or,246:Lr}),{181:535,182:Or,244:532},{85:[1,746],182:zr},e([2,81,85,182,246,265,344,351],Yr,{354:181,59:202,401:428,404:429,255:556,449:571,119:573,51:574,32:_o,43:Ei,54:sr,55:ar,63:bt,77:Dr,95:xo,108:wo,109:Io,113:At,142:No,228:Tt,256:Lo,355:Ct,356:Rt,358:Oo,362:ko,363:Do,364:Nt,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:760,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:761,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:762,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:763,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{79:Uo,446:614},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:765,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:766,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,398:$o,401:383,404:384,438:494,450:620,458:359,460:372,462:381,463:382,464:385,512:767,514:628},e(Ho,Pi,{313:631,79:Go}),{79:Go,313:634},e([2,32,43,54,55,63,77,79,81,85,95,108,109,113,129,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,382,383,385,386,388,392,398,448],$i,{270:[1,770]}),e(Ho,Hi,{278:637,280:639,321:Wi}),{280:642,321:Wi},{79:[1,771]},{79:[1,772]},{79:[1,773]},{79:[1,774]},{79:[1,775]},{169:686,241:Mt},{81:[1,776],85:[1,777]},e(Wo,[2,882]),{32:[1,778]},e(i,Vo,{5:[1,779]}),e(i,[2,504],{354:181,59:202,119:472,40:780,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(i,[2,506]),e(i,[2,830],{275:781,37:782,125:Bt}),e(jo,qo,{327:783,330:784,85:[1,785],182:[1,786]}),e(zo,qo,{327:787,182:Ko}),e(Yo,[2,624]),e(Xo,[2,626],{85:[1,789]}),{5:[1,791],32:[1,790]},e(Jo,[2,633]),e([5,32],[2,634]),e(Qo,[2,904],{270:[1,792]}),e(zo,qo,{327:793,85:Zo,182:Ko}),{32:[1,795]},e(dn,[2,897]),e(fn,[2,899]),e(xr,[2,852]),e(xr,[2,853]),e(zt,[2,408]),e(zt,[2,410]),e(zt,[2,413]),e(zt,[2,418],{354:181,59:202,253:325,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,138:484,312:492,308:493,438:494,277:495,279:496,294:499,181:535,244:796,243:798,54:sr,55:ar,63:bt,79:fr,85:[1,797],95:gr,96:bn,107:An,112:Tn,113:At,182:Or,228:Tt,256:Cn,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),{2:gn,5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:801,112:Tn,113:At,119:377,138:328,141:332,227:371,228:Tt,253:799,254:802,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,347:800,348:Hn,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(es,ts,{251:803,252:805,258:806,259:807,260:808,5:[1,804],267:ns}),e(rs,ts,{251:810,258:811,260:812,267:is}),{5:[1,815],40:829,41:831,59:202,63:bt,79:ki,113:At,119:276,183:814,185:816,186:817,187:818,207:821,211:823,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277,446:830,451:832,465:819,466:820,467:822,468:824,469:825,470:826,471:827,472:828},e(zt,[2,409]),e(zt,[2,420]),e(zt,[2,414]),e(rs,ts,{251:803,258:811,260:812,267:is}),{40:829,59:202,63:bt,79:Uo,113:At,119:472,183:833,186:817,207:834,228:Tt,354:181,355:Ct,356:Rt,364:Nt,446:830,465:819,467:822,469:825,470:835},e(zt,[2,415]),e(Kr,[2,431],{85:os}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,243:837,253:325,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:838,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:839,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:840,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:841,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:842,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:843,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(gi,pi,{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:844,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:845,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Mi,[2,1045]),{54:sr,55:ar,59:202,63:bt,77:Dr,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:760,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,385:Vr,386:jr,395:zn,396:Kn,401:383,404:384,438:494,449:846,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:847,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:848,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:849,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(zt,[2,419]),{5:ss,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:852,112:Tn,113:At,119:377,138:328,141:332,227:371,228:Tt,243:850,247:851,253:325,254:327,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,243:854,253:325,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(qr,[2,443]),e(gi,[2,447]),e(as,cs,{445:855,5:[1,856],95:[1,857]}),{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:858,141:860,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:859,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:863,141:865,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:864,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:866,141:868,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:867,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:869,141:871,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:870,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:[1,875],77:Qr,365:[1,873],380:[1,872],385:hi,386:di,449:874,453:876},{79:[1,877],452:878},{5:[1,881],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:879,141:880,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:882,141:884,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:883,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:885,141:887,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:886,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:888,141:890,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:889,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:891,141:893,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:892,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:894,141:896,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:895,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Ni,[2,963]),e(Mi,[2,1043]),e(ls,[2,1143]),e(ls,[2,1144]),{5:[1,901],51:898,54:mn,55:En,59:202,63:bt,113:At,119:897,228:Tt,354:181,355:Ct,356:Rt,364:Ut,401:428,402:581,404:429,405:582,406:900,425:899},e(us,[2,1147]),e(us,[2,1148]),{5:hs,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:902,141:903,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,425:906,426:904,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:hs,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:907,141:908,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,425:906,426:909,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:hs,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:910,141:911,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,425:906,426:912,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(us,[2,810]),e(us,[2,811]),{2:ds},e(gi,[2,445]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:914,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:915,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:916,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:917,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{77:Dr,365:[1,919],380:[1,918],385:Vr,386:jr,449:920},{79:[1,921]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:922,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:923,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:924,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:925,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:926,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:927,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Mi,[2,1041]),{51:898,54:sr,55:ar,59:202,63:bt,113:At,119:897,228:Tt,354:181,355:Ct,356:Rt,364:Nt,401:428,404:429},{59:202,63:bt,113:At,119:928,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(ps,fs,{449:571,453:572,32:Xr,77:Qr,108:ei,109:ti,142:ni,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(gs,[2,969],{449:597,32:mi,77:Dr,108:vi,109:bi,142:Ai,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),e(ms,[2,970],{449:548,32:kr,77:Dr,108:Pr,109:Br,142:Ur,256:Es,363:Gr,385:Vr,386:jr}),e(ps,ys,{449:571,453:572,32:Xr,77:Qr,108:ei,109:ti,142:ni,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(gs,[2,971],{449:597,32:mi,77:Dr,108:vi,109:bi,142:Ai,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),e(Mi,[2,972]),e([2,32,43,54,55,63,79,81,85,95,96,107,108,109,112,113,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,256,265,267,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,344,351,355,356,357,358,361,362,363,364,365,368,374,375,376,380,383,392,395,396,398,448],It,{449:548,77:Dr,385:Vr,386:jr}),e(ps,vs,{449:571,453:572,32:Xr,77:Qr,108:ei,109:ti,142:ni,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(gs,[2,973],{449:597,32:mi,77:Dr,108:vi,109:bi,142:Ai,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),e(Mi,[2,974]),{32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr,449:548},e(As,Ts,{449:571,453:572}),e(Cs,[2,975],{449:597}),e(Mi,[2,976]),e(Ni,[2,946]),e(Mi,[2,985]),e(eo,to,{475:695,446:830,179:931,470:932,180:933,110:934,5:c,79:Uo,399:Et}),{32:Xr,77:Qr,81:Rs,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di,449:571,453:572},{2:Ss,32:mi,77:Dr,81:_s,83:936,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr,449:597},{2:Ss,32:kr,77:Dr,81:_s,83:939,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr,449:548},e(Ni,[2,965]),{5:[1,942],32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,374:Di,380:ci,382:li,383:ui,385:hi,386:di,398:Fi,449:571,450:940,453:572,454:941,512:625,513:626,514:628,515:629},e(Mi,[2,1047]),{2:xs,32:kr,54:sr,55:ar,59:202,63:bt,77:Dr,79:fr,87:365,95:Mr,96:bn,107:An,108:Pr,109:Br,112:Tn,113:At,119:377,138:946,142:Ur,227:371,228:Tt,256:Es,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,362:Hr,363:Gr,364:Nt,368:Cr,374:ws,375:Is,376:Rr,383:Wr,385:Vr,386:jr,392:Ns,395:zn,396:Kn,398:$o,401:383,404:384,438:494,449:548,450:944,455:943,458:359,460:372,462:381,463:382,464:385,512:767,514:628},{2:xs,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,375:Is,380:xi,383:wi,385:Vr,386:jr,398:$o,449:597,450:950,455:951,512:767,514:628},{5:[1,954],374:[1,953],375:Ls,398:Fi,514:955,515:956},{2:xs,374:[1,958],375:Is,455:957},{5:[1,959]},e(Os,[2,1228]),e(ks,[2,1230],{514:628,512:960,398:$o}),{5:[1,964],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:961,141:962,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,392:[1,963],395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Ni,[2,571]),e(Mi,[2,577]),{5:Li,54:mn,55:En,59:202,63:bt,79:yn,81:Ds,85:Fs,87:365,95:vn,96:bn,107:An,110:967,112:Tn,113:At,119:377,138:969,141:970,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,295:966,296:968,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Ni,[2,572]),e(Mi,[2,578]),{59:202,63:bt,87:973,113:At,119:377,228:Tt,256:Ms,354:181,355:Ct,356:Rt,364:Ut,399:_r,425:523,427:974},e(Ni,[2,510]),e(Mi,[2,514]),e(Ni,[2,605]),e(Mi,[2,606]),{59:202,63:bt,79:[1,978],113:At,119:975,228:Tt,322:976,323:977,354:181,355:Ct,356:Rt,364:Nt},e(Ni,[2,511]),e(Mi,[2,517]),e(Mi,[2,518]),e(Mi,[2,516]),{59:202,63:bt,79:[1,979],113:At,119:975,228:Tt,322:976,354:181,355:Ct,356:Rt,364:Nt},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,81:Ps,85:Fs,87:365,95:vn,96:bn,107:An,110:982,112:Tn,113:At,119:377,138:969,141:970,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,295:981,296:983,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,43:[1,988],54:mn,55:En,59:202,63:bt,79:yn,81:Bs,87:365,95:vn,96:bn,107:An,110:986,112:Tn,113:At,119:377,138:984,141:987,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e([5,54,55,63,79,81,85,95,96,107,112,113,228,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,355,356,357,358,361,364,368,376,395,396,399],$t,{242:989,30:Ht,250:Gt}),e([5,54,55,63,79,85,95,96,107,112,113,228,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,355,356,357,358,361,364,368,376,395,396,399],$t,{242:992,30:Ht,81:Us,250:Gt,256:$s}),e([5,54,55,63,79,95,96,107,112,113,228,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,355,356,357,358,361,364,368,376,395,396,399],$t,{242:993,30:Ht,81:Hs,250:Gt}),e(Ni,[2,1083],{395:[1,995],396:[1,996]}),e(Ni,[2,1085]),{395:[1,997]},e(Ni,[2,1086]),{54:Gs},e(Ws,[2,803]),e(Vs,[2,804]),{55:js},e(Ws,[2,806]),e(Vs,[2,807]),e(i,[2,252]),e(i,[2,253],{140:[1,1e3]}),{5:[1,1001],140:qs},e(Wt,n,{266:1003}),e(Wt,n,{266:1004}),e(i,cn),{44:306,168:298,169:299,174:an,241:Mt},e(Ji,Zt,{58:1005,309:zs}),e(Ks,Zt,{58:1007,309:zs}),e(Ks,Zt,{58:1008,309:zs}),e(Ks,on,{150:1009,309:Ys}),e(Ks,on,{150:1011,309:Ys}),e(Ks,on,{150:1012,309:Ys}),e(Ks,on,{150:1013,309:Ys}),e(i,ln),{16:[1,1014]},e([16,63,113,228,355,356,364],pn,{270:[1,1015]}),{40:273,59:202,63:bt,113:At,119:472,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{40:278,59:202,63:bt,113:At,119:472,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(Ks,Xn,{164:1016,39:Jn}),e(i,[2,497]),e(Ji,[2,1073]),e(Ji,[2,1074]),e(Ft,[2,262]),e(zt,[2,482]),e(zt,[2,485]),e(zt,[2,484]),{59:202,63:bt,113:At,119:441,175:1017,177:199,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{59:202,63:bt,113:At,119:441,177:438,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{79:[1,1018]},{81:[1,1019]},{2:Ss,81:_s,83:1020},{2:Ss,81:_s,83:1021},{44:1036,46:1037,168:261,169:139,171:159,173:158,174:B,241:te,477:1022,478:1023,479:1024,480:1025,481:1026,482:1027,483:1028,484:1029,485:1030,486:1031,487:1032,488:1033,489:1034,490:1035},e([2,5,16,43,54,55,63,81,85,113,125,140,154,190,201,214,215,216,217,218,219,220,221,222,226,228,232,265,267,344,351,355,356,364],[2,871]),e(hr,[2,874]),e(hr,[2,873]),e(i,Xs,{5:[1,1038]}),{2:[1,1039]},e(no,[2,62]),{2:[2,63]},e([2,5,43,81,85,109,344,351],[2,47]),{2:[2,49]},{51:1040,54:[1,1041],55:[1,1042],401:428,404:429},e(i,[2,58]),e(rn,[2,823]),e(Ji,[2,826]),e(i,Js,{68:1043,71:1044,5:[1,1045],43:[1,1046]}),e(i,Js,{68:1047,43:Qs}),e(oo,[2,162]),{5:[1,1049],126:[1,1050]},e(i,Js,{68:1051,43:Qs}),{126:[1,1052]},e(lo,[2,74]),e(ho,[2,75]),e(lo,[2,78]),{5:[1,1054],40:1053,41:1055,59:202,63:bt,113:At,119:276,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277},e(ho,[2,80]),{59:202,63:bt,80:1056,82:1057,84:1058,86:1059,87:1060,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(ho,[2,76]),{40:1053,59:202,63:bt,113:At,119:472,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{59:202,63:bt,80:1061,84:1062,87:1063,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{59:202,63:bt,113:At,119:1064,228:Tt,354:181,355:Ct,356:Rt,364:Ut,399:_r,425:523,427:1065},{59:202,63:bt,113:At,119:1066,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e([5,43],ro,{49:703,48:1067,50:Zs}),e(i,ro,{49:703,48:1069,50:Zs}),e(yo,[2,214]),{59:202,63:bt,87:365,113:At,119:377,147:1071,148:1070,149:1072,228:Tt,354:181,355:Ct,356:Rt,364:Nt,438:517},e(bo,vo,{146:728,144:1073,79:Ao}),e(Eo,mo,{270:[1,1074]}),{43:ro,48:1075,49:703,50:Zs},{59:202,63:bt,87:365,113:At,119:377,147:1076,149:1077,228:Tt,354:181,355:Ct,356:Rt,364:Nt,438:517},e(i,[2,223]),e(i,[2,227]),e(i,[2,817]),e(i,To,{151:1078,412:Co}),e(i,[2,228]),e(i,ea,{5:[1,1079]}),e(no,[2,238]),e(i,[2,234]),e(i,[2,235]),{59:202,63:bt,113:At,119:696,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(i,[2,241]),{2:gn,54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,253:799,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,347:1080,348:Hn,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,243:1081,253:325,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(as,cs,{445:1082,95:[1,1083]}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1084,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1085,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1086,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1087,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{77:Dr,365:[1,1089],380:[1,1088],385:Vr,386:jr,449:874},{79:[1,1090]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1091,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1092,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1093,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1094,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1095,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1096,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(ta,fs,{449:571,32:_o,77:Dr,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(ta,ys,{449:571,32:_o,77:Dr,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(ta,vs,{449:571,32:_o,77:Dr,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(na,Ts,{449:571}),e(eo,to,{446:830,179:931,470:932,475:1097,79:Uo}),{32:_o,77:Dr,81:Rs,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,449:571},{32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,398:$o,449:571,450:940,512:767,514:628},{374:[1,1098],375:Ls,398:$o,514:955},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1099,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,81:Ds,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1100,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{59:202,63:bt,87:973,113:At,119:377,228:Tt,256:Ms,354:181,355:Ct,356:Rt,364:Nt},{54:sr,55:ar,59:202,63:bt,79:fr,81:Ps,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1102,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,81:Bs,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1103,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e([54,55,63,79,81,95,96,107,112,113,228,270,272,273,274,297,298,299,300,301,302,303,304,305,306,307,309,310,355,356,357,358,361,364,368,376,395,396],$t,{242:1104,30:Ht,250:Gt}),e(ra,$t,{242:1105,30:Ht,81:Us,250:Gt,256:$s}),e(ra,$t,{242:1106,30:Ht,81:Hs,250:Gt}),e(no,[2,833]),{59:202,63:bt,87:505,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt,434:1107},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1108,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(i,[2,507]),e(i,[2,508]),e(i,[2,509]),e(i,[2,831]),e(no,ts,{260:812,258:1109,259:1110,267:ns}),e(i,ts,{260:812,258:1111,267:is}),{5:Sr,59:202,63:bt,87:365,113:At,119:377,149:516,228:Tt,335:1112,336:1113,337:514,354:181,355:Ct,356:Rt,364:Nt,438:517},{5:[1,1115],40:829,41:831,59:202,63:bt,79:ki,113:At,119:276,186:1114,187:1116,207:821,211:823,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277,446:830,451:832,465:819,466:820,467:822,468:824,469:825,470:826,471:827,472:828},e(i,ts,{260:812,258:1117,267:is}),{40:829,59:202,63:bt,79:Uo,113:At,119:472,186:1114,207:834,228:Tt,354:181,355:Ct,356:Rt,364:Nt,446:830,465:819,467:822,469:825,470:835},{59:202,63:bt,87:365,113:At,119:377,149:516,228:Tt,326:1118,335:512,337:519,354:181,355:Ct,356:Rt,364:Nt,438:517},{5:Oi,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1121,141:1122,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,338:1119,339:1120,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Jo,[2,632]),{59:202,63:bt,87:973,113:At,119:377,228:Tt,256:[1,1123],354:181,355:Ct,356:Rt,364:Nt},e(i,ts,{260:812,258:1124,267:is}),{59:202,63:bt,87:365,113:At,119:377,149:516,228:Tt,335:1112,337:519,354:181,355:Ct,356:Rt,364:Nt,438:517},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1125,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,338:1119,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(zt,[2,416]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,181:535,182:Or,227:371,228:Tt,243:1127,244:1126,253:325,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Kr,[2,434],{85:os}),e(qr,[2,429]),{85:[1,1128],182:ia},e(Kr,[2,436],{354:181,59:202,253:325,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,138:484,312:492,308:493,438:494,277:495,279:496,294:499,243:1129,43:Ii,54:sr,55:ar,63:bt,79:fr,85:[1,1130],95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,256:Cn,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(Kr,[2,437],{85:[1,1131]}),e(zt,[2,424]),e(oa,ts,{258:811,260:812,251:1132,267:is}),e(zt,sa,{203:1133,204:1134,205:1135,206:1136,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(ga,ma,{188:1145,192:1146,189:1147,190:Ea}),e(ya,ma,{188:1149,189:1150,190:va}),e(es,ba,{2:[1,1153],5:[1,1152]}),{5:[1,1155],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1158,141:1157,227:371,228:Tt,268:1156,269:1154,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(zt,[2,425]),e(ya,ma,{189:1150,188:1159,190:va}),e(Aa,ba),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1160,227:371,228:Tt,268:1156,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e([5,81,190,201,226,232,265,267,344,351],Ta,{85:[1,1161]}),e(Ca,[2,285]),e(Ca,[2,286]),e(Ra,[2,287]),e(Ca,[2,289],{85:[1,1162]}),e(Ra,[2,1098]),e(Sa,[2,1099]),e(_a,xa,{204:1163,213:1164,206:1165,209:1166,210:1174,214:wa,215:ca,216:Ia,217:Na,218:La,219:Oa,220:ka,221:Da}),e(Ra,[2,1101]),e(Sa,[2,1102],{204:1175,206:1176,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(Sa,[2,1103]),e(Fa,Yr,{354:181,59:202,401:428,404:429,119:573,51:574,255:1177,43:Ei,54:sr,55:ar,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e([5,81,85,190,201,214,215,216,217,218,219,220,221,222,226,232,265,267,344,351],Yr,{354:181,59:202,401:428,404:429,119:573,51:574,425:576,406:577,402:581,405:582,255:1178,257:1179,43:Jr,54:mn,55:En,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Ut}),e(Ma,Yr,{354:181,59:202,401:428,404:429,119:573,51:574,255:1180,43:Ei,54:sr,55:ar,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(Ma,Yr,{354:181,59:202,401:428,404:429,119:573,51:574,255:1181,43:Ei,54:sr,55:ar,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(Pa,[2,1112]),e(Pa,[2,1114]),e(Ba,[2,1113]),e(Ba,[2,1115]),e(Ca,Ta,{85:Ua}),e(Sa,xa,{206:1176,204:1183,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(Ma,Yr,{354:181,59:202,401:428,404:429,119:573,51:574,255:1178,43:Ei,54:sr,55:ar,63:bt,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,253:799,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Kr,[2,432],{85:os}),e(Cs,[2,988],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,989],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,990],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,991],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,1022],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,1026],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,1030],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,1031],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Mi,[2,1046]),e(na,$a,{449:571}),e(na,Ha,{449:571}),e(na,Ga,{449:571}),{5:Wa,85:[1,1184],182:Va},{182:[2,661]},{43:Ii,182:[2,664]},e([43,182],It,{354:181,59:202,253:325,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,138:484,312:492,308:493,438:494,277:495,279:496,294:499,243:538,449:548,32:kr,54:sr,55:ar,63:bt,77:Dr,79:fr,85:Fr,95:Mr,96:bn,107:An,108:Pr,109:Br,112:Tn,113:At,142:Ur,228:Tt,256:$r,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,362:Hr,363:Gr,364:Nt,368:Cr,376:Rr,383:Wr,385:Vr,386:jr,395:zn,396:Kn}),e(Kr,[2,433],{85:os}),{96:ja,250:[1,1189],272:qa,273:za},e(Mi,[2,977],{96:[1,1190],272:[1,1192],273:[1,1191]}),e(as,Ka,{5:[1,1193]}),e(Ya,Xa,{449:571,453:572,77:Qr,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(Mi,[2,996]),e(Ja,[2,1e3],{449:597,77:Dr,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),e(Mi,[2,848]),e(Mi,[2,849]),e(Ya,Qa,{449:571,453:572,77:Qr,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(Mi,[2,997]),e(Ja,[2,1001],{449:597,77:Dr,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),e(Ya,Za,{449:571,453:572,77:Qr,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(Mi,[2,998]),e(Ja,[2,1002],{449:597,77:Dr,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),e(Ya,ec,{449:571,453:572,77:Qr,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(Mi,[2,999]),e(Ja,[2,1003],{449:597,77:Dr,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),{79:[1,1194],452:1195},{5:[1,1198],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1196,141:1197,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Ni,[2,964]),e(Mi,[2,968]),e(Mi,[2,1044]),e(eo,to,{354:181,59:202,311:334,315:342,312:343,308:344,276:345,314:346,282:348,317:349,318:350,438:351,277:356,279:357,281:358,458:359,283:360,285:361,287:362,459:363,439:364,87:365,288:366,289:367,290:368,227:371,460:372,291:373,292:374,293:375,461:376,119:377,294:378,462:381,463:382,401:383,404:384,464:385,402:386,405:387,475:695,179:1199,447:1200,180:1201,456:1202,110:1203,138:1204,141:1205,5:Li,54:mn,55:En,63:bt,79:yn,85:tc,95:vn,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,309:Un,310:$n,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et}),e(Mi,[2,1005]),{5:[1,1208],32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di,448:[1,1207],449:571,453:572},{32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr,448:[1,1209],449:597},e(nc,[2,1021],{449:548,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,363:Gr,385:Vr,386:jr}),e(rc,ic,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,363:si,365:ai,380:ci,382:li,385:hi,386:di}),e(Mi,[2,1024]),e(oc,[2,1025],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,363:Si,365:_i,380:xi,385:Vr,386:jr}),e(rc,sc,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,363:si,365:ai,380:ci,382:li,385:hi,386:di}),e(Mi,[2,1028]),e(oc,[2,1029],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,363:Si,365:_i,380:xi,385:Vr,386:jr}),e(As,ac,{449:571,453:572,77:Qr,380:ci,382:li,385:hi,386:di}),e(Mi,[2,1035]),e(Cs,[2,1038],{449:597,77:Dr,380:xi,385:Vr,386:jr}),e(As,cc,{449:571,453:572,77:Qr,380:ci,382:li,385:hi,386:di}),e(Mi,[2,1036]),e(Cs,[2,1039],{449:597,77:Dr,380:xi,385:Vr,386:jr}),e(As,lc,{449:571,453:572,77:Qr,380:ci,382:li,385:hi,386:di}),e(Mi,[2,1037]),e(Cs,[2,1040],{449:597,77:Dr,380:xi,385:Vr,386:jr}),e(ls,[2,1145]),e(ls,[2,1146]),e(us,[2,1149]),e(us,[2,1150]),e(us,[2,1151]),e(As,$a,{449:571,453:572}),e(Cs,[2,1207],{449:597}),e(Mi,[2,1210]),e([2,32,43,54,55,63,81,85,95,108,109,113,142,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,256,265,267,344,351,355,356,358,362,363,364,365,374,375,380,383,392,398,448],[2,850],{449:548,77:Dr,385:Vr,386:jr}),e(Mi,[2,851]),e(As,Ha,{449:571,453:572}),e(Cs,[2,1208],{449:597}),e(Mi,[2,1211]),e(As,Ga,{449:571,453:572}),e(Cs,[2,1209],{449:597}),e(Mi,[2,1212]),e(fi,[2,669]),e(Ja,[2,992],{449:571,77:Dr,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Ja,[2,993],{449:571,77:Dr,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Ja,[2,994],{449:571,77:Dr,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Ja,[2,995],{449:571,77:Dr,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),{79:[1,1210]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1211,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Mi,[2,1042]),e(eo,to,{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,475:1097,447:1212,179:1213,138:1214,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),{32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,448:[1,1215],449:571},e(oc,[2,1023],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,365:Fo,380:Mo,382:Po,385:Vr,386:jr}),e(oc,[2,1027],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,365:Fo,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,1032],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,1033],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(Cs,[2,1034],{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(gi,[2,446]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:844,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{77:Dr,385:Vr,386:jr,449:846},{81:[1,1216]},{43:Ei,51:574,54:sr,55:ar,59:202,63:bt,81:Yr,113:At,119:573,228:Tt,255:1217,354:181,355:Ct,356:Rt,364:Nt,401:428,404:429},{2:Ss,81:_s,83:1218},{2:Ss,81:_s,83:1219},e(Ni,[2,947]),e(Mi,[2,986]),e(uc,[2,855]),e(uc,[2,856]),e(Mi,[2,987]),e(Ni,[2,966]),e(Mi,[2,1049]),{2:xs,54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:946,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,374:ws,375:Is,376:Rr,392:Ns,395:zn,396:Kn,401:383,404:384,438:494,455:1220,458:359,460:372,462:381,463:382,464:385},e(Mi,[2,1048]),e(Mi,[2,1053]),{2:xs,54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1221,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,375:Is,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,455:1222,458:359,460:372,462:381,463:382,464:385},{32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,392:hc,449:571},e(dc,[2,1243],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1224,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(Mi,[2,1226]),e(Mi,[2,1227]),e(Mi,[2,1051]),e(Mi,[2,1052]),e(Ni,[2,1213]),{5:[1,1227],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1225,141:1226,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{2:xs,54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1228,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,375:Is,376:Rr,392:Ns,395:zn,396:Kn,398:$o,401:383,404:384,438:494,455:1229,458:359,460:372,462:381,463:382,464:385,512:1230,514:628},e(Os,[2,1229]),e(ks,[2,1231],{514:628,512:1231,398:$o}),e(Mi,[2,1215]),{2:xs,54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1232,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,375:Is,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,455:1233,458:359,460:372,462:381,463:382,464:385},{2:xs,375:Is,455:1234},e(ks,[2,1234],{514:955,398:$o}),{5:[1,1236],32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di,392:[1,1235],449:571,453:572},e(dc,[2,1236],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr,392:[1,1237]}),{5:[1,1239],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1240,141:1238,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(dc,[2,1245],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,449:548,138:1241,32:kr,54:sr,55:ar,63:bt,77:Dr,79:fr,95:Mr,96:bn,107:An,108:Pr,109:Br,112:Tn,113:At,142:Ur,228:Tt,256:Es,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,362:Hr,363:Gr,364:Nt,368:Cr,376:Rr,383:Wr,385:Vr,386:jr,392:[1,1242],395:zn,396:Kn}),e(Ni,[2,586]),{5:[1,1244],81:pc,85:fc},{2:Ss,81:_s,83:1246,85:gc},{2:Ss,81:_s,83:1248},e(mc,Ec,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(yc,[2,593],{449:597,32:mi,77:Dr,85:[1,1249],95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),{5:c,110:1250,399:Et},e(Ui,[2,1070]),e(Vi,[2,908]),e(Mi,[2,909],{270:[1,1251]}),e(Ni,[2,607]),e(Ni,[2,608]),e(Mi,[2,609]),e(vc,bc,{491:1252,493:1253,110:1254,495:1256,5:c,125:[1,1255],399:Et}),e(vc,bc,{495:1256,491:1257,125:Ac}),e(Tc,[2,550]),{5:[1,1260],81:Cc,85:fc},{2:Ss,81:_s,83:1261,85:gc},{2:Ss,81:_s,83:1262},{5:[1,1264],32:Xr,43:[1,1263],77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di,449:571,453:572},e(Ni,[2,560]),{2:Ss,43:[1,1265],81:_s,83:1266},{2:Ss,32:mi,43:[1,1267],77:Dr,81:_s,83:1268,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr,449:597},{5:[1,1269]},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,81:Rc,85:Fs,87:365,95:vn,96:bn,107:An,110:1272,112:Tn,113:At,119:377,138:969,141:970,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,295:1271,296:1273,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{81:[1,1274]},e(ji,[2,540]),{5:Li,54:mn,55:En,59:202,63:bt,79:yn,85:Fs,87:365,95:vn,96:bn,107:An,110:1276,112:Tn,113:At,119:377,138:969,141:970,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,295:1275,296:1277,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:1279,112:Tn,113:At,119:377,138:1278,141:1280,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(ji,[2,546]),e(Ni,[2,1084]),{395:[1,1281]},e(Ni,[2,1087]),e(Ws,[2,802]),e(Ws,[2,805]),{79:Sc,165:1282,166:1283},e(i,[2,254]),{79:Sc,165:1285,166:1283},e(i,o,{342:6,343:7,19:116,155:117,44:118,20:125,21:126,22:127,23:128,24:129,25:130,26:131,27:132,28:133,29:134,34:135,35:136,156:137,157:138,158:164,168:298,169:299,341:405,36:409,42:410,2:s,4:Qn,8:Zn,12:er,16:tr,30:d,32:p,39:f,43:g,54:m,55:E,63:y,77:v,79:b,81:A,85:T,95:C,96:R,107:S,108:_,109:x,112:w,113:I,125:N,126:L,129:O,140:k,142:D,154:F,162:nr,163:P,174:an,182:U,190:$,201:H,214:G,215:W,216:V,217:j,218:q,219:z,220:K,221:Y,222:X,226:J,228:Q,232:Z,239:ee,241:Mt,250:ne,256:re,265:ie,267:oe,270:se,272:ae,273:ce,274:rr,297:ue,298:he,299:de,300:pe,301:fe,302:ge,303:me,304:Ee,305:ye,306:ve,307:be,309:Ae,310:Te,321:Ce,324:ir,340:or,355:xe,356:we,357:Ie,358:Ne,359:Le,360:Oe,361:ke,362:De,363:Fe,364:Me,365:Pe,366:Be,367:Ue,368:$e,369:He,370:Ge,371:We,372:Ve,373:je,374:qe,375:ze,376:Ke,377:Ye,378:Xe,379:Je,380:Qe,381:Ze,382:et,383:tt,384:nt,385:rt,386:it,387:ot,388:st,389:at,390:ct,391:lt,392:ut,393:ht,394:dt,395:pt,396:ft,397:gt,398:mt}),e(i,o,{342:6,343:7,19:116,155:117,44:118,20:125,21:126,22:127,23:128,24:129,25:130,26:131,27:132,28:133,29:134,34:135,35:136,156:137,157:138,158:164,168:298,169:299,36:409,42:410,341:1286,2:s,4:Qn,8:Zn,12:er,16:tr,30:d,32:p,39:f,43:g,54:m,55:E,63:y,77:v,79:b,81:A,85:T,95:C,96:R,107:S,108:_,109:x,112:w,113:I,125:N,126:L,129:O,140:k,142:D,154:F,162:nr,163:P,174:an,182:U,190:$,201:H,214:G,215:W,216:V,217:j,218:q,219:z,220:K,221:Y,222:X,226:J,228:Q,232:Z,239:ee,241:Mt,250:ne,256:re,265:ie,267:oe,270:se,272:ae,273:ce,274:rr,297:ue,298:he,299:de,300:pe,301:fe,302:ge,303:me,304:Ee,305:ye,306:ve,307:be,309:Ae,310:Te,321:Ce,324:ir,340:or,355:xe,356:we,357:Ie,358:Ne,359:Le,360:Oe,361:ke,362:De,363:Fe,364:Me,365:Pe,366:Be,367:Ue,368:$e,369:He,370:Ge,371:We,372:Ve,373:je,374:qe,375:ze,376:Ke,377:Ye,378:Xe,379:Je,380:Qe,381:Ze,382:et,383:tt,384:nt,385:rt,386:it,387:ot,388:st,389:at,390:ct,391:lt,392:ut,393:ht,394:dt,395:pt,396:ft,397:gt,398:mt}),e(i,dr,{354:181,59:1287,63:bt,113:At,228:Tt,355:Ct,356:Rt}),{95:[1,1288]},{59:202,63:bt,64:451,66:1289,72:1290,113:At,119:731,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{59:202,63:bt,72:1291,113:At,119:731,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{59:202,63:bt,113:At,119:1292,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{376:pr},{40:1293,59:202,63:bt,113:At,119:472,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{40:473,59:202,63:bt,113:At,119:472,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{40:1294,59:202,63:bt,113:At,119:472,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{59:202,63:bt,87:365,113:At,119:377,149:516,228:Tt,326:1295,335:512,337:519,354:181,355:Ct,356:Rt,364:Nt,438:517},{59:202,63:bt,113:At,119:520,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{40:1296,59:202,63:bt,113:At,119:472,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(Yt,[2,279],{85:Zi}),e(eo,to,{179:692,475:1097}),e(Xt,[2,280]),e(cr,[2,282]),e(cr,[2,283]),e(yc,[2,1126]),e(yc,[2,1121],{476:1297}),e(yc,[2,1128]),e(yc,[2,1129]),e(yc,[2,1130]),e(yc,[2,1131]),e(yc,[2,1132]),e(yc,[2,1133]),e(yc,[2,1134]),e(yc,[2,1135]),e(yc,[2,1136]),e(yc,[2,1137]),e(yc,[2,1138]),e(yc,[2,1139]),e(yc,[2,1140]),e(yc,[2,1141]),e(i,[2,60]),e(i,[2,61]),e([2,5,43,50,81,85,95,96,109,344,351],[2,48]),{2:[2,50],54:qi,56:[1,1298]},{2:[2,51],55:Ki,56:[1,1299]},e(i,[2,69]),e(i,[2,72]),e(i,[2,73]),e([5,174,241],_c,{143:1300}),e(i,[2,71]),e(eo,_c,{143:1301}),e(ao,[2,164]),{5:[1,1302],127:1304,128:1303,129:[1,1305]},e(i,[2,70]),{127:1304,129:[1,1306]},e(lo,[2,79]),e(ho,yc),e(ho,[2,82]),{81:xc,85:[1,1308]},{2:Ss,81:_s,83:1309},e(Wo,wc,{5:[1,1310]}),e(yc,[2,87],{85:[1,1311]}),{5:[1,1313],88:1312,90:1314,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,104:1322,105:1323,106:1324,107:Ic,112:Nc,113:Lc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},{81:xc,85:Vc},e(jc,wc),{88:1341,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,107:qc,112:zc,113:Kc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},e(go,[2,876]),e(Eo,[2,879]),e(Eo,[2,878]),{5:[1,1346],43:[1,1345]},{51:1040,54:sr,55:ar,401:428,404:429},e(i,[2,208]),{2:Ss,81:_s,83:1347},{81:Yc,85:[1,1349]},e(mc,ro,{49:703,48:1350,50:Zs}),{43:ro,48:1351,49:703,50:Zs},{59:202,63:bt,113:At,119:1064,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{43:[1,1352]},{81:Yc,85:Xc},e(jc,ro,{49:703,48:1354,50:Zs}),e(i,[2,229]),e(i,[2,236]),{85:[1,1355],182:ia},{85:[1,1356],182:Va},{96:ja,250:[1,1357],272:qa,273:za},e(as,Ka),e(Jc,Xa,{449:571,77:Dr,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Jc,Qa,{449:571,77:Dr,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Jc,Za,{449:571,77:Dr,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Jc,ec,{449:571,77:Dr,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),{79:[1,1358]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1359,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(eo,to,{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,475:1097,179:1199,138:1214,447:1360,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),{32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,448:[1,1361],449:571},e(Qc,ic,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,365:Fo,380:Mo,382:Po,385:Vr,386:jr}),e(Qc,sc,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,365:Fo,380:Mo,382:Po,385:Vr,386:jr}),e(na,ac,{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(na,cc,{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),e(na,lc,{449:571,77:Dr,380:Mo,382:Po,385:Vr,386:jr}),{44:1036,168:298,169:299,174:an,241:Mt,477:1022,479:1024,481:1026,483:1028,485:1030,487:1032,489:1034},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1362,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,392:[1,1363],449:571},{81:pc,85:Zc},e(jc,Ec,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),{81:Cc,85:Zc},{32:_o,43:[1,1365],77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,449:571},{54:sr,55:ar,59:202,63:bt,79:fr,81:Rc,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1366,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1367,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1368,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Wo,[2,883]),e(Wo,[2,888],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(i,el,{5:[1,1369]}),e(i,[2,614]),e(i,[2,613]),e(Yo,[2,625]),e(Xo,[2,627],{85:[1,1370]}),e(jo,[2,638]),e(zo,[2,639]),e(zo,[2,640]),e(i,[2,612]),e(Xo,[2,628],{85:Zo}),e(Yo,[2,630]),e(Jo,[2,631]),e(Yo,tl,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(Jo,[2,636],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(Qo,[2,905]),e(i,[2,611]),e(Jo,tl,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(zt,[2,417]),e(Kr,[2,435],{85:os}),{5:ss,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:1373,112:Tn,113:At,119:377,138:328,141:332,227:371,228:Tt,243:1371,247:1372,253:325,254:327,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Kr,[2,438],{85:os}),e(Kr,[2,439],{354:181,59:202,253:325,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,138:484,312:492,308:493,438:494,277:495,279:496,294:499,243:1374,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,256:Cn,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(Kr,[2,440],{354:181,59:202,253:325,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,138:484,312:492,308:493,438:494,277:495,279:496,294:499,243:1375,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,256:Cn,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(zt,sa,{204:1134,205:1135,206:1136,203:1376,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(zt,[2,427]),e(zt,[2,329],{206:1377,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(zt,[2,330]),e(zt,[2,333],{354:181,59:202,119:472,469:825,40:829,446:830,470:835,206:1176,207:1378,204:1379,63:bt,79:Uo,113:At,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa,228:Tt,355:Ct,356:Rt,364:Nt}),{215:nl},{215:rl,217:[1,1382]},{215:il},e(ol,[2,348]),{215:sl,217:[1,1386],218:[1,1384],220:[1,1387]},{215:al},{215:cl,217:[1,1391],218:[1,1389],220:[1,1392]},{215:ll},e(ul,hl,{199:1394,202:1395,200:1396,201:dl}),e(pl,hl,{199:1398,200:1399,201:fl}),e(ga,gl,{2:[1,1402],5:[1,1401]}),{5:[1,1404],126:[1,1403]},e(pl,hl,{200:1399,199:1405,201:fl}),e(ya,gl),{126:[1,1406]},e(ya,ma,{189:1150,188:1407,190:va}),e([201,226,232],ma,{189:1150,192:1409,188:1410,5:[1,1408],190:Ea}),e(oa,[2,489]),e(oa,[2,490],{449:548,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr}),e(Aa,[2,488]),e(oa,[2,492],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e([2,5,81,190,201,226,232,265,344,351],ml,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(pl,hl,{200:1399,199:1411,201:fl}),e(oa,ml,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),{5:c,40:829,41:831,59:202,63:bt,79:ki,110:1414,113:At,119:276,186:1412,187:1413,207:821,211:823,228:Tt,354:181,355:Ct,356:Rt,364:Ut,399:Et,425:277,446:830,451:832,465:819,466:820,467:822,468:824,469:825,470:826,471:827,472:828},{40:829,59:202,63:bt,79:Uo,113:At,119:472,186:1415,207:834,228:Tt,354:181,355:Ct,356:Rt,364:Nt,446:830,465:819,467:822,469:825,470:835},e(_a,El,{210:1174,206:1416,209:1417,214:wa,215:ca,216:Ia,217:Na,218:La,219:Oa,220:ka,221:Da}),e(Sa,[2,1105]),{5:yl,40:829,41:831,59:202,63:bt,79:ki,113:At,119:276,207:1418,211:1419,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277,446:830,451:832,469:825,470:826,471:827,472:828},e(Sa,[2,340],{206:1176,204:1421,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),{5:[1,1422],215:nl},{5:[1,1424],215:rl,217:[1,1423]},{5:[1,1425],215:il},{5:[1,1429],215:sl,217:[1,1427],218:[1,1426],220:[1,1428]},{5:[1,1430],215:al},{5:[1,1434],215:cl,217:[1,1432],218:[1,1431],220:[1,1433]},{5:[1,1435],215:ll},e(vl,[2,336],{354:181,59:202,119:472,469:825,40:829,446:830,470:835,207:1436,63:bt,79:Uo,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),e(Sa,[2,1106],{206:1377,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),{40:829,59:202,63:bt,79:Uo,113:At,119:472,207:1378,228:Tt,354:181,355:Ct,356:Rt,364:Nt,446:830,469:825,470:835},e(Fa,[2,1107]),e(Fa,[2,1108]),e(Ma,[2,1111]),e(Ma,[2,1109]),e(Ma,[2,1110]),{40:829,59:202,63:bt,79:Uo,113:At,119:472,186:1412,207:834,228:Tt,354:181,355:Ct,356:Rt,364:Nt,446:830,465:819,467:822,469:825,470:835},e(Sa,El,{206:1377,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),{2:gn,5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:801,112:Tn,113:At,119:377,138:328,141:332,227:371,228:Tt,253:799,254:802,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,347:1437,348:[1,1438],354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,85:[1,1439],87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,243:798,253:325,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Ni,[2,942]),e(Ni,[2,943]),e(Ni,[2,944]),{5:[1,1441],182:[1,1440]},e(Mi,[2,980]),e(Mi,[2,981]),e(Mi,[2,982]),e(Mi,[2,978]),e(eo,to,{354:181,59:202,311:334,315:342,312:343,308:344,276:345,314:346,282:348,317:349,318:350,438:351,277:356,279:357,281:358,458:359,283:360,285:361,287:362,459:363,439:364,87:365,288:366,289:367,290:368,227:371,460:372,291:373,292:374,293:375,461:376,119:377,294:378,462:381,463:382,401:383,404:384,464:385,402:386,405:387,475:695,180:1201,456:1202,110:1203,138:1204,141:1205,179:1442,447:1443,5:Li,54:mn,55:En,63:bt,79:yn,85:tc,95:vn,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,309:Un,310:$n,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et}),e(Mi,[2,1004]),{5:[1,1445],32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di,448:[1,1444],449:571,453:572},{32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr,448:[1,1446],449:597},e(ms,[2,1015],{449:548,32:kr,77:Dr,108:Pr,109:Br,142:Ur,256:Es,363:Gr,385:Vr,386:jr}),{81:[1,1447]},{5:bl,81:Al,85:Tl},{2:Ss,81:_s,83:1451},{2:Ss,81:_s,83:1452},{2:Ss,81:_s,83:1453,85:Cl},e(Rl,Sl,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(_l,[2,1056],{449:597,32:mi,77:Dr,85:[1,1455],95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),{5:c,110:1456,399:Et},{5:[1,1459],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1457,141:1458,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Mi,[2,1020]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1460,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(eo,to,{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,475:1097,138:1214,447:1461,179:1462,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),{32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,448:[1,1463],449:571},{2:Ss,81:_s,83:1464,85:xl},{2:Ss,81:_s,83:1466},e(wl,Sl,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1467,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Il,[2,1122]),{81:[1,1468]},e(Vs,[2,1124]),e(Vs,[2,1125]),e(Mi,[2,1050]),{2:xs,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,375:Is,380:Mo,382:Po,383:Bo,385:Vr,386:jr,449:571,455:1469},e(Mi,[2,1225]),e(dc,[2,1241],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1470,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(dc,[2,1244],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),{5:[1,1472],32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,375:Nl,380:ci,382:li,383:ui,385:hi,386:di,449:571,453:572},{2:xs,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,375:Is,380:xi,383:wi,385:Vr,386:jr,449:597,455:1473},{2:xs,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,375:Is,383:Wr,385:Vr,386:jr,449:548,455:1474},{2:xs,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,375:Is,380:Mo,382:Po,383:Bo,385:Vr,386:jr,392:hc,449:571,455:1475},e(Mi,[2,1220]),e(ks,[2,1233],{514:955,398:$o}),e(ks,[2,1232],{514:955,398:$o}),{2:xs,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,375:Is,380:Mo,382:Po,383:Bo,385:Vr,386:jr,449:571,455:1476},e(Mi,[2,1218]),e(Mi,[2,1223]),{5:[1,1479],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1477,141:1478,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(dc,[2,1249],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1480,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(dc,[2,1237],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1481,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(dc,[2,1240],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(dc,[2,1254],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,449:548,138:1482,32:kr,54:sr,55:ar,63:bt,77:Dr,79:fr,95:Mr,96:bn,107:An,108:Pr,109:Br,112:Tn,113:At,142:Ur,228:Tt,256:Es,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,362:Hr,363:Gr,364:Nt,368:Cr,376:Rr,383:Wr,385:Vr,386:jr,395:zn,396:Kn}),{32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di,449:571,453:572},e(dc,[2,1246],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(dc,[2,1247],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1483,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(Ni,[2,587]),{2:Ss,81:_s,83:1484,85:Ll},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:1488,112:Tn,113:At,119:377,138:1486,141:1487,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Mi,[2,588]),e(yc,[2,601],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1101,295:1489,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(Mi,[2,590]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1490,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(yc,[2,602],{85:[1,1491]}),{59:202,63:bt,87:365,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt,438:1492},{81:Ol,231:1495,232:kl,234:1496,492:1493,494:1494},e(yc,Ol,{492:1498,231:1499,232:Dl}),e(_l,bc,{495:1256,491:1501,125:Ac}),{5:[1,1503],126:[1,1502]},e(_l,[2,1158]),{81:Ol,231:1499,232:Dl,492:1493},{126:[1,1504]},e(Tc,[2,551]),{2:Ss,81:_s,83:1505,85:Ll},e(Fl,[2,552]),e(Fl,[2,554]),{5:[1,1507],97:1506,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},{2:Ss,81:_s,83:1509,97:1508,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},{2:Ss,81:_s,83:1511,97:1510,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},e(Mi,[2,563]),{2:Ss,81:_s,83:1513,97:1512,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},e(Mi,[2,566]),{2:Ss,81:_s,83:1514},e(ji,[2,526]),{5:[1,1516],81:Ml,85:fc},{2:Ss,81:_s,83:1517,85:gc},{2:Ss,81:_s,83:1518},e(ji,[2,539]),{5:[1,1520],81:Pl,85:fc},{2:Ss,81:_s,83:1521,85:gc},{2:Ss,81:_s,83:1522},{5:[1,1524],32:Xr,77:Qr,81:Bl,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di,449:571,453:572},{2:Ss,81:_s,83:1525},{2:Ss,32:mi,77:Dr,81:_s,83:1526,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr,449:597},e(Ni,[2,1088]),e(i,[2,255],{85:Ul}),e($l,[2,256]),{54:sr,55:ar,59:202,63:bt,87:365,96:bn,107:An,112:Tn,113:At,119:377,167:1528,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:1529,312:492,314:346,354:181,355:Ct,356:Rt,364:Nt,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(i,[2,250],{85:Ul}),{344:Xi,351:[2,677]},e(i,ro,{48:701,49:703,60:1530,50:Zs}),{376:io},e(ao,so,{124:711,67:1531,125:co}),e(ho,uo,{73:715,76:717,77:po,79:fo}),e(bo,vo,{146:728,144:1532,79:Ao}),e(i,To,{151:734,412:Co}),e(i,Ro,{153:1533,154:So}),e(i,Vo),e(zo,qo,{327:1534,85:Zo,182:Ko}),{140:qs},e(yc,[2,1127]),{2:[2,52],54:Gs},{2:[2,53],55:js},{5:[1,1536],44:1535,46:1537,168:261,169:139,171:159,173:158,174:B,241:te},{44:1535,168:298,169:299,174:an,241:Mt},e(ao,[2,165]),e(ao,[2,166]),e(oo,[2,163]),{5:[1,1538],79:[1,1541],130:1540,132:1539},{79:[1,1543],130:1542},e(lo,[2,83]),{59:202,63:bt,84:1544,86:1545,87:1060,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(ho,[2,84]),e(yc,[2,91],{85:[1,1546]}),{59:202,63:bt,80:1547,84:1062,87:1063,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(mc,Hl,{89:1548,91:1549,92:1550,94:1551,93:1552,49:1555,50:Zs,95:Gl,96:Wl}),e(jc,Hl,{93:1552,49:1555,89:1556,92:1557,50:Zs,95:Vl,96:Wl}),e(jc,Hl,{93:1552,49:1555,92:1557,89:1559,50:Zs,95:Vl,96:Wl}),e(jl,[2,111]),e(jl,[2,112]),e(jl,[2,113]),e(jl,[2,114]),e(jl,[2,115]),e(jl,[2,116]),e(jl,[2,117]),e(ql,[2,118]),e(ql,[2,119]),e(ql,[2,120]),e(jl,[2,920]),e(jl,[2,921]),e(jl,zl,{443:1560,79:Kl}),e(jl,[2,934],{444:1562,79:[1,1563]}),e(jl,[2,924]),e(jl,[2,925]),e(jl,[2,926]),e(jl,[2,927]),e(jl,[2,928]),e(jl,[2,929]),e(jl,[2,930]),e(jl,zl,{443:1564,79:Kl}),{108:[1,1565]},{108:[1,1566]},{108:[1,1567]},{59:202,63:bt,84:1568,87:1063,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(jc,Hl,{89:1548,93:1552,49:1555,92:1557,50:Zs,95:Vl,96:Wl}),{108:[1,1569]},{108:[1,1570]},{108:[1,1571]},{5:[1,1573],44:1572,46:1574,168:261,169:139,171:159,173:158,174:B,241:te},e(i,[2,209]),e([50,344,351],[2,216]),e(yo,[2,215]),{59:202,63:bt,87:365,113:At,119:377,149:1575,228:Tt,354:181,355:Ct,356:Rt,364:Nt,438:517},e(Wo,Yl,{5:[1,1576]}),{43:[1,1577]},{44:1578,168:298,169:299,174:an,241:Mt},{59:202,63:bt,87:365,113:At,119:377,149:1579,228:Tt,354:181,355:Ct,356:Rt,364:Nt,438:517},e(jc,Yl),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,243:1580,253:325,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{2:gn,54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,253:799,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,347:1581,348:Hn,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{182:[1,1582]},e(eo,to,{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,475:1097,138:1214,179:1442,447:1583,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),{32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,448:[1,1584],449:571},{81:Al,85:xl},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1585,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,375:Nl,380:Mo,382:Po,383:Bo,385:Vr,386:jr,449:571},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1586,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1587,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{97:1506,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},{81:Ml,85:Zc},{81:Pl,85:Zc},{32:_o,77:Dr,81:Bl,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,449:571},e(i,[2,615]),{59:202,63:bt,87:365,113:At,119:377,149:516,228:Tt,326:1588,335:512,337:519,354:181,355:Ct,356:Rt,364:Nt,438:517},{5:Wa,85:Xl,182:Jl},{182:[2,662]},{43:Ii,182:[2,665]},e(Kr,[2,441],{85:os}),e(Kr,[2,442],{85:os}),e(zt,[2,426]),{40:829,59:202,63:bt,79:Uo,113:At,119:472,207:1590,228:Tt,354:181,355:Ct,356:Rt,364:Nt,446:830,469:825,470:835},e(vl,Ql,{208:1591,222:Zl}),e(zt,[2,334],{206:1377,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(ol,[2,344]),e(ol,[2,345]),{215:eu},e(ol,[2,347]),{215:tu},e(ol,[2,350]),{215:nu},{215:ru},e(ol,[2,353]),{215:iu},e(ol,[2,355]),{215:ou},{215:su},e(ol,[2,358]),e(au,cu,{230:1600,234:1601,231:1602,232:kl}),e(lu,cu,{230:1603,231:1604,232:Dl}),e(ul,uu,{2:[1,1606],5:[1,1605]}),{5:[1,1607],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1609,141:1608,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(lu,cu,{231:1604,230:1610,232:Dl}),e(pl,uu),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1611,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(pl,hl,{200:1399,199:1612,201:fl}),e(hu,hl,{200:1399,202:1613,199:1614,201:dl}),{5:[1,1616],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1619,141:1618,191:1617,193:1615,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(ya,[2,299]),e(lu,cu,{231:1604,230:1620,232:Dl}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1622,191:1621,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(pl,hl,{200:1399,199:1623,201:fl}),e(ya,ma,{189:1150,188:1624,190:va}),e(pl,hl,{200:1399,199:1625,201:fl}),e(hu,hl,{200:1399,202:1626,199:1627,201:dl}),e(lu,cu,{231:1604,230:1628,232:Dl}),e(Ra,[2,288]),e(Ca,[2,291],{85:[1,1629]}),e(Ca,[2,293]),e(Ca,[2,290]),{5:yl,40:829,41:831,59:202,63:bt,79:ki,113:At,119:276,207:1630,211:1419,228:Tt,354:181,355:Ct,356:Rt,364:Ut,425:277,446:830,451:832,469:825,470:826,471:827,472:828},e(Sa,[2,342],{206:1176,204:1631,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(du,Ql,{208:1591,212:1632,222:pu}),e(vl,Ql,{208:1634,222:Zl}),e(vl,Ql,{208:1635,222:Zl}),e(Sa,[2,341],{206:1377,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(fu,[2,359]),{5:[1,1636],215:eu},{2:[1,1638],215:[1,1637]},e(fu,[2,362]),{5:[1,1639],215:tu},{5:[1,1640],215:nu},{5:[1,1641],215:ru},{2:[1,1643],215:[1,1642]},e(fu,[2,367]),{5:[1,1644],215:iu},{5:[1,1645],215:ou},{5:[1,1646],215:su},{2:[1,1648],215:[1,1647]},e(fu,[2,372]),e(vl,Ql,{208:1649,222:Zl}),{85:[1,1650],182:gu},{85:[1,1651]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:484,227:371,228:Tt,243:1127,253:325,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:1652,141:1654,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:1653,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Mi,[2,979]),{81:[1,1655]},{5:bl,81:mu,85:Tl},{5:[1,1659],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1657,141:1658,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Mi,[2,1014]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1660,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Ni,[2,954]),e(Ni,[2,955]),{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:1663,112:Tn,113:At,119:377,138:1661,141:1662,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{85:Eu},e(Mi,[2,1201]),e(Mi,[2,1202]),e(Mi,[2,1203]),e(_l,[2,1064],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1214,447:1665,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1214,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,447:1666,458:359,460:372,462:381,463:382,464:385},e(_l,[2,1065],{85:[1,1667]}),e([2,5,43,54,55,63,81,85,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,265,267,344,351,355,356,362,364,365,374,375,383,388,392,398,448],yu,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(vu,[2,1018],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),e(nc,[2,1019],{449:548,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,363:Gr,385:Vr,386:jr}),e(vu,[2,1017],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),{2:Ss,81:_s,83:1668,85:xl},{2:Ss,81:_s,83:1669},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1670,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Mi,[2,1008]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1671,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Mi,[2,1009]),e(vu,[2,1016],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Il,[2,1123]),e(Mi,[2,1224]),e(dc,[2,1242],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(Ni,[2,1214]),e(Mi,[2,1216]),e(Mi,[2,1221]),e(Mi,[2,1222]),e(Mi,[2,1219]),e(Mi,[2,1217]),e([5,374,375,398],bu,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(dc,[2,1239],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(dc,[2,1251],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,449:548,138:1672,32:kr,54:sr,55:ar,63:bt,77:Dr,79:fr,95:Mr,96:bn,107:An,108:Pr,109:Br,112:Tn,113:At,142:Ur,228:Tt,256:Es,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,362:Hr,363:Gr,364:Nt,368:Cr,376:Rr,383:Wr,385:Vr,386:jr,395:zn,396:Kn}),e(dc,[2,1250],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(dc,[2,1238],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(dc,[2,1253],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(dc,[2,1248],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(Mi,[2,589]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1673,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(mc,Au,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(yc,[2,594],{449:597,32:mi,77:Dr,85:[1,1674],95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(yc,[2,597],{85:[1,1675]}),e(yc,[2,600],{85:Zc}),e(yc,[2,595],{85:Zc}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1676,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Mi,[2,910],{270:[1,1677]}),{81:[1,1678]},{2:Ss,81:_s,83:1679},{5:[1,1681],81:Tu,129:Cu,388:Ru,496:1680,497:1682,498:1683,499:1684},e(yc,[2,1165]),{5:[1,1688],126:[1,1687]},{2:Ss,81:_s,83:1689},e(yc,Tu,{496:1680,498:1683,499:1690,129:Cu,388:Ru}),{126:[1,1691]},e(yc,Ol,{231:1499,492:1692,232:Dl}),{5:[1,1694],54:mn,55:En,59:202,63:bt,79:yn,85:tc,87:365,95:vn,96:bn,107:An,110:1696,112:Tn,113:At,119:377,138:1204,141:1205,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,447:1693,456:1695,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(_l,[2,1160]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1214,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,447:1697,458:359,460:372,462:381,463:382,464:385},e(Fl,[2,553]),{81:[1,1698]},{2:Ss,81:_s,83:1699},{2:Ss,81:_s,83:1700},e(Mi,[2,568]),{2:Ss,81:_s,83:1701},e(Mi,[2,562]),{2:Ss,81:_s,83:1702},e(Mi,[2,565]),e(Mi,[2,570]),e(ji,[2,527]),{2:Ss,81:_s,83:1703,85:Ll},e(Mi,[2,528]),e(Mi,[2,530]),e(ji,[2,541]),{2:Ss,81:_s,83:1704,85:Ll},e(Mi,[2,542]),e(Mi,[2,544]),e(ji,[2,545]),{2:Ss,81:_s,83:1705},e(Mi,[2,547]),e(Mi,[2,549]),{79:Sc,166:1706},{81:[1,1707],85:[1,1708]},e(Wo,[2,1067]),e(i,Xs),e(i,Js,{68:1043,43:Qs}),{43:ro,48:1709,49:703,50:Zs},e(i,ea),e(i,ts,{260:812,258:1710,267:is}),e(i,[2,200]),e(i,[2,201]),e(i,[2,202]),e(ao,[2,168]),e(ao,[2,169],{131:1711,79:Su}),{5:[1,1713],79:[1,1716],131:1715,133:1714},{5:c,59:202,63:bt,87:1720,110:1718,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt,399:Et,430:1719,431:1717},{79:Su,131:1715},{59:202,63:bt,87:1720,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt,430:1721},e(Wo,_u,{5:[1,1722]}),e(yc,[2,89],{85:[1,1723]}),{59:202,63:bt,80:1724,84:1062,87:1063,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(yc,[2,88],{85:Vc}),e([2,5,81,85],[2,95]),e(jc,[2,98]),e(mc,xu,{49:1555,94:1725,93:1726,50:Zs,95:Gl,96:Wl}),e(jc,[2,103],{93:1552,49:1555,92:1727,50:Zs,95:Vl,96:Wl}),e(wu,[2,101]),{5:[1,1728],96:Iu},e(wu,[2,108]),e(wu,Nu),e(jc,[2,96]),e(jc,xu,{49:1555,93:1726,50:Zs,95:Vl,96:Wl}),{96:Iu},e(jc,[2,97]),e(jl,[2,922]),{395:[1,1730]},e(jl,[2,923]),{395:[1,1731]},e(jl,[2,931]),{5:c,88:1732,90:1735,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,104:1322,105:1323,106:1324,107:Ic,109:Lu,110:1734,112:Nc,113:Lc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc,399:Et},{5:c,85:[1,1739],97:1736,109:Ou,110:1738,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc,399:Et},{59:202,63:bt,85:ku,109:Du,113:At,114:1740,115:1742,116:1743,117:1744,118:1746,119:1745,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(jc,_u),{88:1732,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,107:qc,109:Lu,112:zc,113:Kc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},{97:1748,109:Ou,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},{59:202,63:bt,109:Du,113:At,114:1749,116:1743,119:1750,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(i,[2,204]),e(i,[2,210]),e(i,[2,211]),e(mc,ro,{49:703,48:1751,50:Zs}),e(yc,[2,219],{85:[1,1752]}),{44:1753,168:298,169:299,174:an,241:Mt},e(i,[2,212]),e(jc,ro,{49:703,48:1754,50:Zs}),{85:os,182:Jl},{182:gu},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1755,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{81:mu,85:xl},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1756,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e([2,43,54,55,63,81,85,113,129,182,190,201,214,215,216,217,218,219,220,221,226,228,232,239,240,246,265,267,344,351,355,356,362,364,365,374,375,383,388,392,398,448],yu,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(dc,bu,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(jc,Au,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(Xo,[2,629],{85:Zo}),{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:801,112:Tn,113:At,119:377,138:328,141:332,227:371,228:Tt,253:799,254:802,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(vl,Ql,{208:1757,222:Zl}),e(Fu,[2,331]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1758,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(ol,[2,346]),e(ol,[2,349]),e(ol,[2,351]),e(ol,[2,352]),e(ol,[2,354]),e(ol,[2,356]),e(ol,[2,357]),e(wr,Mu,{224:1759,229:1760,225:1761,226:[1,1762]}),e(Pu,Mu,{224:1763,225:1764,226:Bu}),e(au,Uu,{2:[1,1767],5:[1,1766]}),e(Pu,Mu,{225:1764,224:1768,226:Bu}),e(lu,Uu),e(lu,cu,{231:1604,230:1769,232:Dl}),{5:[1,1770],226:cu,230:1772,231:1604,232:kl,234:1771},e(pl,[2,326],{449:548,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr}),e(pl,[2,327],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e([2,5,81,226,232,265,344,351],$u,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(Pu,Mu,{225:1764,224:1773,226:Bu}),e(pl,$u,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(lu,cu,{231:1604,230:1774,232:Dl}),e(lu,cu,{231:1604,230:1775,232:Dl}),{226:cu,230:1777,231:1604,232:kl,234:1776},e(ya,[2,297]),e(ya,[2,298],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,449:548,138:1778,32:kr,54:sr,55:ar,63:bt,77:Dr,79:fr,85:[1,1779],95:Mr,96:bn,107:An,108:Pr,109:Br,112:Tn,113:At,142:Ur,228:Tt,256:Es,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,362:Hr,363:Gr,364:Nt,368:Cr,376:Rr,383:Wr,385:Vr,386:jr,395:zn,396:Kn}),e([2,5,81,201,226,232,265,344,351],Hu,{85:[1,1780]}),e(ya,[2,313],{449:597,32:mi,77:Dr,85:[1,1781],95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(Gu,Wu,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(Pu,Mu,{225:1764,224:1782,226:Bu}),e(ya,Hu,{85:Vu}),e(ju,Wu,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(lu,cu,{231:1604,230:1784,232:Dl}),e(pl,hl,{200:1399,199:1785,201:fl}),e(lu,cu,{231:1604,230:1786,232:Dl}),e(lu,cu,{231:1604,230:1787,232:Dl}),{226:cu,230:1789,231:1604,232:kl,234:1788},e(Pu,Mu,{224:1759,225:1764,226:Bu}),{40:829,59:202,63:bt,79:Uo,113:At,119:472,183:1790,186:817,207:834,228:Tt,354:181,355:Ct,356:Rt,364:Nt,446:830,465:819,467:822,469:825,470:835},e(du,Ql,{212:1632,208:1757,222:pu}),e(Sa,[2,343],{206:1377,214:aa,215:ca,216:la,217:ua,218:ha,219:da,220:pa,221:fa}),e(vl,[2,338]),{5:[1,1793],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1791,141:1792,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(vl,[2,337]),e(vl,[2,339]),e(fu,[2,361]),e(fu,[2,360]),e(fu,[2,373]),e(fu,[2,364]),e(fu,[2,365]),e(fu,[2,366]),e(fu,[2,363]),e(fu,[2,374]),e(fu,[2,369]),e(fu,[2,370]),e(fu,[2,371]),e(fu,[2,368]),e(fu,[2,375]),e(vl,[2,335]),{5:ss,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:333,112:Tn,113:At,119:377,138:328,141:332,227:371,228:Tt,243:1795,247:1794,253:325,254:327,256:Cn,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{2:ds,5:c,110:1796,399:Et},e(As,qu,{449:571,453:572}),e(Mi,[2,983]),e(Cs,[2,984],{449:597}),e(Ni,[2,952]),e(Ni,[2,953]),e(ps,zu,{449:571,453:572,32:Xr,77:Qr,108:ei,109:ti,142:ni,256:ri,358:ii,363:si,380:ci,382:li,385:hi,386:di}),e(gs,[2,1012],{449:597,32:mi,77:Dr,108:vi,109:bi,142:Ai,256:Ti,358:Ci,363:Si,380:xi,385:Vr,386:jr}),e(ms,[2,1013],{449:548,32:kr,77:Dr,108:Pr,109:Br,142:Ur,256:Es,363:Gr,385:Vr,386:jr}),e(gs,[2,1011],{449:571,32:_o,77:Dr,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Rl,Ku,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(_l,[2,1057],{449:597,32:mi,77:Dr,85:[1,1797],95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(_l,[2,1060],{85:[1,1798]}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1214,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,447:1799,458:359,460:372,462:381,463:382,464:385},e(_l,[2,1063],{85:xl}),e(_l,[2,1058],{85:xl}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1214,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,447:1800,458:359,460:372,462:381,463:382,464:385},e(Mi,[2,1006]),e(Mi,[2,1007]),e(gs,[2,1010],{449:571,32:_o,77:Dr,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(wl,Ku,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(dc,[2,1252],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(yc,[2,599],{85:Zc}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1801,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1101,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,295:1802,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(yc,[2,603],{85:Zc}),{59:202,63:bt,87:973,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(Ni,[2,1152]),e(Mi,[2,1154]),e(yc,[2,1164]),e(yc,Tu,{498:1683,499:1690,496:1803,129:Cu,388:Ru}),e(yc,[2,1167]),e(yc,[2,1169]),{5:[1,1804],365:[1,1805],503:[1,1806]},e(Yu,[2,1186]),e(Yu,[2,1187]),{5:[1,1811],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:1814,112:Tn,113:At,119:377,138:1812,141:1813,227:371,228:Tt,233:1807,235:1808,236:1809,237:1810,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(lu,[2,393]),e(Mi,[2,1153]),{365:[1,1815],503:[1,1816]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1818,227:371,228:Tt,233:1817,236:1809,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{2:Ss,81:_s,83:1819},e(vc,Xu,{5:[1,1820],85:Tl}),e(_l,[2,1161],{449:548,32:kr,77:Dr,85:It,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr}),e(_l,[2,1162]),{85:Cl},e(_l,Xu,{85:xl}),e(Ni,[2,559]),e(Mi,[2,569]),e(Mi,[2,567]),e(Mi,[2,561]),e(Mi,[2,564]),e(Mi,[2,529]),e(Mi,[2,543]),e(Mi,[2,548]),e($l,[2,257]),e($l,[2,258]),{54:sr,55:ar,59:202,63:bt,87:365,96:bn,107:An,112:Tn,113:At,119:377,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:1821,312:492,314:346,354:181,355:Ct,356:Rt,364:Nt,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{43:[1,1822]},e(i,el),e(ao,[2,172]),{125:Ju,134:1823,136:1824},e(ao,[2,170]),e(ao,[2,171]),e(oo,[2,167]),{5:[1,1826],125:Qu,134:1828,135:1827,136:1824,137:1829},{2:Ss,81:_s,83:1831},{2:Ss,81:_s,83:1832},{81:Zu,85:[1,1834]},e(jc,[2,863]),{81:Zu,85:eh},e(yc,[2,93],{85:[1,1836]}),{59:202,63:bt,80:1837,84:1062,87:1063,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(yc,[2,92],{85:Vc}),e(jc,[2,105],{93:1552,49:1555,92:1838,50:Zs,95:Vl,96:Wl}),e(wu,[2,102]),e(jc,[2,104],{49:1555,93:1726,50:Zs,95:Vl,96:Wl}),e([2,50,81,85,95,96],[2,110]),e(wu,[2,107]),{81:[1,1839]},{81:[1,1840],85:[1,1841]},{109:[1,1842]},e(jl,[2,122]),{2:th,109:nh,111:1843},{2:th,109:nh,111:1846},{85:[1,1847]},e(jl,[2,126]),{2:th,109:nh,111:1848},{5:c,110:1849,399:Et},{85:[1,1851],109:rh},e(jl,[2,132]),{2:th,109:nh,111:1852},e(ih,[2,134]),e(Nu,[2,136],{118:1853,85:ku}),{120:[1,1854]},{59:202,63:bt,85:oh,113:At,119:1855,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(sh,[2,794]),{85:[1,1857]},{85:ah,109:rh},{120:[1,1859]},e(Wo,ch,{5:[1,1860]}),{59:202,63:bt,87:365,113:At,119:377,147:1861,149:1077,228:Tt,354:181,355:Ct,356:Rt,364:Nt,438:517},e(i,[2,206]),e(jc,ch),e(na,qu,{449:571}),e(ta,zu,{449:571,32:_o,77:Dr,108:wo,109:Io,142:No,256:Lo,358:Oo,363:Do,380:Mo,382:Po,385:Vr,386:jr}),e(Fu,[2,332]),e(vl,lh,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(Pu,[2,448]),e(Pu,[2,453]),e(wr,uh,{2:[1,1863],5:[1,1862]}),{5:hh,227:1865,228:dh,270:Rn,395:zn,396:Kn,462:381,463:382},e(Pu,[2,452]),e(Pu,uh),{227:1865,228:dh,270:Rn,395:zn,396:Kn,462:381,463:382},e(Pu,Mu,{225:1764,224:1867,226:Bu}),{5:[1,1868],226:ph,229:1869},e(Pu,[2,451]),e(Pu,Mu,{225:1764,224:1871,226:Bu}),e(lu,cu,{231:1604,230:1872,232:Dl}),e(Pu,Mu,{225:1764,224:1873,226:Bu}),{226:ph,229:1874},e(Pu,[2,450]),e(Pu,Mu,{225:1764,224:1875,226:Bu}),e(Pu,Mu,{225:1764,224:1876,226:Bu}),e(Pu,Mu,{225:1764,224:1877,226:Bu}),{226:ph,229:1878},e(ya,[2,314],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1622,191:1879,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:1883,112:Tn,113:At,119:377,138:1881,141:1882,198:1880,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1622,191:1884,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Pu,[2,449]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1885,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(Pu,Mu,{225:1764,224:1886,226:Bu}),e(lu,cu,{231:1604,230:1887,232:Dl}),e(Pu,Mu,{225:1764,224:1888,226:Bu}),e(Pu,Mu,{225:1764,224:1889,226:Bu}),e(Pu,Mu,{225:1764,224:1890,226:Bu}),{226:ph,229:1891},e(Ca,[2,292],{85:Ua}),e(du,lh,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(vl,[2,380],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(vl,[2,381],{449:548,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr}),{182:[2,663]},{5:Wa,85:Xl},{182:[2,666]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1214,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,447:1892,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1214,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,447:1893,458:359,460:372,462:381,463:382,464:385},e(_l,[2,1062],{85:xl}),e(_l,[2,1066],{85:xl}),e(yc,[2,596],{85:Zc}),e(yc,[2,598],{85:Zc}),e(yc,[2,1166]),e(yc,[2,1172]),e(fh,gh,{500:1894}),e(fh,gh,{500:1895}),e([2,5,81,129,226,265,344,351,388],mh,{85:[1,1896]}),e(lu,[2,392]),e(Eh,[2,394]),e(lu,[2,396]),e([2,81,214,215,216,217,218,219,220,221,226,239,240,265,344,351],It,{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,449:548,138:1818,236:1897,32:kr,54:sr,55:ar,63:bt,77:Dr,79:fr,95:Mr,96:bn,107:An,108:Pr,109:Br,112:Tn,113:At,142:Ur,228:Tt,256:Es,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,362:Hr,363:Gr,364:Nt,368:Cr,376:Rr,383:Wr,385:Vr,386:jr,395:zn,396:Kn}),e([2,5,81,85,129,226,265,344,351,388],yh,{449:571,453:572,238:1898,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,239:vh,240:bh,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(Ah,yh,{449:597,238:1901,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,239:vh,240:bh,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(Ah,yh,{238:1902,239:vh,240:bh}),e(Th,gh,{500:1903}),e(Th,gh,{500:1904}),e([2,81,129,214,215,216,217,218,219,220,221,226,265,344,351,388],mh,{85:Ch}),e([2,81,85,129,214,215,216,217,218,219,220,221,226,265,344,351,388],yh,{449:571,238:1898,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,239:vh,240:bh,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(Mi,[2,1155]),e(yc,Ol,{231:1499,492:1906,85:Eu,232:Dl}),e(Wo,[2,1068]),{44:1572,168:298,169:299,174:an,241:Mt},{81:Rh,85:Sh},e(jc,[2,176]),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1909,140:[1,1910],227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{2:Ss,81:_s,83:1911},{2:Ss,81:_s,83:1912},{81:Rh,85:[1,1913]},e(yc,[2,178]),{5:[1,1914],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:1916,140:[1,1917],141:1915,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(_h,[2,861]),e(_h,[2,862]),e([5,79],[2,860]),{5:c,59:202,63:bt,87:1919,110:1918,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt,399:Et},{59:202,63:bt,87:1919,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{59:202,63:bt,80:1920,84:1062,87:1063,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(yc,[2,90],{85:Vc}),e(jc,[2,106],{49:1555,93:1726,50:Zs,95:Vl,96:Wl}),e(jl,[2,933]),e(jl,[2,935]),{395:[1,1921]},e(jl,[2,121]),e(ql,[2,123]),e(ql,[2,159]),e(ql,[2,160]),e(ql,[2,124]),{5:c,88:1922,90:1923,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,104:1322,105:1323,106:1324,107:Ic,110:1924,112:Nc,113:Lc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc,399:Et},e(ql,[2,128]),{2:th,109:nh,111:1925},e(jl,[2,131]),{59:202,63:bt,85:ku,113:At,116:1926,117:1927,118:1746,119:1745,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(ql,[2,133]),e(Nu,[2,137],{354:181,59:202,116:1743,119:1750,114:1928,63:bt,85:oh,113:At,228:Tt,355:Ct,356:Rt,364:Nt}),{5:c,88:1929,90:1931,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,104:1322,105:1323,106:1324,107:Ic,110:1930,112:Nc,113:Lc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc,399:Et},{120:[1,1932]},e(sh,[2,795]),{88:1922,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,107:qc,112:zc,113:Kc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},{59:202,63:bt,113:At,116:1926,119:1750,228:Tt,354:181,355:Ct,356:Rt,364:Nt},{88:1933,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,107:qc,112:zc,113:Kc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc},e(yc,[2,221],{85:[1,1934]}),e(yc,[2,220],{85:Xc}),e(Pu,[2,458]),{5:[1,1935]},e(Pu,[2,388]),e(xh,[2,384],{85:[1,1936]}),e(xh,[2,386],{85:[1,1937]}),e(Pu,[2,457]),e(Pu,Mu,{225:1764,224:1938,226:Bu}),e(Pu,[2,472]),{5:hh},e(Pu,[2,456]),e(Pu,Mu,{225:1764,224:1939,226:Bu}),e(Pu,[2,470]),e(Pu,[2,471]),e(Pu,[2,455]),e(Pu,[2,467]),e(Pu,[2,468]),e(Pu,[2,469]),e(ya,[2,315],{85:Vu}),e(ya,[2,317],{85:[1,1940]}),e(Gu,wh,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(ju,[2,320],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(ju,[2,322],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1941,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(ya,[2,316],{85:Vu}),e(ju,wh,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(Pu,[2,454]),e(Pu,Mu,{225:1764,224:1942,226:Bu}),e(Pu,[2,463]),e(Pu,[2,464]),e(Pu,[2,465]),e(Pu,[2,466]),e(_l,[2,1059],{85:xl}),e(_l,[2,1061],{85:xl}),e(Ih,Nh,{501:1943,504:1944,511:1945,370:Lh,395:Oh,503:kh}),e(Ih,Nh,{511:1945,501:1949,504:1950,370:Lh,395:Oh,503:kh}),{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:1814,112:Tn,113:At,119:377,138:1812,141:1813,227:371,228:Tt,236:1951,237:1952,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(lu,[2,397]),e(Eh,[2,401]),e(Eh,[2,405]),e(Eh,[2,406]),e(Ah,[2,402]),e(Ah,[2,403]),e(Dh,Nh,{501:1953,511:1954,370:Fh,395:Oh,503:kh}),e(Dh,Nh,{511:1954,501:1956,370:Fh,395:Oh,503:kh}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1818,227:371,228:Tt,236:1951,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{2:Ss,81:_s,83:1957},e(oo,[2,173]),{125:Ju,136:1958},{32:_o,77:Dr,95:xo,108:[1,1960],109:Io,139:1959,142:[1,1961],256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr,449:571},{108:Mh,139:1962,142:Ph},e(ao,[2,174]),e(ao,[2,175]),{5:[1,1965],125:Qu,136:1958,137:1966},e(jc,[2,186],{449:548,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr}),e(jc,[2,187],{449:597,139:1967,32:mi,77:Dr,95:yi,108:[1,1968],109:bi,142:[1,1969],256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),{5:[1,1970],32:Xr,77:Qr,95:Zr,108:[1,1972],109:ti,139:1971,142:[1,1973],256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di,449:571,453:572},{5:[1,1974],108:Mh,139:1975,142:Ph},e(yc,[2,865],{85:[1,1976]}),e(jc,[2,864]),e(yc,[2,94],{85:Vc}),{81:[1,1977]},{109:[1,1978]},{2:th,109:nh,111:1979},{2:th,109:nh,111:1980},e(ql,[2,130]),e(ih,[2,135]),e(Nu,[2,139],{118:1981,85:ku}),e(Nu,[2,138],{85:ah}),e([85,109],ro,{49:703,48:1982,5:[1,1983],50:Zs}),e(ih,[2,146]),e(ih,[2,147]),{5:c,88:1984,90:1986,97:1315,98:1316,99:1317,100:1318,101:1319,102:1320,103:1321,104:1322,105:1323,106:1324,107:Ic,110:1985,112:Nc,113:Lc,366:Oc,367:kc,369:Dc,372:Fc,373:Mc,377:Pc,381:Bc,390:Uc,391:$c,393:Hc,394:Gc,397:Wc,399:Et},e(ih,ro,{49:703,48:1982,50:Zs}),{59:202,63:bt,87:365,113:At,119:377,147:1987,149:1077,228:Tt,354:181,355:Ct,356:Rt,364:Nt,438:517},e(Pu,[2,462]),{227:1988,270:Rn,395:zn,396:Kn,462:381,463:382},{228:[1,1989]},e(Pu,[2,461]),e(Pu,[2,460]),e(ya,[2,318],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,138:1622,191:1990,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(ju,[2,321],{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(Pu,[2,459]),e([5,81],Bh,{502:1991,505:1992,362:[1,1993]}),e(yc,Bh,{502:1994,362:Uh}),{5:[1,1997],384:$h},{5:[1,1999],387:Hh},e(Gh,[2,1199]),e(Gh,[2,1200]),{5:[1,2e3],81:Bh,362:Uh,502:2001},e(yc,[2,1177]),e(Eh,[2,395]),e(lu,[2,398],{85:[1,2002]}),e(yc,Bh,{502:2003,362:Uh}),{384:$h},{387:Hh},e(yc,Bh,{502:2001,362:Uh}),e(Mi,[2,1156]),e(jc,[2,177]),{140:[1,2004]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1085,140:Wh,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:1087,140:Vh,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:2005,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(jh,Wh),e(jh,Vh),e(yc,[2,179],{85:[1,2006]}),e(yc,[2,181],{85:[1,2007]}),{140:[1,2008]},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:915,140:Wh,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:917,140:Vh,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(jc,[2,188]),{5:[1,2009],140:[1,2010]},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:863,140:Wh,141:865,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:864,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{5:Li,54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,110:861,112:Tn,113:At,119:377,138:869,140:Vh,141:871,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Ut,368:jn,376:qn,395:zn,396:Kn,399:Et,401:383,402:386,404:384,405:387,424:870,425:862,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(jc,[2,194]),{5:[1,2011],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:2013,141:2012,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},{59:202,63:bt,87:1720,113:At,119:377,228:Tt,354:181,355:Ct,356:Rt,364:Nt,430:2014},e(jl,[2,936]),e(jl,[2,125]),e(ql,[2,127]),e(ql,[2,129]),{59:202,63:bt,85:oh,113:At,114:2015,116:1743,119:1750,228:Tt,354:181,355:Ct,356:Rt,364:Nt},e(ih,[2,141]),e(ih,[2,145]),{5:[1,2016]},e(ih,[2,143]),e(ih,[2,144]),e(yc,[2,222],{85:Xc}),e(xh,[2,385]),e(xh,[2,387]),e(ya,[2,319],{85:Vu}),{5:[1,2017],81:qh},e(yc,[2,1175]),{5:[1,2020],370:[1,2018],395:Oh,503:kh,511:2019},e(yc,[2,1174]),{370:[1,2021],395:Oh,503:kh,511:2022},e(zh,[2,1189]),e(Dh,[2,1191]),e(zh,[2,1190]),e(Dh,[2,1192]),e(yc,[2,1176]),e(yc,[2,1171]),e(lu,[2,399],{354:181,59:202,311:334,276:345,314:346,281:358,458:359,87:365,288:366,289:367,290:368,227:371,460:372,119:377,462:381,463:382,401:383,404:384,464:385,312:492,308:493,438:494,277:495,279:496,294:499,236:1809,138:1818,233:2023,54:sr,55:ar,63:bt,79:fr,95:gr,96:bn,107:An,112:Tn,113:At,228:Tt,270:Rn,272:Sn,273:_n,274:xn,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,309:Un,310:vr,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn}),e(yc,qh),e(jc,Kh,{139:2024,108:Mh,142:Ph}),e(jc,Yh,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),{125:Ju,134:2025,136:1824},{125:Ju,134:2026,136:1824},e(jc,[2,190]),e(jc,[2,189]),e(Wo,Kh,{139:2028,5:[1,2027],108:Mh,142:Ph}),e(jc,[2,195],{449:548,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr}),e(jc,[2,196],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(Wo,Yh,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di}),e(yc,[2,866],{85:eh}),e(Nu,[2,140],{85:ah}),e(ih,[2,142]),e(yc,[2,1173]),{5:[1,2030],387:Xh},{5:[1,2032],378:Jh},e(yc,[2,1196]),{387:Xh},{378:Jh},e(lu,[2,400],{85:Ch}),{54:sr,55:ar,59:202,63:bt,79:fr,87:365,95:gr,96:bn,107:An,112:Tn,113:At,119:377,138:2033,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:495,279:496,281:358,288:366,289:367,290:368,294:499,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:mr,306:Er,307:yr,308:493,309:Un,310:vr,311:334,312:492,314:346,354:181,355:Ct,356:Rt,357:br,358:Ar,361:Tr,364:Nt,368:Cr,376:Rr,395:zn,396:Kn,401:383,404:384,438:494,458:359,460:372,462:381,463:382,464:385},e(yc,[2,180],{85:Sh}),e(yc,[2,182],{85:Sh}),e(jc,[2,191]),{5:[1,2034],54:mn,55:En,59:202,63:bt,79:yn,87:365,95:vn,96:bn,107:An,112:Tn,113:At,119:377,138:2036,141:2035,227:371,228:Tt,270:Rn,272:Sn,273:_n,274:xn,276:345,277:356,279:357,281:358,282:348,283:360,285:361,287:362,288:366,289:367,290:368,291:373,292:374,293:375,294:378,297:wn,298:In,299:Nn,300:Ln,301:On,302:kn,303:Dn,304:Fn,305:Mn,306:Pn,307:Bn,308:344,309:Un,310:$n,311:334,312:343,314:346,315:342,317:349,318:350,354:181,355:Ct,356:Rt,357:Gn,358:Wn,361:Vn,364:Nt,368:jn,376:qn,395:zn,396:Kn,401:383,402:386,404:384,405:387,438:351,439:364,458:359,459:363,460:372,461:376,462:381,463:382,464:385},e(Qh,[2,1194]),e(yc,[2,1197]),e(Qh,[2,1195]),e(yc,[2,1198]),e(jc,Zh,{449:571,32:_o,77:Dr,95:xo,108:wo,109:Io,142:No,256:Lo,358:Oo,362:ko,363:Do,365:Fo,380:Mo,382:Po,383:Bo,385:Vr,386:jr}),e(jc,[2,192],{449:548,32:kr,77:Dr,95:bs,108:Pr,109:Br,142:Ur,256:Es,362:Hr,363:Gr,383:Wr,385:Vr,386:jr}),e(jc,[2,193],{449:597,32:mi,77:Dr,95:yi,108:vi,109:bi,142:Ai,256:Ti,358:Ci,362:Ri,363:Si,365:_i,380:xi,383:wi,385:Vr,386:jr}),e(Wo,Zh,{449:571,453:572,32:Xr,77:Qr,95:Zr,108:ei,109:ti,142:ni,256:ri,358:ii,362:oi,363:si,365:ai,380:ci,382:li,383:ui,385:hi,386:di})],defaultActions:{9:[2,687],10:[2,688],11:[2,689],12:[2,690],13:[2,691],14:[2,692],15:[2,693],16:[2,694],17:[2,695],18:[2,696],19:[2,697],20:[2,698],21:[2,699],22:[2,700],23:[2,701],24:[2,702],25:[2,703],26:[2,704],27:[2,705],28:[2,706],29:[2,707],30:[2,708],31:[2,709],32:[2,710],33:[2,711],34:[2,712],35:[2,713],36:[2,714],37:[2,715],38:[2,716],39:[2,717],40:[2,718],41:[2,719],42:[2,720],43:[2,721],44:[2,722],45:[2,723],46:[2,724],47:[2,725],48:[2,726],49:[2,727],50:[2,728],51:[2,729],52:[2,730],53:[2,731],54:[2,732],55:[2,733],56:[2,734],57:[2,735],58:[2,736],59:[2,737],60:[2,738],61:[2,739],62:[2,740],63:[2,741],64:[2,742],65:[2,743],66:[2,744],67:[2,745],68:[2,746],69:[2,747],70:[2,748],71:[2,749],72:[2,750],73:[2,751],74:[2,752],75:[2,753],76:[2,754],77:[2,755],78:[2,756],79:[2,757],80:[2,758],81:[2,759],82:[2,760],83:[2,761],84:[2,762],85:[2,763],86:[2,764],87:[2,765],88:[2,766],89:[2,767],90:[2,768],91:[2,769],93:[2,771],94:[2,772],95:[2,773],96:[2,774],97:[2,775],98:[2,776],99:[2,777],100:[2,778],101:[2,779],102:[2,780],103:[2,781],104:[2,782],105:[2,783],106:[2,784],107:[2,785],108:[2,786],109:[2,787],110:[2,788],111:[2,789],112:[2,790],113:[2,791],114:[2,792],115:[2,793],170:[2,671],172:[2,672],352:[2,555],353:[2,556],354:[2,557],355:[2,558],388:[2,531],389:[2,532],390:[2,533],391:[2,534],392:[2,535],393:[2,536],394:[2,537],395:[2,538],702:[2,63],704:[2,49],851:[2,661],1372:[2,662],1581:[2,658],1794:[2,663],1796:[2,666]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,s="",a=0,c=0,l=0,u=2,h=1,d=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;i.push(m);var E=p.options&&p.options.ranges;function y(e){n.length=n.length-2*e,r.length=r.length-e,i.length=i.length-e}"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,b,A,T,C,R,S,_,x,w=function(){var e;return"number"!=typeof(e=p.lex()||h)&&(e=t.symbols_[e]||e),e},I={};;){if(A=n[n.length-1],this.defaultActions[A]?T=this.defaultActions[A]:(null==v&&(v=w()),T=o[A]&&o[A][v]),void 0===T||!T.length||!T[0]){var N,L=function(e){for(var t=n.length-1,r=0;;){if(u.toString()in o[e])return r;if(0===e||t<2)return!1;e=n[t-=2],++r}},O="";if(l)b!==h&&(N=L(A));else{for(R in N=L(A),x=[],o[A])this.terminals_[R]&&R>u&&x.push("'"+this.terminals_[R]+"'");O=p.showPosition?"Parse error on line "+(a+1)+":\n"+p.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(a+1)+": Unexpected "+(v==h?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(O,{text:p.match,token:this.terminals_[v]||v,line:p.yylineno,loc:p.yylloc,ruleId:n.slice(n.length-2,n.length).join("_"),expected:x,recoverable:!1!==N})}if(3==l){if(v===h||b===h)throw new Error(O||"Parsing halted while starting to recover from another error.");c=p.yyleng,s=p.yytext,a=p.yylineno,m=p.yylloc,v=w()}if(!1===N)throw new Error(O||"Parsing halted. No suitable error recovery rule available.");y(N),b=v==u?null:v,v=u,A=n[n.length-1],T=o[A]&&o[A][u],l=3}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(T[0]){case 1:n.push(v),r.push(p.yytext),i.push(p.yylloc),n.push(T[1]),v=null,b?(v=b,b=null):(c=p.yyleng,s=p.yytext,a=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(S=this.productions_[T[1]][1],I.$=r[r.length-S],I._$={first_line:i[i.length-(S||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(S||1)].first_column,last_column:i[i.length-1].last_column},E&&(I._$.range=[i[i.length-(S||1)].range[0],i[i.length-1].range[1]]),void 0!==(C=this.performAction.apply(I,[s,c,a,f.yy,T[1],r,i].concat(d))))return C;S&&(n=n.slice(0,-1*S*2),r=r.slice(0,-1*S),i=i.slice(0,-1*S)),n.push(this.productions_[T[1]][0]),r.push(I.$),i.push(I._$),_=o[n[n.length-2]][n[n.length-1]],n.push(_);break;case 3:return!0}}return!0}};r.Z.initSqlParser(ed);var td={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0,flex:!0},performAction:function(e,t,n,r){switch(n){case 0:case 1:case 2:case 161:case 162:case 163:case 164:case 165:case 166:break;case 3:return ed.yy.partialCursor=!1,ed.yy.cursorFound=t.yylloc,5;case 4:return ed.yy.partialCursor=!0,ed.yy.cursorFound=t.yylloc,399;case 5:return this.popState(),448;case 6:return 30;case 7:return ed.determineCase(t.yytext),ed.addStatementTypeLocation("ALTER",t.yylloc,e.lexer.upcomingInput()),4;case 8:case 122:return 362;case 9:return 43;case 10:return 239;case 11:return this.begin("between"),365;case 12:return 366;case 13:return 367;case 14:return 126;case 15:return 412;case 16:return 368;case 17:return 369;case 18:return 50;case 19:return ed.determineCase(t.yytext),8;case 20:return 214;case 21:return 370;case 22:return 371;case 23:return 372;case 24:return 240;case 25:return 250;case 26:case 134:case 135:case 136:case 137:case 138:case 139:return 363;case 27:return 373;case 28:return ed.determineCase(t.yytext),ed.addStatementTypeLocation("DROP",t.yylloc,e.lexer.upcomingInput()),12;case 29:return 374;case 30:return 375;case 31:return ed.yy.correlatedSubQuery=!0,376;case 32:return 273;case 33:return 377;case 34:return 378;case 35:return ed.determineCase(t.yytext),182;case 36:return 216;case 37:return 190;case 38:return 201;case 39:return 309;case 40:return 380;case 41:return 218;case 42:return 162;case 43:return 381;case 44:return 163;case 45:return 382;case 46:return 215;case 47:return 219;case 48:return 77;case 49:return 226;case 50:return 95;case 51:return 96;case 52:return 222;case 53:return 355;case 54:case 123:return 383;case 55:return 232;case 56:return 217;case 57:return 125;case 58:return 384;case 59:return 154;case 60:return 129;case 61:return 385;case 62:return 221;case 63:return 386;case 64:return 387;case 65:case 92:return 63;case 66:return 388;case 67:return 389;case 68:return ed.determineCase(t.yytext),ed.addStatementTypeLocation("SELECT",t.yylloc),241;case 69:return 220;case 70:return ed.determineCase(t.yytext),ed.addStatementTypeLocation("SET",t.yylloc),16;case 71:return ed.determineCase(t.yytext),ed.addStatementTypeLocation("SHOW",t.yylloc),"SHOW";case 72:return 390;case 73:return 391;case 74:return 39;case 75:return 392;case 76:return 393;case 77:return 394;case 78:return"TO";case 79:return 272;case 80:return ed.determineCase(t.yytext),ed.addStatementTypeLocation("TRUNCATE",t.yylloc,e.lexer.upcomingInput()),274;case 81:return 503;case 82:return 265;case 83:return ed.determineCase(t.yytext),324;case 84:return ed.determineCase(t.yytext),ed.addStatementTypeLocation("USE",t.yylloc),340;case 85:return 140;case 86:return 397;case 87:return 47;case 88:return 398;case 89:return 267;case 90:return ed.determineCase(t.yytext),ed.addStatementTypeLocation("WITH",t.yylloc),174;case 91:return 321;case 93:return e.lexer.unput("("),t.yytext="avg",ed.addFunctionLocation(t.yylloc,t.yytext),297;case 94:return e.lexer.unput("("),t.yytext="cast",ed.addFunctionLocation(t.yylloc,t.yytext),310;case 95:return e.lexer.unput("("),t.yytext="count",ed.addFunctionLocation(t.yylloc,t.yytext),305;case 96:return e.lexer.unput("("),t.yytext="max",ed.addFunctionLocation(t.yylloc,t.yytext),298;case 97:return e.lexer.unput("("),t.yytext="min",ed.addFunctionLocation(t.yylloc,t.yytext),299;case 98:return e.lexer.unput("("),t.yytext="stddev_pop",ed.addFunctionLocation(t.yylloc,t.yytext),300;case 99:return e.lexer.unput("("),t.yytext="stddev_samp",ed.addFunctionLocation(t.yylloc,t.yytext),301;case 100:return e.lexer.unput("("),t.yytext="sum",ed.addFunctionLocation(t.yylloc,t.yytext),306;case 101:return e.lexer.unput("("),t.yytext="var_pop",ed.addFunctionLocation(t.yylloc,t.yytext),302;case 102:return e.lexer.unput("("),t.yytext="var_samp",ed.addFunctionLocation(t.yylloc,t.yytext),303;case 103:return e.lexer.unput("("),t.yytext="variance",ed.addFunctionLocation(t.yylloc,t.yytext),304;case 104:return e.lexer.unput("("),t.yytext="cume_dist",ed.addFunctionLocation(t.yylloc,t.yytext),307;case 105:return e.lexer.unput("("),t.yytext="dense_rank",ed.addFunctionLocation(t.yylloc,t.yytext),307;case 106:return e.lexer.unput("("),t.yytext="first_value",ed.addFunctionLocation(t.yylloc,t.yytext),307;case 107:return e.lexer.unput("("),t.yytext="lag",ed.addFunctionLocation(t.yylloc,t.yytext),307;case 108:return e.lexer.unput("("),t.yytext="last_value",ed.addFunctionLocation(t.yylloc,t.yytext),307;case 109:return e.lexer.unput("("),t.yytext="lead",ed.addFunctionLocation(t.yylloc,t.yytext),307;case 110:return e.lexer.unput("("),t.yytext="rank",ed.addFunctionLocation(t.yylloc,t.yytext),307;case 111:return e.lexer.unput("("),t.yytext="row_number",ed.addFunctionLocation(t.yylloc,t.yytext),307;case 112:case 113:return 395;case 114:return 396;case 115:return 356;case 116:return ed.yy.cursorFound=!0,5;case 117:return ed.yy.cursorFound=!0,399;case 118:return 379;case 119:return ed.addFileLocation(t.yylloc,t.yytext),508;case 120:return this.popState(),509;case 121:case 160:return 351;case 124:return 32;case 125:return 108;case 126:return 109;case 127:case 128:case 129:case 130:case 131:return 142;case 132:return 358;case 133:return 256;case 140:return 85;case 141:return 270;case 142:return 120;case 143:return 344;case 144:return 361;case 145:return 357;case 146:return 79;case 147:return 81;case 148:return 359;case 149:return 360;case 150:return 228;case 151:return this.begin("backtickedValue"),364;case 152:return ed.handleQuotedValueWithCursor(this,t.yytext,t.yylloc,"`")?403:56;case 153:return this.popState(),364;case 154:return this.begin("singleQuotedValue"),54;case 155:return ed.handleQuotedValueWithCursor(this,t.yytext,t.yylloc,"'")?403:56;case 156:return this.popState(),54;case 157:return this.begin("doubleQuotedValue"),55;case 158:return ed.handleQuotedValueWithCursor(this,t.yytext,t.yylloc,'"')?403:56;case 159:return this.popState(),55;case 167:console.log(t.yytext)}},rules:[/^(?:\s)/i,/^(?:--.*)/i,/^(?:[/][*][^*]*[*]+([^/*][^*]*[*]+)*[/])/i,/^(?:\u2020)/i,/^(?:\u2021)/i,/^(?:AND)/i,/^(?:ALL)/i,/^(?:ALTER)/i,/^(?:AND)/i,/^(?:AS)/i,/^(?:ASC)/i,/^(?:BETWEEN)/i,/^(?:BIGINT)/i,/^(?:BOOLEAN)/i,/^(?:BY)/i,/^(?:CASCADE)/i,/^(?:CASE)/i,/^(?:CHAR)/i,/^(?:COMMENT)/i,/^(?:CREATE)/i,/^(?:CROSS)/i,/^(?:CURRENT)/i,/^(?:DATABASE)/i,/^(?:DECIMAL)/i,/^(?:DESC)/i,/^(?:DISTINCT)/i,/^(?:DIV)/i,/^(?:DOUBLE)/i,/^(?:DROP)/i,/^(?:ELSE)/i,/^(?:END)/i,/^(?:EXISTS)/i,/^(?:FALSE)/i,/^(?:FLOAT)/i,/^(?:FOLLOWING)/i,/^(?:FROM)/i,/^(?:FULL)/i,/^(?:GROUP)/i,/^(?:HAVING)/i,/^(?:IF)/i,/^(?:IN)/i,/^(?:INNER)/i,/^(?:INSERT)/i,/^(?:INT)/i,/^(?:INTO)/i,/^(?:IS)/i,/^(?:JOIN)/i,/^(?:LEFT)/i,/^(?:LIKE)/i,/^(?:LIMIT)/i,/^(?:NOT)/i,/^(?:NULL)/i,/^(?:ON)/i,/^(?:OPTION)/i,/^(?:OR)/i,/^(?:ORDER)/i,/^(?:OUTER)/i,/^(?:PARTITION)/i,/^(?:PRECEDING)/i,/^(?:PURGE)/i,/^(?:RANGE)/i,/^(?:REGEXP)/i,/^(?:RIGHT)/i,/^(?:RLIKE)/i,/^(?:ROW)/i,/^(?:ROLE)/i,/^(?:ROWS)/i,/^(?:SCHEMA)/i,/^(?:SELECT)/i,/^(?:SEMI)/i,/^(?:SET)/i,/^(?:SHOW)/i,/^(?:SMALLINT)/i,/^(?:STRING)/i,/^(?:TABLE)/i,/^(?:THEN)/i,/^(?:TIMESTAMP)/i,/^(?:TINYINT)/i,/^(?:TO)/i,/^(?:TRUE)/i,/^(?:TRUNCATE)/i,/^(?:UNBOUNDED)/i,/^(?:UNION)/i,/^(?:UPDATE)/i,/^(?:USE)/i,/^(?:VALUES)/i,/^(?:VARCHAR)/i,/^(?:VIEW)/i,/^(?:WHEN)/i,/^(?:WHERE)/i,/^(?:WITH)/i,/^(?:OVER)/i,/^(?:ROLE)/i,/^(?:AVG\s*\()/i,/^(?:CAST\s*\()/i,/^(?:COUNT\s*\()/i,/^(?:MAX\s*\()/i,/^(?:MIN\s*\()/i,/^(?:STDDEV_POP\s*\()/i,/^(?:STDDEV_SAMP\s*\()/i,/^(?:SUM\s*\()/i,/^(?:VAR_POP\s*\()/i,/^(?:VAR_SAMP\s*\()/i,/^(?:VARIANCE\s*\()/i,/^(?:CUME_DIST\s*\()/i,/^(?:DENSE_RANK\s*\()/i,/^(?:FIRST_VALUE\s*\()/i,/^(?:LAG\s*\()/i,/^(?:LAST_VALUE\s*\()/i,/^(?:LEAD\s*\()/i,/^(?:RANK\s*\()/i,/^(?:ROW_NUMBER\s*\()/i,/^(?:[0-9]+)/i,/^(?:[0-9]+(?:[YSL]|BD)?)/i,/^(?:[0-9]+E)/i,/^(?:[A-Za-z0-9_]+)/i,/^(?:\u2020)/i,/^(?:\u2021)/i,/^(?:\s+['"])/i,/^(?:[^'"\u2020\u2021]+)/i,/^(?:['"])/i,/^(?:$)/i,/^(?:&&)/i,/^(?:\|\|)/i,/^(?:=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:!=)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:<>)/i,/^(?:<=>)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:\/)/i,/^(?:%)/i,/^(?:\|)/i,/^(?:\^)/i,/^(?:&)/i,/^(?:,)/i,/^(?:\.)/i,/^(?::)/i,/^(?:;)/i,/^(?:~)/i,/^(?:!)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\$\{[^}]*\})/i,/^(?:`)/i,/^(?:[^`]+)/i,/^(?:`)/i,/^(?:')/i,/^(?:(?:\\\\|\\[']|[^'])+)/i,/^(?:')/i,/^(?:")/i,/^(?:(?:\\\\|\\["]|[^"])+)/i,/^(?:")/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i,/^(?:.)/i],conditions:{hdfs:{rules:[116,117,118,119,120,121,163],inclusive:!1},doubleQuotedValue:{rules:[158,159,166],inclusive:!1},singleQuotedValue:{rules:[155,156,165],inclusive:!1},backtickedValue:{rules:[152,153,164],inclusive:!1},between:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,154,157,160,161,162,167],inclusive:!0},INITIAL:{rules:[0,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,154,157,160,161,167],inclusive:!0}}};function nd(){this.yy={}}return ed.lexer=td,nd.prototype=ed,ed.Parser=nd,new nd}();const o=i},2062:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1302),i=n(2611);const o={initSqlParser:function(e){(0,i.hh)(e),e.prepareNewStatement=function(){a(),e.commitLocations(),delete e.yy.latestCommonTableExpressions,delete e.yy.correlatedSubQuery,e.yy.subQueries=[],e.yy.selectListAliases=[],e.yy.latestTablePrimaries=[],t()},e.yy.parseError=function(t,n){return e.yy.errors.push(n),t},e.addCommonTableExpressions=function(t){e.yy.result.commonTableExpressions=t,e.yy.latestCommonTableExpressions=t},e.isInSubquery=function(){return!!e.yy.primariesStack.length},e.pushQueryState=function(){e.yy.resultStack.push(e.yy.result),e.yy.locationsStack.push(e.yy.locations),e.yy.selectListAliasesStack.push(e.yy.selectListAliases),e.yy.primariesStack.push(e.yy.latestTablePrimaries),e.yy.subQueriesStack.push(e.yy.subQueries),e.yy.result={},e.yy.locations=[],e.yy.selectListAliases=[],e.yy.correlatedSubQuery?(e.yy.latestTablePrimaries=e.yy.latestTablePrimaries.concat(),e.yy.subQueries=e.yy.subQueries.concat()):(e.yy.latestTablePrimaries=[],e.yy.subQueries=[])},e.popQueryState=function(t){a(),e.commitLocations(),0===Object.keys(e.yy.result).length?e.yy.result=e.yy.resultStack.pop():e.yy.resultStack.pop();var n=e.yy.subQueries;e.yy.subQueries=e.yy.subQueriesStack.pop(),t&&(n.length>0&&(t.subQueries=n),e.yy.subQueries.push(t)),e.yy.latestTablePrimaries=e.yy.primariesStack.pop(),e.yy.locations=e.yy.locationsStack.pop(),e.yy.selectListAliases=e.yy.selectListAliasesStack.pop()},e.suggestSelectListAliases=function(){e.yy.selectListAliases&&e.yy.selectListAliases.length>0&&e.yy.result.suggestColumns&&(void 0===e.yy.result.suggestColumns.identifierChain||0===e.yy.result.suggestColumns.identifierChain.length)&&(e.yy.result.suggestColumnAliases=e.yy.selectListAliases)},e.mergeSuggestKeywords=function(){var e=[];return Array.prototype.slice.call(arguments).forEach((function(t){void 0!==t&&void 0!==t.suggestKeywords&&(e=e.concat(t.suggestKeywords))})),e.length>0?{suggestKeywords:e}:{}},e.suggestValueExpressionKeywords=function(t,n){var r=e.getValueExpressionKeywords(t,n);e.suggestKeywords(r.suggestKeywords),r.suggestColRefKeywords&&e.suggestColRefKeywords(r.suggestColRefKeywords),t.lastType?e.addColRefIfExists(t.lastType):e.addColRefIfExists(t)},e.getSelectListKeywords=function(e){var t=[{value:"CASE",weight:450},"FALSE","TRUE","NULL"];return e||t.push({value:"*",weight:1e4}),t},e.getValueExpressionKeywords=function(t,n){var i=t.lastType?t.lastType.types:t.types,o=["<","<=","<=>","<>","=",">",">=","BETWEEN","IN","IS NOT NULL","IS NULL","IS NOT TRUE","IS TRUE","IS NOT FALSE","IS FALSE","NOT BETWEEN","NOT IN"];return n&&(o=o.concat(n)),t.suggestKeywords&&(o=o.concat(t.suggestKeywords)),1===i.length&&"COLREF"===i[0]?{suggestKeywords:o,suggestColRefKeywords:{BOOLEAN:["AND","OR"],NUMBER:["+","-","*","/","%","DIV"],STRING:["LIKE","NOT LIKE","REGEXP","RLIKE"]}}:((0,r.s)(e.yy.activeDialect,["BOOLEAN"],i)&&(o=o.concat(["AND","OR"])),(0,r.s)(e.yy.activeDialect,["NUMBER"],i)&&(o=o.concat(["+","-","*","/","%","DIV"])),(0,r.s)(e.yy.activeDialect,["STRING"],i)&&(o=o.concat(["LIKE","NOT LIKE","REGEXP","RLIKE"])),{suggestKeywords:o})},e.getTypeKeywords=function(){return["BIGINT","BOOLEAN","CHAR","DECIMAL","DOUBLE","FLOAT","INT","SMALLINT","TIMESTAMP","STRING","TINYINT","VARCHAR"]},e.getColumnDataTypeKeywords=function(){return e.getTypeKeywords()},e.addColRefIfExists=function(t){t.columnReference&&(e.yy.result.colRef={identifierChain:t.columnReference})},e.selectListNoTableSuggest=function(t,n){if(t.cursorAtStart){var r=e.getSelectListKeywords();n||(r=r.concat([{value:"ALL",weight:2},{value:"DISTINCT",weight:2}])),e.suggestKeywords(r)}else e.checkForKeywords(t);t.suggestFunctions&&e.suggestFunctions(),t.suggestColumns&&e.suggestColumns(),!t.suggestAggregateFunctions||n&&"ALL"!==n||(e.suggestAggregateFunctions(),e.suggestAnalyticFunctions())},e.suggestJoinConditions=function(t){e.yy.result.suggestJoinConditions=t||{},e.yy.latestTablePrimaries&&!e.yy.result.suggestJoinConditions.tablePrimaries&&(e.yy.result.suggestJoinConditions.tablePrimaries=e.yy.latestTablePrimaries.concat())},e.suggestJoins=function(t){e.yy.result.suggestJoins=t||{}},e.findCaseType=function(e){var t={};return e.caseTypes.forEach((function(e){e.types.forEach((function(e){t[e]=!0}))})),1===Object.keys(t).length?{types:[Object.keys(t)[0]]}:{types:["T"]}},e.applyArgumentTypesToSuggestions=function(t,n){(e.yy.result.suggestFunctions||e.yy.result.suggestColumns)&&(e.yy.result.udfArgument={name:t.toLowerCase(),position:n})},e.commitLocations=function(){if(0!==e.yy.locations.length){for(var t=e.yy.latestTablePrimaries,n=e.yy.locations.length,r=function(){var r=e.yy.locations[n];if("variable"===r.type&&r.colRef&&(e.expandIdentifierChain({wrapper:r.colRef,tablePrimaries:t,isColumnWrapper:!0}),delete r.colRef.linked),"unknown"===r.type&&void 0!==r.identifierChain&&r.identifierChain.length>0&&r.identifierChain.length<=2&&t){var o=t.filter((function(e){return(0,i.vr)(e.alias,r.identifierChain[0].name)||e.identifierChain&&(0,i.vr)(e.identifierChain[0].name,r.identifierChain[0].name)}));!o.length&&r.firstInChain&&(o=t.filter((function(e){return!e.alias&&e.identifierChain&&(0,i.vr)(e.identifierChain[e.identifierChain.length-1].name,r.identifierChain[0].name)}))),o.length?o[0].identifierChain.length>1&&1===r.identifierChain.length&&(0,i.vr)(o[0].identifierChain[0].name,r.identifierChain[0].name)?r.type="database":o[0].alias&&(0,i.vr)(r.identifierChain[0].name,o[0].alias)&&r.identifierChain.length>1||!o[0].alias&&o[0].identifierChain&&(0,i.vr)(r.identifierChain[0].name,o[0].identifierChain[o[0].identifierChain.length-1].name)&&r.identifierChain.length>1?(r.type="column",e.expandIdentifierChain({tablePrimaries:t,wrapper:r,anyOwner:!0})):(r.type="table",e.expandIdentifierChain({tablePrimaries:t,wrapper:r,anyOwner:!0})):e.yy.subQueries&&(o=e.yy.subQueries.filter((function(e){return(0,i.vr)(e.alias,r.identifierChain[0].name)}))).length>0&&(r.type="subQuery",r.identifierChain=[{subQuery:o[0].alias}])}if("asterisk"!==r.type||r.linked||(t&&t.length>0?(r.tables=[],r.linked=!1,r.identifierChain||(r.identifierChain=[{asterisk:!0}]),e.expandIdentifierChain({tablePrimaries:t,wrapper:r,anyOwner:!1}),0===r.tables.length&&e.yy.locations.splice(n,1)):e.yy.locations.splice(n,1)),"table"===r.type&&void 0!==r.identifierChain&&1===r.identifierChain.length&&r.identifierChain[0].name&&e.yy.locations.some((function(e){if("alias"===e.type&&"cte"===e.source&&(0,i.XN)(e.alias,r.identifierChain[0].name))return r.type="alias",r.target="cte",r.alias=r.identifierChain[0].name,delete r.identifierChain,!0})),"table"!==r.type||void 0!==r.identifierChain&&0!==r.identifierChain.length||e.yy.locations.splice(n,1),"unknown"===r.type&&(r.type="column"),"column"===r.type)for(var s=n-1;s>=0;s--){var a=e.yy.locations[s];if("alias"===a.type&&"column"===a.source&&r.identifierChain&&1===r.identifierChain.length&&r.identifierChain[0].name&&a.alias&&r.identifierChain[0].name.toLowerCase()===a.alias.toLowerCase()){r.type="alias",r.source="column",r.alias=r.identifierChain[0].name,delete r.identifierChain,r.parentLocation=a.parentLocation;break}}if("column"===r.type){var c=r.identifierChain?r.identifierChain.concat():void 0;e.expandIdentifierChain({tablePrimaries:t,wrapper:r,anyOwner:!0,isColumnWrapper:!0,isColumnLocation:!0}),void 0===r.identifierChain?e.yy.locations.splice(n,1):0===r.identifierChain.length&&c&&1===c.length&&(r.identifierChain=c)}"column"===r.type&&r.identifierChain&&r.identifierChain.length>1&&r.tables&&r.tables.length>0&&(r.type="complex"),delete r.firstInChain,"column"!==r.type&&"complex"!==r.type?delete r.qualified:void 0===r.qualified&&(r.qualified=!1)};n--;)r();e.yy.locations.length>0&&(e.yy.allLocations=e.yy.allLocations.concat(e.yy.locations),e.yy.locations=[])}};var t=function(){e.yy.result.lowerCase=e.yy.lowerCase||!1;var t={};if(void 0!==e.yy.latestCommonTableExpressions&&e.yy.latestCommonTableExpressions.forEach((function(e){t[e.alias.toLowerCase()]=e})),i.Rc.forEach((function(n){if("suggestAggregateFunctions"!==n&&void 0!==e.yy.result[n]&&0===e.yy.result[n].tables.length)delete e.yy.result[n];else if(void 0!==e.yy.result[n]&&void 0!==e.yy.result[n].tables)for(var r=e.yy.result[n].tables.length-1;r>=0;r--){var i=e.yy.result[n].tables[r];1===i.identifierChain.length&&void 0!==i.identifierChain[0].name&&void 0!==t[i.identifierChain[0].name.toLowerCase()]&&e.yy.result[n].tables.splice(r,1)}})),void 0!==e.yy.result.colRef&&(e.yy.result.colRef.linked&&void 0!==e.yy.result.colRef.identifierChain&&0!==e.yy.result.colRef.identifierChain.length||(delete e.yy.result.colRef,void 0!==e.yy.result.suggestColRefKeywords&&(Object.keys(e.yy.result.suggestColRefKeywords).forEach((function(t){e.yy.result.suggestKeywords=e.yy.result.suggestKeywords.concat(e.createWeightedKeywords(e.yy.result.suggestColRefKeywords[t],-1))})),delete e.yy.result.suggestColRefKeywords),e.yy.result.suggestColumns&&1===e.yy.result.suggestColumns.types.length&&"COLREF"===e.yy.result.suggestColumns.types[0]&&(e.yy.result.suggestColumns.types=["T"]),delete e.yy.result.suggestValues)),void 0!==e.yy.result.colRef&&(e.yy.result.suggestValues||e.yy.result.suggestColRefKeywords||e.yy.result.suggestColumns&&"COLREF"===e.yy.result.suggestColumns.types[0]||delete e.yy.result.colRef),void 0!==e.yy.result.suggestIdentifiers&&e.yy.result.suggestIdentifiers.length>0&&(delete e.yy.result.suggestTables,delete e.yy.result.suggestDatabases),void 0!==e.yy.result.suggestColumns){var n=e.yy.result.suggestColumns;void 0===n.tables||0===n.tables.length?(delete e.yy.result.suggestColumns,delete e.yy.result.subQueries):(delete e.yy.result.suggestTables,delete e.yy.result.suggestDatabases,n.tables.forEach((function(e){if(void 0!==e.identifierChain&&1===e.identifierChain.length&&void 0!==e.identifierChain[0].name){var n=t[e.identifierChain[0].name.toLowerCase()];void 0!==n&&(delete e.identifierChain[0].name,e.identifierChain[0].cte=n.alias)}else void 0===e.identifierChain&&e.subQuery&&(e.identifierChain=[{subQuery:e.subQuery}],delete e.subQuery)})),void 0!==n.identifierChain&&0===n.identifierChain.length&&delete n.identifierChain)}else delete e.yy.result.subQueries;if(void 0!==e.yy.result.suggestJoinConditions&&(void 0!==e.yy.result.suggestJoinConditions.tables&&0!==e.yy.result.suggestJoinConditions.tables.length||delete e.yy.result.suggestJoinConditions),void 0!==e.yy.result.suggestTables&&void 0!==e.yy.result.commonTableExpressions){var r=[];e.yy.result.commonTableExpressions.forEach((function(t){var n={name:t.alias};e.yy.result.suggestTables.prependFrom&&(n.prependFrom=!0),e.yy.result.suggestTables.prependQuestionMark&&(n.prependQuestionMark=!0),r.push(n)})),r.length>0&&(e.yy.result.suggestCommonTableExpressions=r)}},n=function(e,t){t.alias?e.push({alias:t.alias,identifierChain:t.identifierChain}):e.push({identifierChain:t.identifierChain})};e.expandIdentifierChain=function(t){var r=t.wrapper,s=t.anyOwner,a=t.isColumnWrapper,c=t.isColumnLocation,l=t.tablePrimaries||e.yy.latestTablePrimaries;if(void 0!==r.identifierChain&&void 0!==l){var u=r.identifierChain.concat();if(0!==l.length){if(s||(l=o(l,r.owner)),u.length>0&&u[u.length-1].asterisk){var h=[];if(l.forEach((function(e){u.length>1&&!e.subQueryAlias?(2===u.length&&(0,i.vr)(e.alias,u[0].name)||2===u.length&&(0,i.vr)(e.identifierChain[0].name,u[0].name)||3===u.length&&e.identifierChain.length>1&&(0,i.vr)(e.identifierChain[0].name,u[0].name)&&(0,i.vr)(e.identifierChain[1].name,u[1].name))&&n(h,e):e.subQueryAlias?h.push({identifierChain:[{subQuery:e.subQueryAlias}]}):n(h,e)})),h.length>0)return r.tables=h,void delete r.identifierChain}var d,p=!1,f=!1;if(u.length>0)for(var g=0;g<l.length;g++)if(l[g].subQueryAlias)(0,i.vr)(l[g].subQueryAlias,u[0].name)&&(d=l[g]);else{if((0,i.vr)(l[g].alias,u[0].name)){d=l[g],f=!0;break}if(l[g].identifierChain.length>1&&u.length>1&&(0,i.vr)(l[g].identifierChain[0].name,u[0].name)&&(0,i.vr)(l[g].identifierChain[1].name,u[1].name)){d=l[g],p=!0;break}if(!d&&(0,i.vr)(l[g].identifierChain[0].name,u[0].name)&&u.length>(c?1:0))d=l[g];else if(!d&&l[g].identifierChain.length>1&&!l[g].alias&&(0,i.vr)(l[g].identifierChain[l[g].identifierChain.length-1].name,u[0].name)){d=l[g];break}}d?(u.shift(),p&&u.shift()):1!==l.length||a||(d=l[0]),d?a?(r.identifierChain=u,d.subQueryAlias?r.tables=[{subQuery:d.subQueryAlias}]:d.alias?r.tables=!c&&a&&f?[{identifierChain:d.identifierChain}]:[{identifierChain:d.identifierChain,alias:d.alias}]:r.tables=[{identifierChain:d.identifierChain}]):(d.subQueryAlias?u.unshift({subQuery:d.subQueryAlias}):u=d.identifierChain.concat(u),r.tables?(r.tables.push({identifierChain:u}),delete r.identifierChain):r.identifierChain=u):(a&&(r.tables=[]),l.forEach((function(e){var t=e.subQueryAlias?{subQuery:e.subQueryAlias}:{identifierChain:e.identifierChain};e.alias&&(t.alias=e.alias),r.tables&&r.tables.push(t)}))),delete r.owner,r.linked=!0}else delete r.identifierChain}};var o=function(e,t){var n=[];return e.forEach((function(e){(void 0===t&&void 0===e.owner||t===e.owner)&&n.push(e)})),n},s=function(t){var n=[],r=[];t.forEach((function(e){if(e.identifierChain&&e.identifierChain.length>0){var t={identifierChain:e.identifierChain};if(e.alias)t.alias=e.alias,r.push({name:t.alias+".",type:"alias"});else{var i=e.identifierChain[e.identifierChain.length-1];void 0!==i.name?r.push({name:i.name+".",type:"table"}):void 0!==i.subQuery&&r.push({name:i.subQuery+".",type:"sub-query"})}n.push(t)}else e.subQueryAlias&&(r.push({name:e.subQueryAlias+".",type:"sub-query"}),n.push({identifierChain:[{subQuery:e.subQueryAlias}]}))})),r.length>0&&(void 0===e.yy.result.suggestIdentifiers?e.yy.result.suggestIdentifiers=r:e.yy.result.suggestIdentifiers=r.concat(e.yy.result.suggestIdentifiers)),e.yy.result.suggestColumns.tables=n,e.yy.result.suggestColumns.identifierChain&&0===e.yy.result.suggestColumns.identifierChain.length&&delete e.yy.result.suggestColumns.identifierChain,e.yy.result.suggestColumns.linked=!0},a=function(){if(e.yy.cursorFound&&void 0!==e.yy.latestTablePrimaries){if(i.Rc.forEach((function(t){void 0!==e.yy.result[t]&&e.yy.result[t].tablePrimaries&&!e.yy.result[t].linked&&(e.yy.result[t].tables=[],e.yy.result[t].tablePrimaries.forEach((function(n){n.subQueryAlias||e.yy.result[t].tables.push(n.alias?{identifierChain:n.identifierChain.concat(),alias:n.alias}:{identifierChain:n.identifierChain.concat()})})),delete e.yy.result[t].tablePrimaries,e.yy.result[t].linked=!0)})),void 0!==e.yy.result.suggestColumns&&!e.yy.result.suggestColumns.linked){var t=o(e.yy.latestTablePrimaries,e.yy.result.suggestColumns.owner);e.yy.result.suggestColumns.tables||(e.yy.result.suggestColumns.tables=[]),e.yy.subQueries.length>0&&(e.yy.result.subQueries=e.yy.subQueries),void 0===e.yy.result.suggestColumns.identifierChain||0===e.yy.result.suggestColumns.identifierChain.length?t.length>1?s(t):(1===t.length&&(t[0].alias||t[0].subQueryAlias)&&s(t),e.expandIdentifierChain({wrapper:e.yy.result.suggestColumns,anyOwner:!1,isColumnWrapper:!0})):e.expandIdentifierChain({wrapper:e.yy.result.suggestColumns,anyOwner:!1,isColumnWrapper:!0})}if(void 0!==e.yy.result.colRef&&!e.yy.result.colRef.linked){e.expandIdentifierChain({wrapper:e.yy.result.colRef});var n=o(e.yy.latestTablePrimaries);(0===n.length||n.length>1&&1===e.yy.result.colRef.identifierChain.length)&&(e.yy.result.colRef.identifierChain=[])}void 0===e.yy.result.suggestKeyValues||e.yy.result.suggestKeyValues.linked||e.expandIdentifierChain({wrapper:e.yy.result.suggestKeyValues})}};e.addTablePrimary=function(t){void 0===e.yy.latestTablePrimaries&&(e.yy.latestTablePrimaries=[]),e.yy.latestTablePrimaries.push(t)},e.suggestFileFormats=function(){e.suggestKeywords(["AVRO","KUDU","ORC","PARQUET","RCFILE","SEQUENCEFILE","TEXTFILE"])},e.getKeywordsForOptionalsLR=function(e,t,n){for(var r=[],i=0;i<e.length;i++)if(e[i]||void 0!==n&&!n[i]){if(e[i])break}else t[i]instanceof Array?r=r.concat(t[i]):r.push(t[i]);return r},e.suggestDdlAndDmlKeywords=function(t){var n=["ALTER","CREATE","DELETE","DESCRIBE","DROP","GRANT","INSERT","REVOKE","SELECT","SET","SHOW","TRUNCATE","UPDATE","USE","WITH"];t&&(n=n.concat(t)),e.suggestKeywords(n)},e.checkForSelectListKeywords=function(t){if(0!==t.length){var n=t[t.length-1];if(n&&n.valueExpression){var r=e.getValueExpressionKeywords(n.valueExpression),i=[];n.suggestKeywords&&(i=i.concat(n.suggestKeywords)),r.suggestKeywords&&(i=i.concat(r.suggestKeywords)),r.suggestColRefKeywords&&(e.suggestColRefKeywords(r.suggestColRefKeywords),e.addColRefIfExists(n.valueExpression)),n.alias||i.push("AS"),i.length>0&&e.suggestKeywords(i)}}},e.checkForKeywords=function(t){t&&(t.suggestKeywords&&t.suggestKeywords.length>0&&e.suggestKeywords(t.suggestKeywords),t.suggestColRefKeywords&&(e.suggestColRefKeywords(t.suggestColRefKeywords),e.addColRefIfExists(t)))},e.createWeightedKeywords=function(e,t){var n=[];return e.forEach((function(e){void 0!==e.weight?(e.weight=t+e.weight/10,n.push(e)):n.push({value:e,weight:t})})),n},e.suggestKeywords=function(t){var n=[];0!==t.length&&(t.forEach((function(e){void 0!==e.weight?n.push(e):n.push({value:e,weight:-1})})),n.sort((function(e,t){return e.weight!==t.weight?t.weight-e.weight:e.value.localeCompare(t.value)})),e.yy.result.suggestKeywords=n)},e.suggestColRefKeywords=function(t){e.yy.result.suggestColRefKeywords=t},e.suggestTablesOrColumns=function(t){void 0!==e.yy.latestTablePrimaries&&e.yy.latestTablePrimaries.filter((function(e){return(0,i.vr)(e.alias,t)})).length>0?e.suggestColumns({identifierChain:[{name:t}]}):e.suggestTables({identifierChain:[{name:t}]})},e.suggestFunctions=function(t){e.yy.result.suggestFunctions=t||{}},e.suggestAggregateFunctions=function(){var t=[],n={};e.yy.latestTablePrimaries.forEach((function(e){void 0!==e.alias&&(n[e.alias]=!0),void 0===e.identifierChain||n[e.identifierChain[0].name]||void 0!==e.owner||t.push(e)})),e.yy.result.suggestAggregateFunctions={tablePrimaries:t}},e.suggestAnalyticFunctions=function(){e.yy.result.suggestAnalyticFunctions=!0},e.suggestSetOptions=function(){e.yy.result.suggestSetOptions=!0},e.suggestIdentifiers=function(t){e.yy.result.suggestIdentifiers=t},e.suggestColumns=function(t){void 0===t?t={identifierChain:[]}:void 0===t.identifierChain&&(t.identifierChain=[]),e.yy.result.suggestColumns=t},e.suggestGroupBys=function(t){e.yy.result.suggestGroupBys=t||{}},e.suggestOrderBys=function(t){e.yy.result.suggestOrderBys=t||{}},e.suggestFilters=function(t){e.yy.result.suggestFilters=t||{}},e.suggestKeyValues=function(t){e.yy.result.suggestKeyValues=t||{}},e.suggestTables=function(t){e.yy.result.suggestTables=t||{}},e.firstDefined=function(){for(var e=0;e+1<arguments.length;e+=2)if(arguments[e])return arguments[e+1]},e.addColRefToVariableIfExists=function(t,n){if(t&&t.columnReference&&t.columnReference.length&&n&&n.columnReference&&n.columnReference.length&&e.yy.locations.length>1){var r=function(t,n){1===n.length&&n[0].name&&e.yy.locations.some((function(e){if("column"===e.type&&e.alias===n[0].name)return n=e.identifierChain,!0}));for(var r=e.yy.locations.length-1;r>0;r--){var i=e.yy.locations[r];if("variable"===i.type&&i.value===t){i.colRef={identifierChain:n};break}}};/\${[^}]*}/.test(t.columnReference[0].name)?r(t.columnReference[0].name,n.columnReference):/\${[^}]*}/.test(n.columnReference[0].name)&&r(n.columnReference[0].name,t.columnReference)}},e.suggestDatabases=function(t){e.yy.result.suggestDatabases=t||{}},e.suggestHdfs=function(t){e.yy.result.suggestHdfs=t||{}},e.suggestValues=function(t){e.yy.result.suggestValues=t||{}},e.determineCase=function(t){e.yy.caseDetermined||(e.yy.lowerCase=t.toLowerCase()===t,e.yy.caseDetermined=!0)},e.handleQuotedValueWithCursor=function(t,n,r,i){if(-1!==n.indexOf("†")||-1!==n.indexOf("‡")){e.yy.partialCursor=-1!==n.indexOf("‡");var o=e.yy.partialCursor?n.indexOf("‡"):n.indexOf("†");e.yy.cursorFound={first_line:r.first_line,last_line:r.last_line,first_column:r.first_column+o,last_column:r.first_column+o+1};var s=n.substring(o+1),a=(t.upcomingInput().match(new RegExp(i,"g"))||[]).length;return a>0&&0!=(1&a)?(e.yy.missingEndQuote=!1,t.input()):(e.yy.missingEndQuote=!0,t.unput(s)),t.popState(),!0}return!1};var c=!1;e.parseSql=function(n,r,o){if(n=n.replace(/\r\n|\n\r/gm,"\n"),r=r.replace(/\r\n|\n\r/gm,"\n"),e.yy.result={locations:[]},e.yy.lowerCase=!1,e.yy.locations=[],e.yy.definitions=[],e.yy.allLocations=[],e.yy.subQueries=[],e.yy.errors=[],e.yy.selectListAliases=[],e.yy.activeDialect="generic",e.yy.locationsStack=[],e.yy.primariesStack=[],e.yy.subQueriesStack=[],e.yy.resultStack=[],e.yy.selectListAliasesStack=[],delete e.yy.caseDetermined,delete e.yy.cursorFound,delete e.yy.partialCursor,!c){var s=e.lexer.setInput;e.lexer.setInput=function(t,n){return s.bind(e.lexer)(t,n)},c=!0}e.prepareNewStatement();var l,u=15e4;if(n.length>u){if(n.length-n.lastIndexOf(";")>u)return{};var h=n.substring(n.length-u);n=h.substring(h.indexOf(";")+1)}if(r.length>u)if(r.length-r.indexOf(";")>u)r="";else{var d=r.substring(0,u);r=d.substring(0,d.lastIndexOf(";"))}e.yy.partialLengths=e.identifyPartials(n,r),e.yy.partialLengths.left>0&&(n=n.substring(0,n.length-e.yy.partialLengths.left)),e.yy.partialLengths.right>0&&(r=r.substring(e.yy.partialLengths.right));try{l=e.parse(n+(0===n.length||/[\s(]$/.test(n)?" † ":"‡")+r)}catch(t){if(void 0===e.yy.result)throw t;o&&(console.warn(t),console.warn(t.stack)),l=e.yy.result}e.yy.errors.length>0&&(e.yy.result.errors=e.yy.errors,o&&console.warn(e.yy.errors));try{a(),e.commitLocations(),(0,i.n9)(e),t()}catch(e){o&&(console.warn(e),console.warn(e.stack))}e.yy.allLocations.sort((function(e,t){return e.location.first_line!==t.location.first_line?e.location.first_line-t.location.first_line:e.location.first_column!==t.location.first_column?e.location.first_column-t.location.first_column:e.location.last_column!==t.location.last_column?t.location.last_column-e.location.last_column:t.type.localeCompare(e.type)})),e.yy.result.locations=e.yy.allLocations,e.yy.result.definitions=e.yy.definitions,e.yy.result.locations.forEach((function(e){delete e.linked})),void 0!==e.yy.result.suggestColumns&&delete e.yy.result.suggestColumns.linked,i.Rc.forEach((function(t){void 0!==e.yy.result[t]&&delete e.yy.result[t].linked})),void 0!==e.yy.result.colRef&&delete e.yy.result.colRef.linked,void 0!==e.yy.result.suggestKeyValues&&delete e.yy.result.suggestKeyValues.linked,void 0!==l.error&&void 0!==l.error.expected&&(l.error.expected=l.error.expected.filter((function(e){return-1===e.indexOf("CURSOR")}))),void 0!==l.error&&l.error.recoverable&&delete l.error;var p=null;return l.locations.forEach((function(e){"statement"===e.type&&(null===p?(e.location.first_line=1,e.location.first_column=1):(e.location.first_line=p.location.last_line,e.location.first_column=p.location.last_column+1),p=e)})),l}},initSyntaxParser:i.is}},2611:(e,t,n)=>{"use strict";n.d(t,{XN:()=>o,vr:()=>s,Rc:()=>a,n9:()=>g,hh:()=>m,is:()=>v});var r=n(8957);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.lastIndexOf(e,t);return-1!==r&&r===t});var o=function(e,t){return e&&t&&e.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase()===t.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase()},s=function(e,t){return e&&t&&e.toLowerCase()===t.toLowerCase()},a=["suggestJoinConditions","suggestAggregateFunctions","suggestFilters","suggestGroupBys","suggestOrderBys"],c="alias",l="database",u="statement",h="statementType",d="table",p="variable",f=["suggestColumns","suggestCommonTableExpressions","suggestDatabases","suggestTables"],g=function(e){var t=e.yy.partialLengths;e.yy.result&&t.backtickBefore&&!t.backtickAfter&&f.forEach((function(t){e.yy.result[t]&&(e.yy.result[t].appendBacktick=!0)}))},m=function(e){e.SELECT_FIRST_OPTIONAL_KEYWORDS=[{value:"ALL",weight:2},{value:"DISTINCT",weight:2}];var t=function(t){var n={first_line:t.first_line,last_line:t.last_line,first_column:t.first_column+1,last_column:t.last_column+1};if(e.yy.cursorFound&&e.yy.cursorFound.first_line===n.first_line&&e.yy.cursorFound.last_column<=n.first_column){var r=e.yy.partialLengths.left+e.yy.partialLengths.right;r-=e.yy.partialCursor?1:3,n.first_column=n.first_column+r,n.last_column=n.last_column+r}return n};e.addAsteriskLocation=function(n,r){e.yy.locations.push({type:"asterisk",location:t(n),identifierChain:r})},e.addClauseLocation=function(n,r,i,o){var s;s=o?0===e.yy.partialLengths.left&&0===e.yy.partialLengths.right?{type:n,missing:!0,location:t({first_line:r.last_line,first_column:r.last_column,last_line:r.last_line,last_column:r.last_column})}:{type:n,missing:!1,location:{first_line:i.last_line,first_column:i.last_column-1,last_line:i.last_line,last_column:i.last_column-1+e.yy.partialLengths.right+e.yy.partialLengths.left}}:{type:n,missing:!i,location:t(i||{first_line:r.last_line,first_column:r.last_column,last_line:r.last_line,last_column:r.last_column})},e.isInSubquery()&&(s.subquery=!0),e.yy.locations.push(s)},e.addColumnAliasLocation=function(n,r,i){var o={type:c,source:"column",alias:r,location:t(n),parentLocation:t(i)};if(e.yy.locations.length&&"column"===e.yy.locations[e.yy.locations.length-1].type){var s=e.yy.locations[e.yy.locations.length-1];s.location.first_line===o.parentLocation.first_line&&s.location.last_line===o.parentLocation.last_line&&s.location.first_column===o.parentLocation.first_column&&s.location.last_column===o.parentLocation.last_column&&(e.yy.locations[e.yy.locations.length-1].alias=r)}e.yy.locations.push(o)},e.addColumnLocation=function(n,r){r.length&&/\${[^}]*}/.test(r[r.length-1].name)?e.yy.locations.push({type:p,location:t(n),value:r[r.length-1].name}):e.yy.locations.push({type:"column",location:t(n),identifierChain:r,qualified:r.length>1})},e.addCteAliasLocation=function(n,r){e.yy.locations.push({type:c,source:"cte",alias:r,location:t(n)})},e.addDatabaseLocation=function(n,r){e.yy.locations.push({type:l,location:t(n),identifierChain:r})},e.addFileLocation=function(n,r){e.yy.locations.push({type:"file",location:t(n),path:r})},e.addFunctionLocation=function(n,r){var i={first_line:n.first_line,last_line:n.last_line,first_column:n.first_column,last_column:n.last_column-1};e.yy.locations.push({type:"function",location:t(i),function:r.toLowerCase()})},e.addFunctionArgumentLocations=function(n,r,i){r&&r.length&&r.forEach((function(r,o){var s={type:"functionArgument",location:t(r.location),function:n.toLowerCase(),argumentPosition:o,identifierChain:i||[{name:n}],expression:r.expression};r.suffix&&(s.suffix=r.suffix),e.yy.locations.push(s)}))},e.addNewDatabaseLocation=function(n,r){e.yy.definitions.push({type:l,location:t(n),identifierChain:r})},e.addNewTableLocation=function(n,r,i){var o=[];i&&i.forEach((function(e){o.push({identifierChain:[e.identifier],type:e.type,location:t(e.location)})})),e.yy.definitions.push({type:d,location:t(n),identifierChain:r,columns:o})},e.addStatementLocation=function(t){if(t.first_line!==t.last_line||1!==Math.abs(t.last_column-t.first_column)){var n;if(e.yy.cursorFound&&e.yy.cursorFound.last_line===t.last_line&&e.yy.cursorFound.first_column>=t.first_column&&e.yy.cursorFound.last_column<=t.last_column){var r=e.yy.partialLengths.left+e.yy.partialLengths.right;n={first_line:t.first_line,last_line:t.last_line,first_column:t.first_column+1,last_column:t.last_column+r-(e.yy.partialCursor?0:2)}}else n={first_line:t.first_line,last_line:t.last_line,first_column:t.first_column+1,last_column:t.last_column+1};e.yy.locations.push({type:u,location:n})}},e.addStatementTypeLocation=function(n,r,i){if("SELECT"!==n&&e.yy.allLocations)for(var o=e.yy.allLocations.length-1;o>=0&&(!e.yy.allLocations[o]||e.yy.allLocations[o].type!==u);o--)if(e.yy.allLocations[o]&&e.yy.allLocations[o].type===h)return;var s={type:h,location:t(r),identifier:n};if(void 0!==i)switch(n){case"ALTER":/ALTER\s+VIEW/i.test(i)?s.identifier="ALTER VIEW":s.identifier="ALTER TABLE";break;case"COMPUTE":s.identifier="COMPUTE STATS";break;case"CREATE":/CREATE\s+VIEW/i.test(i)?s.identifier="CREATE VIEW":/CREATE\s+TABLE/i.test(i)?s.identifier="CREATE TABLE":/CREATE\s+DATABASE/i.test(i)?s.identifier="CREATE DATABASE":/CREATE\s+ROLE/i.test(i)?s.identifier="CREATE ROLE":/CREATE\s+FUNCTION/i.test(i)?s.identifier="CREATE FUNCTION":s.identifier="CREATE TABLE";break;case"DROP":/DROP\s+VIEW/i.test(i)?s.identifier="DROP VIEW":/DROP\s+TABLE/i.test(i)?s.identifier="DROP TABLE":/DROP\s+DATABASE/i.test(i)?s.identifier="DROP DATABASE":/DROP\s+ROLE/i.test(i)?s.identifier="DROP ROLE":/DROP\s+STATS/i.test(i)?s.identifier="DROP STATS":/DROP\s+FUNCTION/i.test(i)?s.identifier="DROP FUNCTION":s.identifier="DROP TABLE";break;case"INVALIDATE":s.identifier="INVALIDATE METADATA";break;case"LOAD":s.identifier="LOAD DATA";break;case"TRUNCATE":s.identifier="TRUNCATE TABLE"}e.yy.locations.push(s)},e.addSubqueryAliasLocation=function(n,r){e.yy.locations.push({type:c,source:"subquery",alias:r,location:t(n)})},e.addTableAliasLocation=function(n,r,i){e.yy.locations.push({type:c,source:"table",alias:r,location:t(n),identifierChain:i})},e.addTableLocation=function(n,r){e.yy.locations.push({type:d,location:t(n),identifierChain:r})},e.addVariableLocation=function(n,r){/\${[^}]*}/.test(r)&&e.yy.locations.push({type:p,location:t(n),value:r})},e.addUnknownLocation=function(n,r){var i;return i=r.length&&/\${[^}]*}/.test(r[r.length-1].name)?{type:p,location:t(n),value:r[r.length-1].name}:{type:"unknown",location:t(n),identifierChain:r,qualified:r.length>1},e.yy.locations.push(i),i},e.applyTypes=function(e,t){e.types=t.types,t.types&&"UDFREF"===t.types[0]&&(t.function?e.udfRef=t.function:e.types=["T"])},e.applyTypeToSuggestions=function(t){t.types||console.trace(),"BOOLEAN"!==t.types[0]&&(e.yy.result.suggestFunctions&&!e.yy.result.suggestFunctions.types&&e.applyTypes(e.yy.result.suggestFunctions,t),e.yy.result.suggestColumns&&!e.yy.result.suggestColumns.types&&e.applyTypes(e.yy.result.suggestColumns,t))},e.extractExpressionText=function(e){for(var t=[],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=r.some((function(e){if(void 0===e)return!1;if("string"==typeof e||"number"==typeof e)t.push(e);else if("object"===i(e))if(e.text)t.push(e.text);else{if(!e.columnReference)return!0;t.push(e.columnReference.map((function(e){return e.name})).join("."))}}));s||(e.text=t.join(" "))},e.getSubQuery=function(e){var t=[];return e.selectList.forEach((function(e){var n={};e.alias&&(n.alias=e.alias),e.valueExpression&&e.valueExpression.columnReference?n.identifierChain=e.valueExpression.columnReference:e.asterisk&&(n.identifierChain=[{asterisk:!0}]),e.valueExpression&&e.valueExpression.types&&1===e.valueExpression.types.length&&(n.type=e.valueExpression.types[0],"UDFREF"===n.type&&(e.valueExpression.function?n.udfRef=e.valueExpression.function:n.type=["T"])),t.push(n)})),{columns:t}};var n=/[0-9a-zA-Z_`]*$/,r=/^[0-9a-zA-Z_`]*(?:\((?:[^)]*\))?)?/;e.identifyPartials=function(e,t){var i=e.match(n),o=t.match(r);return{left:i?i[0].length:0,right:o?o[0].length:0,backtickBefore:i&&-1!==i[0].indexOf("`"),backtickAfter:o&&-1!==o[0].indexOf("`")}},e.suggestKeywords=function(t){"string"==typeof t&&(t=e.KEYWORDS&&e.KEYWORDS[t]||[]);var n=[];0!==t.length&&(t.forEach((function(e){void 0!==e.weight?n.push(e):n.push({value:e,weight:-1})})),n.sort((function(e,t){return e.weight!==t.weight?t.weight-e.weight:e.value.localeCompare(t.value)})),e.yy.result.suggestKeywords=n)},e.valueExpressionSuggest=function(t,n){t&&t.columnReference&&(e.suggestValues(),e.yy.result.colRef={identifierChain:t.columnReference}),e.suggestColumns(),e.suggestFunctions();var r=[{value:"CASE",weight:450},{value:"FALSE",weight:450},{value:"NULL",weight:450},{value:"TRUE",weight:450}];void 0!==t&&void 0!==n||(r=r.concat(["EXISTS","NOT"])),t&&"NUMBER"===t.types[0]&&e.applyTypeToSuggestions(t),e.suggestKeywords(r)}},E=["addAsteriskLocation","addClauseLocation","addColRefIfExists","addColRefToVariableIfExists","addColumnAliasLocation","addColumnLocation","addCommonTableExpressions","addCteAliasLocation","addDatabaseLocation","addFileLocation","addFunctionArgumentLocations","addFunctionLocation","addNewDatabaseLocation","addNewTableLocation","addStatementLocation","addStatementTypeLocation","addSubqueryAliasLocation","addTableAliasLocation","addTableLocation","addTablePrimary","addUnknownLocation","addVariableLocation","applyArgumentTypesToSuggestions","applyTypeToSuggestions","checkForKeywords","checkForSelectListKeywords","commitLocations","extractExpressionText","firstDefined","getSelectListKeywords","getSubQuery","getValueExpressionKeywords","identifyPartials","popQueryState","prepareNewStatement","pushQueryState","selectListNoTableSuggest","suggestAggregateFunctions","suggestAnalyticFunctions","suggestColRefKeywords","suggestColumns","suggestDatabases","suggestDdlAndDmlKeywords","suggestFileFormats","suggestFilters","suggestFunctions","suggestGroupBys","suggestHdfs","suggestIdentifiers","suggestJoinConditions","suggestJoins","suggestKeyValues","suggestKeywords","suggestOrderBys","suggestSelectListAliases","suggestTables","suggestTablesOrColumns","suggestValueExpressionKeywords","suggestValues","valueExpressionSuggest"],y=function(){},v=function(e){E.forEach((function(t){e[t]=y})),e.yy.locations=[{}],e.determineCase=function(t){e.yy.caseDetermined||(e.yy.lowerCase=t.toLowerCase()===t,e.yy.caseDetermined=!0)},e.getKeywordsForOptionalsLR=function(){return[]},e.mergeSuggestKeywords=function(){return{}},e.getTypeKeywords=function(){return[]},e.getColumnDataTypeKeywords=function(){return[]},e.findCaseType=function(){return{types:["T"]}},e.expandIdentifierChain=function(){return[]},e.createWeightedKeywords=function(){return[]},e.handleQuotedValueWithCursor=function(t,n,r,i){if(-1!==n.indexOf("†")||-1!==n.indexOf("‡")){e.yy.partialCursor=-1!==n.indexOf("‡");var o=e.yy.partialCursor?n.indexOf("‡"):n.indexOf("†");e.yy.cursorFound={first_line:r.first_line,last_line:r.last_line,first_column:r.first_column+o,last_column:r.first_column+o+1};var s=n.substring(o+1),a=(t.upcomingInput().match(new RegExp(i,"g"))||[]).length;return a>0&&0!=(1&a)?(e.yy.missingEndQuote=!1,t.input()):(e.yy.missingEndQuote=!0,t.unput(s)),t.popState(),!0}return!1},e.yy.parseError=function(t,n){e.yy.error=n};var t={";":!0,".":!0,CREATE_REMOTE:!0,EOF:!0,UNSIGNED_INTEGER:!0,UNSIGNED_INTEGER_E:!0,REGULAR_IDENTIFIER:!0,CURSOR:!0,PARTIAL_CURSOR:!0,HDFS_START_QUOTE:!0,HDFS_PATH:!0,HDFS_END_QUOTE:!0,COMPARISON_OPERATOR:!0,ARITHMETIC_OPERATOR:!0,VARIABLE_REFERENCE:!0,BACKTICK:!0,VALUE:!0,PARTIAL_VALUE:!0,SINGLE_QUOTE:!0,DOUBLE_QUOTE:!0},n={BETWEEN_AND:"AND",OVERWRITE_DIRECTORY:"OVERWRITE",STORED_AS_DIRECTORIES:"STORED",LIKE_PARQUET:"LIKE",PARTITION_VALUE:"PARTITION"};e.parseSyntax=function(i,o,s){e.yy.caseDetermined=!1,e.yy.error=void 0,e.yy.latestTablePrimaries=[],e.yy.subQueries=[],e.yy.selectListAliases=[],e.yy.latestTablePrimaries=[],e.yy.activeDialect="generic";try{e.yy.error=!1,e.parse(i+o)}catch(t){if(s)throw console.warn(e.yy.error),t}if(e.yy.error&&(e.yy.error.loc.last_column<i.length||!i.endsWith(e.yy.error.text))){var a=[],c={},l=e.yy.caseDetermined&&e.yy.lowerCase||e.yy.error.text.toLowerCase()===e.yy.error.text;if(2===e.yy.error.expected.length&&-1!==e.yy.error.expected.indexOf("';'")&&-1!==e.yy.error.expected.indexOf("'EOF'"))return e.yy.error.expected=[],e.yy.error.expectedStatementEnd=!0,e.yy.error;for(var u=0;u<e.yy.error.expected.length;u++){var h=e.yy.error.expected[u];if("REGULAR_IDENTIFIER"===(h=h.substring(1,h.length-1))){if(e.yy.error.expectedIdentifier=!0,/^<[a-z]+>/.test(e.yy.error.token)){var d="`"+e.yy.error.text+"`";a.push({text:d,distance:(0,r.Z)(e.yy.error.text,d,!0)}),e.yy.error.possibleReserved=!0}}else if(!t[h]&&/[a-z_]+/i.test(h)){if(h.toUpperCase()!==h)continue;if((h=n[h]||h)===e.yy.error.text.toUpperCase())return!1;var p=l?h.toLowerCase():h;p&&!c[p]&&(c[p]=!0,a.push({text:p,distance:(0,r.Z)(e.yy.error.text,p,!0)}))}}return 0===a.length?(e.yy.error.expected=[],e.yy.error.incompleteStatement=!0,e.yy.error):(a.sort((function(e,t){return e.distance===t.distance?e.text.localeCompare(t.text):e.distance-t.distance})),e.yy.error.expected=a,e.yy.error.incompleteStatement=!0,e.yy.error)}return!!e.yy.error&&(e.yy.error.expected=[],e.yy.error.incompleteStatement=!0,e.yy.error)}}},5305:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!0,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},REAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!1,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!0,STRING:!1,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!0,VARCHAR:!0,STRING:!0,T:!0}}},5885:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!1,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},DATE:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!0,BINARY:!1,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},BINARY:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!0,TINYINT:!1,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!1,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!1,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!1,INTEGER:!1,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!1,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!1,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!1,DECIMAL:!1,NUMBER:!0,STRING:!1,CHAR:!1,VARCHAR:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!1,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,DATE:!1,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!0,DATE:!0,BINARY:!1,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,DATE:!0,BINARY:!0,TINYINT:!0,SMALLINT:!0,INT:!0,INTEGER:!0,BIGINT:!0,FLOAT:!0,DOUBLE:!0,DECIMAL:!0,NUMBER:!0,STRING:!0,CHAR:!0,VARCHAR:!0,T:!0}}},2944:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!0,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},REAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!1,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!0,STRING:!1,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!0,VARCHAR:!0,STRING:!0,T:!0}}},611:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r={BOOLEAN:{BOOLEAN:!0,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},TIMESTAMP:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!1,VARCHAR:!1,STRING:!0,T:!0},TINYINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},SMALLINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},INT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},BIGINT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DOUBLE:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},REAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},DECIMAL:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},FLOAT:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},NUMBER:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!1,VARCHAR:!1,STRING:!1,T:!0},CHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!1,T:!0},VARCHAR:{BOOLEAN:!1,TIMESTAMP:!1,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!0,STRING:!1,T:!0},STRING:{BOOLEAN:!1,TIMESTAMP:!0,TINYINT:!1,SMALLINT:!1,INT:!1,BIGINT:!1,DOUBLE:!1,REAL:!1,DECIMAL:!1,FLOAT:!1,NUMBER:!1,CHAR:!0,VARCHAR:!1,STRING:!0,T:!0},T:{BOOLEAN:!0,TIMESTAMP:!0,TINYINT:!0,SMALLINT:!0,INT:!0,BIGINT:!0,DOUBLE:!0,REAL:!0,DECIMAL:!0,FLOAT:!0,NUMBER:!0,CHAR:!0,VARCHAR:!0,STRING:!0,T:!0}}},1302:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(5305),i=n(5885),o=n(2944),s=n(611),a=function(e,t,n){if(1===t.length&&"T"===t[0])return!0;var a,c=(a=[],n.forEach((function(e){e.indexOf("(")>-1?a.push(e.substring(0,e.indexOf("("))):a.push(e)})),a);if(-1!==c.indexOf("ARRAY")||-1!==c.indexOf("MAP")||-1!==c.indexOf("STRUCT"))return!0;for(var l=function(e){switch(e){case"hive":return i.R;case"impala":return o.R;case"sparksql":return s.R;default:return r.R}}(e),u=0;u<t.length;u++)for(var h=0;h<c.length;h++){if(void 0===l[t[u]]||void 0===l[t[u]][c[h]])return!0;if(l[t[u]]&&l[t[u]][c[h]])return!0}return!1}},8957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t,n){n&&(e=e.toLowerCase(),t=t.toLowerCase());var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;for(var o,s,a,c,l,u=new Array(r),h=0;h<=r;h++){u[h]=new Array(i),u[h][0]=h;for(var d=1;d<=i;d++)h?(o=e[h-1]===t[d-1]?0:1,s=u[h-1][d]+1,a=u[h][d-1]+1,c=u[h-1][d-1]+o,u[h][d]=s<=a&&s<=c?s:a<=s&&a<=c?a:c,h>1&&d>1&&e[h]===t[d-1]&&e[h-1]===t[d]&&(l=u[h-2][d-2]+o)<u[h][d]&&(u[h][d]=l)):u[0][d]=d}return u[r][i]}},3780:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){window.DJANGO_DEBUG_MODE&&!window.HUE_I18n[e]&&(window.missing_I18n||(window.missing_I18n=[]),window.missing_I18n.push("'".concat(e,"': '${ _('").concat(e,"') }',")));for(var t=window.HUE_I18n&&window.HUE_I18n[e]||e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((function(e){t=t.replace("%s",e)})),t}},8070:()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}JSON.bigdataParse=function(){"use strict";var t,n,r,i,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},s=function(e){throw{name:"SyntaxError",message:e,at:t,text:r}},a=function(e){e&&e!==n&&s("Expected '"+e+"' instead of '"+n+"'");try{return n=r.charAt(t),t+=1,n}catch(e){return""}},c=function(){var e,t="";for("-"===n&&(t="-",a("-"));n>="0"&&n<="9";)t+=n,a();if("."===n)for(t+=".";a()&&n>="0"&&n<="9";)t+=n;if("e"===n||"E"===n)for(t+=n,a(),"-"!==n&&"+"!==n||(t+=n,a());n>="0"&&n<="9";)t+=n,a();if(e=+t,isFinite(e))return t.length>15?t:e;s("Bad number")},l=function(){var e,t,r,i="";if('"'===n)for(;a();){if('"'===n)return a(),i;if("\\"===n)if(a(),"u"===n){for(r=0,t=0;t<4&&(e=parseInt(a(),16),isFinite(e));t+=1)r=16*r+e;i+=String.fromCharCode(r)}else{if("string"!=typeof o[n])break;i+=o[n]}else i+=n}s("Bad string")},u=function(){for(;n&&n<=" ";)a()};return i=function(){switch(u(),n){case"{":return function(){var e,t={};if("{"===n){if(a("{"),u(),"}"===n)return a("}"),t;for(;n;){if(e=l(),u(),a(":"),Object.hasOwnProperty.call(t,e)&&s('Duplicate key "'+e+'"'),t[e]=i(),u(),"}"===n)return a("}"),t;a(","),u()}}s("Bad object")}();case"[":return function(){var e=[];if("["===n){if(a("["),u(),"]"===n)return a("]"),e;for(;n;){if(e.push(i()),u(),"]"===n)return a("]"),e;a(","),u()}}s("Bad array")}();case'"':return l();case"-":return c();default:return n>="0"&&n<="9"?c():function(){switch(n){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}s("Unexpected '"+n+"'")}()}},function(o,a){var c;return r=o,t=0,n=" ",c=i(),u(),n&&s("Syntax error"),"function"==typeof a?function t(n,r){var i,o,s=n[r];if(s&&"object"===e(s))for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(void 0!==(o=t(s,i))?s[i]=o:delete s[i]);return a.call(n,r,s)}({"":c},""):c}}()},911:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".ace-syntax-dropdown-container{position:fixed;z-index:10000}.ace-syntax-dropdown-container .hue-dropdown-drawer-inner{max-height:200px;overflow-y:auto}.ace-syntax-dropdown-container .hue-dropdown-drawer-inner li button{font-size:13px}",""]);const o=i},6696:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".result-grid{position:relative;height:100%;width:100%}.result-grid.grayed-out{opacity:.5}.result-grid.grayed-out ::v-deep(.hue-table-container){overflow:hidden !important}",""]);const o=i},216:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,'.no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.sql-scratchpad{font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;width:100%;height:100%;overflow:hidden}.sql-scratchpad .sql-scratchpad-container{position:absolute;top:0;bottom:0;left:0;right:0;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-editor{-ms-flex:0 0 50%;-webkit-flex:0 0 50%;flex:0 0 50%}.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-progress{-ms-flex:0 0 3px;-webkit-flex:0 0 3px;flex:0 0 3px}.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-actions{-ms-flex:0 0 25px;-webkit-flex:0 0 25px;flex:0 0 25px}.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-actions button,.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-actions form{display:inline-block}.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-logs,.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-result{-ms-flex:0 1 50%;-webkit-flex:0 1 50%;flex:0 1 50%;position:relative;overflow:hidden}.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-logs h1,.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-result h1{font-size:18px;color:#888;font-style:italic;margin:15px 5px}.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-logs .hue-table-container,.sql-scratchpad .sql-scratchpad-container .sql-scratchpad-result .hue-table-container{height:100%;width:100%;overflow:auto}',""]);const o=i},2281:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".hue-btn{height:32px;border-radius:3px;border:solid 1px #d6d8db;background-color:#fff;color:#008cff;padding:0 12px}.hue-btn.hue-btn-small{font-size:12px;height:24px;padding:0 8px}.hue-btn.hue-btn-large{font-size:16px;height:40px;padding:0 20px}.hue-btn:hover{border:solid 1px #005ba6}.hue-btn:active{border:solid 1px #004379}.hue-btn[disabled]{cursor:default;color:#adb2b6;border:solid 1px #eaebec}.hue-btn:focus{outline:none}.hue-btn:focus-visible{border:solid 1px #004379;outline:#bee2ff auto 4px}.hue-btn.hue-btn-primary:not([disabled]){color:#fff;background-color:#008cff;border:solid 1px #008cff}.hue-btn.hue-btn-primary:not([disabled]):hover{background-color:#005ba6;border:solid 1px #005ba6}.hue-btn.hue-btn-primary:not([disabled]).active{background-color:#004379;border:solid 1px #004379}.hue-btn.hue-btn-primary:not([disabled]):focus-visible{border:solid 1px #1b2329}.hue-btn.hue-btn-alert:not([disabled]){color:#fff;background-color:#fe3f3f;border:solid 1px #fe3f3f}.hue-btn.hue-btn-alert:not([disabled]):hover{background-color:#9e1414;border:solid 1px #9e1414}.hue-btn.hue-btn-alert:not([disabled]):active{background-color:#6e0707;border:solid 1px #6e0707}.hue-btn.hue-btn-alert:not([disabled]):focus-visible{border:solid 1px #6e0707;outline-color:#ffc9c9;outline-width:4px}.hue-btn.hue-btn-borderless:not([disabled]){border:solid 1px transparent}.hue-btn.hue-btn-borderless:not([disabled]):hover{border:solid 1px #d6d8db}.hue-btn.hue-btn-borderless:not([disabled]):active{border:solid 1px #adb2b6}.hue-btn.hue-btn-borderless[disabled]{border:solid 1px transparent;color:#adb2b6}.hue-btn.hue-btn-alert[disabled],.hue-btn.hue-btn-primary[disabled]{background-color:#eaebec;border:solid 1px #eaebec}",""]);const o=i},5301:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.hue-table-container{overflow-x:auto;width:100%;margin:0 0 15px 0}.hue-table-container .hue-table{line-height:14px;table-layout:auto;border-collapse:separate}.hue-table-container .hue-table.header-less{border-collapse:collapse}.hue-table-container .hue-table.header-less tbody>tr:first-child{border-top:1px solid #d6d8db}.hue-table-container .hue-table thead tr,.hue-table-container .hue-table tbody tr{height:40px}.hue-table-container .hue-table thead tr th,.hue-table-container .hue-table thead tr td,.hue-table-container .hue-table tbody tr th,.hue-table-container .hue-table tbody tr td{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:16px;max-width:300px;padding:12px;border-bottom:1px solid #d6d8db;text-align:left}.hue-table-container .hue-table thead tr th.column-flush,.hue-table-container .hue-table thead tr td.column-flush,.hue-table-container .hue-table tbody tr th.column-flush,.hue-table-container .hue-table tbody tr td.column-flush{width:100%}.hue-table-container .hue-table thead tr th{background-color:#fff;color:#5a656d;font-size:13px;font-weight:500;white-space:nowrap}.hue-table-container .hue-table thead tr th.sticky-first-col{background-color:#fff;position:sticky;position:-webkit-sticky;left:0;z-index:102}.hue-table-container .hue-table thead tr th .sort-header{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}.hue-table-container .hue-table tbody tr td{color:#1b2329;font-size:14px}.hue-table-container .hue-table tbody tr td.sticky-first-col{position:sticky;position:-webkit-sticky;background-color:#fff;left:0;z-index:100}.hue-table-container .hue-table tbody tr td:last-of-type{padding-right:8px}.hue-table-container .hue-table tbody.clickable-rows tr{cursor:pointer}.hue-table-container .hue-table tbody.clickable-rows tr:hover{background-color:#edf7ff}.hue-table-container .hue-table.sticky-header thead th{position:sticky;position:-webkit-sticky;top:0;z-index:101}.hue-table-container .hue-table.sticky-header thead th.sticky-first-col{position:sticky;position:-webkit-sticky;top:0}",""]);const o=i},4801:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.spinner-container{-webkit-animation:fade-in-frames 0.5s;-moz-animation:fade-in-frames 0.5s;-ms-animation:fade-in-frames 0.5s;-o-animation:fade-in-frames 0.5s;animation:fade-in-frames 0.5s;position:relative;z-index:10000}.spinner-container.spinner{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto 0;vertical-align:center}.spinner-container.spinner-overlay{position:absolute;top:0;bottom:0;left:0;right:0;-webkit-animation:fade-in-frames 0.5s;-moz-animation:fade-in-frames 0.5s;-ms-animation:fade-in-frames 0.5s;-o-animation:fade-in-frames 0.5s;animation:fade-in-frames 0.5s;z-index:10000;background:rgba(255,255,255,.5)}.spinner-container.spinner-inline{-webkit-animation:fade-in-frames 0.5s;-moz-animation:fade-in-frames 0.5s;-ms-animation:fade-in-frames 0.5s;-o-animation:fade-in-frames 0.5s;animation:fade-in-frames 0.5s;display:inline-block;position:relative}.spinner-container.spinner-blackout{z-index:999;background-color:#fff}.spinner-container .spinner-inner{white-space:nowrap}.spinner-container .spinner-inner .hi{margin-bottom:0}.spinner-container .spinner-inner .spinner-spin{-webkit-animation:spin-frames 0.8s linear infinite;-moz-animation:spin-frames 0.8s linear infinite;-ms-animation:spin-frames 0.8s linear infinite;-o-animation:spin-frames 0.8s linear infinite;animation:spin-frames 0.8s linear infinite;color:#0b7fad}@-webkit-keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-moz-keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-ms-keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@-o-keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}@keyframes spin-frames{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.spinner-container .spinner-inner span{margin-left:5px;color:#989ea4}.spinner-container .spinner-inner.spinner-center{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-container .spinner-inner.spinner-large{font-size:25px}.spinner-container .spinner-inner.spinner-large .spinner-spin{font-size:25px}.spinner-container .spinner-inner.spinner-large span{line-height:25px}.spinner-container .spinner-inner.spinner-xlarge{font-size:50px}.spinner-container .spinner-inner.spinner-xlarge .spinner-spin{font-size:50px}.spinner-container .spinner-inner.spinner-xlarge span{line-height:50px}.spinner-container .spinner-inner.spinner-large span,.spinner-container .spinner-inner.spinner-xlarge span{font-size:.6666666667em;vertical-align:top}",""]);const o=i},1974:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.hue-dropdown-drawer{position:fixed;z-index:10610}.hue-dropdown-drawer.open .hue-dropdown-drawer-inner{display:block}.hue-dropdown-drawer .hue-dropdown-drawer-inner{display:none;position:absolute;z-index:1000;margin:2px 0 0;padding:0;background-color:#fff;border:1px solid #d6d8db;border-radius:3px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2)}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul{overflow-x:hidden;margin:0 !important;padding:0;list-style:none;font-size:13px}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li.dropdown-divider{height:1px;background-color:#d6d8db}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li{color:#333e47}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li button,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li a{display:block;width:100%;padding:6px 16px;clear:both;font-weight:400;text-align:inherit;white-space:nowrap;background-color:transparent;border:0;position:relative;outline:0}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li button:hover,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li button.active,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li button.focus,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li a:hover,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li a.active,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li a.focus{background-color:#dbe8f1}.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li.selected button,.hue-dropdown-drawer .hue-dropdown-drawer-inner>ul li.selected a{background-color:#dbe8f1}",""]);const o=i},8345:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".hi{vertical-align:middle;display:inline-block !important;width:1em !important;height:1em !important;fill:currentColor;margin-bottom:.2em}.hi.hi-fw{width:1.28571429em !important}.hi.hi-bigger{height:1.1em !important}",""]);const o=i},172:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select[data-v-5ccb4105]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top[data-v-5ccb4105]{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right[data-v-5ccb4105]{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom[data-v-5ccb4105]{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left[data-v-5ccb4105]{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow[data-v-5ccb4105]{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow[data-v-5ccb4105]{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames-5ccb4105{from{opacity:0}to{opacity:1}}.executable-progress-container[data-v-5ccb4105]{height:3px;overflow:hidden;margin-bottom:2px;padding:0 5px}.executable-progress-container .executable-progress[data-v-5ccb4105]{width:100%;height:100%;position:relative}.executable-progress-container .executable-progress .executable-progress-bar[data-v-5ccb4105]{background-color:#fff;-webkit-transition:height .2s ease;-moz-transition:height .2s ease;-ms-transition:height .2s ease;-o-transition:height .2s ease;transition:height .2s ease}@-webkit-keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@-moz-keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@-ms-keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@-o-keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}@keyframes pulsate-5ccb4105{0%{margin-left:0}50%{margin-left:30px}100%{margin-left:0}}.executable-progress-container .executable-progress .executable-progress-bar.progress-starting[data-v-5ccb4105]{background-color:#0b7fad;-webkit-animation:pulsate-5ccb4105 1s infinite;-moz-animation:pulsate-5ccb4105 1s infinite;-ms-animation:pulsate-5ccb4105 1s infinite;-o-animation:pulsate-5ccb4105 1s infinite;animation:pulsate-5ccb4105 1s infinite}.executable-progress-container .executable-progress .executable-progress-bar.progress-running[data-v-5ccb4105]{background-color:#0b7fad}.executable-progress-container .executable-progress .executable-progress-bar.progress-success[data-v-5ccb4105]{background-color:#6be36b}.executable-progress-container .executable-progress .executable-progress-bar.progress-failed[data-v-5ccb4105]{background-color:#fe6161}",""]);const o=i},9824:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"input.limit-input[data-v-0a455a57]{-moz-appearance:textfield;border-radius:2px;height:13px;width:50px;margin:0 5px;padding:5px 6px}input.limit-input[data-v-0a455a57]::-webkit-outer-spin-button,input.limit-input[data-v-0a455a57]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}",""]);const o=i},1795:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,'.no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.ace-editor-component{height:100%;width:100%;text-align:left;color:#000}.ace-editor-component .ace-editor{height:100%}.ace-editor-component .hue-ace-syntax-error{position:absolute;border-bottom:1px dotted #fe3f3f;border-radius:0 !important}.ace-editor-component .hue-ace-syntax-warning{position:absolute;border-bottom:1px dotted #ff8400;border-radius:0 !important}.ace-editor-component .ace-hue .ace_gutter-cell{border-right:1px solid transparent}.ace-editor-component .ace-hue .ace_gutter-cell.ace-active-gutter-decoration{background-color:#dbe8f1;border-right:1px solid #0b7fad}.ace-editor-component .ace-hue .ace_gutter-cell.ace-executing-gutter-decoration{background-color:#dbe8f1;border-right:1px solid #0b7fad;-webkit-animation:execute-pulse 2s infinite ease-in-out;-moz-animation:execute-pulse 2s infinite ease-in-out;-ms-animation:execute-pulse 2s infinite ease-in-out;-o-animation:execute-pulse 2s infinite ease-in-out;animation:execute-pulse 2s infinite ease-in-out}@-webkit-keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}@-moz-keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}@-ms-keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}@-o-keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}@keyframes execute-pulse{0%{background-color:rgba(0,140,255,.1)}50%{background-color:rgba(0,140,255,.4);color:#5a656d}100%{background-color:rgba(0,140,255,.1)}}.ace-editor-component .ace-hue .ace_gutter-cell.ace-failed-gutter-decoration{background-color:#ffecec;border-right:1px solid #9e1414}.ace-editor-component .ace-hue .ace_gutter-cell.ace-completed-gutter-decoration{background-color:#e5ffe5;border-right:1px solid #6be36b}.ace-editor-component .ace-hue .ace_gutter-cell.ace_error{background-color:#ffecec;border-right:1px solid #9e1414;border-left:none}.ace-editor-component .ace-hue .hue-ace-location{position:absolute;background-color:#dbe8f1;border:1px solid #dbe8f1;border-radius:1px;margin-left:-1px;margin-top:-1px}.ace-editor-component .ace-hue .ace_marker-layer .ace-failed-marker{position:absolute;width:100% !important;margin-left:-3px}.ace-editor-component .ace-hue .ace_marker-layer .ace-failed-marker,.ace-editor-component .ace-hue .ace_marker-layer .ace_error-line{background-color:#ffecec !important;opacity:.5;z-index:6}.ace-editor-component .ace-hue-dark .ace_gutter-cell{border-right:1px solid transparent}.ace-editor-component .ace-hue-dark .ace_gutter-cell.ace-active-gutter-decoration{background-color:#19323c;color:#cbdae0;border-right:1px solid #224452}.ace-editor-component .ace-hue-dark .ace_gutter-cell.ace_error{background-color:#ffecec;border-right:1px solid #9e1414;border-left:none}.ace-editor-component .ace-hue-dark .hue-ace-location{position:absolute;background-color:#19323c;border:1px solid #19323c;border-radius:1px;margin-left:-1px;margin-top:-1px}.ace-editor-component .ace-hue-dark .ace_marker-layer .ace-failed-marker{position:absolute;width:100% !important;margin-left:-3px}.ace-editor-component .ace-hue-dark .ace_marker-layer .ace-failed-marker,.ace-editor-component .ace-hue-dark .ace_marker-layer .ace_error-line{background-color:#ffecec !important;opacity:.5;z-index:6}.ace-editor-component .hue-ace-autocompleter{display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;position:fixed;z-index:999;max-height:250px;align-items:flex-start}.ace-editor-component .autocompleter-suggestions,.ace-editor-component .autocompleter-details{display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;-ms-flex:0 0 300px;-webkit-flex:0 0 300px;flex:0 0 300px;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18);width:300px;max-height:250px;overflow:hidden;border:1px solid #d6d8db;border-radius:2px;background-color:#fff}.ace-editor-component .autocompleter-suggestions{z-index:1002}.ace-editor-component .autocompleter-details{z-index:1001;margin-left:5px}.ace-editor-component .autocompleter-header{-ms-flex:0 0 20px;-webkit-flex:0 0 20px;flex:0 0 20px;position:relative;padding:5px;background-color:#fafbfc;line-height:20px;font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ace-editor-component .autocompleter-header .popular{color:#ffa139;margin-top:3px;float:right}.ace-editor-component .autocompleter-header-popularity{position:absolute;top:5px;right:5px;width:19px;height:19px}.ace-editor-component .autocompleter-spinner{position:relative;float:right;width:15px;margin-top:1px}.ace-editor-component .autocompleter-categories{display:inline-block;float:left}.ace-editor-component .autocompleter-categories>div{display:inline-block;border-bottom:2px solid transparent;cursor:pointer;padding:0 5px}.ace-editor-component .autocompleter-categories>div.active{display:inline-block;border-bottom:2px solid #31a2ff;cursor:default}.ace-editor-component .autocompleter-entries{max-height:225px;position:relative;overflow-y:auto}.ace-editor-component .autocompleter-suggestion{height:19px;clear:both;background-color:#fff;padding:3px;cursor:pointer;position:relative;font:12px normal Roboto Mono,Menlo,Monaco,Consolas,"Courier New",monospace;direction:ltr;line-height:18px}.ace-editor-component .autocompleter-suggestion:hover{background-color:#eaebec}.ace-editor-component .autocompleter-suggestion.selected{background-color:#d6d8db}.ace-editor-component .autocompleter-suggestion-value{width:85%;margin-left:3px;margin-right:6px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.ace-editor-component .autocompleter-suggestion-value b{font-weight:bolder}.ace-editor-component .autocompleter-suggestion-meta{position:absolute;background-color:inherit;z-index:1;right:0;top:3px;padding-right:3px;color:#5a656d;max-width:65px;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden}.ace-editor-component .autocompleter-dot{display:inline-block;margin-top:5px;margin-right:5px;width:8px;height:8px;border-radius:4px}.ace-editor-component .autocompleter-details-contents{max-height:225px;position:relative;overflow-y:auto}.ace-editor-component .autocompleter-details-contents-inner{padding:7px}.ace-editor-component .autocompleter-details-contents .details-attribute,.ace-editor-component .autocompleter-details-contents .details-popularity{color:#5a656d;display:inline-block}.ace-editor-component .autocompleter-details-contents .details-popularity .progress{display:inline-block;border-radius:2px;height:10px;width:80px}.ace-editor-component .autocompleter-details-contents .details-popularity .progress .bar{background-color:#31a2ff}.ace-editor-component .autocompleter-details-contents .details-comment,.ace-editor-component .autocompleter-details-contents .details-description{font-size:14px;margin-top:5px;margin-bottom:5px;color:#5a656d}.ace-editor-component .autocompleter-details-contents .details-header{font-size:14px;font-weight:bold;margin:2px 0}.ace-editor-component .autocompleter-details-contents .details-no-comment{margin-top:5px;margin-bottom:5px;font-size:13px;color:#5a656d;font-style:italic}.ace-editor-component .autocompleter-details-contents .details-comment *{font-size:13px !important;line-height:14px !important;white-space:pre}.ace-editor-component .autocompleter-details-contents .details-code{background-color:#fafbfc;padding:3px;color:#5a656d;font:12px normal Roboto Mono,Menlo,Monaco,Consolas,"Courier New",monospace;direction:ltr}.ace-editor-component .fn-details{max-width:600px;white-space:normal;overflow-y:auto;height:100%;padding:8px}.ace-editor-component .fn-sig{white-space:pre;font-family:monospace}',""]);const o=i},5927:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".no-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.box-shadow-top{-webkit-box-shadow:-2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:-2px 0 8px rgba(0,0,0,.18);box-shadow:-2px 0 8px rgba(0,0,0,.18)}.box-shadow-right{-webkit-box-shadow:0 2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 2px 8px rgba(0,0,0,.18);box-shadow:0 2px 8px rgba(0,0,0,.18)}.box-shadow-bottom{-webkit-box-shadow:2px 0 8px rgba(0,0,0,.18);-moz-box-shadow:2px 0 8px rgba(0,0,0,.18);box-shadow:2px 0 8px rgba(0,0,0,.18)}.box-shadow-left{-webkit-box-shadow:0 -2px 8px rgba(0,0,0,.18);-moz-box-shadow:0 -2px 8px rgba(0,0,0,.18);box-shadow:0 -2px 8px rgba(0,0,0,.18)}.inset-box-shadow{-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important;box-shadow:inset 1px 0 0 rgba(255,255,255,.125) !important}.no-box-shadow{-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}@-webkit-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-moz-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-ms-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@-o-keyframes fade-in-frames{from{opacity:0}to{opacity:1}}@keyframes fade-in-frames{from{opacity:0}to{opacity:1}}.execution-analysis-panel{position:absolute;top:0;bottom:0;left:0;right:0;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.execution-analysis-panel .execution-analysis-errors,.execution-analysis-panel .execution-analysis-jobs,.execution-analysis-panel .execution-analysis-logs{display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:-ms-flex;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.execution-analysis-panel .execution-analysis-errors h4,.execution-analysis-panel .execution-analysis-jobs h4,.execution-analysis-panel .execution-analysis-logs h4{-ms-flex:0 0 auto;-webkit-flex:0 0 auto;flex:0 0 auto;position:relative;margin:0;padding-bottom:10px}.execution-analysis-panel .execution-analysis-errors .execution-analysis-logs-panel,.execution-analysis-panel .execution-analysis-jobs .execution-analysis-logs-panel,.execution-analysis-panel .execution-analysis-logs .execution-analysis-logs-panel{font-size:12px}.execution-analysis-panel .execution-analysis-errors .execution-analysis-jobs-panel,.execution-analysis-panel .execution-analysis-errors .execution-analysis-logs-panel,.execution-analysis-panel .execution-analysis-jobs .execution-analysis-jobs-panel,.execution-analysis-panel .execution-analysis-jobs .execution-analysis-logs-panel,.execution-analysis-panel .execution-analysis-logs .execution-analysis-jobs-panel,.execution-analysis-panel .execution-analysis-logs .execution-analysis-logs-panel{-ms-flex:0 1 100%;-webkit-flex:0 1 100%;flex:0 1 100%;position:relative}.execution-analysis-panel .execution-analysis-errors,.execution-analysis-panel .execution-analysis-jobs{-ms-flex:1 0 auto;-webkit-flex:1 0 auto;flex:1 0 auto;position:relative;padding-bottom:10px}.execution-analysis-panel .execution-analysis-errors ul{background-color:#ffecec;color:#9e1414;list-style:none;padding:5px 10px;margin:0}.execution-analysis-panel .execution-analysis-logs{-ms-flex:0 1 100%;-webkit-flex:0 1 100%;flex:0 1 100%;position:relative}",""]);const o=i},2887:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(352),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".logs-panel[data-v-5859490b]{height:100%;width:100%;white-space:pre;overflow:auto;font-family:monospace;padding:5px}",""]);const o=i},7169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(6907)),i=l(n(3467)),o=l(n(3184)),s=l(n(3859)),a=n(8690),c=n(6963);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cfg=t,this.indentation=new i.default(this.cfg.indent),this.inlineBlock=new o.default,this.params=new s.default(this.cfg.params),this.previousReservedToken={},this.tokens=[],this.index=0}var t,n;return t=e,n=[{key:"tokenizer",value:function(){throw new Error("tokenizer() not implemented by subclass")}},{key:"tokenOverride",value:function(e){return e}},{key:"format",value:function(e){return this.tokens=this.tokenizer().tokenize(e),this.getFormattedQueryFromTokens().trim()}},{key:"getFormattedQueryFromTokens",value:function(){var e=this,t="";return this.tokens.forEach((function(n,i){e.index=i,(n=e.tokenOverride(n)).type===r.default.LINE_COMMENT?t=e.formatLineComment(n,t):n.type===r.default.BLOCK_COMMENT?t=e.formatBlockComment(n,t):n.type===r.default.RESERVED_TOP_LEVEL?(t=e.formatTopLevelReservedWord(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED_TOP_LEVEL_NO_INDENT?(t=e.formatTopLevelReservedWordNoIndent(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED_NEWLINE?(t=e.formatNewlineReservedWord(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED?(t=e.formatWithSpaces(n,t),e.previousReservedToken=n):t=n.type===r.default.OPEN_PAREN?e.formatOpeningParentheses(n,t):n.type===r.default.CLOSE_PAREN?e.formatClosingParentheses(n,t):n.type===r.default.PLACEHOLDER?e.formatPlaceholder(n,t):","===n.value?e.formatComma(n,t):":"===n.value?e.formatWithSpaceAfter(n,t):"."===n.value?e.formatWithoutSpaces(n,t):";"===n.value?e.formatQuerySeparator(n,t):e.formatWithSpaces(n,t)})),t}},{key:"formatLineComment",value:function(e,t){return this.addNewline(t+this.show(e))}},{key:"formatBlockComment",value:function(e,t){return this.addNewline(this.addNewline(t)+this.indentComment(e.value))}},{key:"indentComment",value:function(e){return e.replace(/\n[\t ]*/g,"\n"+this.indentation.getIndent()+" ")}},{key:"formatTopLevelReservedWordNoIndent",value:function(e,t){return this.indentation.decreaseTopLevel(),t=this.addNewline(t)+this.equalizeWhitespace(this.show(e)),this.addNewline(t)}},{key:"formatTopLevelReservedWord",value:function(e,t){return this.indentation.decreaseTopLevel(),t=this.addNewline(t),this.indentation.increaseTopLevel(),t+=this.equalizeWhitespace(this.show(e)),this.addNewline(t)}},{key:"formatNewlineReservedWord",value:function(e,t){return(0,c.isAnd)(e)&&(0,c.isBetween)(this.tokenLookBehind(2))?this.formatWithSpaces(e,t):this.addNewline(t)+this.equalizeWhitespace(this.show(e))+" "}},{key:"equalizeWhitespace",value:function(e){return e.replace(/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+/g," ")}},{key:"formatOpeningParentheses",value:function(e,t){var n,i,o=(u(n={},r.default.OPEN_PAREN,!0),u(n,r.default.LINE_COMMENT,!0),u(n,r.default.OPERATOR,!0),n);return 0!==e.whitespaceBefore.length||o[null===(i=this.tokenLookBehind())||void 0===i?void 0:i.type]||(t=(0,a.trimSpacesEnd)(t)),t+=this.show(e),this.inlineBlock.beginIfPossible(this.tokens,this.index),this.inlineBlock.isActive()||(this.indentation.increaseBlockLevel(),t=this.addNewline(t)),t}},{key:"formatClosingParentheses",value:function(e,t){return this.inlineBlock.isActive()?(this.inlineBlock.end(),this.formatWithSpaceAfter(e,t)):(this.indentation.decreaseBlockLevel(),this.formatWithSpaces(e,this.addNewline(t)))}},{key:"formatPlaceholder",value:function(e,t){return t+this.params.get(e)+" "}},{key:"formatComma",value:function(e,t){return t=(0,a.trimSpacesEnd)(t)+this.show(e)+" ",this.inlineBlock.isActive()||(0,c.isLimit)(this.previousReservedToken)?t:this.addNewline(t)}},{key:"formatWithSpaceAfter",value:function(e,t){return(0,a.trimSpacesEnd)(t)+this.show(e)+" "}},{key:"formatWithoutSpaces",value:function(e,t){return(0,a.trimSpacesEnd)(t)+this.show(e)}},{key:"formatWithSpaces",value:function(e,t){return t+this.show(e)+" "}},{key:"formatQuerySeparator",value:function(e,t){return this.indentation.resetIndentation(),(0,a.trimSpacesEnd)(t)+(this.cfg.indentQuerySeparator?"\n":"")+this.show(e)+"\n".repeat(this.cfg.linesBetweenQueries||1)}},{key:"show",value:function(e){var t=e.type,n=e.value;return!this.cfg.uppercase||t!==r.default.RESERVED&&t!==r.default.RESERVED_TOP_LEVEL&&t!==r.default.RESERVED_TOP_LEVEL_NO_INDENT&&t!==r.default.RESERVED_NEWLINE&&t!==r.default.OPEN_PAREN&&t!==r.default.CLOSE_PAREN?n:n.toUpperCase()}},{key:"addNewline",value:function(e){return(e=(0,a.trimSpacesEnd)(e)).endsWith("\n")||(e+="\n"),e+this.indentation.getIndent()}},{key:"tokenLookBehind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.tokens[this.index-e]}},{key:"tokenLookAhead",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.tokens[this.index+e]}}],n&&h(t.prototype,n),e}();t.default=d,e.exports=t.default},3467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(8690);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o="top-level",s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indent=t||" ",this.indentTypes=[]}var t,n;return t=e,(n=[{key:"getIndent",value:function(){return this.indent.repeat(this.indentTypes.length)}},{key:"increaseTopLevel",value:function(){this.indentTypes.push(o)}},{key:"increaseBlockLevel",value:function(){this.indentTypes.push("block-level")}},{key:"decreaseTopLevel",value:function(){this.indentTypes.length>0&&(0,r.last)(this.indentTypes)===o&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===o;);}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}])&&i(t.prototype,n),e}();t.default=s,e.exports=t.default},3184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(6907))&&r.__esModule?r:{default:r};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.level=0}var t,n;return t=e,(n=[{key:"beginIfPossible",value:function(e,t){0===this.level&&this.isInlineBlock(e,t)?this.level=1:this.level>0?this.level++:this.level=0}},{key:"end",value:function(){this.level--}},{key:"isActive",value:function(){return this.level>0}},{key:"isInlineBlock",value:function(e,t){for(var n=0,r=0,o=t;o<e.length;o++){var s=e[o];if((n+=s.value.length)>50)return!1;if(s.type===i.default.OPEN_PAREN)r++;else if(s.type===i.default.CLOSE_PAREN&&0==--r)return!0;if(this.isForbiddenToken(s))return!1}return!1}},{key:"isForbiddenToken",value:function(e){var t=e.type,n=e.value;return t===i.default.RESERVED_TOP_LEVEL||t===i.default.RESERVED_NEWLINE||t===i.default.COMMENT||t===i.default.BLOCK_COMMENT||";"===n}}])&&o(t.prototype,n),e}();t.default=s,e.exports=t.default},3859:(e,t)=>{"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.params=t,this.index=0}var t,r;return t=e,(r=[{key:"get",value:function(e){var t=e.key,n=e.value;return this.params?t?this.params[t]:this.params[this.index++]:n}}])&&n(t.prototype,r),e}();t.default=r,e.exports=t.default},5828:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(6907))&&i.__esModule?i:{default:i},s=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var a=o?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=e[s]}return i.default=e,n&&n.set(e,i),i}(n(8214)),a=n(8690);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.WHITESPACE_REGEX=/^([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)/,this.NUMBER_REGEX=/^((\x2D[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?[0-9]+(\.[0-9]+)?([Ee]\x2D?[0-9]+(\.[0-9]+)?)?|0x[0-9A-Fa-f]+|0b[01]+)\b/,this.OPERATOR_REGEX=s.createOperatorRegex(["<>","<=",">="].concat(function(e){if(Array.isArray(e))return d(e)}(n=t.operators||[])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(n)||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.")}())),this.BLOCK_COMMENT_REGEX=/^(\/\*(?:(?![])[\s\S])*?(?:\*\/|$))/,this.LINE_COMMENT_REGEX=s.createLineCommentRegex(t.lineCommentTypes),this.RESERVED_TOP_LEVEL_REGEX=s.createReservedWordRegex(t.reservedTopLevelWords),this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX=s.createReservedWordRegex(t.reservedTopLevelWordsNoIndent),this.RESERVED_NEWLINE_REGEX=s.createReservedWordRegex(t.reservedNewlineWords),this.RESERVED_PLAIN_REGEX=s.createReservedWordRegex(t.reservedWords),this.WORD_REGEX=s.createWordRegex(t.specialWordChars),this.STRING_REGEX=s.createStringRegex(t.stringTypes),this.OPEN_PAREN_REGEX=s.createParenRegex(t.openParens),this.CLOSE_PAREN_REGEX=s.createParenRegex(t.closeParens),this.INDEXED_PLACEHOLDER_REGEX=s.createPlaceholderRegex(t.indexedPlaceholderTypes,"[0-9]*"),this.IDENT_NAMED_PLACEHOLDER_REGEX=s.createPlaceholderRegex(t.namedPlaceholderTypes,"[a-zA-Z0-9._$]+"),this.STRING_NAMED_PLACEHOLDER_REGEX=s.createPlaceholderRegex(t.namedPlaceholderTypes,s.createStringPattern(t.stringTypes))}var t,n;return t=e,(n=[{key:"tokenize",value:function(e){for(var t,n=[];e.length;){var r=this.getWhitespace(e);(e=e.substring(r.length)).length&&(t=this.getNextToken(e,t),e=e.substring(t.value.length),n.push(u(u({},t),{},{whitespaceBefore:r})))}return n}},{key:"getWhitespace",value:function(e){var t=e.match(this.WHITESPACE_REGEX);return t?t[1]:""}},{key:"getNextToken",value:function(e,t){return this.getCommentToken(e)||this.getStringToken(e)||this.getOpenParenToken(e)||this.getCloseParenToken(e)||this.getPlaceholderToken(e)||this.getNumberToken(e)||this.getReservedWordToken(e,t)||this.getWordToken(e)||this.getOperatorToken(e)}},{key:"getCommentToken",value:function(e){return this.getLineCommentToken(e)||this.getBlockCommentToken(e)}},{key:"getLineCommentToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.LINE_COMMENT,regex:this.LINE_COMMENT_REGEX})}},{key:"getBlockCommentToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.BLOCK_COMMENT,regex:this.BLOCK_COMMENT_REGEX})}},{key:"getStringToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.STRING,regex:this.STRING_REGEX})}},{key:"getOpenParenToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.OPEN_PAREN,regex:this.OPEN_PAREN_REGEX})}},{key:"getCloseParenToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.CLOSE_PAREN,regex:this.CLOSE_PAREN_REGEX})}},{key:"getPlaceholderToken",value:function(e){return this.getIdentNamedPlaceholderToken(e)||this.getStringNamedPlaceholderToken(e)||this.getIndexedPlaceholderToken(e)}},{key:"getIdentNamedPlaceholderToken",value:function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.IDENT_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})}},{key:"getStringNamedPlaceholderToken",value:function(e){var t=this;return this.getPlaceholderTokenWithKey({input:e,regex:this.STRING_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return t.getEscapedPlaceholderKey({key:e.slice(2,-1),quoteChar:e.slice(-1)})}})}},{key:"getIndexedPlaceholderToken",value:function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.INDEXED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})}},{key:"getPlaceholderTokenWithKey",value:function(e){var t=e.input,n=e.regex,r=e.parseKey,i=this.getTokenOnFirstMatch({input:t,regex:n,type:o.default.PLACEHOLDER});return i&&(i.key=r(i.value)),i}},{key:"getEscapedPlaceholderKey",value:function(e){var t=e.key,n=e.quoteChar;return t.replace(new RegExp((0,a.escapeRegExp)("\\"+n),"gu"),n)}},{key:"getNumberToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.NUMBER,regex:this.NUMBER_REGEX})}},{key:"getOperatorToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.OPERATOR,regex:this.OPERATOR_REGEX})}},{key:"getReservedWordToken",value:function(e,t){if(!t||!t.value||"."!==t.value)return this.getTopLevelReservedToken(e)||this.getNewlineReservedToken(e)||this.getTopLevelReservedTokenNoIndent(e)||this.getPlainReservedToken(e)}},{key:"getTopLevelReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_TOP_LEVEL,regex:this.RESERVED_TOP_LEVEL_REGEX})}},{key:"getNewlineReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_NEWLINE,regex:this.RESERVED_NEWLINE_REGEX})}},{key:"getTopLevelReservedTokenNoIndent",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_TOP_LEVEL_NO_INDENT,regex:this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX})}},{key:"getPlainReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED,regex:this.RESERVED_PLAIN_REGEX})}},{key:"getWordToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.WORD,regex:this.WORD_REGEX})}},{key:"getTokenOnFirstMatch",value:function(e){var t=e.input,n=e.type,r=e.regex,i=t.match(r);return i?{type:n,value:i[1]}:void 0}}])&&p(t.prototype,n),e}();t.default=f,e.exports=t.default},8214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOperatorRegex=function(e){return new RegExp("^(".concat((0,r.sortByLengthDesc)(e).map(r.escapeRegExp).join("|"),"|.)"),"u")},t.createLineCommentRegex=function(e){return new RegExp("^((?:".concat(e.map((function(e){return(0,r.escapeRegExp)(e)})).join("|"),").*?)(?:\r\n|\r|\n|$)"),"u")},t.createReservedWordRegex=function(e){if(0===e.length)return new RegExp("^\b$","u");var t=(0,r.sortByLengthDesc)(e).join("|").replace(/ /g,"\\s+");return new RegExp("^(".concat(t,")\\b"),"iu")},t.createWordRegex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new RegExp("^([\\p{Alphabetic}\\p{Mark}\\p{Decimal_Number}\\p{Connector_Punctuation}\\p{Join_Control}".concat(e.join(""),"]+)"),"u")},t.createStringRegex=function(e){return new RegExp("^("+i(e)+")","u")},t.createStringPattern=i,t.createParenRegex=function(e){return new RegExp("^("+e.map(o).join("|")+")","iu")},t.createPlaceholderRegex=function(e,t){if((0,r.isEmpty)(e))return!1;var n=e.map(r.escapeRegExp).join("|");return new RegExp("^((?:".concat(n,")(?:").concat(t,"))"),"u")};var r=n(8690);function i(e){var t={"``":"((`[^`]*($|`))+)","{}":"((\\{[^\\}]*($|\\}))+)","[]":"((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)",'""':'(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',"''":"(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","N''":"((N'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","U&''":"((U&'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",'U&""':'((U&"[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',$$:"((?<tag>\\$\\w*\\$)[\\s\\S]*?(?:\\k<tag>|$))"};return e.map((function(e){return t[e]})).join("|")}function o(e){return 1===e.length?(0,r.escapeRegExp)(e):"\\b"+e+"\\b"}},6963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEnd=t.isWindow=t.isBy=t.isSet=t.isLimit=t.isBetween=t.isAnd=void 0;var r,i=(r=n(6907))&&r.__esModule?r:{default:r},o=function(e,t){return function(n){return(null==n?void 0:n.type)===e&&t.test(null==n?void 0:n.value)}},s=o(i.default.RESERVED_NEWLINE,/^AND$/i);t.isAnd=s;var a=o(i.default.RESERVED,/^BETWEEN$/i);t.isBetween=a;var c=o(i.default.RESERVED_TOP_LEVEL,/^LIMIT$/i);t.isLimit=c;var l=o(i.default.RESERVED_TOP_LEVEL,/^[S\u017F]ET$/i);t.isSet=l;var u=o(i.default.RESERVED,/^BY$/i);t.isBy=u;var h=o(i.default.RESERVED_TOP_LEVEL,/^WINDOW$/i);t.isWindow=h;var d=o(i.default.CLOSE_PAREN,/^END$/i);t.isEnd=d},6907:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={WORD:"word",STRING:"string",RESERVED:"reserved",RESERVED_TOP_LEVEL:"reserved-top-level",RESERVED_TOP_LEVEL_NO_INDENT:"reserved-top-level-no-indent",RESERVED_NEWLINE:"reserved-newline",OPERATOR:"operator",OPEN_PAREN:"open-paren",CLOSE_PAREN:"close-paren",LINE_COMMENT:"line-comment",BLOCK_COMMENT:"block-comment",NUMBER:"number",PLACEHOLDER:"placeholder"},e.exports=t.default},3358:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7169)),o=s(n(5828));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ABS","ACTIVATE","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","ANY","ARE","ARRAY","AS","ASC","ASENSITIVE","ASSOCIATE","ASUTIME","ASYMMETRIC","AT","ATOMIC","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","AVG","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CCSID","CEIL","CEILING","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOB","CLONE","CLOSE","CLUSTER","COALESCE","COLLATE","COLLECT","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","CONVERT","CORR","CORRESPONDING","COUNT","COUNT_BIG","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DATE","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DEREF","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DOUBLE","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELEMENT","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPTION","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXP","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FILTER","FINAL","FIRST","FLOAT","FLOOR","FOR","FOREIGN","FREE","FULL","FUNCTION","FUSION","GENERAL","GENERATED","GET","GLOBAL","GOTO","GRANT","GRAPHIC","GROUP","GROUPING","HANDLER","HASH","HASHED_VALUE","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTEGRITY","INTERSECTION","INTERVAL","INTO","IS","ISOBID","ISOLATION","ITERATE","JAR","JAVA","KEEP","KEY","LABEL","LANGUAGE","LARGE","LATERAL","LC_CTYPE","LEADING","LEAVE","LEFT","LIKE","LINKTYPE","LN","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","LOWER","MAINTAINED","MATCH","MATERIALIZED","MAX","MAXVALUE","MEMBER","MERGE","METHOD","MICROSECOND","MICROSECONDS","MIN","MINUTE","MINUTES","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MONTHS","MULTISET","NAN","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZE","NORMALIZED","NOT","NULL","NULLIF","NULLS","NUMERIC","NUMPARTS","OBID","OCTET_LENGTH","OF","OFFSET","OLD","OLD_TABLE","ON","ONLY","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PIECESIZE","PLAN","POSITION","POWER","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","REAL","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCOPE","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SIGNAL","SIMILAR","SIMPLE","SMALLINT","SNAN","SOME","SOURCE","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLID","SQLSTATE","SQLWARNING","SQRT","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STDDEV_POP","STDDEV_SAMP","STOGROUP","STORES","STYLE","SUBMULTISET","SUBSTRING","SUM","SUMMARY","SYMMETRIC","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","TABLESPACE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TYPE","UESCAPE","UNDO","UNIQUE","UNKNOWN","UNNEST","UNTIL","UPPER","USAGE","USER","USING","VALIDPROC","VALUE","VARCHAR","VARIABLE","VARIANT","VARYING","VAR_POP","VAR_SAMP","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHILE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],p=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INTERSECT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],f=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","OR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,s=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return a(this,m),s.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:p,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:f,stringTypes:['""',"''","``","[]"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["#","@"],operators:["**","!=","!>","!>","||"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},3700:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7169)),o=s(n(5828));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO_DOMAIN_IDS","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERAL","GRANT","GROUP","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_HEARTBEAT_PERIOD","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","NUMERIC","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PAGE_CHECKSUM","PARSE_VCOL_EXPR","PARTITION","POSITION","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","READ_WRITE","REAL","RECURSIVE","REF_SYSTEM_ID","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","RETURNING","REVOKE","RIGHT","RLIKE","ROWS","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SLOW","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],p=["ADD","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET","UPDATE","VALUES","WHERE"],f=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","CROSS JOIN","NATURAL JOIN","STRAIGHT_JOIN","NATURAL LEFT JOIN","NATURAL LEFT OUTER JOIN","NATURAL RIGHT JOIN","NATURAL RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,s=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return a(this,m),s.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:p,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:f,stringTypes:["``","''",'""'],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--","#"],specialWordChars:["@"],operators:[":=","<<",">>","!=","<>","<=>","&&","||"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},5727:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7169)),o=s(n(5828));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NUMERIC","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","REAL","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],p=["ADD","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET","UPDATE","VALUES","WHERE"],f=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","CROSS JOIN","NATURAL JOIN","STRAIGHT_JOIN","NATURAL LEFT JOIN","NATURAL LEFT OUTER JOIN","NATURAL RIGHT JOIN","NATURAL RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,s=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return a(this,m),s.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:p,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:f,stringTypes:["``","''",'""'],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--","#"],specialWordChars:["@"],operators:[":=","<<",">>","!=","<>","<=>","&&","||","->","->>"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},4601:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7169)),o=s(n(5828));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","CONNECT","CONTINUE","CORRELATE","COVER","CREATE","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FIRST","FLATTEN","FOR","FORCE","FROM","FUNCTION","GRANT","GROUP","GSI","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LAST","LEFT","LET","LETTING","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MISSING","NAMESPACE","NEST","NOT","NULL","NUMBER","OBJECT","OFFSET","ON","OPTION","OR","ORDER","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROCEDURE","PUBLIC","RAW","REALM","REDUCE","RENAME","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","SATISFIES","SCHEMA","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TO","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WITH","WITHIN","WORK","XOR"],p=["DELETE FROM","EXCEPT ALL","EXCEPT","EXPLAIN DELETE FROM","EXPLAIN UPDATE","EXPLAIN UPSERT","FROM","GROUP BY","HAVING","INFER","INSERT INTO","LET","LIMIT","MERGE","NEST","ORDER BY","PREPARE","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNNEST","UPDATE","UPSERT","USE KEYS","VALUES","WHERE"],f=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","OR","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,s=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return a(this,m),s.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:p,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:f,stringTypes:['""',"''","``"],openParens:["(","[","{"],closeParens:[")","]","}"],namedPlaceholderTypes:["$"],lineCommentTypes:["#","--"],operators:["==","!="]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},7265:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(n(7169)),o=n(6963),s=c(n(5828)),a=c(n(6907));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=["A","ACCESSIBLE","AGENT","AGGREGATE","ALL","ALTER","ANY","ARRAY","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BETWEEN","BFILE_BASE","BINARY_INTEGER","BINARY","BLOB_BASE","BLOCK","BODY","BOOLEAN","BOTH","BOUND","BREADTH","BULK","BY","BYTE","C","CALL","CALLING","CASCADE","CASE","CHAR_BASE","CHAR","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLONE","CLOSE","CLUSTER","CLUSTERS","COALESCE","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONTINUE","CONVERT","COUNT","CRASH","CREATE","CREDENTIAL","CURRENT","CURRVAL","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE_BASE","DATE","DAY","DECIMAL","DEFAULT","DEFINE","DELETE","DEPTH","DESC","DETERMINISTIC","DIRECTORY","DISTINCT","DO","DOUBLE","DROP","DURATION","ELEMENT","ELSIF","EMPTY","END","ESCAPE","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTENDS","EXTERNAL","EXTRACT","FALSE","FETCH","FINAL","FIRST","FIXED","FLOAT","FOR","FORALL","FORCE","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSTANTIABLE","INT","INTEGER","INTERFACE","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMITED","LOCAL","LOCK","LONG","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUTE","MLSLABEL","MOD","MODE","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NATURAL","NATURALN","NCHAR","NEW","NEXTVAL","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NULLIF","NUMBER_BASE","NUMBER","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","OLD","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","ORACLE","ORADATA","ORDER","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERLAPS","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARENT","PARTITION","PASCAL","PCTFREE","PIPE","PIPELINED","PLS_INTEGER","PLUGGABLE","POSITIVE","POSITIVEN","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","REAL","RECORD","REF","REFERENCE","RELEASE","RELIES_ON","REM","REMAINDER","RENAME","RESOURCE","RESULT_CACHE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","ROWID","ROWNUM","ROWTYPE","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SEARCH","SECOND","SEGMENT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SHARE","SHORT","SIZE_T","SIZE","SMALLINT","SOME","SPACE","SPARSE","SQL","SQLCODE","SQLDATA","SQLERRM","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUCCESSFUL","SUM","SYNONYM","SYSDATE","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSACTION","TRANSACTIONAL","TRIGGER","TRUE","TRUSTED","TYPE","UB1","UB2","UB4","UID","UNDER","UNIQUE","UNPLUG","UNSIGNED","UNTRUSTED","USE","USER","USING","VALIDATE","VALIST","VALUE","VARCHAR","VARCHAR2","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHENEVER","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],g=["ADD","ALTER COLUMN","ALTER TABLE","BEGIN","CONNECT BY","DECLARE","DELETE FROM","DELETE","END","EXCEPT","EXCEPTION","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","LOOP","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","START WITH","UPDATE","VALUES","WHERE"],m=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],E=["AND","CROSS APPLY","ELSE","END","OR","OUTER APPLY","WHEN","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(y,e);var t,n,r,i,c=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function y(){return l(this,y),c.apply(this,arguments)}return t=y,(n=[{key:"tokenizer",value:function(){return new s.default({reservedWords:f,reservedTopLevelWords:g,reservedNewlineWords:E,reservedTopLevelWordsNoIndent:m,stringTypes:['""',"N''","''","``"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["_","$","#",".","@"],operators:["||","**","!=",":="]})}},{key:"tokenOverride",value:function(e){return(0,o.isSet)(e)&&(0,o.isBy)(this.previousReservedToken)?{type:a.default.RESERVED,value:e.value}:e}}])&&u(t.prototype,n),y}(i.default);t.default=y,e.exports=t.default},8758:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7169)),o=s(n(5828));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"],p=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","EXCEPT","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],f=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,s=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return a(this,m),s.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:p,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:f,stringTypes:['""',"''","U&''",'U&""',"$$"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["$"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],operators:["!=","<<",">>","||/","|/","::","->>","->","~~*","~~","!~~*","!~~","~*","!~*","!~","!!"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},6810:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7169)),o=s(n(5828));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["AES128","AES256","ALLOWOVERWRITE","ANALYSE","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GZIP","IDENTITY","IGNORE","ILIKE","INITIALLY","INTO","LEADING","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NULLS","OFF","OFFLINE","OFFSET","OLD","ON","ONLY","OPEN","ORDER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","REJECTLOG","RESORT","RESTORE","SESSION_USER","SIMILAR","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WITH","WITHOUT","PREDICATE","COLUMNS","COMPROWS","COMPRESSION","COPY","FORMAT","DELIMITER","FIXEDWIDTH","AVRO","JSON","ENCRYPTED","BZIP2","GZIP","LZOP","PARQUET","ORC","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","NULL AS","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","MANIFEST","REGION","IAM_ROLE","MASTER_SYMMETRIC_KEY","SSH","ACCEPTANYDATE","ACCEPTINVCHARS","ACCESS_KEY_ID","SECRET_ACCESS_KEY","AVRO","BLANKSASNULL","BZIP2","COMPROWS","COMPUPDATE","CREDENTIALS","DATEFORMAT","DELIMITER","EMPTYASNULL","ENCODING","ENCRYPTED","ESCAPE","EXPLICIT_IDS","FILLRECORD","FIXEDWIDTH","FORMAT","IAM_ROLE","GZIP","IGNOREBLANKLINES","IGNOREHEADER","JSON","LZOP","MANIFEST","MASTER_SYMMETRIC_KEY","MAXERROR","NOLOAD","NULL AS","READRATIO","REGION","REMOVEQUOTES","ROUNDEC","SSH","STATUPDATE","TIMEFORMAT","SESSION_TOKEN","TRIMBLANKS","TRUNCATECOLUMNS","EXTERNAL","DATA CATALOG","HIVE METASTORE","CATALOG_ROLE","VACUUM","COPY","UNLOAD","EVEN","ALL"],p=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","INTERSECT","TOP","LIMIT","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UNION","UPDATE","VALUES","WHERE","VACUUM","COPY","UNLOAD","ANALYZE","ANALYSE","DISTKEY","SORTKEY","COMPOUND","INTERLEAVED","FORMAT","DELIMITER","FIXEDWIDTH","AVRO","JSON","ENCRYPTED","BZIP2","GZIP","LZOP","PARQUET","ORC","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","NULL AS","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","MANIFEST","REGION","IAM_ROLE","MASTER_SYMMETRIC_KEY","SSH","ACCEPTANYDATE","ACCEPTINVCHARS","ACCESS_KEY_ID","SECRET_ACCESS_KEY","AVRO","BLANKSASNULL","BZIP2","COMPROWS","COMPUPDATE","CREDENTIALS","DATEFORMAT","DELIMITER","EMPTYASNULL","ENCODING","ENCRYPTED","ESCAPE","EXPLICIT_IDS","FILLRECORD","FIXEDWIDTH","FORMAT","IAM_ROLE","GZIP","IGNOREBLANKLINES","IGNOREHEADER","JSON","LZOP","MANIFEST","MASTER_SYMMETRIC_KEY","MAXERROR","NOLOAD","NULL AS","READRATIO","REGION","REMOVEQUOTES","ROUNDEC","SSH","STATUPDATE","TIMEFORMAT","SESSION_TOKEN","TRIMBLANKS","TRUNCATECOLUMNS","EXTERNAL","DATA CATALOG","HIVE METASTORE","CATALOG_ROLE"],f=[],g=["AND","ELSE","OR","OUTER APPLY","WHEN","VACUUM","COPY","UNLOAD","ANALYZE","ANALYSE","DISTKEY","SORTKEY","COMPOUND","INTERLEAVED","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,s=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return a(this,m),s.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:p,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:f,stringTypes:['""',"''","``"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["@","#","$"],lineCommentTypes:["--"],operators:["|/","||/","<<",">>","!=","||"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},7257:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=c(n(7169)),o=n(6963),s=c(n(5828)),a=c(n(6907));function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=["ALL","ALTER","ANALYSE","ANALYZE","ARRAY_ZIP","ARRAY","AS","ASC","AVG","BETWEEN","CASCADE","CASE","CAST","COALESCE","COLLECT_LIST","COLLECT_SET","COLUMN","COLUMNS","COMMENT","CONSTRAINT","CONTAINS","CONVERT","COUNT","CUME_DIST","CURRENT ROW","CURRENT_DATE","CURRENT_TIMESTAMP","DATABASE","DATABASES","DATE_ADD","DATE_SUB","DATE_TRUNC","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DAY","DAYS","DECODE","DEFAULT","DELETE","DENSE_RANK","DESC","DESCRIBE","DISTINCT","DISTINCTROW","DIV","DROP","ELSE","ENCODE","END","EXISTS","EXPLAIN","EXPLODE_OUTER","EXPLODE","FILTER","FIRST_VALUE","FIRST","FIXED","FLATTEN","FOLLOWING","FROM_UNIXTIME","FULL","GREATEST","GROUP_CONCAT","HOUR_MINUTE","HOUR_SECOND","HOUR","HOURS","IF","IFNULL","IN","INSERT","INTERVAL","INTO","IS","LAG","LAST_VALUE","LAST","LEAD","LEADING","LEAST","LEVEL","LIKE","MAX","MERGE","MIN","MINUTE_SECOND","MINUTE","MONTH","NATURAL","NOT","NOW()","NTILE","NULL","NULLIF","OFFSET","ON DELETE","ON UPDATE","ON","ONLY","OPTIMIZE","OVER","PERCENT_RANK","PRECEDING","RANGE","RANK","REGEXP","RENAME","RLIKE","ROW","ROWS","SECOND","SEPARATOR","SEQUENCE","SIZE","STRING","STRUCT","SUM","TABLE","TABLES","TEMPORARY","THEN","TO_DATE","TO_JSON","TO","TRAILING","TRANSFORM","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNIQUE","UNIX_TIMESTAMP","UNLOCK","UNSIGNED","USING","VARIABLES","VIEW","WHEN","WITH","YEAR_MONTH"],g=["ADD","AFTER","ALTER COLUMN","ALTER DATABASE","ALTER SCHEMA","ALTER TABLE","CLUSTER BY","CLUSTERED BY","DELETE FROM","DISTRIBUTE BY","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","OPTIONS","ORDER BY","PARTITION BY","PARTITIONED BY","RANGE","ROWS","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","TBLPROPERTIES","UPDATE","USING","VALUES","WHERE","WINDOW"],m=["EXCEPT ALL","EXCEPT","INTERSECT ALL","INTERSECT","UNION ALL","UNION"],E=["AND","CREATE OR","CREATE","ELSE","LATERAL VIEW","OR","OUTER APPLY","WHEN","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN","ANTI JOIN","SEMI JOIN","LEFT ANTI JOIN","LEFT SEMI JOIN","RIGHT OUTER JOIN","RIGHT SEMI JOIN","NATURAL ANTI JOIN","NATURAL FULL OUTER JOIN","NATURAL INNER JOIN","NATURAL LEFT ANTI JOIN","NATURAL LEFT OUTER JOIN","NATURAL LEFT SEMI JOIN","NATURAL OUTER JOIN","NATURAL RIGHT OUTER JOIN","NATURAL RIGHT SEMI JOIN","NATURAL SEMI JOIN"],y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(y,e);var t,n,r,i,c=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function y(){return l(this,y),c.apply(this,arguments)}return t=y,(n=[{key:"tokenizer",value:function(){return new s.default({reservedWords:f,reservedTopLevelWords:g,reservedNewlineWords:E,reservedTopLevelWordsNoIndent:m,stringTypes:['""',"''","``","{}"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["$"],lineCommentTypes:["--"],operators:["!=","<=>","&&","||","=="]})}},{key:"tokenOverride",value:function(e){if((0,o.isWindow)(e)){var t=this.tokenLookAhead();if(t&&t.type===a.default.OPEN_PAREN)return{type:a.default.RESERVED,value:e.value}}if((0,o.isEnd)(e)){var n=this.tokenLookBehind();if(n&&n.type===a.default.OPERATOR&&"."===n.value)return{type:a.default.WORD,value:e.value}}return e}}])&&u(t.prototype,n),y}(i.default);t.default=y,e.exports=t.default},1423:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7169)),o=s(n(5828));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ABS","ALL","ALLOCATE","ALTER","AND","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CARDINALITY","CASCADED","CASE","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER","CHARACTER_LENGTH","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLLECT","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CONVERT","CORR","CORRESPONDING","COUNT","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DENSE_RANK","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","ELSE","END","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXP","EXTERNAL","EXTRACT","FALSE","FETCH","FILTER","FLOAT","FLOOR","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","FUSION","GET","GLOBAL","GRANT","GROUP","GROUPING","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERSECTION","INTERVAL","INTO","IS","JOIN","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LN","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOWER","MATCH","MAX","MEMBER","MERGE","METHOD","MIN","MINUTE","MOD","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NORMALIZE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OCCURRENCES_REGEX","OF","OLD","ON","ONLY","OPEN","OR","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","PARAMETER","PARTITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","POSITION","POSITION_REGEX","POWER","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","RANK","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROW_NUMBER","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQRT","START","STATIC","STDDEV_POP","STDDEV_SAMP","SUBMULTISET","SUBSTRING","SUBSTRING_REGEX","SUM","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATE","TRANSLATE_REGEX","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","UPPER","USER","USING","VALUE","VALUES","VAR_POP","VAR_SAMP","VARBINARY","VARCHAR","VARYING","WHEN","WHENEVER","WHERE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","YEAR"],p=["ADD","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","FETCH FIRST","FETCH NEXT","FETCH PRIOR","FETCH LAST","FETCH ABSOLUTE","FETCH RELATIVE","FROM","GROUP BY","HAVING","INSERT INTO","LIMIT","ORDER BY","SELECT","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],f=["INTERSECT","INTERSECT ALL","INTERSECT DISTINCT","UNION","UNION ALL","UNION DISTINCT","EXCEPT","EXCEPT ALL","EXCEPT DISTINCT"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,s=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return a(this,m),s.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:p,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:f,stringTypes:['""',"''"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},6383:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(7169)),o=s(n(5828));function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d=["ADD","EXTERNAL","PROCEDURE","ALL","FETCH","PUBLIC","ALTER","FILE","RAISERROR","AND","FILLFACTOR","READ","ANY","FOR","READTEXT","AS","FOREIGN","RECONFIGURE","ASC","FREETEXT","REFERENCES","AUTHORIZATION","FREETEXTTABLE","REPLICATION","BACKUP","FROM","RESTORE","BEGIN","FULL","RESTRICT","BETWEEN","FUNCTION","RETURN","BREAK","GOTO","REVERT","BROWSE","GRANT","REVOKE","BULK","GROUP","RIGHT","BY","HAVING","ROLLBACK","CASCADE","HOLDLOCK","ROWCOUNT","CASE","IDENTITY","ROWGUIDCOL","CHECK","IDENTITY_INSERT","RULE","CHECKPOINT","IDENTITYCOL","SAVE","CLOSE","IF","SCHEMA","CLUSTERED","IN","SECURITYAUDIT","COALESCE","INDEX","SELECT","COLLATE","INNER","SEMANTICKEYPHRASETABLE","COLUMN","INSERT","SEMANTICSIMILARITYDETAILSTABLE","COMMIT","INTERSECT","SEMANTICSIMILARITYTABLE","COMPUTE","INTO","SESSION_USER","CONSTRAINT","IS","SET","CONTAINS","JOIN","SETUSER","CONTAINSTABLE","KEY","SHUTDOWN","CONTINUE","KILL","SOME","CONVERT","LEFT","STATISTICS","CREATE","LIKE","SYSTEM_USER","CROSS","LINENO","TABLE","CURRENT","LOAD","TABLESAMPLE","CURRENT_DATE","MERGE","TEXTSIZE","CURRENT_TIME","NATIONAL","THEN","CURRENT_TIMESTAMP","NOCHECK","TO","CURRENT_USER","NONCLUSTERED","TOP","CURSOR","NOT","TRAN","DATABASE","NULL","TRANSACTION","DBCC","NULLIF","TRIGGER","DEALLOCATE","OF","TRUNCATE","DECLARE","OFF","TRY_CONVERT","DEFAULT","OFFSETS","TSEQUAL","DELETE","ON","UNION","DENY","OPEN","UNIQUE","DESC","OPENDATASOURCE","UNPIVOT","DISK","OPENQUERY","UPDATE","DISTINCT","OPENROWSET","UPDATETEXT","DISTRIBUTED","OPENXML","USE","DOUBLE","OPTION","USER","DROP","OR","VALUES","DUMP","ORDER","VARYING","ELSE","OUTER","VIEW","END","OVER","WAITFOR","ERRLVL","PERCENT","WHEN","ESCAPE","PIVOT","WHERE","EXCEPT","PLAN","WHILE","EXEC","PRECISION","WITH","EXECUTE","PRIMARY","WITHIN GROUP","EXISTS","PRINT","WRITETEXT","EXIT","PROC"],p=["ADD","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],f=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(m,e);var t,n,r,i,s=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return u(this,e)});function m(){return a(this,m),s.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:p,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:f,stringTypes:['""',"N''","''","[]"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:[],namedPlaceholderTypes:["@"],lineCommentTypes:["--"],specialWordChars:["#","@"],operators:[">=","<=","<>","!=","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::"]})}}])&&c(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},4175:(e,t,n)=>{"use strict";t.WU=void 0;var r=p(n(3358)),i=p(n(3700)),o=p(n(5727)),s=p(n(4601)),a=p(n(7265)),c=p(n(8758)),l=p(n(6810)),u=p(n(7257)),h=p(n(1423)),d=p(n(6383));function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}var g={db2:r.default,mariadb:i.default,mysql:o.default,n1ql:s.default,plsql:a.default,postgresql:c.default,redshift:l.default,spark:u.default,sql:h.default,tsql:d.default};t.WU=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid query argument. Extected string, instead got "+f(e));var n=h.default;if(void 0!==t.language&&(n=g[t.language]),void 0===n)throw Error("Unsupported SQL dialect: ".concat(t.language));return new n(t).format(e)},Object.keys(g)},8690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortByLengthDesc=t.escapeRegExp=t.isEmpty=t.last=t.trimSpacesEnd=void 0,t.trimSpacesEnd=function(e){return e.replace(/[\t ]+$/,"")},t.last=function(e){return e[e.length-1]},t.isEmpty=function(e){return!Array.isArray(e)||0===e.length},t.escapeRegExp=function(e){return e.replace(/[\$\(-\+\.\?\[-\^\{-\}]/g,"\\$&")},t.sortByLengthDesc=function(e){return e.sort((function(e,t){return t.length-e.length||e.localeCompare(t)}))}},2868:(e,t,n)=>{e.exports=n(1867)},3155:(e,t,n)=>{"use strict";var r=n(4030),i=n(8079),o=n(4687),s=n(7512),a=n(9791),c=n(924),l=n(5903),u=n(5971),h=n(457),d=n(6266);e.exports=function(e){return new Promise((function(t,n){var p,f=e.data,g=e.headers,m=e.responseType;function E(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(f)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(v+":"+b)}var A=a(e.baseURL,e.url);function T(){if(y){var r="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,o={data:m&&"text"!==m&&"json"!==m?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),E()}),(function(e){n(e),E()}),o),y=null}}if(y.open(e.method.toUpperCase(),s(A,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=T:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(T)},y.onabort=function(){y&&(n(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||h.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||l(A))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;C&&(g[e.xsrfHeaderName]=C)}"setRequestHeader"in y&&r.forEach(g,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(n(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),f||(f=null),y.send(f)}))}},1867:(e,t,n)=>{"use strict";var r=n(4030),i=n(3843),o=n(5891),s=n(3316),a=function e(t){var n=new o(t),a=i(o.prototype.request,n);return r.extend(a,o.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(457));a.Axios=o,a.Cancel=n(6266),a.CancelToken=n(9747),a.isCancel=n(9416),a.VERSION=n(6578).version,a.all=function(e){return Promise.all(e)},a.spread=n(1545),a.isAxiosError=n(232),e.exports=a,e.exports.default=a},6266:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},9747:(e,t,n)=>{"use strict";var r=n(6266);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},9416:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5891:(e,t,n)=>{"use strict";var r=n(4030),i=n(7512),o=n(8036),s=n(884),a=n(3316),c=n(9084),l=c.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var u=[s,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);u.length;)i=i.then(u.shift(),u.shift());return i}for(var h=e;n.length;){var d=n.shift(),p=n.shift();try{h=d(h)}catch(e){p(e);break}}try{i=s(h)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},u.prototype.getUri=function(e){return e=a(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=u},8036:(e,t,n)=>{"use strict";var r=n(4030);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},9791:(e,t,n)=>{"use strict";var r=n(957),i=n(7050);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},5971:(e,t,n)=>{"use strict";var r=n(3136);e.exports=function(e,t,n,i,o){var s=new Error(e);return r(s,t,n,i,o)}},884:(e,t,n)=>{"use strict";var r=n(4030),i=n(8630),o=n(9416),s=n(457),a=n(6266);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},3136:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},3316:(e,t,n)=>{"use strict";var r=n(4030);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function s(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function c(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=l[e]||o,i=t(e);r.isUndefined(i)&&t!==c||(n[e]=i)})),n}},8079:(e,t,n)=>{"use strict";var r=n(5971);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8630:(e,t,n)=>{"use strict";var r=n(4030),i=n(457);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},457:(e,t,n)=>{"use strict";var r=n(4030),i=n(7122),o=n(3136),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(3155)),c),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(s)})),e.exports=l},6578:e=>{e.exports={version:"0.24.0"}},3843:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},7512:(e,t,n)=>{"use strict";var r=n(4030);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7050:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4687:(e,t,n)=>{"use strict";var r=n(4030);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},957:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},232:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},5903:(e,t,n)=>{"use strict";var r=n(4030);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},7122:(e,t,n)=>{"use strict";var r=n(4030);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},924:(e,t,n)=>{"use strict";var r=n(4030),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},1545:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},9084:(e,t,n)=>{"use strict";var r=n(6578).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],c=void 0===a||s(a,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},4030:(e,t,n)=>{"use strict";var r=n(3843),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return a(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},352:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},1271:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,c=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},l=o.push,u=o.indexOf,h={},d=h.toString,p=h.hasOwnProperty,f=p.toString,g=f.call(Object),m={},E=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},v=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function A(e,t,n){var r,i,o=(n=n||v).createElement("script");if(o.text=e,t)for(r in b)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[d.call(e)]||"object":typeof e}var C="3.5.1",R=function(e,t){return new R.fn.init(e,t)};function S(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!E(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}R.fn=R.prototype={jquery:C,constructor:R,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=R.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return R.each(this,e)},map:function(e){return this.pushStack(R.map(this,(function(t,n){return e.call(t,n,t)})))},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(R.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(R.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},R.extend=R.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||E(s)||(s={}),a===c&&(s=this,a--);a<c;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(l&&r&&(R.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||R.isPlainObject(n)?n:{},i=!1,s[t]=R.extend(l,o,r)):void 0!==r&&(s[t]=r));return s},R.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e)||(t=s(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||f.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){A(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?R.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(S(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return c(s)},guid:1,support:m}),"function"==typeof Symbol&&(R.fn[Symbol.iterator]=o[Symbol.iterator]),R.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var _=function(e){var t,n,r,i,o,s,a,c,l,u,h,d,p,f,g,m,E,y,v,b="sizzle"+1*new Date,A=e.document,T=0,C=0,R=ce(),S=ce(),_=ce(),x=ce(),w=function(e,t){return e===t&&(h=!0),0},I={}.hasOwnProperty,N=[],L=N.pop,O=N.push,k=N.push,D=N.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\[[\\x20\\t\\r\\n\\f]*("+B+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+P+"*\\]",$=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",H=new RegExp(P+"+","g"),G=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),V=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),j=new RegExp(P+"|>"),q=new RegExp($),z=new RegExp("^"+B+"$"),K={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},se=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{k.apply(N=D.call(A.childNodes),A.childNodes),N[A.childNodes.length].nodeType}catch(e){k={apply:N.length?function(e,t){O.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,i){var o,a,l,u,h,f,E,y=t&&t.ownerDocument,A=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==A&&9!==A&&11!==A)return r;if(!i&&(d(t),t=t||p,g)){if(11!==A&&(h=Z.exec(e)))if(o=h[1]){if(9===A){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(y&&(l=y.getElementById(o))&&v(t,l)&&l.id===o)return r.push(l),r}else{if(h[2])return k.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!x[e+" "]&&(!m||!m.test(e))&&(1!==A||"object"!==t.nodeName.toLowerCase())){if(E=e,y=t,1===A&&(j.test(e)||V.test(e))){for((y=ee.test(e)&&Ee(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=b)),a=(f=s(e)).length;a--;)f[a]=(u?"#"+u:":scope")+" "+ve(f[a]);E=f.join(",")}try{return k.apply(r,y.querySelectorAll(E)),r}catch(t){x(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return c(e.replace(G,"$1"),t,r,i)}function ce(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))}))}))}function Ee(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},o=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},d=ae.setDocument=function(e){var t,i,s=e?e.ownerDocument||e:A;return s!=p&&9===s.nodeType&&s.documentElement?(f=(p=s).documentElement,g=!o(p),A!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ue((function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(p.getElementsByClassName),n.getById=ue((function(e){return f.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},E=[],m=[],(n.qsa=Q.test(p.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+M+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Q.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),E.push("!=",$)})),m=m.length&&new RegExp(m.join("|")),E=E.length&&new RegExp(E.join("|")),t=Q.test(f.compareDocumentPosition),v=t||Q.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},w=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==A&&v(A,e)?-1:t==p||t.ownerDocument==A&&v(A,t)?1:u?F(u,e)-F(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!i||!o)return e==p?-1:t==p?1:i?-1:o?1:u?F(u,e)-F(u,t):0;if(i===o)return de(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?de(s[r],a[r]):s[r]==A?-1:a[r]==A?1:0},p):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!x[t+" "]&&(!E||!E.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){x(t,!0)}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),v(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&I.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(re,ie)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],i=0,o=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(w),h){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=ae.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=ae.selectors={cacheLength:50,createPseudo:le,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+P+"|$)"))&&R(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ae.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var l,u,h,d,p,f,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,E=a&&t.nodeName.toLowerCase(),y=!c&&!a,v=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===E:1===d.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&y){for(v=(p=(l=(u=(h=(d=m)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(v=p=0)||f.pop();)if(1===d.nodeType&&++v&&d===t){u[e]=[T,p,v];break}}else if(y&&(v=p=(l=(u=(h=(d=t)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===v)for(;(d=++p&&d&&d[g]||(v=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==E:1!==d.nodeType)||!++v||(y&&((u=(h=d[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[T,v]),d!==t)););return(v-=i)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),s=o.length;s--;)e[r=F(e,o[s])]=!(n[r]=o[s])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=a(e.replace(G,"$1"));return r[b]?le((function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return ae(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return z.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ye(){}function ve(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,c){var l,u,h,d=[T,a];if(c){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(u=(h=t[b]||(t[b]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[o])&&l[0]===T&&l[1]===a)return d[2]=l[2];if(u[o]=d,d[2]=e(t,n,c))return!0}return!1}}function Ae(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,s=[],a=0,c=e.length,l=null!=t;a<c;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),l&&t.push(a)));return s}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,s,a,c){var l,u,h,d=[],p=[],f=s.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ae(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:Te(g,d,e,a,c),E=n?i||(o?e:f||r)?[]:s:m;if(n&&n(m,E,a,c),r)for(l=Te(E,p),r(l,[],a,c),u=l.length;u--;)(h=l[u])&&(E[p[u]]=!(m[p[u]]=h));if(o){if(i||e){if(i){for(l=[],u=E.length;u--;)(h=E[u])&&l.push(m[u]=h);i(null,E=[],l,c)}for(u=E.length;u--;)(h=E[u])&&(l=i?F(o,h):d[u])>-1&&(o[l]=!(s[l]=h))}}else E=Te(E===s?E.splice(f,E.length):E),i?i(null,s,E,c):k.apply(s,E)}))}function Re(e){for(var t,n,i,o=e.length,s=r.relative[e[0].type],a=s||r.relative[" "],c=s?1:0,u=be((function(e){return e===t}),a,!0),h=be((function(e){return F(t,e)>-1}),a,!0),d=[function(e,n,r){var i=!s&&(r||n!==l)||((t=n).nodeType?u(e,n,r):h(e,n,r));return t=null,i}];c<o;c++)if(n=r.relative[e[c].type])d=[be(Ae(d),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[b]){for(i=++c;i<o&&!r.relative[e[i].type];i++);return Ce(c>1&&Ae(d),c>1&&ve(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(G,"$1"),n,c<i&&Re(e.slice(c,i)),i<o&&Re(e=e.slice(i)),i<o&&ve(e))}d.push(n)}return Ae(d)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,s=ae.tokenize=function(e,t){var n,i,o,s,a,c,l,u=S[e+" "];if(u)return t?0:u.slice(0);for(a=e,c=[],l=r.preFilter;a;){for(s in n&&!(i=W.exec(a))||(i&&(a=a.slice(i[0].length)||a),c.push(o=[])),n=!1,(i=V.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(G," ")}),a=a.slice(n.length)),r.filter)!(i=K[s].exec(a))||l[s]&&!(i=l[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):S(e,c).slice(0)},a=ae.compile=function(e,t){var n,i=[],o=[],a=_[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Re(t[n]))[b]?i.push(a):o.push(a);a=_(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,s,a,c,u){var h,f,m,E=0,y="0",v=o&&[],b=[],A=l,C=o||i&&r.find.TAG("*",u),R=T+=null==A?1:Math.random()||.1,S=C.length;for(u&&(l=s==p||s||u);y!==S&&null!=(h=C[y]);y++){if(i&&h){for(f=0,s||h.ownerDocument==p||(d(h),a=!g);m=e[f++];)if(m(h,s||p,a)){c.push(h);break}u&&(T=R)}n&&((h=!m&&h)&&E--,o&&v.push(h))}if(E+=y,n&&y!==E){for(f=0;m=t[f++];)m(v,b,s,a);if(o){if(E>0)for(;y--;)v[y]||b[y]||(b[y]=L.call(c));b=Te(b)}k.apply(c,b),u&&!o&&b.length>0&&E+t.length>1&&ae.uniqueSort(c)}return u&&(T=R,l=A),v};return n?le(o):o}(o,i)),a.selector=e}return a},c=ae.select=function(e,t,n,i){var o,c,l,u,h,d="function"==typeof e&&e,p=!i&&s(e=d.selector||e);if(n=n||[],1===p.length){if((c=p[0]=p[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&g&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=K.needsContext.test(e)?0:c.length;o--&&(l=c[o],!r.relative[u=l.type]);)if((h=r.find[u])&&(i=h(l.matches[0].replace(te,ne),ee.test(c[0].type)&&Ee(t.parentNode)||t))){if(c.splice(o,1),!(e=i.length&&ve(c)))return k.apply(n,i),n;break}}return(d||a(e,p))(i,t,!g,n,!t||ee.test(e)&&Ee(t.parentNode)||t),n},n.sortStable=b.split("").sort(w).join("")===b,n.detectDuplicates=!!h,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(M,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ae}(r);R.find=_,R.expr=_.selectors,R.expr[":"]=R.expr.pseudos,R.uniqueSort=R.unique=_.uniqueSort,R.text=_.getText,R.isXMLDoc=_.isXML,R.contains=_.contains,R.escapeSelector=_.escape;var x=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&R(e).is(n))break;r.push(e)}return r},w=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},I=R.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(e,t,n){return E(t)?R.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?R.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?R.grep(e,(function(e){return u.call(t,e)>-1!==n})):R.filter(t,e,n)}R.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?R.find.matchesSelector(r,e)?[r]:[]:R.find.matches(e,R.grep(t,(function(e){return 1===e.nodeType})))},R.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(R(e).filter((function(){for(t=0;t<r;t++)if(R.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)R.find(e,i[t],n);return r>1?R.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,"string"==typeof e&&I.test(e)?R(e):e||[],!1).length}});var k,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(R.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof R?t[0]:t,R.merge(this,R.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),L.test(r[1])&&R.isPlainObject(t))for(r in t)E(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=v.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):E(e)?void 0!==n.ready?n.ready(e):e(R):R.makeArray(e,this)}).prototype=R.fn,k=R(v);var F=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}R.fn.extend({has:function(e){var t=R(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(R.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&R(e);if(!I.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&R.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?R.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(R(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(R.uniqueSort(R.merge(this.get(),R(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),R.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x(e,"parentNode")},parentsUntil:function(e,t,n){return x(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return x(e,"nextSibling")},prevAll:function(e){return x(e,"previousSibling")},nextUntil:function(e,t,n){return x(e,"nextSibling",n)},prevUntil:function(e,t,n){return x(e,"previousSibling",n)},siblings:function(e){return w((e.parentNode||{}).firstChild,e)},children:function(e){return w(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(N(e,"template")&&(e=e.content||e),R.merge([],e.childNodes))}},(function(e,t){R.fn[e]=function(n,r){var i=R.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=R.filter(r,i)),this.length>1&&(M[e]||R.uniqueSort(i),F.test(e)&&i.reverse()),this.pushStack(i)}}));var B=/[^\x20\t\r\n\f]+/g;function U(e){return e}function $(e){throw e}function H(e,t,n,r){var i;try{e&&E(i=e.promise)?i.call(e).done(t).fail(n):e&&E(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}R.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return R.each(e.match(B)||[],(function(e,n){t[n]=!0})),t}(e):R.extend({},e);var t,n,r,i,o=[],s=[],a=-1,c=function(){for(i=i||e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){R.each(n,(function(n,r){E(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==T(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return R.each(arguments,(function(e,t){for(var n;(n=R.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(e){return e?R.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},R.extend({Deferred:function(e){var t=[["notify","progress",R.Callbacks("memory"),R.Callbacks("memory"),2],["resolve","done",R.Callbacks("once memory"),R.Callbacks("once memory"),0,"resolved"],["reject","fail",R.Callbacks("once memory"),R.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return R.Deferred((function(n){R.each(t,(function(t,r){var i=E(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&E(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function s(e,t,n,i){return function(){var a=this,c=arguments,l=function(){var r,l;if(!(e<o)){if((r=n.apply(a,c))===t.promise())throw new TypeError("Thenable self-resolution");l=r&&("object"==typeof r||"function"==typeof r)&&r.then,E(l)?i?l.call(r,s(o,t,U,i),s(o,t,$,i)):(o++,l.call(r,s(o,t,U,i),s(o,t,$,i),s(o,t,U,t.notifyWith))):(n!==U&&(a=void 0,c=[r]),(i||t.resolveWith)(a,c))}},u=i?l:function(){try{l()}catch(r){R.Deferred.exceptionHook&&R.Deferred.exceptionHook(r,u.stackTrace),e+1>=o&&(n!==$&&(a=void 0,c=[r]),t.rejectWith(a,c))}};e?u():(R.Deferred.getStackHook&&(u.stackTrace=R.Deferred.getStackHook()),r.setTimeout(u))}}return R.Deferred((function(r){t[0][3].add(s(0,r,E(i)?i:U,r.notifyWith)),t[1][3].add(s(0,r,E(e)?e:U)),t[2][3].add(s(0,r,E(n)?n:$))})).promise()},promise:function(e){return null!=e?R.extend(e,i):i}},o={};return R.each(t,(function(e,r){var s=r[2],a=r[5];i[r[1]]=s.add,a&&s.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=s.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=a.call(arguments),o=R.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(H(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||E(i[n]&&i[n].then)))return o.then();for(;n--;)H(i[n],s(n),o.reject);return o.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;R.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&G.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},R.readyException=function(e){r.setTimeout((function(){throw e}))};var W=R.Deferred();function V(){v.removeEventListener("DOMContentLoaded",V),r.removeEventListener("load",V),R.ready()}R.fn.ready=function(e){return W.then(e).catch((function(e){R.readyException(e)})),this},R.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--R.readyWait:R.isReady)||(R.isReady=!0,!0!==e&&--R.readyWait>0||W.resolveWith(v,[R]))}}),R.ready.then=W.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?r.setTimeout(R.ready):(v.addEventListener("DOMContentLoaded",V),r.addEventListener("load",V));var j=function(e,t,n,r,i,o,s){var a=0,c=e.length,l=null==n;if("object"===T(n))for(a in i=!0,n)j(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,E(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(R(e),n)})),t))for(;a<c;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):c?t(e[0],n):o},q=/^-ms-/,z=/-([a-z])/g;function K(e,t){return t.toUpperCase()}function Y(e){return e.replace(q,"ms-").replace(z,K)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=R.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[Y(t)]=n;else for(r in t)i[Y(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Y(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(Y):(t=Y(t))in r?[t]:t.match(B)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||R.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!R.isEmptyObject(t)}};var Q=new J,Z=new J,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}R.extend({hasData:function(e){return Z.hasData(e)||Q.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),R.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=Z.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=Y(r.slice(5)),ne(o,r,i[r]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Z.set(this,e)})):j(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Z.get(o,e))||void 0!==(n=ne(o,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),R.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,R.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=R.queue(e,t),r=n.length,i=n.shift(),o=R._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){R.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:R.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",n])}))})}}),R.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?R.queue(this[0],e):void 0===t?this:this.each((function(){var n=R.queue(this,e,t);R._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&R.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){R.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=R.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Q.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],se=v.documentElement,ae=function(e){return R.contains(e.ownerDocument,e)},ce={composed:!0};se.getRootNode&&(ae=function(e){return R.contains(e.ownerDocument,e)||e.getRootNode(ce)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===R.css(e,"display")};function ue(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return R.css(e,t,"")},c=a(),l=n&&n[3]||(R.cssNumber[t]?"":"px"),u=e.nodeType&&(R.cssNumber[t]||"px"!==l&&+c)&&ie.exec(R.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;s--;)R.style(e,t,u+l),(1-o)*(1-(o=a()/c||.5))<=0&&(s=0),u/=o;u*=2,R.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var he={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=he[r];return i||(t=n.body.appendChild(n.createElement(r)),i=R.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),he[r]=i,i)}function pe(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Q.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&le(r)&&(i[o]=de(r))):"none"!==n&&(i[o]="none",Q.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}R.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?R(this).show():R(this).hide()}))}});var fe,ge,me=/^(?:checkbox|radio)$/i,Ee=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;fe=v.createDocumentFragment().appendChild(v.createElement("div")),(ge=v.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),fe.appendChild(ge),m.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="<option></option>",m.option=!!fe.lastChild;var ve={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 be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?R.merge([e],n):n}function Ae(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,m.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function Ce(e,t,n,r,i){for(var o,s,a,c,l,u,h=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===T(o))R.merge(d,o.nodeType?[o]:o);else if(Te.test(o)){for(s=s||h.appendChild(t.createElement("div")),a=(Ee.exec(o)||["",""])[1].toLowerCase(),c=ve[a]||ve._default,s.innerHTML=c[1]+R.htmlPrefilter(o)+c[2],u=c[0];u--;)s=s.lastChild;R.merge(d,s.childNodes),(s=h.firstChild).textContent=""}else d.push(t.createTextNode(o));for(h.textContent="",p=0;o=d[p++];)if(r&&R.inArray(o,r)>-1)i&&i.push(o);else if(l=ae(o),s=be(h.appendChild(o),"script"),l&&Ae(s),n)for(u=0;o=s[u++];)ye.test(o.type||"")&&n.push(o);return h}var Re=/^key/,Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function we(){return!1}function Ie(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function Ne(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Ne(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=we;else if(!i)return e;return 1===o&&(s=i,i=function(e){return R().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=R.guid++)),e.each((function(){R.event.add(this,t,i,r,n)}))}function Le(e,t,n){n?(Q.set(e,t,!1),R.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(R.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=a.call(arguments),Q.set(this,t,o),r=n(this,t),this[t](),o!==(i=Q.get(this,t))||r?Q.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(Q.set(this,t,{value:R.event.trigger(R.extend(o[0],R.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&R.event.add(e,t,xe)}R.event={global:{},add:function(e,t,n,r,i){var o,s,a,c,l,u,h,d,p,f,g,m=Q.get(e);if(X(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&R.find.matchesSelector(se,i),n.guid||(n.guid=R.guid++),(c=m.events)||(c=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return void 0!==R&&R.event.triggered!==t.type?R.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(B)||[""]).length;l--;)p=g=(a=_e.exec(t[l])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=R.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,h=R.event.special[p]||{},u=R.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&R.expr.match.needsContext.test(i),namespace:f.join(".")},o),(d=c[p])||((d=c[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(p,s)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),R.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,c,l,u,h,d,p,f,g,m=Q.hasData(e)&&Q.get(e);if(m&&(c=m.events)){for(l=(t=(t||"").match(B)||[""]).length;l--;)if(p=g=(a=_e.exec(t[l])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=R.event.special[p]||{},d=c[p=(r?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!i&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,f,m.handle)||R.removeEvent(e,p,m.handle),delete c[p])}else for(p in c)R.event.remove(e,p+t[l],n,r,!0);R.isEmptyObject(c)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),c=R.event.fix(e),l=(Q.get(this,"events")||Object.create(null))[c.type]||[],u=R.event.special[c.type]||{};for(a[0]=c,t=1;t<arguments.length;t++)a[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(s=R.event.handlers.call(this,c,l),t=0;(i=s[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((R.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,o,s,a=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],s={},n=0;n<c;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?R(i,this).index(l)>-1:R.find(i,this,null,[l]).length),s[i]&&o.push(r);o.length&&a.push({elem:l,handlers:o})}return l=this,c<t.length&&a.push({elem:l,handlers:t.slice(c)}),a},addProp:function(e,t){Object.defineProperty(R.Event.prototype,e,{enumerable:!0,configurable:!0,get:E(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[R.expando]?e:new R.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&N(t,"input")&&Le(t,"click",xe),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&N(t,"input")&&Le(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&N(t,"input")&&Q.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},R.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},R.Event=function(e,t){if(!(this instanceof R.Event))return new R.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?xe:we,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&R.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[R.expando]=!0},R.Event.prototype={constructor:R.Event,isDefaultPrevented:we,isPropagationStopped:we,isImmediatePropagationStopped:we,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=xe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=xe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=xe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},R.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:function(e){var t=e.button;return null==e.which&&Re.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Se.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},R.event.addProp),R.each({focus:"focusin",blur:"focusout"},(function(e,t){R.event.special[e]={setup:function(){return Le(this,e,Ie),!1},trigger:function(){return Le(this,e),!0},delegateType:t}})),R.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){R.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||R.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),R.fn.extend({on:function(e,t,n,r){return Ne(this,e,t,n,r)},one:function(e,t,n,r){return Ne(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,R(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=we),this.each((function(){R.event.remove(this,e,n,t)}))}});var Oe=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Fe(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&R(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Pe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,r,i,o,s,a;if(1===t.nodeType){if(Q.hasData(e)&&(a=Q.get(e).events))for(i in Q.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)R.event.add(t,i,a[i][n]);Z.hasData(e)&&(o=Z.access(e),s=R.extend({},o),Z.set(t,s))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function $e(e,t,n,r){t=c(t);var i,o,s,a,l,u,h=0,d=e.length,p=d-1,f=t[0],g=E(f);if(g||d>1&&"string"==typeof f&&!m.checkClone&&ke.test(f))return e.each((function(i){var o=e.eq(i);g&&(t[0]=f.call(this,i,o.html())),$e(o,t,n,r)}));if(d&&(o=(i=Ce(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=R.map(be(i,"script"),Me)).length;h<d;h++)l=i,h!==p&&(l=R.clone(l,!0,!0),a&&R.merge(s,be(l,"script"))),n.call(e[h],l,h);if(a)for(u=s[s.length-1].ownerDocument,R.map(s,Pe),h=0;h<a;h++)l=s[h],ye.test(l.type||"")&&!Q.access(l,"globalEval")&&R.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?R._evalUrl&&!l.noModule&&R._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):A(l.textContent.replace(De,""),l,u))}return e}function He(e,t,n){for(var r,i=t?R.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||R.cleanData(be(r)),r.parentNode&&(n&&ae(r)&&Ae(be(r,"script")),r.parentNode.removeChild(r));return e}R.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),c=ae(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||R.isXMLDoc(e)))for(s=be(a),r=0,i=(o=be(e)).length;r<i;r++)Ue(o[r],s[r]);if(t)if(n)for(o=o||be(e),s=s||be(a),r=0,i=o.length;r<i;r++)Be(o[r],s[r]);else Be(e,a);return(s=be(a,"script")).length>0&&Ae(s,!c&&be(e,"script")),a},cleanData:function(e){for(var t,n,r,i=R.event.special,o=0;void 0!==(n=e[o]);o++)if(X(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)i[r]?R.event.remove(n,r):R.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),R.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return j(this,(function(e){return void 0===e?R.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return $e(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return $e(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return $e(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return $e(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(R.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return R.clone(this,e,t)}))},html:function(e){return j(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ve[(Ee.exec(e)||["",""])[1].toLowerCase()]){e=R.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(R.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,(function(t){var n=this.parentNode;R.inArray(this,e)<0&&(R.cleanData(be(this)),n&&n.replaceChild(t,this))}),e)}}),R.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){R.fn[e]=function(e){for(var n,r=[],i=R(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),R(i[s])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var Ge=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),We=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ve=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},je=new RegExp(oe.join("|"),"i");function qe(e,t,n){var r,i,o,s,a=e.style;return(n=n||We(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||ae(e)||(s=R.style(e,t)),!m.pixelBoxStyles()&&Ge.test(s)&&je.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(l).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),se.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,s,a,c,l=v.createElement("div"),u=v.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,R.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==a&&(e=v.createElement("table"),t=v.createElement("tr"),n=v.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",se.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),a=parseInt(i.height)>3,se.removeChild(e)),a}}))}();var Ke=["Webkit","Moz","ms"],Ye=v.createElement("div").style,Xe={};function Je(e){return R.cssProps[e]||Xe[e]||(e in Ye?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ke.length;n--;)if((e=Ke[n]+t)in Ye)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,i,o){var s="width"===t?1:0,a=0,c=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=R.css(e,n+oe[s],!0,i)),r?("content"===n&&(c-=R.css(e,"padding"+oe[s],!0,i)),"margin"!==n&&(c-=R.css(e,"border"+oe[s]+"Width",!0,i))):(c+=R.css(e,"padding"+oe[s],!0,i),"padding"!==n?c+=R.css(e,"border"+oe[s]+"Width",!0,i):a+=R.css(e,"border"+oe[s]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-a-.5))||0),c}function it(e,t,n){var r=We(e),i=(!m.boxSizingReliable()||n)&&"border-box"===R.css(e,"boxSizing",!1,r),o=i,s=qe(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&N(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===R.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===R.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+rt(e,t,n||(i?"border":"content"),o,r,s)+"px"}function ot(e,t,n,r,i){return new ot.prototype.init(e,t,n,r,i)}R.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=Y(t),c=Ze.test(t),l=e.style;if(c||(t=Je(a)),s=R.cssHooks[t]||R.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:l[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=i&&i[3]||(R.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,s,a=Y(t);return Ze.test(t)||(t=Je(a)),(s=R.cssHooks[t]||R.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=qe(e,t,r)),"normal"===i&&t in tt&&(i=tt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),R.each(["height","width"],(function(e,t){R.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(R.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):Ve(e,et,(function(){return it(e,t,r)}))},set:function(e,n,r){var i,o=We(e),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===R.css(e,"boxSizing",!1,o),c=r?rt(e,t,r,a,o):0;return a&&s&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),c&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=R.css(e,t)),nt(0,n,c)}}})),R.cssHooks.marginLeft=ze(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),R.each({margin:"",padding:"",border:"Width"},(function(e,t){R.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(R.cssHooks[e+t].set=nt)})),R.fn.extend({css:function(e,t){return j(this,(function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=We(e),i=t.length;s<i;s++)o[t[s]]=R.css(e,t[s],!1,r);return o}return void 0!==n?R.style(e,t,n):R.css(e,t)}),e,t,arguments.length>1)}}),R.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||R.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(R.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=R.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=R.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){R.fx.step[e.prop]?R.fx.step[e.prop](e):1!==e.elem.nodeType||!R.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:R.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},R.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},R.fx=ot.prototype.init,R.fx.step={};var st,at,ct=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ut(){at&&(!1===v.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ut):r.setTimeout(ut,R.fx.interval),R.fx.tick())}function ht(){return r.setTimeout((function(){st=void 0})),st=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function pt(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function ft(e,t,n){var r,i,o=0,s=ft.prefilters.length,a=R.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var t=st||ht(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(r);return a.notifyWith(e,[l,r,n]),r<1&&s?n:(s||a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:R.extend({},t),opts:R.extend(!0,{specialEasing:{},easing:R.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var r=R.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),u=l.props;for(function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=Y(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=R.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,l.opts.specialEasing);o<s;o++)if(r=ft.prefilters[o].call(l,e,u,l.opts))return E(r.stop)&&(R._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return R.map(u,pt,l),E(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),R.fx.timer(R.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}R.Animation=R.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){E(e)?(t=e,e=["*"]):e=e.match(B);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,c,l,u,h="width"in t||"height"in t,d=this,p={},f=e.style,g=e.nodeType&&le(e),m=Q.get(e,"fxshow");for(r in n.queue||(null==(s=R._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,R.queue(e,"fx").length||s.empty.fire()}))}))),t)if(i=t[r],ct.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||R.style(e,r)}if((c=!R.isEmptyObject(t))||!R.isEmptyObject(p))for(r in h&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(l=m&&m.display)&&(l=Q.get(e,"display")),"none"===(u=R.css(e,"display"))&&(l?u=l:(pe([e],!0),l=e.style.display||l,u=R.css(e,"display"),pe([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===R.css(e,"float")&&(c||(d.done((function(){f.display=l})),null==l&&(u=f.display,l="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),c=!1,p)c||(m?"hidden"in m&&(g=m.hidden):m=Q.access(e,"fxshow",{display:l}),o&&(m.hidden=!g),g&&pe([e],!0),d.done((function(){for(r in g||pe([e]),Q.remove(e,"fxshow"),p)R.style(e,r,p[r])}))),c=pt(g?m[r]:0,r,d),r in m||(m[r]=c.start,g&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),R.speed=function(e,t,n){var r=e&&"object"==typeof e?R.extend({},e):{complete:n||!n&&t||E(e)&&e,duration:e,easing:n&&t||t&&!E(t)&&t};return R.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in R.fx.speeds?r.duration=R.fx.speeds[r.duration]:r.duration=R.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){E(r.old)&&r.old.call(this),r.queue&&R.dequeue(this,r.queue)},r},R.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=R.isEmptyObject(e),o=R.speed(t,n,r),s=function(){var t=ft(this,R.extend({},e),o);(i||Q.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=R.timers,s=Q.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&lt.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||R.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Q.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=R.timers,s=r?r.length:0;for(n.finish=!0,R.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),R.each(["toggle","show","hide"],(function(e,t){var n=R.fn[t];R.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,i)}})),R.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){R.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),R.timers=[],R.fx.tick=function(){var e,t=0,n=R.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||R.fx.stop(),st=void 0},R.fx.timer=function(e){R.timers.push(e),R.fx.start()},R.fx.interval=13,R.fx.start=function(){at||(at=!0,ut())},R.fx.stop=function(){at=null},R.fx.speeds={slow:600,fast:200,_default:400},R.fn.delay=function(e,t){return e=R.fx&&R.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=v.createElement("input"),t=v.createElement("select").appendChild(v.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=v.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var gt,mt=R.expr.attrHandle;R.fn.extend({attr:function(e,t){return j(this,R.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){R.removeAttr(this,e)}))}}),R.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?R.prop(e,t,n):(1===o&&R.isXMLDoc(e)||(i=R.attrHooks[t.toLowerCase()]||(R.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void R.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=R.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(B);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?R.removeAttr(e,n):e.setAttribute(n,n),n}},R.each(R.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||R.find.attr;mt[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=mt[s],mt[s]=i,i=null!=n(e,t,r)?s:null,mt[s]=o),i}}));var Et=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function vt(e){return(e.match(B)||[]).join(" ")}function bt(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(B)||[]}R.fn.extend({prop:function(e,t){return j(this,R.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[R.propFix[e]||e]}))}}),R.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&R.isXMLDoc(e)||(t=R.propFix[t]||t,i=R.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=R.find.attr(e,"tabindex");return t?parseInt(t,10):Et.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(R.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),R.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){R.propFix[this.toLowerCase()]=this})),R.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,c=0;if(E(e))return this.each((function(t){R(this).addClass(e.call(this,t,bt(this)))}));if((t=At(e)).length)for(;n=this[c++];)if(i=bt(n),r=1===n.nodeType&&" "+vt(i)+" "){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=vt(r))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,c=0;if(E(e))return this.each((function(t){R(this).removeClass(e.call(this,t,bt(this)))}));if(!arguments.length)return this.attr("class","");if((t=At(e)).length)for(;n=this[c++];)if(i=bt(n),r=1===n.nodeType&&" "+vt(i)+" "){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(a=vt(r))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):E(e)?this.each((function(n){R(this).toggleClass(e.call(this,n,bt(this),t),t)})):this.each((function(){var t,i,o,s;if(r)for(i=0,o=R(this),s=At(e);t=s[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=bt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+vt(bt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;R.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=E(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,R(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=R.map(i,(function(e){return null==e?"":e+""}))),(t=R.valHooks[this.type]||R.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=R.valHooks[i.type]||R.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Tt,""):null==n?"":n:void 0}}),R.extend({valHooks:{option:{get:function(e){var t=R.find.attr(e,"value");return null!=t?t:vt(R.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],c=s?o+1:i.length;for(r=o<0?c:s?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=R(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=R.makeArray(t),s=i.length;s--;)((r=i[s]).selected=R.inArray(R.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),R.each(["radio","checkbox"],(function(){R.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=R.inArray(R(e).val(),t)>-1}},m.checkOn||(R.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in r;var Ct=/^(?:focusinfocus|focusoutblur)$/,Rt=function(e){e.stopPropagation()};R.extend(R.event,{trigger:function(e,t,n,i){var o,s,a,c,l,u,h,d,f=[n||v],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(s=d=a=n=n||v,3!==n.nodeType&&8!==n.nodeType&&!Ct.test(g+R.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),l=g.indexOf(":")<0&&"on"+g,(e=e[R.expando]?e:new R.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:R.makeArray(t,[e]),h=R.event.special[g]||{},i||!h.trigger||!1!==h.trigger.apply(n,t))){if(!i&&!h.noBubble&&!y(n)){for(c=h.delegateType||g,Ct.test(c+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||v)&&f.push(a.defaultView||a.parentWindow||r)}for(o=0;(s=f[o++])&&!e.isPropagationStopped();)d=s,e.type=o>1?c:h.bindType||g,(u=(Q.get(s,"events")||Object.create(null))[e.type]&&Q.get(s,"handle"))&&u.apply(s,t),(u=l&&s[l])&&u.apply&&X(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),t)||!X(n)||l&&E(n[g])&&!y(n)&&((a=n[l])&&(n[l]=null),R.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,Rt),n[g](),e.isPropagationStopped()&&d.removeEventListener(g,Rt),R.event.triggered=void 0,a&&(n[l]=a)),e.result}},simulate:function(e,t,n){var r=R.extend(new R.Event,n,{type:e,isSimulated:!0});R.event.trigger(r,null,t)}}),R.fn.extend({trigger:function(e,t){return this.each((function(){R.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return R.event.trigger(e,t,n,!0)}}),m.focusin||R.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){R.event.simulate(t,e.target,R.event.fix(e))};R.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,t);i||r.addEventListener(e,n,!0),Q.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Q.access(r,t)-1;i?Q.access(r,t,i):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}}));var St=r.location,_t={guid:Date.now()},xt=/\?/;R.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||R.error("Invalid XML: "+e),t};var wt=/\[\]$/,It=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,r){var i;if(Array.isArray(t))R.each(t,(function(t,i){n||wt.test(e)?r(e,i):Ot(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==T(t))r(e,t);else for(i in t)Ot(e+"["+i+"]",t[i],n,r)}R.param=function(e,t){var n,r=[],i=function(e,t){var n=E(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!R.isPlainObject(e))R.each(e,(function(){i(this.name,this.value)}));else for(n in e)Ot(n,e[n],t,i);return r.join("&")},R.fn.extend({serialize:function(){return R.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=R.prop(this,"elements");return e?R.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!R(this).is(":disabled")&&Lt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=R(this).val();return null==n?null:Array.isArray(n)?R.map(n,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:n.replace(It,"\r\n")}})).get()}});var kt=/%20/g,Dt=/#.*$/,Ft=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:GET|HEAD)$/,Bt=/^\/\//,Ut={},$t={},Ht="*/".concat("*"),Gt=v.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(B)||[];if(E(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Vt(e,t,n,r){var i={},o=e===$t;function s(a){var c;return i[a]=!0,R.each(e[a]||[],(function(e,a){var l=a(t,n,r);return"string"!=typeof l||o||i[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),s(l),!1)})),c}return s(t.dataTypes[0])||!i["*"]&&s("*")}function jt(e,t){var n,r,i=R.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&R.extend(!0,e,r),e}Gt.href=St.href,R.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,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":R.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?jt(jt(e,R.ajaxSettings),t):jt(R.ajaxSettings,e)},ajaxPrefilter:Wt(Ut),ajaxTransport:Wt($t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,s,a,c,l,u,h,d,p=R.ajaxSetup({},t),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?R(f):R.event,m=R.Deferred(),E=R.Callbacks("once memory"),y=p.statusCode||{},b={},A={},T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!s)for(s={};t=Mt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=A[e.toLowerCase()]=A[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||T;return n&&n.abort(t),S(0,t),this}};if(m.promise(C),p.url=((e||p.url||St.href)+"").replace(Bt,St.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(B)||[""],null==p.crossDomain){c=v.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Gt.protocol+"//"+Gt.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=R.param(p.data,p.traditional)),Vt(Ut,p,t,C),l)return C;for(h in(u=R.event&&p.global)&&0==R.active++&&R.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Pt.test(p.type),i=p.url.replace(Dt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(kt,"+")):(d=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(xt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Ft,"$1"),d=(xt.test(i)?"&":"?")+"_="+_t.guid+++d),p.url=i+d),p.ifModified&&(R.lastModified[i]&&C.setRequestHeader("If-Modified-Since",R.lastModified[i]),R.etag[i]&&C.setRequestHeader("If-None-Match",R.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ht+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||l))return C.abort();if(T="abort",E.add(p.complete),C.done(p.success),C.fail(p.error),n=Vt($t,p,t,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,p]),l)return C;p.async&&p.timeout>0&&(a=r.setTimeout((function(){C.abort("timeout")}),p.timeout));try{l=!1,n.send(b,S)}catch(e){if(l)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,s,c){var h,d,v,b,A,T=t;l||(l=!0,a&&r.clearTimeout(a),n=void 0,o=c||"",C.readyState=e>0?4:0,h=e>=200&&e<300||304===e,s&&(b=function(e,t,n){for(var r,i,o,s,a=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==c[0]&&c.unshift(o),n[o]}(p,C,s)),!h&&R.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),b=function(e,t,n,r){var i,o,s,a,c,l={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(s=l[c+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[c+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(p,b,C,h),h?(p.ifModified&&((A=C.getResponseHeader("Last-Modified"))&&(R.lastModified[i]=A),(A=C.getResponseHeader("etag"))&&(R.etag[i]=A)),204===e||"HEAD"===p.type?T="nocontent":304===e?T="notmodified":(T=b.state,d=b.data,h=!(v=b.error))):(v=T,!e&&T||(T="error",e<0&&(e=0))),C.status=e,C.statusText=(t||T)+"",h?m.resolveWith(f,[d,T,C]):m.rejectWith(f,[C,T,v]),C.statusCode(y),y=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[C,p,h?d:v]),E.fireWith(f,[C,T]),u&&(g.trigger("ajaxComplete",[C,p]),--R.active||R.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return R.get(e,t,n,"json")},getScript:function(e,t){return R.get(e,void 0,t,"script")}}),R.each(["get","post"],(function(e,t){R[t]=function(e,n,r,i){return E(n)&&(i=i||r,r=n,n=void 0),R.ajax(R.extend({url:e,type:t,dataType:i,data:n,success:r},R.isPlainObject(e)&&e))}})),R.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),R._evalUrl=function(e,t,n){return R.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){R.globalEval(e,t,n)}})},R.fn.extend({wrapAll:function(e){var t;return this[0]&&(E(e)&&(e=e.call(this[0])),t=R(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return E(e)?this.each((function(t){R(this).wrapInner(e.call(this,t))})):this.each((function(){var t=R(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=E(e);return this.each((function(n){R(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){R(this).replaceWith(this.childNodes)})),this}}),R.expr.pseudos.hidden=function(e){return!R.expr.pseudos.visible(e)},R.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},R.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},zt=R.ajaxSettings.xhr();m.cors=!!zt&&"withCredentials"in zt,m.ajax=zt=!!zt,R.ajaxTransport((function(e){var t,n;if(m.cors||zt&&!e.crossDomain)return{send:function(i,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(qt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),R.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),R.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return R.globalEval(e),e}}}),R.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),R.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=R("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Kt,Yt=[],Xt=/(=)\?(?=&|$)|\?\?/;R.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||R.expando+"_"+_t.guid++;return this[e]=!0,e}}),R.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,s,a=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=E(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Xt,"$1"+i):!1!==e.jsonp&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||R.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){s=arguments},n.always((function(){void 0===o?R(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Yt.push(i)),s&&E(o)&&o(s[0]),s=o=void 0})),"script"})),m.createHTMLDocument=((Kt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Kt.childNodes.length),R.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),o=!n&&[],(i=L.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,o),o&&o.length&&R(o).remove(),R.merge([],i.childNodes)));var r,i,o},R.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=vt(e.slice(a)),e=e.slice(0,a)),E(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&R.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(r?R("<div>").append(R.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},R.expr.pseudos.animated=function(e){return R.grep(R.timers,(function(t){return e===t.elem})).length},R.offset={setOffset:function(e,t,n){var r,i,o,s,a,c,l=R.css(e,"position"),u=R(e),h={};"static"===l&&(e.style.position="relative"),a=u.offset(),o=R.css(e,"top"),c=R.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(s=(r=u.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(c)||0),E(t)&&(t=t.call(e,n,R.extend({},a))),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+i),"using"in t?t.using.call(e,h):("number"==typeof h.top&&(h.top+="px"),"number"==typeof h.left&&(h.left+="px"),u.css(h))}},R.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){R.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===R.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===R.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=R(e).offset()).top+=R.css(e,"borderTopWidth",!0),i.left+=R.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-R.css(r,"marginTop",!0),left:t.left-i.left-R.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===R.css(e,"position");)e=e.offsetParent;return e||se}))}}),R.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;R.fn[e]=function(r){return j(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),R.each(["top","left"],(function(e,t){R.cssHooks[t]=ze(m.pixelPosition,(function(e,n){if(n)return n=qe(e,t),Ge.test(n)?R(e).position()[t]+"px":n}))})),R.each({Height:"height",Width:"width"},(function(e,t){R.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){R.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return j(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?R.css(t,n,a):R.style(t,n,i,a)}),t,s?i:void 0,s)}}))})),R.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){R.fn[t]=function(e){return this.on(t,e)}})),R.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),R.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(e,t){R.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Jt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;R.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),E(e))return r=a.call(arguments,2),i=function(){return e.apply(t||this,r.concat(a.call(arguments)))},i.guid=e.guid=e.guid||R.guid++,i},R.holdReady=function(e){e?R.readyWait++:R.ready(!0)},R.isArray=Array.isArray,R.parseJSON=JSON.parse,R.nodeName=N,R.isFunction=E,R.isWindow=y,R.camelCase=Y,R.type=T,R.now=Date.now,R.isNumeric=function(e){var t=R.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},R.trim=function(e){return null==e?"":(e+"").replace(Jt,"")},void 0===(n=function(){return R}.apply(t,[]))||(e.exports=n);var Qt=r.jQuery,Zt=r.$;return R.noConflict=function(e){return r.$===R&&(r.$=Zt),e&&r.jQuery===R&&(r.jQuery=Qt),R},void 0===i&&(r.jQuery=r.$=R),R}))},5526:(e,t,n)=>{var r,i,o;!function(s){var a=this||(0,eval)("this"),c=a.document,l=a.navigator,u=a.jQuery,h=a.JSON;u||"undefined"==typeof jQuery||(u=jQuery),function(s){i=[t,n],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o)}((function(e,t){function n(e,t){return(null===e||typeof e in A)&&e===t}function r(e,t){var n;return function(){n||(n=b.a.setTimeout((function(){n=s,e()}),t))}}function i(e,t){var n;return function(){clearTimeout(n),n=b.a.setTimeout(e,t)}}function o(e,t){t&&"change"!==t?"beforeChange"===t?this.pc(e):this.gb(e,t):this.qc(e)}function d(e,t){null!==t&&t.s&&t.s()}function p(e,t){var n=this.qd,r=n[_];r.ra||(this.Qb&&this.mb[t]?(n.uc(t,e,this.mb[t]),this.mb[t]=null,--this.Qb):r.I[t]||n.uc(t,e,r.J?{da:e}:n.$c(e)),e.Ja&&e.gd())}var f,g,m,E,y,v,b=void 0!==e?e:{};b.b=function(e,t){for(var n=e.split("."),r=b,i=0;i<n.length-1;i++)r=r[n[i]];r[n[n.length-1]]=t},b.L=function(e,t,n){e[t]=n},b.version="3.5.1",b.b("version",b.version),b.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},b.a=function(){function e(e,t){for(var n in e)i.call(e,n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)i.call(t,n)&&(e[n]=t[n]);return e}function n(e,t){return e.__proto__=t,e}function r(e,t,n,r){var i=e[t].match(y)||[];b.a.D(n.match(y),(function(e){b.a.Na(i,e,r)})),e[t]=i.join(" ")}var i=Object.prototype.hasOwnProperty,o={__proto__:[]}instanceof Array,d="function"==typeof Symbol,p={},f={};p[l&&/Firefox\/2/i.test(l.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],p.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),e(p,(function(e,t){if(t.length)for(var n=0,r=t.length;n<r;n++)f[t[n]]=e}));var g,m={propertychange:!0},E=c&&function(){for(var e=3,t=c.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:s}(),y=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(e,t,n){for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r];return s},Pa:function(e,t){var n=b.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},wc:function(e){var t=[];return e&&b.a.D(e,(function(e){0>b.a.A(t,e)&&t.push(e)})),t},Mb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i));return r},jb:function(e,t,n){var r=[];if(e)for(var i=0,o=e.length;i<o;i++)t.call(n,e[i],i)&&r.push(e[i]);return r},Nb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,r=t.length;n<r;n++)e.push(t[n]);return e},Na:function(e,t,n){var r=b.a.A(b.a.bc(e),t);0>r?n&&e.push(t):n||e.splice(r,1)},Ba:o,extend:t,setPrototypeOf:n,Ab:o?n:t,P:e,Ga:function(e,t,n){if(!e)return e;var r,o={};for(r in e)i.call(e,r)&&(o[r]=t.call(n,e[r],r,e));return o},Tb:function(e){for(;e.firstChild;)b.removeNode(e.firstChild)},Yb:function(e){for(var t=((e=b.a.la(e))[0]&&e[0].ownerDocument||c).createElement("div"),n=0,r=e.length;n<r;n++)t.appendChild(b.oa(e[n]));return t},Ca:function(e,t){for(var n=0,r=e.length,i=[];n<r;n++){var o=e[n].cloneNode(!0);i.push(t?b.oa(o):o)}return i},va:function(e,t){if(b.a.Tb(e),t)for(var n=0,r=t.length;n<r;n++)e.appendChild(t[n])},Xc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var r=n[0],i=r.parentNode,o=0,s=t.length;o<s;o++)i.insertBefore(t[o],r);for(o=0,s=n.length;o<s;o++)b.removeNode(n[o])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],r=e[e.length-1];for(e.length=0;n!==r;)e.push(n),n=n.nextSibling;e.push(r)}}return e},Zc:function(e,t){7>E?e.setAttribute("selected",t):e.selected=t},Db:function(e){return null===e||e===s?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},Ud:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},vd:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},Sb:function(e){return b.a.vd(e,e.ownerDocument.documentElement)},kd:function(e){return!!b.a.Lb(e,b.a.Sb)},R:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},Ac:function(e){return b.onError?function(){try{return e.apply(this,arguments)}catch(e){throw b.onError&&b.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(b.a.Ac(e),t)},Gc:function(e){setTimeout((function(){throw b.onError&&b.onError(e),e}),0)},B:function(e,t,n){var r=b.a.Ac(n);if(n=m[t],b.options.useOnlyNativeEvents||n||!u)if(n||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw Error("Browser doesn't support addEventListener or attachEvent");var i=function(t){r.call(e,t)},o="on"+t;e.attachEvent(o,i),b.a.K.za(e,(function(){e.detachEvent(o,i)}))}else e.addEventListener(t,r,!1);else g||(g="function"==typeof u(e).on?"on":"bind"),u(e)[g](t,r)},Fb:function(e,t){if(!e||!e.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var n;if(n=!("input"!==b.a.R(e)||!e.type||"click"!=t.toLowerCase()||"checkbox"!=(n=e.type)&&"radio"!=n),b.options.useOnlyNativeEvents||!u||n)if("function"==typeof c.createEvent){if("function"!=typeof e.dispatchEvent)throw Error("The supplied element doesn't support dispatchEvent");(n=c.createEvent(f[t]||"HTMLEvents")).initEvent(t,!0,!0,a,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(n)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else u(e).trigger(t)},f:function(e){return b.O(e)?e():e},bc:function(e){return b.O(e)?e.v():e},Eb:function(e,t,n){var i;t&&("object"==typeof e.classList?(i=e.classList[n?"add":"remove"],b.a.D(t.match(y),(function(t){i.call(e.classList,t)}))):"string"==typeof e.className.baseVal?r(e.className,"baseVal",t,n):r(e,"className",t,n))},Bb:function(e,t){var n=b.a.f(t);null!==n&&n!==s||(n="");var r=b.h.firstChild(e);!r||3!=r.nodeType||b.h.nextSibling(r)?b.h.va(e,[e.ownerDocument.createTextNode(n)]):r.data=n,b.a.Ad(e)},Yc:function(e,t){if(e.name=t,7>=E)try{var n=e.name.replace(/[&<>'"]/g,(function(e){return"&#"+e.charCodeAt(0)+";"}));e.mergeAttributes(c.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},Ad:function(e){9<=E&&(e=1==e.nodeType?e:e.parentNode).style&&(e.style.zoom=e.style.zoom)},wd:function(e){if(E){var t=e.style.width;e.style.width=0,e.style.width=t}},Pd:function(e,t){e=b.a.f(e),t=b.a.f(t);for(var n=[],r=e;r<=t;r++)n.push(r);return n},la:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t},Da:function(e){return d?Symbol(e):e},Zd:6===E,$d:7===E,W:E,Lc:function(e,t){for(var n=b.a.la(e.getElementsByTagName("input")).concat(b.a.la(e.getElementsByTagName("textarea"))),r="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},i=[],o=n.length-1;0<=o;o--)r(n[o])&&i.push(n[o]);return i},Nd:function(e){return"string"==typeof e&&(e=b.a.Db(e))?h&&h.parse?h.parse(e):new Function("return "+e)():null},hc:function(e,t,n){if(!h||!h.stringify)throw Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return h.stringify(b.a.f(e),t,n)},Od:function(t,n,r){var i=(r=r||{}).params||{},o=r.includeFields||this.Jc,s=t;if("object"==typeof t&&"form"===b.a.R(t)){s=t.action;for(var a=o.length-1;0<=a;a--)for(var l=b.a.Lc(t,o[a]),u=l.length-1;0<=u;u--)i[l[u].name]=l[u].value}n=b.a.f(n);var h=c.createElement("form");for(var d in h.style.display="none",h.action=s,h.method="post",n)(t=c.createElement("input")).type="hidden",t.name=d,t.value=b.a.hc(b.a.f(n[d])),h.appendChild(t);e(i,(function(e,t){var n=c.createElement("input");n.type="hidden",n.name=e,n.value=t,h.appendChild(n)})),c.body.appendChild(h),r.submitter?r.submitter(h):h.submit(),setTimeout((function(){h.parentNode.removeChild(h)}),0)}}}(),b.b("utils",b.a),b.b("utils.arrayForEach",b.a.D),b.b("utils.arrayFirst",b.a.Lb),b.b("utils.arrayFilter",b.a.jb),b.b("utils.arrayGetDistinctValues",b.a.wc),b.b("utils.arrayIndexOf",b.a.A),b.b("utils.arrayMap",b.a.Mb),b.b("utils.arrayPushAll",b.a.Nb),b.b("utils.arrayRemoveItem",b.a.Pa),b.b("utils.cloneNodes",b.a.Ca),b.b("utils.createSymbolOrString",b.a.Da),b.b("utils.extend",b.a.extend),b.b("utils.fieldsIncludedWithJsonPost",b.a.Jc),b.b("utils.getFormFields",b.a.Lc),b.b("utils.objectMap",b.a.Ga),b.b("utils.peekObservable",b.a.bc),b.b("utils.postJson",b.a.Od),b.b("utils.parseJson",b.a.Nd),b.b("utils.registerEventHandler",b.a.B),b.b("utils.stringifyJson",b.a.hc),b.b("utils.range",b.a.Pd),b.b("utils.toggleDomNodeCssClass",b.a.Eb),b.b("utils.triggerEvent",b.a.Fb),b.b("utils.unwrapObservable",b.a.f),b.b("utils.objectForEach",b.a.P),b.b("utils.addOrRemoveItem",b.a.Na),b.b("utils.setTextContent",b.a.Bb),b.b("unwrap",b.a.f),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),t.apply(e,r)}}),b.a.g=new function(){var e,t,n=0,r="__ko__"+(new Date).getTime(),i={};return b.a.W?(e=function(e,t){var o=e[r];if(!o||"null"===o||!i[o]){if(!t)return s;o=e[r]="ko"+n++,i[o]={}}return i[o]},t=function(e){var t=e[r];return!!t&&(delete i[t],e[r]=null,!0)}):(e=function(e,t){var n=e[r];return!n&&t&&(n=e[r]={}),n},t=function(e){return!!e[r]&&(delete e[r],!0)}),{get:function(t,n){var r=e(t,!1);return r&&r[n]},set:function(t,n,r){(t=e(t,r!==s))&&(t[n]=r)},Ub:function(t,n,r){return(t=e(t,!0))[n]||(t[n]=r)},clear:t,Z:function(){return n+++r}}},b.b("utils.domData",b.a.g),b.b("utils.domData.clear",b.a.g.clear),b.a.K=new function(){function e(e,t){var n=b.a.g.get(e,r);return n===s&&t&&(n=[],b.a.g.set(e,r,n)),n}function t(t){if(r=e(t,!1))for(var r=r.slice(0),i=0;i<r.length;i++)r[i](t);b.a.g.clear(t),b.a.K.cleanExternalData(t),o[t.nodeType]&&n(t.childNodes,!0)}function n(e,n){for(var r,i=[],o=0;o<e.length;o++)if((!n||8===e[o].nodeType)&&(t(i[i.length]=r=e[o]),e[o]!==r))for(;o--&&-1==b.a.A(i,e[o]););}var r=b.a.g.Z(),i={1:!0,8:!0,9:!0},o={1:!0,9:!0};return{za:function(t,n){if("function"!=typeof n)throw Error("Callback must be a function");e(t,!0).push(n)},yb:function(t,n){var i=e(t,!1);i&&(b.a.Pa(i,n),0==i.length&&b.a.g.set(t,r,s))},oa:function(e){return b.u.G((function(){i[e.nodeType]&&(t(e),o[e.nodeType]&&n(e.getElementsByTagName("*")))})),e},removeNode:function(e){b.oa(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){u&&"function"==typeof u.cleanData&&u.cleanData([e])}}},b.oa=b.a.K.oa,b.removeNode=b.a.K.removeNode,b.b("cleanNode",b.oa),b.b("removeNode",b.removeNode),b.b("utils.domNodeDisposal",b.a.K),b.b("utils.domNodeDisposal.addDisposeCallback",b.a.K.za),b.b("utils.domNodeDisposal.removeDisposeCallback",b.a.K.yb),f=[0,"",""],y={thead:g=[1,"<table>","</table>"],tbody:g,tfoot:g,tr:[2,"<table><tbody>","</tbody></table>"],td:m=[3,"<table><tbody><tr>","</tr></tbody></table>"],th:m,option:E=[1,"<select multiple='multiple'>","</select>"],optgroup:E},v=8>=b.a.W,b.a.ua=function(e,t){var n;if(u){if(u.parseHTML)n=u.parseHTML(e,t)||[];else if((n=u.clean([e],t))&&n[0]){for(var r=n[0];r.parentNode&&11!==r.parentNode.nodeType;)r=r.parentNode;r.parentNode&&r.parentNode.removeChild(r)}}else{(n=t)||(n=c),r=n.parentWindow||n.defaultView||a;var i,o=b.a.Db(e).toLowerCase(),s=n.createElement("div");for(i=(o=o.match(/^(?:\x3c!--.*?--\x3e\s*?)*?<([a-z]+)[\s>]/))&&y[o[1]]||f,o=i[0],i="ignored<div>"+i[1]+e+i[2]+"</div>","function"==typeof r.innerShiv?s.appendChild(r.innerShiv(i)):(v&&n.body.appendChild(s),s.innerHTML=i,v&&s.parentNode.removeChild(s));o--;)s=s.lastChild;n=b.a.la(s.lastChild.childNodes)}return n},b.a.Md=function(e,t){var n=b.a.ua(e,t);return n.length&&n[0].parentElement||b.a.Yb(n)},b.a.fc=function(e,t){if(b.a.Tb(e),null!==(t=b.a.f(t))&&t!==s)if("string"!=typeof t&&(t=t.toString()),u)u(e).html(t);else for(var n=b.a.ua(t,e.ownerDocument),r=0;r<n.length;r++)e.appendChild(n[r])},b.b("utils.parseHtmlFragment",b.a.ua),b.b("utils.setHtml",b.a.fc),b.aa=function(){function e(t,n){if(t)if(8==t.nodeType)null!=(r=b.aa.Uc(t.nodeValue))&&n.push({ud:t,Kd:r});else if(1==t.nodeType)for(var r=0,i=t.childNodes,o=i.length;r<o;r++)e(i[r],n)}var t={};return{Xb:function(e){if("function"!=typeof e)throw Error("You can only pass a function to ko.memoization.memoize()");var n=(4294967296*(1+Math.random())|0).toString(16).substring(1)+(4294967296*(1+Math.random())|0).toString(16).substring(1);return t[n]=e,"\x3c!--[ko_memo:"+n+"]--\x3e"},bd:function(e,n){var r=t[e];if(r===s)throw Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized.");try{return r.apply(null,n||[]),!0}finally{delete t[e]}},cd:function(t,n){var r=[];e(t,r);for(var i=0,o=r.length;i<o;i++){var s=r[i].ud,a=[s];n&&b.a.Nb(a,n),b.aa.bd(r[i].Kd,a),s.nodeValue="",s.parentNode&&s.parentNode.removeChild(s)}},Uc:function(e){return(e=e.match(/^\[ko_memo\:(.*?)\]$/))?e[1]:null}}}(),b.b("memoization",b.aa),b.b("memoization.memoize",b.aa.Xb),b.b("memoization.unmemoize",b.aa.bd),b.b("memoization.parseMemoText",b.aa.Uc),b.b("memoization.unmemoizeDomNodeAndDescendants",b.aa.cd),b.na=function(){function e(){if(i)for(var e,t=i,n=0;s<i;)if(e=r[s++]){if(s>t){if(5e3<=++n){s=i,b.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=i}try{e()}catch(e){b.a.Gc(e)}}}function t(){e(),s=i=r.length=0}var n,r=[],i=0,o=1,s=0;return n=a.MutationObserver?function(e){var t=c.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):c&&"onreadystatechange"in c.createElement("script")?function(e){var t=c.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,c.documentElement.removeChild(t),t=null,e()},c.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:n,zb:function(e){return i||b.na.scheduler(t),r[i++]=e,o++},cancel:function(e){(e-=o-i)>=s&&e<i&&(r[e]=null)},resetForTesting:function(){var e=i-s;return s=i=r.length=0,e},Sd:e}}(),b.b("tasks",b.na),b.b("tasks.schedule",b.na.zb),b.b("tasks.runEarly",b.na.Sd),b.Ta={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return b.$({read:e,write:function(r){clearTimeout(n),n=b.a.setTimeout((function(){e(r)}),t)}})},rateLimit:function(e,t){var n,o,s;"number"==typeof t?n=t:(n=t.timeout,o=t.method),e.Hb=!1,s="function"==typeof o?o:"notifyWhenChangesStop"==o?i:r,e.ub((function(e){return s(e,n,t)}))},deferred:function(e,t){if(!0!==t)throw Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e.Hb||(e.Hb=!0,e.ub((function(t){var n,r=!1;return function(){if(!r){b.na.cancel(n),n=b.na.zb(t);try{r=!0,e.notifySubscribers(s,"dirty")}finally{r=!1}}}})))},notify:function(e,t){e.equalityComparer="always"==t?null:n}};var A={undefined:1,boolean:1,number:1,string:1};b.b("extenders",b.Ta),b.ic=function(e,t,n){this.da=e,this.lc=t,this.mc=n,this.Ib=!1,this.fb=this.Jb=null,b.L(this,"dispose",this.s),b.L(this,"disposeWhenNodeIsRemoved",this.l)},b.ic.prototype.s=function(){this.Ib||(this.fb&&b.a.K.yb(this.Jb,this.fb),this.Ib=!0,this.mc(),this.da=this.lc=this.mc=this.Jb=this.fb=null)},b.ic.prototype.l=function(e){this.Jb=e,b.a.K.za(e,this.fb=this.s.bind(this))},b.T=function(){b.a.Ab(this,T),T.qb(this)};var T={qb:function(e){e.U={change:[]},e.sc=1},subscribe:function(e,t,n){var r=this;n=n||"change";var i=new b.ic(r,t?e.bind(t):e,(function(){b.a.Pa(r.U[n],i),r.hb&&r.hb(n)}));return r.Qa&&r.Qa(n),r.U[n]||(r.U[n]=[]),r.U[n].push(i),i},notifySubscribers:function(e,t){if("change"===(t=t||"change")&&this.Gb(),this.Wa(t)){var n="change"===t&&this.ed||this.U[t].slice(0);try{b.u.xc();for(var r,i=0;r=n[i];++i)r.Ib||r.lc(e)}finally{b.u.end()}}},ob:function(){return this.sc},Dd:function(e){return this.ob()!==e},Gb:function(){++this.sc},ub:function(e){var t,n,r,i,s,a=this,c=b.O(a);a.gb||(a.gb=a.notifySubscribers,a.notifySubscribers=o);var l=e((function(){a.Ja=!1,c&&i===a&&(i=a.nc?a.nc():a());var e=n||s&&a.sb(r,i);s=n=t=!1,e&&a.gb(r=i)}));a.qc=function(e,n){n&&a.Ja||(s=!n),a.ed=a.U.change.slice(0),a.Ja=t=!0,i=e,l()},a.pc=function(e){t||(r=e,a.gb(e,"beforeChange"))},a.rc=function(){s=!0},a.gd=function(){a.sb(r,a.v(!0))&&(n=!0)}},Wa:function(e){return this.U[e]&&this.U[e].length},Bd:function(e){if(e)return this.U[e]&&this.U[e].length||0;var t=0;return b.a.P(this.U,(function(e,n){"dirty"!==e&&(t+=n.length)})),t},sb:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&b.a.P(e,(function(e,n){var r=b.Ta[e];"function"==typeof r&&(t=r(t,n)||t)})),t}};b.L(T,"init",T.qb),b.L(T,"subscribe",T.subscribe),b.L(T,"extend",T.extend),b.L(T,"getSubscriptionsCount",T.Bd),b.a.Ba&&b.a.setPrototypeOf(T,Function.prototype),b.T.fn=T,b.Qc=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},b.b("subscribable",b.T),b.b("isSubscribable",b.Qc),b.S=b.u=function(){function e(e){r.push(n),n=e}function t(){n=r.pop()}var n,r=[],i=0;return{xc:e,end:t,cc:function(e){if(n){if(!b.Qc(e))throw Error("Only subscribable things can act as dependencies");n.od.call(n.pd,e,e.fd||(e.fd=++i))}},G:function(n,r,i){try{return e(),n.apply(r,i||[])}finally{t()}},qa:function(){if(n)return n.o.qa()},Va:function(){if(n)return n.o.Va()},Ya:function(){if(n)return n.Ya},o:function(){if(n)return n.o}}}(),b.b("computedContext",b.S),b.b("computedContext.getDependenciesCount",b.S.qa),b.b("computedContext.getDependencies",b.S.Va),b.b("computedContext.isInitial",b.S.Ya),b.b("computedContext.registerDependency",b.S.cc),b.b("ignoreDependencies",b.Yd=b.u.G);var C=b.a.Da("_latestValue");b.ta=function(e){function t(){return 0<arguments.length?(t.sb(t[C],arguments[0])&&(t.ya(),t[C]=arguments[0],t.xa()),this):(b.u.cc(t),t[C])}return t[C]=e,b.a.Ba||b.a.extend(t,b.T.fn),b.T.fn.qb(t),b.a.Ab(t,R),b.options.deferUpdates&&b.Ta.deferred(t,!0),t};var R={equalityComparer:n,v:function(){return this[C]},xa:function(){this.notifySubscribers(this[C],"spectate"),this.notifySubscribers(this[C])},ya:function(){this.notifySubscribers(this[C],"beforeChange")}};b.a.Ba&&b.a.setPrototypeOf(R,b.T.fn);var S=b.ta.Ma="__ko_proto__";R[S]=b.ta,b.O=function(e){if((e="function"==typeof e&&e[S])&&e!==R[S]&&e!==b.o.fn[S])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!e},b.Za=function(e){return"function"==typeof e&&(e[S]===R[S]||e[S]===b.o.fn[S]&&e.Nc)},b.b("observable",b.ta),b.b("isObservable",b.O),b.b("isWriteableObservable",b.Za),b.b("isWritableObservable",b.Za),b.b("observable.fn",R),b.L(R,"peek",R.v),b.L(R,"valueHasMutated",R.xa),b.L(R,"valueWillMutate",R.ya),b.Ha=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");return e=b.ta(e),b.a.Ab(e,b.Ha.fn),e.extend({trackArrayChanges:!0})},b.Ha.fn={remove:function(e){for(var t=this.v(),n=[],r="function"!=typeof e||b.O(e)?function(t){return t===e}:e,i=0;i<t.length;i++){var o=t[i];if(r(o)){if(0===n.length&&this.ya(),t[i]!==o)throw Error("Array modified during remove; cannot remove item");n.push(o),t.splice(i,1),i--}}return n.length&&this.xa(),n},removeAll:function(e){if(e===s){var t=this.v(),n=t.slice(0);return this.ya(),t.splice(0,t.length),this.xa(),n}return e?this.remove((function(t){return 0<=b.a.A(e,t)})):[]},destroy:function(e){var t=this.v(),n="function"!=typeof e||b.O(e)?function(t){return t===e}:e;this.ya();for(var r=t.length-1;0<=r;r--){var i=t[r];n(i)&&(i._destroy=!0)}this.xa()},destroyAll:function(e){return e===s?this.destroy((function(){return!0})):e?this.destroy((function(t){return 0<=b.a.A(e,t)})):[]},indexOf:function(e){var t=this();return b.a.A(t,e)},replace:function(e,t){var n=this.indexOf(e);0<=n&&(this.ya(),this.v()[n]=t,this.xa())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},b.a.Ba&&b.a.setPrototypeOf(b.Ha.fn,b.ta.fn),b.a.D("pop push reverse shift sort splice unshift".split(" "),(function(e){b.Ha.fn[e]=function(){var t=this.v();this.ya(),this.zc(t,e,arguments);var n=t[e].apply(t,arguments);return this.xa(),n===t?this:n}})),b.a.D(["slice"],(function(e){b.Ha.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}})),b.Pc=function(e){return b.O(e)&&"function"==typeof e.remove&&"function"==typeof e.push},b.b("observableArray",b.Ha),b.b("isObservableArray",b.Pc),b.Ta.trackArrayChanges=function(e,t){function n(){function t(){if(l){var t,n=[].concat(e.v()||[]);e.Wa("arrayChange")&&((!c||1<l)&&(c=b.a.Pb(o,n,e.Ob)),t=c),o=n,c=null,l=0,t&&t.length&&e.notifySubscribers(t,"arrayChange")}}a?t():(a=!0,i=e.subscribe((function(){++l}),null,"spectate"),o=[].concat(e.v()||[]),c=null,r=e.subscribe(t))}if(e.Ob={},t&&"object"==typeof t&&b.a.extend(e.Ob,t),e.Ob.sparse=!0,!e.zc){var r,i,o,a=!1,c=null,l=0,u=e.Qa,h=e.hb;e.Qa=function(t){u&&u.call(e,t),"arrayChange"===t&&n()},e.hb=function(t){h&&h.call(e,t),"arrayChange"!==t||e.Wa("arrayChange")||(r&&r.s(),i&&i.s(),i=r=null,a=!1,o=s)},e.zc=function(e,t,n){function r(e,t,n){return i[i.length]={status:e,value:t,index:n}}if(a&&!l){var i=[],o=e.length,s=n.length,u=0;switch(t){case"push":u=o;case"unshift":for(t=0;t<s;t++)r("added",n[t],u+t);break;case"pop":u=o-1;case"shift":o&&r("deleted",e[u],u);break;case"splice":t=Math.min(Math.max(0,0>n[0]?o+n[0]:n[0]),o),o=1===s?o:Math.min(t+(n[1]||0),o),s=t+s-2,u=Math.max(o,s);for(var h=[],d=[],p=2;t<u;++t,++p)t<o&&d.push(r("deleted",e[t],t)),t<s&&h.push(r("added",n[p],t));b.a.Kc(d,h);break;default:return}c=i}}}};var _=b.a.Da("_state");b.o=b.$=function(e,t,n){function r(){if(0<arguments.length){if("function"!=typeof i)throw Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return i.apply(o.nb,arguments),this}return o.ra||b.u.cc(r),(o.ka||o.J&&r.Xa())&&r.ha(),o.X}if("object"==typeof e?n=e:(n=n||{},e&&(n.read=e)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var i=n.write,o={X:s,sa:!0,ka:!0,rb:!1,jc:!1,ra:!1,wb:!1,J:!1,Wc:n.read,nb:t||n.owner,l:n.disposeWhenNodeIsRemoved||n.l||null,Sa:n.disposeWhen||n.Sa,Rb:null,I:{},V:0,Ic:null};return r[_]=o,r.Nc="function"==typeof i,b.a.Ba||b.a.extend(r,b.T.fn),b.T.fn.qb(r),b.a.Ab(r,x),n.pure?(o.wb=!0,o.J=!0,b.a.extend(r,w)):n.deferEvaluation&&b.a.extend(r,I),b.options.deferUpdates&&b.Ta.deferred(r,!0),o.l&&(o.jc=!0,o.l.nodeType||(o.l=null)),o.J||n.deferEvaluation||r.ha(),o.l&&r.ja()&&b.a.K.za(o.l,o.Rb=function(){r.s()}),r};var x={equalityComparer:n,qa:function(){return this[_].V},Va:function(){var e=[];return b.a.P(this[_].I,(function(t,n){e[n.Ka]=n.da})),e},Vb:function(e){if(!this[_].V)return!1;var t=this.Va();return-1!==b.a.A(t,e)||!!b.a.Lb(t,(function(t){return t.Vb&&t.Vb(e)}))},uc:function(e,t,n){if(this[_].wb&&t===this)throw Error("A 'pure' computed must not be called recursively");this[_].I[e]=n,n.Ka=this[_].V++,n.La=t.ob()},Xa:function(){var e,t,n=this[_].I;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this.Ia&&t.da.Ja||t.da.Dd(t.La)))return!0},Jd:function(){this.Ia&&!this[_].rb&&this.Ia(!1)},ja:function(){var e=this[_];return e.ka||0<e.V},Rd:function(){this.Ja?this[_].ka&&(this[_].sa=!0):this.Hc()},$c:function(e){if(e.Hb){var t=e.subscribe(this.Jd,this,"dirty"),n=e.subscribe(this.Rd,this);return{da:e,s:function(){t.s(),n.s()}}}return e.subscribe(this.Hc,this)},Hc:function(){var e=this,t=e.throttleEvaluation;t&&0<=t?(clearTimeout(this[_].Ic),this[_].Ic=b.a.setTimeout((function(){e.ha(!0)}),t)):e.Ia?e.Ia(!0):e.ha(!0)},ha:function(e){var t=this[_],n=t.Sa,r=!1;if(!t.rb&&!t.ra){if(t.l&&!b.a.Sb(t.l)||n&&n()){if(!t.jc)return void this.s()}else t.jc=!1;t.rb=!0;try{r=this.zd(e)}finally{t.rb=!1}return r}},zd:function(e){var t=this[_],n=!1,r=t.wb?s:!t.V;n={qd:this,mb:t.I,Qb:t.V},b.u.xc({pd:n,od:p,o:this,Ya:r}),t.I={},t.V=0;var i=this.yd(t,n);return t.V?n=this.sb(t.X,i):(this.s(),n=!0),n&&(t.J?this.Gb():this.notifySubscribers(t.X,"beforeChange"),t.X=i,this.notifySubscribers(t.X,"spectate"),!t.J&&e&&this.notifySubscribers(t.X),this.rc&&this.rc()),r&&this.notifySubscribers(t.X,"awake"),n},yd:function(e,t){try{var n=e.Wc;return e.nb?n.call(e.nb):n()}finally{b.u.end(),t.Qb&&!e.J&&b.a.P(t.mb,d),e.sa=e.ka=!1}},v:function(e){var t=this[_];return(t.ka&&(e||!t.V)||t.J&&this.Xa())&&this.ha(),t.X},ub:function(e){b.T.fn.ub.call(this,e),this.nc=function(){return this[_].J||(this[_].sa?this.ha():this[_].ka=!1),this[_].X},this.Ia=function(e){this.pc(this[_].X),this[_].ka=!0,e&&(this[_].sa=!0),this.qc(this,!e)}},s:function(){var e=this[_];!e.J&&e.I&&b.a.P(e.I,(function(e,t){t.s&&t.s()})),e.l&&e.Rb&&b.a.K.yb(e.l,e.Rb),e.I=s,e.V=0,e.ra=!0,e.sa=!1,e.ka=!1,e.J=!1,e.l=s,e.Sa=s,e.Wc=s,this.Nc||(e.nb=s)}},w={Qa:function(e){var t=this,n=t[_];if(!n.ra&&n.J&&"change"==e){if(n.J=!1,n.sa||t.Xa())n.I=null,n.V=0,t.ha()&&t.Gb();else{var r=[];b.a.P(n.I,(function(e,t){r[t.Ka]=e})),b.a.D(r,(function(e,r){var i=n.I[e],o=t.$c(i.da);o.Ka=r,o.La=i.La,n.I[e]=o})),t.Xa()&&t.ha()&&t.Gb()}n.ra||t.notifySubscribers(n.X,"awake")}},hb:function(e){var t=this[_];t.ra||"change"!=e||this.Wa("change")||(b.a.P(t.I,(function(e,n){n.s&&(t.I[e]={da:n.da,Ka:n.Ka,La:n.La},n.s())})),t.J=!0,this.notifySubscribers(s,"asleep"))},ob:function(){var e=this[_];return e.J&&(e.sa||this.Xa())&&this.ha(),b.T.fn.ob.call(this)}},I={Qa:function(e){"change"!=e&&"beforeChange"!=e||this.v()}};b.a.Ba&&b.a.setPrototypeOf(x,b.T.fn);var N=b.ta.Ma;x[N]=b.o,b.Oc=function(e){return"function"==typeof e&&e[N]===x[N]},b.Fd=function(e){return b.Oc(e)&&e[_]&&e[_].wb},b.b("computed",b.o),b.b("dependentObservable",b.o),b.b("isComputed",b.Oc),b.b("isPureComputed",b.Fd),b.b("computed.fn",x),b.L(x,"peek",x.v),b.L(x,"dispose",x.s),b.L(x,"isActive",x.ja),b.L(x,"getDependenciesCount",x.qa),b.L(x,"getDependencies",x.Va),b.xb=function(e,t){return"function"==typeof e?b.o(e,t,{pure:!0}):((e=b.a.extend({},e)).pure=!0,b.o(e,t))},b.b("pureComputed",b.xb),function(){function e(n,r,i){if(i=i||new t,"object"!=typeof(n=r(n))||null===n||n===s||n instanceof RegExp||n instanceof Date||n instanceof String||n instanceof Number||n instanceof Boolean)return n;var o=n instanceof Array?[]:{};return i.save(n,o),function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(n in e)t(n)}(n,(function(t){var a=r(n[t]);switch(typeof a){case"boolean":case"number":case"string":case"function":o[t]=a;break;case"object":case"undefined":var c=i.get(a);o[t]=c!==s?c:e(a,r,i)}})),o}function t(){this.keys=[],this.values=[]}b.ad=function(t){if(0==arguments.length)throw Error("When calling ko.toJS, pass the object you want to convert.");return e(t,(function(e){for(var t=0;b.O(e)&&10>t;t++)e=e();return e}))},b.toJSON=function(e,t,n){return e=b.ad(e),b.a.hc(e,t,n)},t.prototype={constructor:t,save:function(e,t){var n=b.a.A(this.keys,e);0<=n?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){return 0<=(e=b.a.A(this.keys,e))?this.values[e]:s}}}(),b.b("toJS",b.ad),b.b("toJSON",b.toJSON),b.Wd=function(e,t,n){function r(t){var r=b.xb(e,n).extend({ma:"always"}),i=r.subscribe((function(e){e&&(i.s(),t(e))}));return r.notifySubscribers(r.v()),i}return"function"!=typeof Promise||t?r(t.bind(n)):new Promise(r)},b.b("when",b.Wd),b.w={M:function(e){switch(b.a.R(e)){case"option":return!0===e.__ko__hasDomDataOptionValue__?b.a.g.get(e,b.c.options.$b):7>=b.a.W?e.getAttributeNode("value")&&e.getAttributeNode("value").specified?e.value:e.text:e.value;case"select":return 0<=e.selectedIndex?b.w.M(e.options[e.selectedIndex]):s;default:return e.value}},cb:function(e,t,n){switch(b.a.R(e)){case"option":"string"==typeof t?(b.a.g.set(e,b.c.options.$b,s),"__ko__hasDomDataOptionValue__"in e&&delete e.__ko__hasDomDataOptionValue__,e.value=t):(b.a.g.set(e,b.c.options.$b,t),e.__ko__hasDomDataOptionValue__=!0,e.value="number"==typeof t?t:"");break;case"select":""!==t&&null!==t||(t=s);for(var r,i=-1,o=0,a=e.options.length;o<a;++o)if((r=b.w.M(e.options[o]))==t||""===r&&t===s){i=o;break}(n||0<=i||t===s&&1<e.size)&&(e.selectedIndex=i,6===b.a.W&&b.a.setTimeout((function(){e.selectedIndex=i}),0));break;default:null!==t&&t!==s||(t=""),e.value=t}}},b.b("selectExtensions",b.w),b.b("selectExtensions.readValue",b.w.M),b.b("selectExtensions.writeValue",b.w.cb),b.m=function(){function e(e){123===(e=b.a.Db(e)).charCodeAt(0)&&(e=e.slice(1,-1));var t,n=[],s=(e+="\n,").match(r),a=[],c=0;if(1<s.length){for(var l,u=0;l=s[u];++u){var h=l.charCodeAt(0);if(44===h){if(0>=c){n.push(t&&a.length?{key:t,value:a.join("")}:{unknown:t||a.join("")}),t=c=0,a=[];continue}}else if(58===h){if(!c&&!t&&1===a.length){t=a.pop();continue}}else{if(47===h&&1<l.length&&(47===l.charCodeAt(1)||42===l.charCodeAt(1)))continue;47===h&&u&&1<l.length?(h=s[u-1].match(i))&&!o[h[0]]&&(s=(e=e.substr(e.indexOf(l)+1)).match(r),u=-1,l="/"):40===h||123===h||91===h?++c:41===h||125===h||93===h?--c:t||a.length||34!==h&&39!==h||(l=l.slice(1,-1))}a.push(l)}if(0<c)throw Error("Unbalanced parentheses, braces, or brackets")}return n}var t=["true","false","null","undefined"],n=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,r=RegExp("\"(?:\\\\.|[^\"])*\"|'(?:\\\\.|[^'])*'|`(?:\\\\.|[^`])*`|/\\*(?:[^*]|\\*+[^*/])*\\*+/|//.*\n|/(?:\\\\.|[^/])+/w*|[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]|[^\\s]","g"),i=/[\])"'A-Za-z0-9_$]+$/,o={in:1,return:1,typeof:1},s={};return{Ra:[],wa:s,ac:e,vb:function(r,i){function o(e,r){var i;if(!u){var h=b.getBindingHandler(e);if(h&&h.preprocess&&!(r=h.preprocess(r,e,o)))return;(h=s[e])&&(i=r,0<=b.a.A(t,i)?i=!1:(h=i.match(n),i=null!==h&&(h[1]?"Object("+h[1]+")"+h[2]:i)),h=i),h&&c.push("'"+("string"==typeof s[e]?s[e]:e)+"':function(_z){"+i+"=_z}")}l&&(r="function(){return "+r+" }"),a.push("'"+e+"':"+r)}var a=[],c=[],l=(i=i||{}).valueAccessors,u=i.bindingParams,h="string"==typeof r?e(r):r;return b.a.D(h,(function(e){o(e.key||e.unknown,e.value)})),c.length&&o("_ko_property_writers","{"+c.join(",")+" }"),a.join(",")},Id:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},eb:function(e,t,n,r,i){e&&b.O(e)?!b.Za(e)||i&&e.v()===r||e(r):(e=t.get("_ko_property_writers"))&&e[n]&&e[n](r)}}}(),b.b("expressionRewriting",b.m),b.b("expressionRewriting.bindingRewriteValidators",b.m.Ra),b.b("expressionRewriting.parseObjectLiteral",b.m.ac),b.b("expressionRewriting.preProcessBindings",b.m.vb),b.b("expressionRewriting._twoWayBindings",b.m.wa),b.b("jsonExpressionRewriting",b.m),b.b("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",b.m.vb),function(){function e(e){return 8==e.nodeType&&o.test(i?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&s.test(i?e.text:e.nodeValue)}function n(n,r){for(var i=n,o=1,s=[];i=i.nextSibling;){if(t(i)&&(b.a.g.set(i,l,!0),0==--o))return s;s.push(i),e(i)&&o++}if(!r)throw Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function r(e,t){var r=n(e,t);return r?0<r.length?r[r.length-1].nextSibling:e.nextSibling:null}var i=c&&"\x3c!--test--\x3e"===c.createComment("test").text,o=i?/^\x3c!--\s*ko(?:\s+([\s\S]+))?\s*--\x3e$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,s=i?/^\x3c!--\s*\/ko\s*--\x3e$/:/^\s*\/ko\s*$/,a={ul:!0,ol:!0},l="__ko_matchedEndComment__";b.h={ea:{},childNodes:function(t){return e(t)?n(t):t.childNodes},Ea:function(t){if(e(t))for(var n=0,r=(t=b.h.childNodes(t)).length;n<r;n++)b.removeNode(t[n]);else b.a.Tb(t)},va:function(t,n){if(e(t)){b.h.Ea(t);for(var r=t.nextSibling,i=0,o=n.length;i<o;i++)r.parentNode.insertBefore(n[i],r)}else b.a.va(t,n)},Vc:function(t,n){var r;e(t)?(r=t.nextSibling,t=t.parentNode):r=t.firstChild,r?n!==r&&t.insertBefore(n,r):t.appendChild(n)},Wb:function(t,n,r){r?(r=r.nextSibling,e(t)&&(t=t.parentNode),r?n!==r&&t.insertBefore(n,r):t.appendChild(n)):b.h.Vc(t,n)},firstChild:function(n){if(e(n))return!n.nextSibling||t(n.nextSibling)?null:n.nextSibling;if(n.firstChild&&t(n.firstChild))throw Error("Found invalid end comment, as the first child of "+n);return n.firstChild},nextSibling:function(n){if(e(n)&&(n=r(n)),n.nextSibling&&t(n.nextSibling)){var i=n.nextSibling;if(t(i)&&!b.a.g.get(i,l))throw Error("Found end comment without a matching opening comment, as child of "+n);return null}return n.nextSibling},Cd:e,Vd:function(e){return(e=(i?e.text:e.nodeValue).match(o))?e[1]:null},Sc:function(n){if(a[b.a.R(n)]){var i=n.firstChild;if(i)do{if(1===i.nodeType){var o,s=null;if(o=i.firstChild)do{if(s)s.push(o);else if(e(o)){var c=r(o,!0);c?o=c:s=[o]}else t(o)&&(s=[o])}while(o=o.nextSibling);if(o=s)for(s=i.nextSibling,c=0;c<o.length;c++)s?n.insertBefore(o[c],s):n.appendChild(o[c])}}while(i=i.nextSibling)}}}}(),b.b("virtualElements",b.h),b.b("virtualElements.allowedBindings",b.h.ea),b.b("virtualElements.emptyNode",b.h.Ea),b.b("virtualElements.insertAfter",b.h.Wb),b.b("virtualElements.prepend",b.h.Vc),b.b("virtualElements.setDomNodeChildren",b.h.va),b.ga=function(){this.nd={}},b.a.extend(b.ga.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||b.j.getComponentNameForNode(e);case 8:return b.h.Cd(e);default:return!1}},getBindings:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e):null;return b.j.tc(n,e,t,!1)},getBindingAccessors:function(e,t){var n=(n=this.getBindingsString(e,t))?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return b.j.tc(n,e,t,!0)},getBindingsString:function(e){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return b.h.Vd(e);default:return null}},parseBindingsString:function(e,t,n,r){try{var i,o=this.nd,s=e+(r&&r.valueAccessors||"");if(!(i=o[s])){var a,c="with($context){with($data||{}){return{"+b.m.vb(e,r)+"}}}";a=new Function("$context","$element",c),i=o[s]=a}return i(t,n)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),b.ga.instance=new b.ga,b.b("bindingProvider",b.ga),function(){function e(e){var t=(e=b.a.g.get(e,A))&&e.N;t&&(e.N=null,t.Tc())}function t(t,n,r){this.node=t,this.yc=n,this.kb=[],this.H=!1,n.N||b.a.K.za(t,e),r&&r.N&&(r.N.kb.push(t),this.Kb=r)}function n(e){return function(){return e}}function r(e){return e()}function i(e){return b.a.Ga(b.u.G(e),(function(t,n){return function(){return e()[n]}}))}function o(e,t,r){return"function"==typeof e?i(e.bind(null,t,r)):b.a.Ga(e,n)}function l(e,t){return i(this.getBindings.bind(this,e,t))}function h(e,t){var n=b.h.firstChild(t);if(n){var r,i=b.ga.instance,o=i.preprocessNode;if(o){for(;r=n;)n=b.h.nextSibling(r),o.call(i,r);n=b.h.firstChild(t)}for(;r=n;)n=b.h.nextSibling(r),d(e,r)}b.i.ma(t,b.i.H)}function d(e,t){var n=e,r=1===t.nodeType;r&&b.h.Sc(t),(r||b.ga.instance.nodeHasBindings(t))&&(n=p(t,null,e).bindingContextForDescendants),n&&!y[b.a.R(t)]&&h(n,t)}function p(e,t,n){var i,o=b.a.g.Ub(e,A,{}),a=o.hd;if(!t){if(a)throw Error("You cannot apply bindings multiple times to the same element.");o.hd=!0}if(a||(o.context=n),o.Zb||(o.Zb={}),t&&"function"!=typeof t)i=t;else{var c=b.ga.instance,u=c.getBindingAccessors||l,h=b.$((function(){return(i=t?t(n,e):u.call(c,e,n))&&(n[g]&&n[g](),n[E]&&n[E]()),i}),null,{l:e});i&&h.ja()||(h=null)}var d,p=n;if(i){var f=function(){return b.a.Ga(h?h():i,r)},m=h?function(e){return function(){return r(h()[e])}}:function(e){return i[e]};f.get=function(e){return i[e]&&r(m(e))},f.has=function(e){return e in i},b.i.H in i&&b.i.subscribe(e,b.i.H,(function(){var t=(0,i[b.i.H])();if(t){var n=b.h.childNodes(e);n.length&&t(n,b.Ec(n[0]))}})),b.i.pa in i&&(p=b.i.Cb(e,n),b.i.subscribe(e,b.i.pa,(function(){var t=(0,i[b.i.pa])();t&&b.h.firstChild(e)&&t(e)}))),o=function(e){var t=[],n={},r=[];return b.a.P(e,(function i(o){if(!n[o]){var s=b.getBindingHandler(o);s&&(s.after&&(r.push(o),b.a.D(s.after,(function(t){if(e[t]){if(-1!==b.a.A(r,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+r.join(", "));i(t)}})),r.length--),t.push({key:o,Mc:s})),n[o]=!0}})),t}(i),b.a.D(o,(function(t){var n=t.Mc.init,r=t.Mc.update,o=t.key;if(8===e.nodeType&&!b.h.ea[o])throw Error("The binding '"+o+"' cannot be used with virtual elements");try{"function"==typeof n&&b.u.G((function(){var t=n(e,m(o),f,p.$data,p);if(t&&t.controlsDescendantBindings){if(d!==s)throw Error("Multiple bindings ("+d+" and "+o+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");d=o}})),"function"==typeof r&&b.$((function(){r(e,m(o),f,p.$data,p)}),null,{l:e})}catch(e){throw e.message='Unable to process binding "'+o+": "+i[o]+'"\nMessage: '+e.message,e}}))}return{shouldBindDescendants:o=d===s,bindingContextForDescendants:o&&p}}function f(e,t){return e&&e instanceof b.fa?e:new b.fa(e,s,s,t)}var g=b.a.Da("_subscribable"),m=b.a.Da("_ancestorBindingInfo"),E=b.a.Da("_dataDependency");b.c={};var y={script:!0,textarea:!0,template:!0};b.getBindingHandler=function(e){return b.c[e]};var v={};b.fa=function(e,t,n,r,i){function o(){var e=h?u():u,i=b.a.f(e);return t?(b.a.extend(c,t),m in t&&(c[m]=t[m])):(c.$parents=[],c.$root=i,c.ko=b),c[g]=a,l?i=c.$data:(c.$rawData=e,c.$data=i),n&&(c[n]=i),r&&r(c,t,i),t&&t[g]&&!b.S.o().Vb(t[g])&&t[g](),d&&(c[E]=d),c.$data}var a,c=this,l=e===v,u=l?s:e,h="function"==typeof u&&!b.O(u),d=i&&i.dataDependency;i&&i.exportDependencies?o():((a=b.xb(o)).v(),a.ja()?a.equalityComparer=null:c[g]=s)},b.fa.prototype.createChildContext=function(e,t,n,r){if(!r&&t&&"object"==typeof t&&(t=(r=t).as,n=r.extend),t&&r&&r.noChildContext){var i="function"==typeof e&&!b.O(e);return new b.fa(v,this,null,(function(r){n&&n(r),r[t]=i?e():e}),r)}return new b.fa(e,this,t,(function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)}),r)},b.fa.prototype.extend=function(e,t){return new b.fa(v,this,null,(function(t){b.a.extend(t,"function"==typeof e?e(t):e)}),t)};var A=b.a.g.Z();t.prototype.Tc=function(){this.Kb&&this.Kb.N&&this.Kb.N.sd(this.node)},t.prototype.sd=function(e){b.a.Pa(this.kb,e),!this.kb.length&&this.H&&this.Cc()},t.prototype.Cc=function(){this.H=!0,this.yc.N&&!this.kb.length&&(this.yc.N=null,b.a.K.yb(this.node,e),b.i.ma(this.node,b.i.pa),this.Tc())},b.i={H:"childrenComplete",pa:"descendantsComplete",subscribe:function(e,t,n,r,i){var o=b.a.g.Ub(e,A,{});return o.Fa||(o.Fa=new b.T),i&&i.notifyImmediately&&o.Zb[t]&&b.u.G(n,r,[e]),o.Fa.subscribe(n,r,t)},ma:function(e,t){var n=b.a.g.get(e,A);if(n&&(n.Zb[t]=!0,n.Fa&&n.Fa.notifySubscribers(e,t),t==b.i.H))if(n.N)n.N.Cc();else if(n.N===s&&n.Fa&&n.Fa.Wa(b.i.pa))throw Error("descendantsComplete event not supported for bindings on this node")},Cb:function(e,n){var r=b.a.g.Ub(e,A,{});return r.N||(r.N=new t(e,r,n[m])),n[m]==r?n:n.extend((function(e){e[m]=r}))}},b.Td=function(e){return(e=b.a.g.get(e,A))&&e.context},b.ib=function(e,t,n){return 1===e.nodeType&&b.h.Sc(e),p(e,t,f(n))},b.ld=function(e,t,n){return n=f(n),b.ib(e,o(t,n,e),n)},b.Oa=function(e,t){1!==t.nodeType&&8!==t.nodeType||h(f(e),t)},b.vc=function(e,t,n){if(!u&&a.jQuery&&(u=a.jQuery),2>arguments.length){if(!(t=c.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");d(f(e,n),t)},b.Dc=function(e){return!e||1!==e.nodeType&&8!==e.nodeType?s:b.Td(e)},b.Ec=function(e){return(e=b.Dc(e))?e.$data:s},b.b("bindingHandlers",b.c),b.b("bindingEvent",b.i),b.b("bindingEvent.subscribe",b.i.subscribe),b.b("bindingEvent.startPossiblyAsyncContentBinding",b.i.Cb),b.b("applyBindings",b.vc),b.b("applyBindingsToDescendants",b.Oa),b.b("applyBindingAccessorsToNode",b.ib),b.b("applyBindingsToNode",b.ld),b.b("contextFor",b.Dc),b.b("dataFor",b.Ec)}(),function(e){function t(t,r){var s,a=Object.prototype.hasOwnProperty.call(i,t)?i[t]:e;a?a.subscribe(r):((a=i[t]=new b.T).subscribe(r),n(t,(function(e,n){var r=!(!n||!n.synchronous);o[t]={definition:e,Gd:r},delete i[t],s||r?a.notifySubscribers(e):b.na.zb((function(){a.notifySubscribers(e)}))})),s=!0)}function n(e,t){r("getConfig",[e],(function(n){n?r("loadComponent",[e,n],(function(e){t(e,n)})):t(null,null)}))}function r(t,n,i,o){o||(o=b.j.loaders.slice(0));var s=o.shift();if(s){var a=s[t];if(a){var c=!1;if(a.apply(s,n.concat((function(e){c?i(null):null!==e?i(e):r(t,n,i,o)})))!==e&&(c=!0,!s.suppressLoaderExceptions))throw Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(t,n,i,o)}else i(null)}var i={},o={};b.j={get:function(n,r){var i=Object.prototype.hasOwnProperty.call(o,n)?o[n]:e;i?i.Gd?b.u.G((function(){r(i.definition)})):b.na.zb((function(){r(i.definition)})):t(n,r)},Bc:function(e){delete o[e]},oc:r},b.j.loaders=[],b.b("components",b.j),b.b("components.get",b.j.get),b.b("components.clearCachedDefinition",b.j.Bc)}(),function(){function e(e,t,n,r){function i(){0==--a&&r(s)}var s={},a=2,c=n.template;n=n.viewModel,c?o(t,c,(function(t){b.j.oc("loadTemplate",[e,t],(function(e){s.template=e,i()}))})):i(),n?o(t,n,(function(t){b.j.oc("loadViewModel",[e,t],(function(e){s[u]=e,i()}))})):i()}function n(e,t,r){if("function"==typeof t)r((function(e){return new t(e)}));else if("function"==typeof t[u])r(t[u]);else if("instance"in t){var i=t.instance;r((function(){return i}))}else"viewModel"in t?n(e,t.viewModel,r):e("Unknown viewModel value: "+t)}function r(e){switch(b.a.R(e)){case"script":return b.a.ua(e.text);case"textarea":return b.a.ua(e.value);case"template":if(i(e.content))return b.a.Ca(e.content.childNodes)}return b.a.Ca(e.childNodes)}function i(e){return a.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function o(e,n,r){"string"==typeof n.require?t||a.require?(t||a.require)([n.require],(function(e){e&&"object"==typeof e&&e.Xd&&e.default&&(e=e.default),r(e)})):e("Uses require, but no AMD loader is present"):r(n)}function s(e){return function(t){throw Error("Component '"+e+"': "+t)}}var l={};b.j.register=function(e,t){if(!t)throw Error("Invalid configuration for "+e);if(b.j.tb(e))throw Error("Component "+e+" is already registered");l[e]=t},b.j.tb=function(e){return Object.prototype.hasOwnProperty.call(l,e)},b.j.unregister=function(e){delete l[e],b.j.Bc(e)},b.j.Fc={getConfig:function(e,t){t(b.j.tb(e)?l[e]:null)},loadComponent:function(t,n,r){var i=s(t);o(i,n,(function(n){e(t,i,n,r)}))},loadTemplate:function(e,t,n){if(e=s(e),"string"==typeof t)n(b.a.ua(t));else if(t instanceof Array)n(t);else if(i(t))n(b.a.la(t.childNodes));else if(t.element)if(t=t.element,a.HTMLElement?t instanceof HTMLElement:t&&t.tagName&&1===t.nodeType)n(r(t));else if("string"==typeof t){var o=c.getElementById(t);o?n(r(o)):e("Cannot find element with ID "+t)}else e("Unknown element type: "+t);else e("Unknown template value: "+t)},loadViewModel:function(e,t,r){n(s(e),t,r)}};var u="createViewModel";b.b("components.register",b.j.register),b.b("components.isRegistered",b.j.tb),b.b("components.unregister",b.j.unregister),b.b("components.defaultLoader",b.j.Fc),b.j.loaders.push(b.j.Fc),b.j.dd=l}(),function(){function e(e,n){if(r=e.getAttribute("params")){var r=t.parseBindingsString(r,n,e,{valueAccessors:!0,bindingParams:!0}),i=(r=b.a.Ga(r,(function(t){return b.o(t,null,{l:e})})),b.a.Ga(r,(function(t){var n=t.v();return t.ja()?b.o({read:function(){return b.a.f(t())},write:b.Za(n)&&function(e){t()(e)},l:e}):n})));return Object.prototype.hasOwnProperty.call(i,"$raw")||(i.$raw=r),i}return{$raw:{}}}b.j.getComponentNameForNode=function(e){var t=b.a.R(e);if(b.j.tb(t)&&(-1!=t.indexOf("-")||"[object HTMLUnknownElement]"==""+e||8>=b.a.W&&e.tagName===t))return t},b.j.tc=function(t,n,r,i){if(1===n.nodeType){var o=b.j.getComponentNameForNode(n);if(o){if((t=t||{}).component)throw Error('Cannot use the "component" binding on a custom element matching a component');var s={name:o,params:e(n,r)};t.component=i?function(){return s}:s}}return t};var t=new b.ga;9>b.a.W&&(b.j.register=function(e){return function(t){return e.apply(this,arguments)}}(b.j.register),c.createDocumentFragment=function(e){return function(){var t,n=e(),r=b.j.dd;for(t in r);return n}}(c.createDocumentFragment))}(),function(){var e=0;b.c.component={init:function(t,n,r,i,o){function s(){var e=a&&a.dispose;"function"==typeof e&&e.call(a),l&&l.s(),c=a=l=null}var a,c,l,u=b.a.la(b.h.childNodes(t));return b.h.Ea(t),b.a.K.za(t,s),b.o((function(){var r,i,h=b.a.f(n());if("string"==typeof h?r=h:(r=b.a.f(h.name),i=b.a.f(h.params)),!r)throw Error("No component name specified");var d=b.i.Cb(t,o),p=c=++e;b.j.get(r,(function(e){if(c===p){if(s(),!e)throw Error("Unknown component '"+r+"'");!function(e,t,n){if(!(t=t.template))throw Error("Component '"+e+"' has no template");e=b.a.Ca(t),b.h.va(n,e)}(r,e,t);var n=function(e,t,n){var r=e.createViewModel;return r?r.call(e,t,n):t}(e,i,{element:t,templateNodes:u});e=d.createChildContext(n,{extend:function(e){e.$component=n,e.$componentTemplateNodes=u}}),n&&n.koDescendantsComplete&&(l=b.i.subscribe(t,b.i.pa,n.koDescendantsComplete,n)),a=n,b.Oa(e,t)}}))}),null,{l:t}),{controlsDescendantBindings:!0}}},b.h.ea.component=!0}();var L={class:"className",for:"htmlFor"};b.c.attr={update:function(e,t){var n=b.a.f(t())||{};b.a.P(n,(function(t,n){n=b.a.f(n);var r=t.indexOf(":"),i=(r="lookupNamespaceURI"in e&&0<r&&e.lookupNamespaceURI(t.substr(0,r)),!1===n||null===n||n===s);i?r?e.removeAttributeNS(r,t):e.removeAttribute(t):n=n.toString(),8>=b.a.W&&t in L?(t=L[t],i?e.removeAttribute(t):e[t]=n):i||(r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)),"name"===t&&b.a.Yc(e,i?"":n)}))}},b.c.checked={after:["value","attr"],init:function(e,t,n){function r(){var r=e.checked,c=i();if(!b.S.Ya()&&(r||!a&&!b.S.qa())){var h=b.u.G(t);if(l){var p=u?h.v():h,f=d;d=c,f!==c?r&&(b.a.Na(p,c,!0),b.a.Na(p,f,!1)):b.a.Na(p,c,r),u&&b.Za(h)&&h(p)}else o&&(c===s?c=r:r||(c=s)),b.m.eb(h,n,"checked",c,!0)}}var i=b.xb((function(){return n.has("checkedValue")?b.a.f(n.get("checkedValue")):h?n.has("value")?b.a.f(n.get("value")):e.value:void 0})),o="checkbox"==e.type,a="radio"==e.type;if(o||a){var c=t(),l=o&&b.a.f(c)instanceof Array,u=!(l&&c.push&&c.splice),h=a||l,d=l?i():s;a&&!e.name&&b.c.uniqueName.init(e,(function(){return!0})),b.o(r,null,{l:e}),b.a.B(e,"click",r),b.o((function(){var n=b.a.f(t()),r=i();l?(e.checked=0<=b.a.A(n,r),d=r):e.checked=o&&r===s?!!n:i()===n}),null,{l:e}),c=s}}},b.m.wa.checked=!0,b.c.checkedValue={update:function(e,t){e.value=b.a.f(t())}},b.c.class={update:function(e,t){var n=b.a.Db(b.a.f(t()));b.a.Eb(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,b.a.Eb(e,n,!0)}},b.c.css={update:function(e,t){var n=b.a.f(t());null!==n&&"object"==typeof n?b.a.P(n,(function(t,n){n=b.a.f(n),b.a.Eb(e,t,n)})):b.c.class.update(e,t)}},b.c.enable={update:function(e,t){var n=b.a.f(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},b.c.disable={update:function(e,t){b.c.enable.update(e,(function(){return!b.a.f(t())}))}},b.c.event={init:function(e,t,n,r,i){var o=t()||{};b.a.P(o,(function(o){"string"==typeof o&&b.a.B(e,o,(function(e){var s,a=t()[o];if(a){try{var c=b.a.la(arguments);r=i.$data,c.unshift(r),s=a.apply(r,c)}finally{!0!==s&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1===n.get(o+"Bubble")&&(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}}))}))}},b.c.foreach={Rc:function(e){return function(){var t=e(),n=b.a.bc(t);return n&&"number"!=typeof n.length?(b.a.f(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:b.ba.Ma}):{foreach:t,templateEngine:b.ba.Ma}}},init:function(e,t){return b.c.template.init(e,b.c.foreach.Rc(t))},update:function(e,t,n,r,i){return b.c.template.update(e,b.c.foreach.Rc(t),n,r,i)}},b.m.Ra.foreach=!1,b.h.ea.foreach=!0,b.c.hasfocus={init:function(e,t,n){function r(r){e.__ko_hasfocusUpdating=!0;var i=e.ownerDocument;if("activeElement"in i){var o;try{o=i.activeElement}catch(e){o=i.body}r=o===e}i=t(),b.m.eb(i,n,"hasfocus",r,!0),e.__ko_hasfocusLastValue=r,e.__ko_hasfocusUpdating=!1}var i=r.bind(null,!0),o=r.bind(null,!1);b.a.B(e,"focus",i),b.a.B(e,"focusin",i),b.a.B(e,"blur",o),b.a.B(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!b.a.f(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),b.u.G(b.a.Fb,null,[e,n?"focusin":"focusout"]))}},b.m.wa.hasfocus=!0,b.c.hasFocus=b.c.hasfocus,b.m.wa.hasFocus="hasfocus",b.c.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){b.a.fc(e,t())}},function(){function e(e,t,n){b.c[e]={init:function(e,r,i,o,s){var a,c,l,u,h,d={};if(t){o=i.get("as");var p=i.get("noChildContext");d={as:o,noChildContext:p,exportDependencies:h=!(o&&p)}}return u=(l="render"==i.get("completeOn"))||i.has(b.i.pa),b.o((function(){var i,o=b.a.f(r()),p=!n!=!o,f=!c;(h||p!==a)&&(u&&(s=b.i.Cb(e,s)),p&&(t&&!h||(d.dataDependency=b.S.o()),i=t?s.createChildContext("function"==typeof o?o:r,d):b.S.qa()?s.extend(null,d):s),f&&b.S.qa()&&(c=b.a.Ca(b.h.childNodes(e),!0)),p?(f||b.h.va(e,b.a.Ca(c)),b.Oa(i,e)):(b.h.Ea(e),l||b.i.ma(e,b.i.H)),a=p)}),null,{l:e}),{controlsDescendantBindings:!0}}},b.m.Ra[e]=!1,b.h.ea[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),b.c.let={init:function(e,t,n,r,i){return t=i.extend(t),b.Oa(t,e),{controlsDescendantBindings:!0}}},b.h.ea.let=!0;var O={};b.c.options={init:function(e){if("select"!==b.a.R(e))throw Error("options binding applies only to SELECT elements");for(;0<e.length;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(e,t,n){function r(){return b.a.jb(e.options,(function(e){return e.selected}))}function i(e,t,n){var r=typeof t;return"function"==r?t(e):"string"==r?e[t]:n}function o(t,n){if(f&&u)b.i.ma(e,b.i.H);else if(p.length){var r=0<=b.a.A(p,b.w.M(n[0]));b.a.Zc(n[0],r),f&&!r&&b.u.G(b.a.Fb,null,[e,"change"])}}var a=e.multiple,c=0!=e.length&&a?e.scrollTop:null,l=b.a.f(t()),u=n.get("valueAllowUnset")&&n.has("value"),h=n.get("optionsIncludeDestroyed");t={};var d,p=[];u||(a?p=b.a.Mb(r(),b.w.M):0<=e.selectedIndex&&p.push(b.w.M(e.options[e.selectedIndex]))),l&&(void 0===l.length&&(l=[l]),d=b.a.jb(l,(function(e){return h||e===s||null===e||!b.a.f(e._destroy)})),n.has("optionsCaption")&&null!==(l=b.a.f(n.get("optionsCaption")))&&l!==s&&d.unshift(O));var f=!1;t.beforeRemove=function(t){e.removeChild(t)},l=o,n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(l=function(e,t){o(0,t),b.u.G(n.get("optionsAfterRender"),null,[t[0],e!==O?e:s])}),b.a.ec(e,d,(function(t,r,o){return o.length&&(p=!u&&o[0].selected?[b.w.M(o[0])]:[],f=!0),r=e.ownerDocument.createElement("option"),t===O?(b.a.Bb(r,n.get("optionsCaption")),b.w.cb(r,s)):(o=i(t,n.get("optionsValue"),t),b.w.cb(r,b.a.f(o)),t=i(t,n.get("optionsText"),o),b.a.Bb(r,t)),[r]}),t,l),u||(a?p.length&&r().length<p.length:p.length&&0<=e.selectedIndex?b.w.M(e.options[e.selectedIndex])!==p[0]:p.length||0<=e.selectedIndex)&&b.u.G(b.a.Fb,null,[e,"change"]),(u||b.S.Ya())&&b.i.ma(e,b.i.H),b.a.wd(e),c&&20<Math.abs(c-e.scrollTop)&&(e.scrollTop=c)}},b.c.options.$b=b.a.g.Z(),b.c.selectedOptions={init:function(e,t,n){function r(){var r=t(),i=[];b.a.D(e.getElementsByTagName("option"),(function(e){e.selected&&i.push(b.w.M(e))})),b.m.eb(r,n,"selectedOptions",i)}function i(){var n=b.a.f(t()),r=e.scrollTop;n&&"number"==typeof n.length&&b.a.D(e.getElementsByTagName("option"),(function(e){var t=0<=b.a.A(n,b.w.M(e));e.selected!=t&&b.a.Zc(e,t)})),e.scrollTop=r}if("select"!=b.a.R(e))throw Error("selectedOptions binding applies only to SELECT elements");var o;b.i.subscribe(e,b.i.H,(function(){o?r():(b.a.B(e,"change",r),o=b.o(i,null,{l:e}))}),null,{notifyImmediately:!0})},update:function(){}},b.m.wa.selectedOptions=!0,b.c.style={update:function(e,t){var n=b.a.f(t()||{});b.a.P(n,(function(t,n){if(null!==(n=b.a.f(n))&&n!==s&&!1!==n||(n=""),u)u(e).css(t,n);else if(/^--/.test(t))e.style.setProperty(t,n);else{t=t.replace(/-(\w)/g,(function(e,t){return t.toUpperCase()}));var r=e.style[t];e.style[t]=n,n===r||e.style[t]!=r||isNaN(n)||(e.style[t]=n+"px")}}))}},b.c.submit={init:function(e,t,n,r,i){if("function"!=typeof t())throw Error("The value for a submit binding must be a function");b.a.B(e,"submit",(function(n){var r,o=t();try{r=o.call(i.$data,e)}finally{!0!==r&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}}))}},b.c.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){b.a.Bb(e,t())}},b.h.ea.text=!0,function(){if(a&&a.navigator){var e,t,n,r,i,o=function(e){if(e)return parseFloat(e[1])},c=a.navigator.userAgent;(e=a.opera&&a.opera.version&&parseInt(a.opera.version()))||(i=o(c.match(/Edge\/([^ ]+)$/)))||o(c.match(/Chrome\/([^ ]+)/))||(t=o(c.match(/Version\/([^ ]+) Safari/)))||(n=o(c.match(/Firefox\/([^ ]+)/)))||(r=b.a.W||o(c.match(/MSIE ([^ ]+)/)))||(r=o(c.match(/rv:([^ )]+)/)))}if(8<=r&&10>r)var l=b.a.g.Z(),u=b.a.g.Z(),h=function(e){var t=this.activeElement;(t=t&&b.a.g.get(t,u))&&t(e)},d=function(e,t){var n=e.ownerDocument;b.a.g.get(n,l)||(b.a.g.set(n,l,!0),b.a.B(n,"selectionchange",h)),b.a.g.set(e,u,t)};b.c.textInput={init:function(o,a,c){function l(e,t){b.a.B(o,e,t)}function u(){p||(f=o.value,p=b.a.setTimeout(h,4))}function h(){clearTimeout(p),f=p=s;var e=o.value;g!==e&&(g=e,b.m.eb(a(),c,"textInput",e))}var p,f,g=o.value,m=9==b.a.W?u:h,E=!1;r&&l("keypress",h),11>r&&l("propertychange",(function(e){E||"value"!==e.propertyName||m(e)})),8==r&&(l("keyup",h),l("keydown",h)),d&&(d(o,m),l("dragend",u)),(!r||9<=r)&&l("input",m),5>t&&"textarea"===b.a.R(o)?(l("keydown",u),l("paste",u),l("cut",u)):11>e?l("keydown",u):4>n?(l("DOMAutoComplete",h),l("dragdrop",h),l("drop",h)):i&&"number"===o.type&&l("keydown",u),l("change",h),l("blur",h),b.o((function e(){var t=b.a.f(a());null!==t&&t!==s||(t=""),f!==s&&t===f?b.a.setTimeout(e,4):o.value!==t&&(E=!0,o.value=t,E=!1,g=o.value)}),null,{l:o})}},b.m.wa.textInput=!0,b.c.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),b.c.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++b.c.uniqueName.rd;b.a.Yc(e,n)}}},b.c.uniqueName.rd=0,b.c.using={init:function(e,t,n,r,i){var o;return n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")}),t=i.createChildContext(t,o),b.Oa(t,e),{controlsDescendantBindings:!0}}},b.h.ea.using=!0,b.c.value={init:function(e,t,n){var r=b.a.R(e),i="input"==r;if(!i||"checkbox"!=e.type&&"radio"!=e.type){var o=[],a=n.get("valueUpdate"),c=!1,l=null;a&&(o="string"==typeof a?[a]:b.a.wc(a),b.a.Pa(o,"change"));var u,h,d=function(){l=null,c=!1;var r=t(),i=b.w.M(e);b.m.eb(r,n,"value",i)};!b.a.W||!i||"text"!=e.type||"off"==e.autocomplete||e.form&&"off"==e.form.autocomplete||-1!=b.a.A(o,"propertychange")||(b.a.B(e,"propertychange",(function(){c=!0})),b.a.B(e,"focus",(function(){c=!1})),b.a.B(e,"blur",(function(){c&&d()}))),b.a.D(o,(function(t){var n=d;b.a.Ud(t,"after")&&(n=function(){l=b.w.M(e),b.a.setTimeout(d,0)},t=t.substring(5)),b.a.B(e,t,n)})),u=i&&"file"==e.type?function(){var n=b.a.f(t());null===n||n===s||""===n?e.value="":b.u.G(d)}:function(){var i=b.a.f(t()),o=b.w.M(e);null!==l&&i===l?b.a.setTimeout(u,0):i===o&&o!==s||("select"===r?(o=n.get("valueAllowUnset"),b.w.cb(e,i,o),o||i===b.w.M(e)||b.u.G(d)):b.w.cb(e,i))},"select"===r?b.i.subscribe(e,b.i.H,(function(){h?n.get("valueAllowUnset")?u():d():(b.a.B(e,"change",d),h=b.o(u,null,{l:e}))}),null,{notifyImmediately:!0}):(b.a.B(e,"change",d),b.o(u,null,{l:e}))}else b.ib(e,{checkedValue:t})},update:function(){}},b.m.wa.value=!0,b.c.visible={update:function(e,t){var n=b.a.f(t()),r="none"!=e.style.display;n&&!r?e.style.display="":!n&&r&&(e.style.display="none")}},b.c.hidden={update:function(e,t){b.c.visible.update(e,(function(){return!b.a.f(t())}))}},function(e){b.c[e]={init:function(t,n,r,i,o){return b.c.event.init.call(this,t,(function(){var t={};return t[e]=n(),t}),r,i,o)}}}("click"),b.ca=function(){},b.ca.prototype.renderTemplateSource=function(){throw Error("Override renderTemplateSource")},b.ca.prototype.createJavaScriptEvaluatorBlock=function(){throw Error("Override createJavaScriptEvaluatorBlock")},b.ca.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||c).getElementById(e);if(!n)throw Error("Cannot find template with ID "+e);return new b.C.F(n)}if(1==e.nodeType||8==e.nodeType)return new b.C.ia(e);throw Error("Unknown template type: "+e)},b.ca.prototype.renderTemplate=function(e,t,n,r){return e=this.makeTemplateSource(e,r),this.renderTemplateSource(e,t,n,r)},b.ca.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},b.ca.prototype.rewriteTemplate=function(e,t,n){t=t((e=this.makeTemplateSource(e,n)).text()),e.text(t),e.data("isRewritten",!0)},b.b("templateEngine",b.ca),b.kc=function(){function e(e,t,n,r){e=b.m.ac(e);for(var i=b.m.Ra,o=0;o<e.length;o++){var s=e[o].key;if(Object.prototype.hasOwnProperty.call(i,s)){var a=i[s];if("function"==typeof a){if(s=a(e[o].value))throw Error(s)}else if(!a)throw Error("This template engine does not support the '"+s+"' binding within its templates")}}return n="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+b.m.vb(e,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')",r.createJavaScriptEvaluatorBlock(n)+t}var t=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,n=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{xd:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,(function(e){return b.kc.Ld(e,t)}),n)},Ld:function(r,i){return r.replace(t,(function(t,n,r,o,s){return e(s,n,r,i)})).replace(n,(function(t,n){return e(n,"\x3c!-- ko --\x3e","#comment",i)}))},md:function(e,t){return b.aa.Xb((function(n,r){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===t&&b.ib(i,e,r)}))}}}(),b.b("__tr_ambtns",b.kc.md),function(){b.C={},b.C.F=function(e){if(this.F=e){var t=b.a.R(e);this.ab="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},b.C.F.prototype.text=function(){var e=1===this.ab?"text":2===this.ab?"value":"innerHTML";if(0==arguments.length)return this.F[e];var t=arguments[0];"innerHTML"===e?b.a.fc(this.F,t):this.F[e]=t};var e=b.a.g.Z()+"_";b.C.F.prototype.data=function(t){if(1===arguments.length)return b.a.g.get(this.F,e+t);b.a.g.set(this.F,e+t,arguments[1])};var t=b.a.g.Z();b.C.F.prototype.nodes=function(){var e=this.F;if(0==arguments.length){var n=b.a.g.get(e,t)||{},r=n.lb||(3===this.ab?e.content:4===this.ab?e:s);if(!r||n.jd){var i=this.text();i&&i!==n.bb&&(r=b.a.Md(i,e.ownerDocument),b.a.g.set(e,t,{lb:r,bb:i,jd:!0}))}return r}n=arguments[0],this.ab!==s&&this.text(""),b.a.g.set(e,t,{lb:n})},b.C.ia=function(e){this.F=e},b.C.ia.prototype=new b.C.F,b.C.ia.prototype.constructor=b.C.ia,b.C.ia.prototype.text=function(){if(0==arguments.length){var e=b.a.g.get(this.F,t)||{};return e.bb===s&&e.lb&&(e.bb=e.lb.innerHTML),e.bb}b.a.g.set(this.F,t,{bb:arguments[0]})},b.b("templateSources",b.C),b.b("templateSources.domElement",b.C.F),b.b("templateSources.anonymousTemplate",b.C.ia)}(),function(){function e(e,t,n){var r;for(t=b.h.nextSibling(t);e&&(r=e)!==t;)n(r,e=b.h.nextSibling(r))}function t(t,n){if(t.length){var r=t[0],i=t[t.length-1],o=r.parentNode,s=b.ga.instance,a=s.preprocessNode;if(a){if(e(r,i,(function(e,t){var n=e.previousSibling,o=a.call(s,e);o&&(e===r&&(r=o[0]||t),e===i&&(i=o[o.length-1]||n))})),t.length=0,!r)return;r===i?t.push(r):(t.push(r,i),b.a.Ua(t,o))}e(r,i,(function(e){1!==e.nodeType&&8!==e.nodeType||b.vc(n,e)})),e(r,i,(function(e){1!==e.nodeType&&8!==e.nodeType||b.aa.cd(e,[n])})),b.a.Ua(t,o)}}function n(e){return e.nodeType?e:0<e.length?e[0]:null}function r(e,r,i,s,a){a=a||{};var c=(e&&n(e)||i||{}).ownerDocument,l=a.templateEngine||o;if(b.kc.xd(i,l,c),"number"!=typeof(i=l.renderTemplate(i,s,a,c)).length||0<i.length&&"number"!=typeof i[0].nodeType)throw Error("Template engine must return an array of DOM nodes");switch(c=!1,r){case"replaceChildren":b.h.va(e,i),c=!0;break;case"replaceNode":b.a.Xc(e,i),c=!0;break;case"ignoreTargetNode":break;default:throw Error("Unknown renderMode: "+r)}return c&&(t(i,s),a.afterRender&&b.u.G(a.afterRender,null,[i,s[a.as||"$data"]]),"replaceChildren"==r&&b.i.ma(e,b.i.H)),i}function i(e,t,n){return b.O(e)?e():"function"==typeof e?e(t,n):e}var o;b.gc=function(e){if(e!=s&&!(e instanceof b.ca))throw Error("templateEngine must inherit from ko.templateEngine");o=e},b.dc=function(e,t,a,c,l){if(((a=a||{}).templateEngine||o)==s)throw Error("Set a template engine before calling renderTemplate");if(l=l||"replaceChildren",c){var u=n(c);return b.$((function(){var o=t&&t instanceof b.fa?t:new b.fa(t,null,null,null,{exportDependencies:!0}),s=i(e,o.$data,o);o=r(c,l,s,o,a),"replaceNode"==l&&(u=n(c=o))}),null,{Sa:function(){return!u||!b.a.Sb(u)},l:u&&"replaceNode"==l?u.parentNode:u})}return b.aa.Xb((function(n){b.dc(e,t,a,n,"replaceNode")}))},b.Qd=function(e,n,o,a,c){function l(e,t){b.u.G(b.a.ec,null,[a,e,h,o,u,t]),b.i.ma(a,b.i.H)}function u(e,n){t(n,d),o.afterRender&&o.afterRender(n,e),d=null}function h(t,n){d=c.createChildContext(t,{as:p,noChildContext:o.noChildContext,extend:function(e){e.$index=n,p&&(e[p+"Index"]=n)}});var s=i(e,t,d);return r(a,"ignoreTargetNode",s,d,o)}var d,p=o.as,f=!1===o.includeDestroyed||b.options.foreachHidesDestroyed&&!o.includeDestroyed;if(f||o.beforeRemove||!b.Pc(n))return b.$((function(){var e=b.a.f(n)||[];void 0===e.length&&(e=[e]),f&&(e=b.a.jb(e,(function(e){return e===s||null===e||!b.a.f(e._destroy)}))),l(e)}),null,{l:a});l(n.v());var g=n.subscribe((function(e){l(n(),e)}),null,"arrayChange");return g.l(a),g};var a=b.a.g.Z(),c=b.a.g.Z();b.c.template={init:function(e,t){var n=b.a.f(t());if("string"==typeof n||"name"in n)b.h.Ea(e);else if("nodes"in n){if(n=n.nodes||[],b.O(n))throw Error('The "nodes" option must be a plain, non-observable array.');var r=n[0]&&n[0].parentNode;r&&b.a.g.get(r,c)||(r=b.a.Yb(n),b.a.g.set(r,c,!0)),new b.C.ia(e).nodes(r)}else{if(!(0<(n=b.h.childNodes(e)).length))throw Error("Anonymous template defined, but no template content was provided");r=b.a.Yb(n),new b.C.ia(e).nodes(r)}return{controlsDescendantBindings:!0}},update:function(e,t,n,r,i){var o=t();n=!0,r=null,"string"==typeof(t=b.a.f(o))?t={}:(o="name"in t?t.name:e,"if"in t&&(n=b.a.f(t.if)),n&&"ifnot"in t&&(n=!b.a.f(t.ifnot)),n&&!o&&(n=!1)),"foreach"in t?r=b.Qd(o,n&&t.foreach||[],t,e,i):n?(n=i,"data"in t&&(n=i.createChildContext(t.data,{as:t.as,noChildContext:t.noChildContext,exportDependencies:!0})),r=b.dc(o,n,t,e)):b.h.Ea(e),i=r,(t=b.a.g.get(e,a))&&"function"==typeof t.s&&t.s(),b.a.g.set(e,a,!i||i.ja&&!i.ja()?s:i)}},b.m.Ra.template=function(e){return 1==(e=b.m.ac(e)).length&&e[0].unknown||b.m.Id(e,"name")?null:"This template engine does not support anonymous templates nested within its templates"},b.h.ea.template=!0}(),b.b("setTemplateEngine",b.gc),b.b("renderTemplate",b.dc),b.a.Kc=function(e,t,n){var r,i,o,s,a;if(e.length&&t.length)for(r=i=0;(!n||r<n)&&(s=e[i]);++i){for(o=0;a=t[o];++o)if(s.value===a.value){s.moved=a.index,a.moved=s.index,t.splice(o,1),r=o=0;break}r+=o}},b.a.Pb=function(){function e(e,t,n,r,i){var o,s,a,c,l,u=Math.min,h=Math.max,d=[],p=e.length,f=t.length,g=f-p||1,m=p+f+1;for(o=0;o<=p;o++)for(c=a,d.push(a=[]),l=u(f,o+g),s=h(0,o-1);s<=l;s++)a[s]=s?o?e[o-1]===t[s-1]?c[s-1]:u(c[s]||m,a[s-1]||m)+1:s+1:o+1;for(u=[],h=[],g=[],o=p,s=f;o||s;)f=d[o][s]-1,s&&f===d[o][s-1]?h.push(u[u.length]={status:n,value:t[--s],index:s}):o&&f===d[o-1][s]?g.push(u[u.length]={status:r,value:e[--o],index:o}):(--s,--o,i.sparse||u.push({status:"retained",value:t[s]}));return b.a.Kc(g,h,!i.dontLimitMoves&&10*p),u.reverse()}return function(t,n,r){return r="boolean"==typeof r?{dontLimitMoves:r}:r||{},n=n||[],(t=t||[]).length<n.length?e(t,n,"added","deleted",r):e(n,t,"deleted","added",r)}}(),b.b("utils.compareArrays",b.a.Pb),function(){function e(e,t,n,r,i){var o=[],a=b.$((function(){var s=t(n,i,b.a.Ua(o,e))||[];0<o.length&&(b.a.Xc(o,s),r&&b.u.G(r,null,[n,s,i])),o.length=0,b.a.Nb(o,s)}),null,{l:e,Sa:function(){return!b.a.kd(o)}});return{Y:o,$:a.ja()?a:s}}var t=b.a.g.Z(),n=b.a.g.Z();b.a.ec=function(r,i,o,a,c,l){function u(e){p={Aa:e,pb:b.ta(T++)},v.push(p),y||x.push(p)}function h(e){p=E[e],T!==p.pb.v()&&_.push(p),p.pb(T++),b.a.Ua(p.Y,r),v.push(p)}function d(e,t){if(e)for(var n=0,r=t.length;n<r;n++)b.a.D(t[n].Y,(function(r){e(r,n,t[n].Aa)}))}void 0===(i=i||[]).length&&(i=[i]),a=a||{};var p,f,g,m,E=b.a.g.get(r,t),y=!E,v=[],A=0,T=0,C=[],R=[],S=[],_=[],x=[],w=0;if(y)b.a.D(i,u);else{if(!l||E&&E._countWaitingForRemove){var I=b.a.Mb(E,(function(e){return e.Aa}));l=b.a.Pb(I,i,{dontLimitMoves:a.dontLimitMoves,sparse:!0})}var N,L,O;for(I=0;N=l[I];I++)switch(L=N.moved,O=N.index,N.status){case"deleted":for(;A<O;)h(A++);L===s&&((p=E[A]).$&&(p.$.s(),p.$=s),b.a.Ua(p.Y,r).length&&(a.beforeRemove&&(v.push(p),w++,p.Aa===n?p=null:S.push(p)),p&&C.push.apply(C,p.Y))),A++;break;case"added":for(;T<O;)h(A++);L!==s?(R.push(v.length),h(L)):u(N.value)}for(;T<i.length;)h(A++);v._countWaitingForRemove=w}b.a.g.set(r,t,v),d(a.beforeMove,_),b.a.D(C,a.beforeRemove?b.oa:b.removeNode);try{m=r.ownerDocument.activeElement}catch(e){}if(R.length)for(;(I=R.shift())!=s;){for(p=v[I],f=s;I;)if((g=v[--I].Y)&&g.length){f=g[g.length-1];break}for(i=0;A=p.Y[i];f=A,i++)b.h.Wb(r,A,f)}for(I=0;p=v[I];I++){for(p.Y||b.a.extend(p,e(r,o,p.Aa,c,p.pb)),i=0;A=p.Y[i];f=A,i++)b.h.Wb(r,A,f);!p.Ed&&c&&(c(p.Aa,p.Y,p.pb),p.Ed=!0,f=p.Y[p.Y.length-1])}for(m&&r.ownerDocument.activeElement!=m&&m.focus(),d(a.beforeRemove,S),I=0;I<S.length;++I)S[I].Aa=n;d(a.afterMove,_),d(a.afterAdd,x)}}(),b.b("utils.setDomNodeChildrenFromArrayMapping",b.a.ec),b.ba=function(){this.allowTemplateRewriting=!1},b.ba.prototype=new b.ca,b.ba.prototype.constructor=b.ba,b.ba.prototype.renderTemplateSource=function(e,t,n,r){return(t=9>b.a.W||!e.nodes?null:e.nodes())?b.a.la(t.cloneNode(!0).childNodes):(e=e.text(),b.a.ua(e,r))},b.ba.Ma=new b.ba,b.gc(b.ba.Ma),b.b("nativeTemplateEngine",b.ba),function(){b.$a=function(){var e=this.Hd=function(){if(!u||!u.tmpl)return 0;try{if(0<=u.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,r,i){if(i=i||c,r=r||{},2>e)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var o=t.data("precompiled");return o||(o=t.text()||"",o=u.template(null,"{{ko_with $item.koBindingContext}}"+o+"{{/ko_with}}"),t.data("precompiled",o)),t=[n.$data],n=u.extend({koBindingContext:n},r.templateOptions),(n=u.tmpl(o,t,n)).appendTo(i.createElement("div")),u.fragments={},n},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){c.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},0<e&&(u.tmpl.tag.ko_code={open:"__.push($1 || '');"},u.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},b.$a.prototype=new b.ca,b.$a.prototype.constructor=b.$a;var e=new b.$a;0<e.Hd&&b.gc(e),b.b("jqueryTmplTemplateEngine",b.$a)}()}))}()},1466:(e,t,n)=>{e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};t[s][0].call(l.exports,(function(e){return i(t[s][1][e]||e)}),l,l.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){1!==l.push(e)||r||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function l(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var s=f((function(){t(i,r)}));"error"===s.status&&r(s.value)}function f(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}t.exports=l,l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var n=new this.constructor(i);return this.state!==c?h(n,this.state===a?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=f(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return o.reject(t,e)},l.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then((function(e){s[i]=e,++a!==n||r||(r=!0,o.resolve(l,s))}),(function(e){r||(r=!0,o.reject(l,e))}))}},l.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n,r=e.length,s=!1;if(!r)return this.resolve([]);for(var a=-1,c=new this(i);++a<r;)n=e[a],t.resolve(n).then((function(e){s||(s=!0,o.resolve(c,e))}),(function(e){s||(s=!0,o.reject(c,e))}));return c}},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();function o(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var s=Promise;function a(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function c(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function l(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h="local-forage-detect-blob-support",d=void 0,p={},f=Object.prototype.toString,g="readonly",m="readwrite";function E(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function y(e){return"boolean"==typeof d?s.resolve(d):function(e){return new s((function(t){var n=e.transaction(h,m),r=o([""]);n.objectStore(h).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return d=e}))}function v(e){var t=p[e.name],n={};n.promise=new s((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function b(e){var t=p[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function A(e,t){var n=p[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function T(e,t){return new s((function(n,r){if(p[e.name]=p[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);v(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var s=i.open.apply(i,o);t&&(s.onupgradeneeded=function(t){var n=s.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(h)}catch(n){if("ConstraintError"!==n.name)throw n;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),s.onerror=function(e){e.preventDefault(),r(s.error)},s.onsuccess=function(){n(s.result),b(e)}}))}function C(e){return T(e,!1)}function R(e){return T(e,!0)}function S(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var o=e.db.version+1;o>e.version&&(e.version=o)}return!0}return!1}function _(e){return o([E(atob(e.data))],{type:e.type})}function x(e){return e&&e.__local_forage_encoded_blob}function w(e){var t=this,n=t._initReady().then((function(){var e=p[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return c(n,e,e),n}function I(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),R(e)})).then((function(){return function(e){v(e);for(var t=p[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,C(e).then((function(t){return e.db=t,S(e)?R(e):t})).then((function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r})).catch((function(t){throw A(e,t),t}))}(e).then((function(){I(e,t,n,r-1)}))})).catch(n);n(i)}}var N={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=p[n.name];i||(i={forages:[],db:null,dbReady:null,deferredOperations:[]},p[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=w);var o=[];function a(){return s.resolve()}for(var c=0;c<i.forages.length;c++){var l=i.forages[c];l!==t&&o.push(l._initReady().catch(a))}var u=i.forages.slice(0);return s.all(o).then((function(){return n.db=i.db,C(n)})).then((function(e){return n.db=e,S(n,t._defaultConfig.version)?R(n):e})).then((function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var o=u[r];o!==t&&(o._dbInfo.db=n.db,o._dbInfo.version=n.version)}}))},_support:function(){try{if(!i)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){I(n._dbInfo,g,(function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).openCursor(),a=1;s.onsuccess=function(){var n=s.result;if(n){var r=n.value;x(r)&&(r=_(r));var i=e(r,n.key,a++);void 0!==i?t(i):n.continue()}else t()},s.onerror=function(){r(s.error)}}catch(e){r(e)}}))})).catch(r)}));return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new s((function(t,r){n.ready().then((function(){I(n._dbInfo,g,(function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),x(e)&&(e=_(e)),t(e)},s.onerror=function(){r(s.error)}}catch(e){r(e)}}))})).catch(r)}));return a(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var i=new s((function(n,i){var o;r.ready().then((function(){return o=r._dbInfo,"[object Blob]"===f.call(t)?y(o.db).then((function(e){return e?t:(n=t,new s((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){I(r._dbInfo,m,(function(o,s){if(o)return i(o);try{var a=s.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var c=a.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),n(t)},s.onabort=s.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}}))})).catch(i)}));return a(i,n),i},removeItem:function(e,t){var n=this;e=l(e);var r=new s((function(t,r){n.ready().then((function(){I(n._dbInfo,m,(function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName).delete(e);o.oncomplete=function(){t()},o.onerror=function(){r(s.error)},o.onabort=function(){var e=s.error?s.error:s.transaction.error;r(e)}}catch(e){r(e)}}))})).catch(r)}));return a(r,t),r},clear:function(e){var t=this,n=new s((function(e,n){t.ready().then((function(){I(t._dbInfo,m,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}}))})).catch(n)}));return a(n,e),n},length:function(e){var t=this,n=new s((function(e,n){t.ready().then((function(){I(t._dbInfo,g,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return a(n,e),n},key:function(e,t){var n=this,r=new s((function(t,r){e<0?t(null):n.ready().then((function(){I(n._dbInfo,g,(function(i,o){if(i)return r(i);try{var s=o.objectStore(n._dbInfo.storeName),a=!1,c=s.openCursor();c.onsuccess=function(){var n=c.result;n?0===e||a?t(n.key):(a=!0,n.advance(e)):t(null)},c.onerror=function(){r(c.error)}}catch(e){r(e)}}))})).catch(r)}));return a(r,t),r},keys:function(e){var t=this,n=new s((function(e,n){t.ready().then((function(){I(t._dbInfo,g,(function(r,i){if(r)return n(r);try{var o=i.objectStore(t._dbInfo.storeName).openCursor(),s=[];o.onsuccess=function(){var t=o.result;t?(s.push(t.key),t.continue()):e(s)},o.onerror=function(){n(o.error)}}catch(e){n(e)}}))})).catch(n)}));return a(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;if(e.name){var c=e.name===n.name&&o._dbInfo.db?s.resolve(o._dbInfo.db):C(e).then((function(t){var n=p[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));r=e.storeName?c.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;v(e);var r=p[e.name],o=r.forages;t.close();for(var a=0;a<o.length;a++){var c=o[a];c._dbInfo.db=null,c._dbInfo.version=n}var l=new s((function(t,r){var o=i.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}));return l.then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,b(n._dbInfo)}})).catch((function(t){throw(A(e,t)||s.resolve()).catch((function(){})),t}))}})):c.then((function(t){v(e);var n=p[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;var a=new s((function(t,n){var r=i.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var t=r.result;t&&t.close(),n(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}));return a.then((function(e){n.db=e;for(var t=0;t<r.length;t++)b(r[t]._dbInfo)})).catch((function(t){throw(A(e,t)||s.resolve()).catch((function(){})),t}))}))}else r=s.reject("Invalid arguments");return a(r,t),r}};var L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=/^~~local_forage_type~([^~]+)~/,k="__lfsc__:",D=k.length,F="arbf",M="blob",P="si08",B="ui08",U="uic8",$="si16",H="si32",G="ur16",W="ui32",V="fl32",j="fl64",q=D+F.length,z=Object.prototype.toString;function K(e){var t,n,r,i,o,s=.75*e.length,a=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l=new ArrayBuffer(s),u=new Uint8Array(l);for(t=0;t<a;t+=4)n=L.indexOf(e[t]),r=L.indexOf(e[t+1]),i=L.indexOf(e[t+2]),o=L.indexOf(e[t+3]),u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&o;return l}function Y(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=L[n[t]>>2],r+=L[(3&n[t])<<4|n[t+1]>>4],r+=L[(15&n[t+1])<<2|n[t+2]>>6],r+=L[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var X={serialize:function(e,t){var n="";if(e&&(n=z.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===z.call(e.buffer))){var r,i=k;e instanceof ArrayBuffer?(r=e,i+=F):(r=e.buffer,"[object Int8Array]"===n?i+=P:"[object Uint8Array]"===n?i+=B:"[object Uint8ClampedArray]"===n?i+=U:"[object Int16Array]"===n?i+=$:"[object Uint16Array]"===n?i+=G:"[object Int32Array]"===n?i+=H:"[object Uint32Array]"===n?i+=W:"[object Float32Array]"===n?i+=V:"[object Float64Array]"===n?i+=j:t(new Error("Failed to get type for BinaryArray"))),t(i+Y(r))}else if("[object Blob]"===n){var o=new FileReader;o.onload=function(){var n="~~local_forage_type~"+e.type+"~"+Y(this.result);t("__lfsc__:blob"+n)},o.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(n){console.error("Couldn't convert value into a JSON string: ",e),t(null,n)}},deserialize:function(e){if(e.substring(0,D)!==k)return JSON.parse(e);var t,n=e.substring(q),r=e.substring(D,q);if(r===M&&O.test(n)){var i=n.match(O);t=i[1],n=n.substring(i[0].length)}var s=K(n);switch(r){case F:return s;case M:return o([s],{type:t});case P:return new Int8Array(s);case B:return new Uint8Array(s);case U:return new Uint8ClampedArray(s);case $:return new Int16Array(s);case G:return new Uint16Array(s);case H:return new Int32Array(s);case W:return new Uint32Array(s);case V:return new Float32Array(s);case j:return new Float64Array(s);default:throw new Error("Unkown type: "+r)}},stringToBuffer:K,bufferToString:Y};function J(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function Q(e,t,n,r,i,o){e.executeSql(n,r,i,(function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,a){a.rows.length?o(e,s):J(e,t,(function(){e.executeSql(n,r,i,o)}),o)}),o):o(e,s)}),o)}function Z(e,t,n,r){var i=this;e=l(e);var o=new s((function(o,s){i.ready().then((function(){void 0===t&&(t=null);var a=t,c=i._dbInfo;c.serializer.serialize(t,(function(t,l){l?s(l):c.db.transaction((function(n){Q(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){o(a)}),(function(e,t){s(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void o(Z.apply(i,[e,a,n,r-1]));s(t)}}))}))})).catch(s)}));return a(o,n),o}function ee(e){return new s((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],o=0;o<r.rows.length;o++)i.push(r.rows.item(o).name);t({db:e,storeNames:i})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}var te={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new s((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction((function(i){J(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=X,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Q(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var o=r.rows,s=o.length,a=0;a<s;a++){var c=o.item(a),l=c.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=e(l,c.key,a+1)))return void t(l)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=new s((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Q(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return a(r,t),r},setItem:function(e,t,n){return Z.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=l(e);var r=new s((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Q(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return a(r,t),r},clear:function(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Q(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return a(n,e),n},length:function(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Q(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return a(n,e),n},key:function(e,t){var n=this,r=new s((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){Q(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return a(r,t),r},keys:function(e){var t=this,n=new s((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){Q(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return a(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return a(r=e.name?new s((function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(ee(r))})).then((function(e){return new s((function(t,n){e.db.transaction((function(r){function i(e){return new s((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var o=[],a=0,c=e.storeNames.length;a<c;a++)o.push(i(e.storeNames[a]));s.all(o).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):s.reject("Invalid arguments"),t),r}};function ne(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function re(){return!function(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(e){return!0}}()||localStorage.length>0}var ie={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=ne(e,this._defaultConfig),re()?(this._dbInfo=t,t.serializer=X,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,o=localStorage.length,s=1,a=0;a<o;a++){var c=localStorage.key(a);if(0===c.indexOf(r)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(i),s++)))return l}}}));return a(r,t),r},getItem:function(e,t){var n=this;e=l(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return a(r,t),r},setItem:function(e,t,n){var r=this;e=l(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new s((function(i,o){var s=r._dbInfo;s.serializer.serialize(t,(function(t,r){if(r)o(r);else try{localStorage.setItem(s.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||o(e),o(e)}}))}))}));return a(i,n),i},removeItem:function(e,t){var n=this;e=l(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return a(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return a(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return a(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return a(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var o=localStorage.key(i);0===o.indexOf(e.keyPrefix)&&r.push(o.substring(e.keyPrefix.length))}return r}));return a(n,e),n},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new s((function(t){e.storeName?t(ne(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):s.reject("Invalid arguments"),a(r,t),r}},oe=function(e,t){for(var n=e.length,r=0;r<n;){if((i=e[r])===(o=t)||"number"==typeof i&&"number"==typeof o&&isNaN(i)&&isNaN(o))return!0;r++}var i,o;return!1},se=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},ae={},ce={},le={INDEXEDDB:N,WEBSQL:te,LOCALSTORAGE:ie},ue=[le.INDEXEDDB._driver,le.WEBSQL._driver,le.LOCALSTORAGE._driver],he=["dropInstance"],de=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(he),pe={description:"",driver:ue.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function fe(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function ge(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(se(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var me=function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),le)if(le.hasOwnProperty(n)){var r=le[n],i=r._driver;this[n]=i,ae[i]||this.defineDriver(r)}this._defaultConfig=ge({},pe),this._config=ge({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new s((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var o=de.concat("_initStorage"),c=0,l=o.length;c<l;c++){var u=o[c];if((!oe(he,u)||e[u])&&"function"!=typeof e[u])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=s.reject(t);return a(n,arguments[arguments.length-1]),n}},n=0,r=he.length;n<r;n++){var i=he[n];e[i]||(e[i]=t(i))}}();var h=function(n){ae[r]&&console.info("Redefining LocalForage driver: "+r),ae[r]=e,ce[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(h,n):h(!!e._support):h(!0)}catch(e){n(e)}}));return c(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=ae[e]?s.resolve(ae[e]):s.reject(new Error("Driver not found."));return c(r,t,n),r},e.prototype.getSerializer=function(e){var t=s.resolve(X);return c(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return c(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;se(e)||(e=[e]);var i=this._getSupportedDrivers(e);function o(){r._config.driver=r.driver()}function a(e){return r._extend(e),o(),r._ready=r._initStorage(r._config),r._ready}var l=null!==this._driverSet?this._driverSet.catch((function(){return s.resolve()})):s.resolve();return this._driverSet=l.then((function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,o(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(a).catch(n)}o();var c=new Error("No available storage method found.");return r._driverSet=s.reject(c),r._driverSet}()}}(i)}))})).catch((function(){o();var e=new Error("No available storage method found.");return r._driverSet=s.reject(e),r._driverSet})),c(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!ce[e]},e.prototype._extend=function(e){ge(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=de.length;e<t;e++)fe(this,de[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),Ee=new me;t.exports=Ee},{3:3}]},{},[4])(4)},3059:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,l=128,u=1/0,h=9007199254740991,d=NaN,p=4294967295,f=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",E="[object Boolean]",y="[object Date]",v="[object Error]",b="[object Function]",A="[object GeneratorFunction]",T="[object Map]",C="[object Number]",R="[object Object]",S="[object Promise]",_="[object RegExp]",x="[object Set]",w="[object String]",I="[object Symbol]",N="[object WeakMap]",L="[object ArrayBuffer]",O="[object DataView]",k="[object Float32Array]",D="[object Float64Array]",F="[object Int8Array]",M="[object Int16Array]",P="[object Int32Array]",B="[object Uint8Array]",U="[object Uint8ClampedArray]",$="[object Uint16Array]",H="[object Uint32Array]",G=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,z=RegExp(j.source),K=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,Ee=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,be=/['\n\r\u2028\u2029\\]/g,Ae="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\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",Se="["+Re+"]",_e="["+Ae+"]",xe="\\d+",we="["+Te+"]",Ie="[^\\ud800-\\udfff"+Re+xe+"\\u2700-\\u27bf"+Te+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",Le="[^\\ud800-\\udfff]",Oe="(?:\\ud83c[\\udde6-\\uddff]){2}",ke="[\\ud800-\\udbff][\\udc00-\\udfff]",De="["+Ce+"]",Fe="(?:"+we+"|"+Ie+")",Me="(?:"+De+"|"+Ie+")",Pe="(?:['’](?:d|ll|m|re|s|t|ve))?",Be="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ue="(?:"+_e+"|"+Ne+")?",$e="[\\ufe0e\\ufe0f]?",He=$e+Ue+"(?:\\u200d(?:"+[Le,Oe,ke].join("|")+")"+$e+Ue+")*",Ge="(?:"+["[\\u2700-\\u27bf]",Oe,ke].join("|")+")"+He,We="(?:"+[Le+_e+"?",_e,Oe,ke,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['’]","g"),je=RegExp(_e,"g"),qe=RegExp(Ne+"(?="+Ne+")|"+We+He,"g"),ze=RegExp([De+"?"+we+"+"+Pe+"(?="+[Se,De,"$"].join("|")+")",Me+"+"+Be+"(?="+[Se,De+Fe,"$"].join("|")+")",De+"?"+Fe+"+"+Pe,De+"+"+Be,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xe,Ge].join("|"),"g"),Ke=RegExp("[\\u200d\\ud800-\\udfff"+Ae+"\\ufe0e\\ufe0f]"),Ye=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Je=-1,Qe={};Qe[k]=Qe[D]=Qe[F]=Qe[M]=Qe[P]=Qe[B]=Qe[U]=Qe[$]=Qe[H]=!0,Qe[g]=Qe[m]=Qe[L]=Qe[E]=Qe[O]=Qe[y]=Qe[v]=Qe[b]=Qe[T]=Qe[C]=Qe[R]=Qe[_]=Qe[x]=Qe[w]=Qe[N]=!1;var Ze={};Ze[g]=Ze[m]=Ze[L]=Ze[O]=Ze[E]=Ze[y]=Ze[k]=Ze[D]=Ze[F]=Ze[M]=Ze[P]=Ze[T]=Ze[C]=Ze[R]=Ze[_]=Ze[x]=Ze[w]=Ze[I]=Ze[B]=Ze[U]=Ze[$]=Ze[H]=!0,Ze[v]=Ze[b]=Ze[N]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,ot=rt||it||Function("return this")(),st=t&&!t.nodeType&&t,at=st&&e&&!e.nodeType&&e,ct=at&&at.exports===st,lt=ct&&rt.process,ut=function(){try{return at&&at.require&&at.require("util").types||lt&&lt.binding&&lt.binding("util")}catch(e){}}(),ht=ut&&ut.isArrayBuffer,dt=ut&&ut.isDate,pt=ut&&ut.isMap,ft=ut&&ut.isRegExp,gt=ut&&ut.isSet,mt=ut&&ut.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function bt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Tt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function Ct(e,t){return!(null==e||!e.length)&&kt(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function St(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function _t(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function xt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function wt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function It(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Nt=Pt("length");function Lt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ot(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function kt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ot(e,Ft,n)}function Dt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Ft(e){return e!=e}function Mt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:d}function Pt(e){return function(t){return null==t?i:t[e]}}function Bt(e){return function(t){return null==e?i:e[t]}}function Ut(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function $t(e,t){for(var n,r=-1,o=e.length;++r<o;){var s=t(e[r]);s!==i&&(n=n===i?s:n+s)}return n}function Ht(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Gt(e){return e?e.slice(0,an(e)+1).replace(re,""):e}function Wt(e){return function(t){return e(t)}}function Vt(e,t){return St(t,(function(t){return e[t]}))}function jt(e,t){return e.has(t)}function qt(e,t){for(var n=-1,r=e.length;++n<r&&kt(t,e[n],0)>-1;);return n}function zt(e,t){for(var n=e.length;n--&&kt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Yt=Bt({À:"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"}),Xt=Bt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Jt(e){return"\\"+et[e]}function Qt(e){return Ke.test(e)}function Zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Qt(e)?function(e){for(var t=qe.lastIndex=0;qe.test(e);)++t;return t}(e):Nt(e)}function sn(e){return Qt(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.split("")}(e)}function an(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var cn=Bt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ln=function e(t){var n,r=(t=null==t?ot:ln.defaults(ot.Object(),t,ln.pick(ot,Xe))).Array,ie=t.Date,Ae=t.Error,Te=t.Function,Ce=t.Math,Re=t.Object,Se=t.RegExp,_e=t.String,xe=t.TypeError,we=r.prototype,Ie=Te.prototype,Ne=Re.prototype,Le=t["__core-js_shared__"],Oe=Ie.toString,ke=Ne.hasOwnProperty,De=0,Fe=(n=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=Ne.toString,Pe=Oe.call(Re),Be=ot._,Ue=Se("^"+Oe.call(ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ct?t.Buffer:i,He=t.Symbol,Ge=t.Uint8Array,We=$e?$e.allocUnsafe:i,qe=en(Re.getPrototypeOf,Re),Ke=Re.create,et=Ne.propertyIsEnumerable,rt=we.splice,it=He?He.isConcatSpreadable:i,st=He?He.iterator:i,at=He?He.toStringTag:i,lt=function(){try{var e=lo(Re,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ot.clearTimeout&&t.clearTimeout,Nt=ie&&ie.now!==ot.Date.now&&ie.now,Bt=t.setTimeout!==ot.setTimeout&&t.setTimeout,un=Ce.ceil,hn=Ce.floor,dn=Re.getOwnPropertySymbols,pn=$e?$e.isBuffer:i,fn=t.isFinite,gn=we.join,mn=en(Re.keys,Re),En=Ce.max,yn=Ce.min,vn=ie.now,bn=t.parseInt,An=Ce.random,Tn=we.reverse,Cn=lo(t,"DataView"),Rn=lo(t,"Map"),Sn=lo(t,"Promise"),_n=lo(t,"Set"),xn=lo(t,"WeakMap"),wn=lo(Re,"create"),In=xn&&new xn,Nn={},Ln=Uo(Cn),On=Uo(Rn),kn=Uo(Sn),Dn=Uo(_n),Fn=Uo(xn),Mn=He?He.prototype:i,Pn=Mn?Mn.valueOf:i,Bn=Mn?Mn.toString:i;function Un(e){if(na(e)&&!js(e)&&!(e instanceof Wn)){if(e instanceof Gn)return e;if(ke.call(e,"__wrapped__"))return $o(e)}return new Gn(e)}var $n=function(){function e(){}return function(t){if(!ta(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Hn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new jn(e);this.size=t.size}function Yn(e,t){var n=js(e),r=!n&&Vs(e),i=!n&&!r&&Ys(e),o=!n&&!r&&!i&&ua(e),s=n||r||i||o,a=s?Ht(e.length,_e):[],c=a.length;for(var l in e)!t&&!ke.call(e,l)||s&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Eo(l,c))||a.push(l);return a}function Xn(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Jn(e,t){return Do(xi(e),sr(t,0,e.length))}function Qn(e){return Do(xi(e))}function Zn(e,t,n){(n!==i&&!Hs(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];ke.call(e,t)&&Hs(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Hs(e[n][0],t))return n;return-1}function nr(e,t,n,r){return hr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function rr(e,t){return e&&wi(t,Oa(t),e)}function ir(e,t,n){"__proto__"==t&&lt?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,o=t.length,s=r(o),a=null==e;++n<o;)s[n]=a?i:xa(e,t[n]);return s}function sr(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,o,s){var a,c=1&t,l=2&t,u=4&t;if(n&&(a=o?n(e,r,o,s):n(e)),a!==i)return a;if(!ta(e))return e;var h=js(e);if(h){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return xi(e,a)}else{var d=po(e),p=d==b||d==A;if(Ys(e))return Ai(e,c);if(d==R||d==g||p&&!o){if(a=l||p?{}:go(e),!c)return l?function(e,t){return wi(e,ho(e),t)}(e,function(e,t){return e&&wi(t,ka(t),e)}(a,e)):function(e,t){return wi(e,uo(e),t)}(e,rr(a,e))}else{if(!Ze[d])return o?e:{};a=function(e,t,n){var r,i=e.constructor;switch(t){case L:return Ti(e);case E:case y:return new i(+e);case O:return function(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case k:case D:case F:case M:case P:case B:case U:case $:case H:return Ci(e,n);case T:return new i;case C:case w:return new i(e);case _:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new i;case I:return r=e,Pn?Re(Pn.call(r)):{}}}(e,d,c)}}s||(s=new Kn);var f=s.get(e);if(f)return f;s.set(e,a),aa(e)?e.forEach((function(r){a.add(ar(r,t,n,r,e,s))})):ra(e)&&e.forEach((function(r,i){a.set(i,ar(r,t,n,i,e,s))}));var m=h?i:(u?l?no:to:l?ka:Oa)(e);return vt(m||e,(function(r,i){m&&(r=e[i=r]),er(a,i,ar(r,t,n,i,e,s))})),a}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Re(e);r--;){var o=n[r],s=t[o],a=e[o];if(a===i&&!(o in e)||!s(a))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new xe(o);return No((function(){e.apply(i,n)}),t)}function ur(e,t,n,r){var i=-1,o=Ct,s=!0,a=e.length,c=[],l=t.length;if(!a)return c;n&&(t=St(t,Wt(n))),r?(o=Rt,s=!1):t.length>=200&&(o=jt,s=!1,t=new zn(t));e:for(;++i<a;){var u=e[i],h=null==n?u:n(u);if(u=r||0!==u?u:0,s&&h==h){for(var d=l;d--;)if(t[d]===h)continue e;c.push(u)}else o(t,h,r)||c.push(u)}return c}Un.templateSettings={escape:Y,evaluate:X,interpolate:J,variable:"",imports:{_:Un}},Un.prototype=Hn.prototype,Un.prototype.constructor=Un,Gn.prototype=$n(Hn.prototype),Gn.prototype.constructor=Gn,Wn.prototype=$n(Hn.prototype),Wn.prototype.constructor=Wn,Vn.prototype.clear=function(){this.__data__=wn?wn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(wn){var n=t[e];return n===s?i:n}return ke.call(t,e)?t[e]:i},Vn.prototype.has=function(e){var t=this.__data__;return wn?t[e]!==i:ke.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wn&&t===i?s:t,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},jn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},jn.prototype.has=function(e){return tr(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Rn||jn),string:new Vn}},qn.prototype.delete=function(e){var t=ao(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ao(this,e).get(e)},qn.prototype.has=function(e){return ao(this,e).has(e)},qn.prototype.set=function(e,t){var n=ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},zn.prototype.add=zn.prototype.push=function(e){return this.__data__.set(e,s),this},zn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new jn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!Rn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var hr=Li(vr),dr=Li(br,!0);function pr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function fr(e,t,n){for(var r=-1,o=e.length;++r<o;){var s=e[r],a=t(s);if(null!=a&&(c===i?a==a&&!la(a):n(a,c)))var c=a,l=s}return l}function gr(e,t){var n=[];return hr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=mo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?mr(a,t-1,n,r,i):_t(i,a):r||(i[i.length]=a)}return i}var Er=Oi(),yr=Oi(!0);function vr(e,t){return e&&Er(e,t,Oa)}function br(e,t){return e&&yr(e,t,Oa)}function Ar(e,t){return Tt(t,(function(t){return Qs(e[t])}))}function Tr(e,t){for(var n=0,r=(t=Ei(t,e)).length;null!=e&&n<r;)e=e[Bo(t[n++])];return n&&n==r?e:i}function Cr(e,t,n){var r=t(e);return js(e)?r:_t(r,n(e))}function Rr(e){return null==e?e===i?"[object Undefined]":"[object Null]":at&&at in Re(e)?function(e){var t=ke.call(e,at),n=e[at];try{e[at]=i;var r=!0}catch(e){}var o=Me.call(e);return r&&(t?e[at]=n:delete e[at]),o}(e):function(e){return Me.call(e)}(e)}function Sr(e,t){return e>t}function _r(e,t){return null!=e&&ke.call(e,t)}function xr(e,t){return null!=e&&t in Re(e)}function wr(e,t,n){for(var o=n?Rt:Ct,s=e[0].length,a=e.length,c=a,l=r(a),u=1/0,h=[];c--;){var d=e[c];c&&t&&(d=St(d,Wt(t))),u=yn(d.length,u),l[c]=!n&&(t||s>=120&&d.length>=120)?new zn(c&&d):i}d=e[0];var p=-1,f=l[0];e:for(;++p<s&&h.length<u;){var g=d[p],m=t?t(g):g;if(g=n||0!==g?g:0,!(f?jt(f,m):o(h,m,n))){for(c=a;--c;){var E=l[c];if(!(E?jt(E,m):o(e[c],m,n)))continue e}f&&f.push(m),h.push(g)}}return h}function Ir(e,t,n){var r=null==(e=_o(e,t=Ei(t,e)))?e:e[Bo(Jo(t))];return null==r?i:Et(r,e,n)}function Nr(e){return na(e)&&Rr(e)==g}function Lr(e,t,n,r,o){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,o,s){var a=js(e),c=js(t),l=a?m:po(e),u=c?m:po(t),h=(l=l==g?R:l)==R,d=(u=u==g?R:u)==R,p=l==u;if(p&&Ys(e)){if(!Ys(t))return!1;a=!0,h=!1}if(p&&!h)return s||(s=new Kn),a||ua(e)?Zi(e,t,n,r,o,s):function(e,t,n,r,i,o,s){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!o(new Ge(e),new Ge(t)));case E:case y:case C:return Hs(+e,+t);case v:return e.name==t.name&&e.message==t.message;case _:case w:return e==t+"";case T:var a=Zt;case x:var c=1&r;if(a||(a=nn),e.size!=t.size&&!c)return!1;var l=s.get(e);if(l)return l==t;r|=2,s.set(e,t);var u=Zi(a(e),a(t),r,i,o,s);return s.delete(e),u;case I:if(Pn)return Pn.call(e)==Pn.call(t)}return!1}(e,t,l,n,r,o,s);if(!(1&n)){var f=h&&ke.call(e,"__wrapped__"),b=d&&ke.call(t,"__wrapped__");if(f||b){var A=f?e.value():e,S=b?t.value():t;return s||(s=new Kn),o(A,S,n,r,s)}}return!!p&&(s||(s=new Kn),function(e,t,n,r,o,s){var a=1&n,c=to(e),l=c.length;if(l!=to(t).length&&!a)return!1;for(var u=l;u--;){var h=c[u];if(!(a?h in t:ke.call(t,h)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var f=!0;s.set(e,t),s.set(t,e);for(var g=a;++u<l;){var m=e[h=c[u]],E=t[h];if(r)var y=a?r(E,m,h,t,e,s):r(m,E,h,e,t,s);if(!(y===i?m===E||o(m,E,n,r,s):y)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(f=!1)}return s.delete(e),s.delete(t),f}(e,t,n,r,o,s))}(e,t,n,r,Lr,o))}function Or(e,t,n,r){var o=n.length,s=o,a=!r;if(null==e)return!s;for(e=Re(e);o--;){var c=n[o];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var l=(c=n[o])[0],u=e[l],h=c[1];if(a&&c[2]){if(u===i&&!(l in e))return!1}else{var d=new Kn;if(r)var p=r(u,h,l,e,t,d);if(!(p===i?Lr(h,u,3,r,d):p))return!1}}return!0}function kr(e){return!(!ta(e)||(t=e,Fe&&Fe in t))&&(Qs(e)?Ue:ge).test(Uo(e));var t}function Dr(e){return"function"==typeof e?e:null==e?ic:"object"==typeof e?js(e)?Ur(e[0],e[1]):Br(e):pc(e)}function Fr(e){if(!To(e))return mn(e);var t=[];for(var n in Re(e))ke.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Mr(e,t){return e<t}function Pr(e,t){var n=-1,i=zs(e)?r(e.length):[];return hr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Br(e){var t=co(e);return 1==t.length&&t[0][2]?Ro(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function Ur(e,t){return vo(e)&&Co(t)?Ro(Bo(e),t):function(n){var r=xa(n,e);return r===i&&r===t?wa(n,e):Lr(t,r,3)}}function $r(e,t,n,r,o){e!==t&&Er(t,(function(s,a){if(o||(o=new Kn),ta(s))!function(e,t,n,r,o,s,a){var c=wo(e,n),l=wo(t,n),u=a.get(l);if(u)Zn(e,n,u);else{var h=s?s(c,l,n+"",e,t,a):i,d=h===i;if(d){var p=js(l),f=!p&&Ys(l),g=!p&&!f&&ua(l);h=l,p||f||g?js(c)?h=c:Ks(c)?h=xi(c):f?(d=!1,h=Ai(l,!0)):g?(d=!1,h=Ci(l,!0)):h=[]:oa(l)||Vs(l)?(h=c,Vs(c)?h=ya(c):ta(c)&&!Qs(c)||(h=go(l))):d=!1}d&&(a.set(l,h),o(h,l,r,s,a),a.delete(l)),Zn(e,n,h)}}(e,t,a,n,$r,r,o);else{var c=r?r(wo(e,a),s,a+"",e,t,o):i;c===i&&(c=s),Zn(e,a,c)}}),ka)}function Hr(e,t){var n=e.length;if(n)return Eo(t+=t<0?n:0,n)?e[t]:i}function Gr(e,t,n){t=t.length?St(t,(function(e){return js(e)?function(t){return Tr(t,1===e.length?e[0]:e)}:e})):[ic];var r=-1;t=St(t,Wt(so()));var i=Pr(e,(function(e,n,i){var o=St(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;++r<s;){var c=Ri(i[r],o[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Wr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=Tr(e,s);n(a,s)&&Jr(o,Ei(s,e),a)}return o}function Vr(e,t,n,r){var i=r?Dt:kt,o=-1,s=t.length,a=e;for(e===t&&(t=xi(t)),n&&(a=St(e,Wt(n)));++o<s;)for(var c=0,l=t[o],u=n?n(l):l;(c=i(a,u,c,r))>-1;)a!==e&&rt.call(a,c,1),rt.call(e,c,1);return e}function jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Eo(i)?rt.call(e,i,1):li(e,i)}}return e}function qr(e,t){return e+hn(An()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=hn(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Lo(So(e,t,ic),e+"")}function Yr(e){return Xn(Ha(e))}function Xr(e,t){var n=Ha(e);return Do(n,sr(t,0,n.length))}function Jr(e,t,n,r){if(!ta(e))return e;for(var o=-1,s=(t=Ei(t,e)).length,a=s-1,c=e;null!=c&&++o<s;){var l=Bo(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var h=c[l];(u=r?r(h,l,c):i)===i&&(u=ta(h)?h:Eo(t[o+1])?[]:{})}er(c,l,u),c=c[l]}return e}var Qr=In?function(e,t){return In.set(e,t),e}:ic,Zr=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:ic;function ei(e){return Do(Ha(e))}function ti(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var s=r(o);++i<o;)s[i]=e[i+t];return s}function ni(e,t){var n;return hr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!la(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return ii(e,t,ic,n)}function ii(e,t,n,r){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,c=null===t,l=la(t),u=t===i;o<s;){var h=hn((o+s)/2),d=n(e[h]),p=d!==i,f=null===d,g=d==d,m=la(d);if(a)var E=r||g;else E=u?g&&(r||p):c?g&&p&&(r||!f):l?g&&p&&!f&&(r||!m):!f&&!m&&(r?d<=t:d<t);E?o=h+1:s=h}return yn(s,4294967294)}function oi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Hs(a,c)){var c=a;o[i++]=0===s?0:s}}return o}function si(e){return"number"==typeof e?e:la(e)?d:+e}function ai(e){if("string"==typeof e)return e;if(js(e))return St(e,ai)+"";if(la(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,n){var r=-1,i=Ct,o=e.length,s=!0,a=[],c=a;if(n)s=!1,i=Rt;else if(o>=200){var l=t?null:zi(e);if(l)return nn(l);s=!1,i=jt,c=new zn}else c=t?[]:a;e:for(;++r<o;){var u=e[r],h=t?t(u):u;if(u=n||0!==u?u:0,s&&h==h){for(var d=c.length;d--;)if(c[d]===h)continue e;t&&c.push(h),a.push(u)}else i(c,h,n)||(c!==a&&c.push(h),a.push(u))}return a}function li(e,t){return null==(e=_o(e,t=Ei(t,e)))||delete e[Bo(Jo(t))]}function ui(e,t,n,r){return Jr(e,t,n(Tr(e,t)),r)}function hi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ti(e,r?0:o,r?o+1:i):ti(e,r?o+1:0,r?i:o)}function di(e,t){var n=e;return n instanceof Wn&&(n=n.value()),xt(t,(function(e,t){return t.func.apply(t.thisArg,_t([e],t.args))}),n)}function pi(e,t,n){var i=e.length;if(i<2)return i?ci(e[0]):[];for(var o=-1,s=r(i);++o<i;)for(var a=e[o],c=-1;++c<i;)c!=o&&(s[o]=ur(s[o]||a,e[c],t,n));return ci(mr(s,1),t,n)}function fi(e,t,n){for(var r=-1,o=e.length,s=t.length,a={};++r<o;){var c=r<s?t[r]:i;n(a,e[r],c)}return a}function gi(e){return Ks(e)?e:[]}function mi(e){return"function"==typeof e?e:ic}function Ei(e,t){return js(e)?e:vo(e,t)?[e]:Po(va(e))}var yi=Kr;function vi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var bi=ut||function(e){return ot.clearTimeout(e)};function Ai(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Ti(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function Ci(e,t){var n=t?Ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ri(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,s=la(e),a=t!==i,c=null===t,l=t==t,u=la(t);if(!c&&!u&&!s&&e>t||s&&a&&l&&!c&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!s&&!u&&e<t||u&&n&&o&&!r&&!s||c&&n&&o||!a&&o||!l)return-1}return 0}function Si(e,t,n,i){for(var o=-1,s=e.length,a=n.length,c=-1,l=t.length,u=En(s-a,0),h=r(l+u),d=!i;++c<l;)h[c]=t[c];for(;++o<a;)(d||o<s)&&(h[n[o]]=e[o]);for(;u--;)h[c++]=e[o++];return h}function _i(e,t,n,i){for(var o=-1,s=e.length,a=-1,c=n.length,l=-1,u=t.length,h=En(s-c,0),d=r(h+u),p=!i;++o<h;)d[o]=e[o];for(var f=o;++l<u;)d[f+l]=t[l];for(;++a<c;)(p||o<s)&&(d[f+n[a]]=e[o++]);return d}function xi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function wi(e,t,n,r){var o=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var c=t[s],l=r?r(n[c],e[c],c,n,e):i;l===i&&(l=e[c]),o?ir(n,c,l):er(n,c,l)}return n}function Ii(e,t){return function(n,r){var i=js(n)?yt:nr,o=t?t():{};return i(n,e,so(r,2),o)}}function Ni(e){return Kr((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:i,a=o>2?n[2]:i;for(s=e.length>3&&"function"==typeof s?(o--,s):i,a&&yo(n[0],n[1],a)&&(s=o<3?i:s,o=1),t=Re(t);++r<o;){var c=n[r];c&&e(t,c,r,s)}return t}))}function Li(e,t){return function(n,r){if(null==n)return n;if(!zs(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=Re(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function Oi(e){return function(t,n,r){for(var i=-1,o=Re(t),s=r(t),a=s.length;a--;){var c=s[e?a:++i];if(!1===n(o[c],c,o))break}return t}}function ki(e){return function(t){var n=Qt(t=va(t))?sn(t):i,r=n?n[0]:t.charAt(0),o=n?vi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return xt(Qa(Va(t).replace(Ve,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function Mi(e){return function(t,n,r){var o=Re(t);if(!zs(t)){var s=so(n,3);t=Oa(t),n=function(e){return s(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[s?t[a]:a]:i}}function Pi(e){return eo((function(t){var n=t.length,r=n,s=Gn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new xe(o);if(s&&!c&&"wrapper"==io(a))var c=new Gn([],!0)}for(r=c?r:n;++r<n;){var l=io(a=t[r]),u="wrapper"==l?ro(a):i;c=u&&bo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[io(u[0])].apply(c,u[3]):1==a.length&&bo(a)?c[l]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&js(r))return c.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Bi(e,t,n,o,s,a,c,u,h,d){var p=t&l,f=1&t,g=2&t,m=24&t,E=512&t,y=g?i:Fi(e);return function i(){for(var l=arguments.length,v=r(l),b=l;b--;)v[b]=arguments[b];if(m)var A=oo(i),T=Kt(v,A);if(o&&(v=Si(v,o,s,m)),a&&(v=_i(v,a,c,m)),l-=T,m&&l<d){var C=tn(v,A);return ji(e,t,Bi,i.placeholder,n,v,C,u,h,d-l)}var R=f?n:this,S=g?R[e]:e;return l=v.length,u?v=xo(v,u):E&&l>1&&v.reverse(),p&&h<l&&(v.length=h),this&&this!==ot&&this instanceof i&&(S=y||Fi(S)),S.apply(R,v)}}function Ui(e,t){return function(n,r){return function(e,t,n,r){return vr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function $i(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=si(n),r=si(r)),o=e(n,r)}return o}}function Hi(e){return eo((function(t){return t=St(t,Wt(so())),Kr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Gi(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?zr(t,e):t;var r=zr(t,un(e/on(t)));return Qt(t)?vi(sn(r),0,e).join(""):r.slice(0,e)}function Wi(e){return function(t,n,o){return o&&"number"!=typeof o&&yo(t,n,o)&&(n=o=i),t=fa(t),n===i?(n=t,t=0):n=fa(n),function(e,t,n,i){for(var o=-1,s=En(un((t-e)/(n||1)),0),a=r(s);s--;)a[i?s:++o]=e,e+=n;return a}(t,n,o=o===i?t<n?1:-1:fa(o),e)}}function Vi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ea(t),n=Ea(n)),e(t,n)}}function ji(e,t,n,r,o,s,a,l,u,h){var d=8&t;t|=d?c:64,4&(t&=~(d?64:c))||(t&=-4);var p=[e,t,o,d?s:i,d?a:i,d?i:s,d?i:a,l,u,h],f=n.apply(i,p);return bo(e)&&Io(f,p),f.placeholder=r,Oo(f,e,t)}function qi(e){var t=Ce[e];return function(e,n){if(e=Ea(e),(n=null==n?0:yn(ga(n),292))&&fn(e)){var r=(va(e)+"e").split("e");return+((r=(va(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var zi=_n&&1/nn(new _n([,-0]))[1]==u?function(e){return new _n(e)}:lc;function Ki(e){return function(t){var n=po(t);return n==T?Zt(t):n==x?rn(t):function(e,t){return St(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yi(e,t,n,s,u,h,d,p){var f=2&t;if(!f&&"function"!=typeof e)throw new xe(o);var g=s?s.length:0;if(g||(t&=-97,s=u=i),d=d===i?d:En(ga(d),0),p=p===i?p:ga(p),g-=u?u.length:0,64&t){var m=s,E=u;s=u=i}var y=f?i:ro(e),v=[e,t,n,s,u,m,E,h,d,p];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=r==l&&8==n||r==l&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Si(u,c,t[4]):c,e[4]=u?tn(e[3],a):t[4]}(c=t[5])&&(u=e[5],e[5]=u?_i(u,c,t[6]):c,e[6]=u?tn(e[5],a):t[6]),(c=t[7])&&(e[7]=c),r&l&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(v,y),e=v[0],t=v[1],n=v[2],s=v[3],u=v[4],!(p=v[9]=v[9]===i?f?0:e.length:En(v[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)b=8==t||16==t?function(e,t,n){var o=Fi(e);return function s(){for(var a=arguments.length,c=r(a),l=a,u=oo(s);l--;)c[l]=arguments[l];var h=a<3&&c[0]!==u&&c[a-1]!==u?[]:tn(c,u);return(a-=h.length)<n?ji(e,t,Bi,s.placeholder,i,c,h,i,i,n-a):Et(this&&this!==ot&&this instanceof s?o:e,this,c)}}(e,t,p):t!=c&&33!=t||u.length?Bi.apply(i,v):function(e,t,n,i){var o=1&t,s=Fi(e);return function t(){for(var a=-1,c=arguments.length,l=-1,u=i.length,h=r(u+c),d=this&&this!==ot&&this instanceof t?s:e;++l<u;)h[l]=i[l];for(;c--;)h[l++]=arguments[++a];return Et(d,o?n:this,h)}}(e,t,n,s);else var b=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==ot&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Oo((y?Qr:Io)(b,v),e,t)}function Xi(e,t,n,r){return e===i||Hs(e,Ne[n])&&!ke.call(r,n)?t:e}function Ji(e,t,n,r,o,s){return ta(e)&&ta(t)&&(s.set(t,e),$r(e,t,i,Ji,s),s.delete(t)),e}function Qi(e){return oa(e)?i:e}function Zi(e,t,n,r,o,s){var a=1&n,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var u=s.get(e),h=s.get(t);if(u&&h)return u==t&&h==e;var d=-1,p=!0,f=2&n?new zn:i;for(s.set(e,t),s.set(t,e);++d<c;){var g=e[d],m=t[d];if(r)var E=a?r(m,g,d,t,e,s):r(g,m,d,e,t,s);if(E!==i){if(E)continue;p=!1;break}if(f){if(!It(t,(function(e,t){if(!jt(f,t)&&(g===e||o(g,e,n,r,s)))return f.push(t)}))){p=!1;break}}else if(g!==m&&!o(g,m,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function eo(e){return Lo(So(e,i,qo),e+"")}function to(e){return Cr(e,Oa,uo)}function no(e){return Cr(e,ka,ho)}var ro=In?function(e){return In.get(e)}:lc;function io(e){for(var t=e.name+"",n=Nn[t],r=ke.call(Nn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function oo(e){return(ke.call(Un,"placeholder")?Un:e).placeholder}function so(){var e=Un.iteratee||oc;return e=e===oc?Dr:e,arguments.length?e(arguments[0],arguments[1]):e}function ao(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function co(e){for(var t=Oa(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function lo(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return kr(n)?n:i}var uo=dn?function(e){return null==e?[]:(e=Re(e),Tt(dn(e),(function(t){return et.call(e,t)})))}:mc,ho=dn?function(e){for(var t=[];e;)_t(t,uo(e)),e=qe(e);return t}:mc,po=Rr;function fo(e,t,n){for(var r=-1,i=(t=Ei(t,e)).length,o=!1;++r<i;){var s=Bo(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&ea(i)&&Eo(s,i)&&(js(e)||Vs(e))}function go(e){return"function"!=typeof e.constructor||To(e)?{}:$n(qe(e))}function mo(e){return js(e)||Vs(e)||!!(it&&e&&e[it])}function Eo(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&Ee.test(e))&&e>-1&&e%1==0&&e<t}function yo(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?zs(n)&&Eo(t,n.length):"string"==r&&t in n)&&Hs(n[t],e)}function vo(e,t){if(js(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!la(e))||Z.test(e)||!Q.test(e)||null!=t&&e in Re(t)}function bo(e){var t=io(e),n=Un[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=ro(n);return!!r&&e===r[0]}(Cn&&po(new Cn(new ArrayBuffer(1)))!=O||Rn&&po(new Rn)!=T||Sn&&po(Sn.resolve())!=S||_n&&po(new _n)!=x||xn&&po(new xn)!=N)&&(po=function(e){var t=Rr(e),n=t==R?e.constructor:i,r=n?Uo(n):"";if(r)switch(r){case Ln:return O;case On:return T;case kn:return S;case Dn:return x;case Fn:return N}return t});var Ao=Le?Qs:Ec;function To(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Co(e){return e==e&&!ta(e)}function Ro(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in Re(n))}}function So(e,t,n){return t=En(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=En(i.length-t,0),a=r(s);++o<s;)a[o]=i[t+o];o=-1;for(var c=r(t+1);++o<t;)c[o]=i[o];return c[t]=n(a),Et(e,this,c)}}function _o(e,t){return t.length<2?e:Tr(e,ti(t,0,-1))}function xo(e,t){for(var n=e.length,r=yn(t.length,n),o=xi(e);r--;){var s=t[r];e[r]=Eo(s,n)?o[s]:i}return e}function wo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Io=ko(Qr),No=Bt||function(e,t){return ot.setTimeout(e,t)},Lo=ko(Zr);function Oo(e,t,n){var r=t+"";return Lo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return vt(f,(function(n){var r="_."+n[0];t&n[1]&&!Ct(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ae):[]}(r),n)))}function ko(e){var t=0,n=0;return function(){var r=vn(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var s=qr(n,o),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var Fo,Mo,Po=(Fo=Fs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ue,"$1"):n||e)})),t}),(function(e){return 500===Mo.size&&Mo.clear(),e})),Mo=Fo.cache,Fo);function Bo(e){if("string"==typeof e||la(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Uo(e){if(null!=e){try{return Oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $o(e){if(e instanceof Wn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=xi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ho=Kr((function(e,t){return Ks(e)?ur(e,mr(t,1,Ks,!0)):[]})),Go=Kr((function(e,t){var n=Jo(t);return Ks(n)&&(n=i),Ks(e)?ur(e,mr(t,1,Ks,!0),so(n,2)):[]})),Wo=Kr((function(e,t){var n=Jo(t);return Ks(n)&&(n=i),Ks(e)?ur(e,mr(t,1,Ks,!0),i,n):[]}));function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=En(r+i,0)),Ot(e,so(t,3),i)}function jo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=ga(n),o=n<0?En(r+o,0):yn(o,r-1)),Ot(e,so(t,3),o,!0)}function qo(e){return null!=e&&e.length?mr(e,1):[]}function zo(e){return e&&e.length?e[0]:i}var Ko=Kr((function(e){var t=St(e,gi);return t.length&&t[0]===e[0]?wr(t):[]})),Yo=Kr((function(e){var t=Jo(e),n=St(e,gi);return t===Jo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?wr(n,so(t,2)):[]})),Xo=Kr((function(e){var t=Jo(e),n=St(e,gi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?wr(n,i,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Qo=Kr(Zo);function Zo(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var es=eo((function(e,t){var n=null==e?0:e.length,r=or(e,t);return jr(e,St(t,(function(e){return Eo(e,n)?+e:e})).sort(Ri)),r}));function ts(e){return null==e?e:Tn.call(e)}var ns=Kr((function(e){return ci(mr(e,1,Ks,!0))})),rs=Kr((function(e){var t=Jo(e);return Ks(t)&&(t=i),ci(mr(e,1,Ks,!0),so(t,2))})),is=Kr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,ci(mr(e,1,Ks,!0),i,t)}));function os(e){if(!e||!e.length)return[];var t=0;return e=Tt(e,(function(e){if(Ks(e))return t=En(e.length,t),!0})),Ht(t,(function(t){return St(e,Pt(t))}))}function ss(e,t){if(!e||!e.length)return[];var n=os(e);return null==t?n:St(n,(function(e){return Et(t,i,e)}))}var as=Kr((function(e,t){return Ks(e)?ur(e,t):[]})),cs=Kr((function(e){return pi(Tt(e,Ks))})),ls=Kr((function(e){var t=Jo(e);return Ks(t)&&(t=i),pi(Tt(e,Ks),so(t,2))})),us=Kr((function(e){var t=Jo(e);return t="function"==typeof t?t:i,pi(Tt(e,Ks),i,t)})),hs=Kr(os),ds=Kr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ss(e,n)}));function ps(e){var t=Un(e);return t.__chain__=!0,t}function fs(e,t){return t(e)}var gs=eo((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&Eo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fs,args:[o],thisArg:i}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)})),ms=Ii((function(e,t,n){ke.call(e,n)?++e[n]:ir(e,n,1)})),Es=Mi(Vo),ys=Mi(jo);function vs(e,t){return(js(e)?vt:hr)(e,so(t,3))}function bs(e,t){return(js(e)?bt:dr)(e,so(t,3))}var As=Ii((function(e,t,n){ke.call(e,n)?e[n].push(t):ir(e,n,[t])})),Ts=Kr((function(e,t,n){var i=-1,o="function"==typeof t,s=zs(e)?r(e.length):[];return hr(e,(function(e){s[++i]=o?Et(t,e,n):Ir(e,t,n)})),s})),Cs=Ii((function(e,t,n){ir(e,n,t)}));function Rs(e,t){return(js(e)?St:Pr)(e,so(t,3))}var Ss=Ii((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),_s=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yo(e,t[0],t[1])?t=[]:n>2&&yo(t[0],t[1],t[2])&&(t=[t[0]]),Gr(e,mr(t,1),[])})),xs=Nt||function(){return ot.Date.now()};function ws(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Yi(e,l,i,i,i,i,t)}function Is(e,t){var n;if("function"!=typeof t)throw new xe(o);return e=ga(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ns=Kr((function(e,t,n){var r=1;if(n.length){var i=tn(n,oo(Ns));r|=c}return Yi(e,r,t,n,i)})),Ls=Kr((function(e,t,n){var r=3;if(n.length){var i=tn(n,oo(Ls));r|=c}return Yi(t,r,e,n,i)}));function Os(e,t,n){var r,s,a,c,l,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new xe(o);function g(t){var n=r,o=s;return r=s=i,h=t,c=e.apply(o,n)}function m(e){return h=e,l=No(y,t),d?g(e):c}function E(e){var n=e-u;return u===i||n>=t||n<0||p&&e-h>=a}function y(){var e=xs();if(E(e))return v(e);l=No(y,function(e){var n=t-(e-u);return p?yn(n,a-(e-h)):n}(e))}function v(e){return l=i,f&&r?g(e):(r=s=i,c)}function b(){var e=xs(),n=E(e);if(r=arguments,s=this,u=e,n){if(l===i)return m(u);if(p)return bi(l),l=No(y,t),g(u)}return l===i&&(l=No(y,t)),c}return t=Ea(t)||0,ta(n)&&(d=!!n.leading,a=(p="maxWait"in n)?En(Ea(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){l!==i&&bi(l),h=0,r=u=s=l=i},b.flush=function(){return l===i?c:v(xs())},b}var ks=Kr((function(e,t){return lr(e,1,t)})),Ds=Kr((function(e,t,n){return lr(e,Ea(t)||0,n)}));function Fs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Fs.Cache||qn),n}function Ms(e){if("function"!=typeof e)throw new xe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Fs.Cache=qn;var Ps=yi((function(e,t){var n=(t=1==t.length&&js(t[0])?St(t[0],Wt(so())):St(mr(t,1),Wt(so()))).length;return Kr((function(r){for(var i=-1,o=yn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Et(e,this,r)}))})),Bs=Kr((function(e,t){var n=tn(t,oo(Bs));return Yi(e,c,i,t,n)})),Us=Kr((function(e,t){var n=tn(t,oo(Us));return Yi(e,64,i,t,n)})),$s=eo((function(e,t){return Yi(e,256,i,i,i,t)}));function Hs(e,t){return e===t||e!=e&&t!=t}var Gs=Vi(Sr),Ws=Vi((function(e,t){return e>=t})),Vs=Nr(function(){return arguments}())?Nr:function(e){return na(e)&&ke.call(e,"callee")&&!et.call(e,"callee")},js=r.isArray,qs=ht?Wt(ht):function(e){return na(e)&&Rr(e)==L};function zs(e){return null!=e&&ea(e.length)&&!Qs(e)}function Ks(e){return na(e)&&zs(e)}var Ys=pn||Ec,Xs=dt?Wt(dt):function(e){return na(e)&&Rr(e)==y};function Js(e){if(!na(e))return!1;var t=Rr(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oa(e)}function Qs(e){if(!ta(e))return!1;var t=Rr(e);return t==b||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Zs(e){return"number"==typeof e&&e==ga(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=pt?Wt(pt):function(e){return na(e)&&po(e)==T};function ia(e){return"number"==typeof e||na(e)&&Rr(e)==C}function oa(e){if(!na(e)||Rr(e)!=R)return!1;var t=qe(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Pe}var sa=ft?Wt(ft):function(e){return na(e)&&Rr(e)==_},aa=gt?Wt(gt):function(e){return na(e)&&po(e)==x};function ca(e){return"string"==typeof e||!js(e)&&na(e)&&Rr(e)==w}function la(e){return"symbol"==typeof e||na(e)&&Rr(e)==I}var ua=mt?Wt(mt):function(e){return na(e)&&ea(e.length)&&!!Qe[Rr(e)]},ha=Vi(Mr),da=Vi((function(e,t){return e<=t}));function pa(e){if(!e)return[];if(zs(e))return ca(e)?sn(e):xi(e);if(st&&e[st])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[st]());var t=po(e);return(t==T?Zt:t==x?nn:Ha)(e)}function fa(e){return e?(e=Ea(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=fa(e),n=t%1;return t==t?n?t-n:t:0}function ma(e){return e?sr(ga(e),0,p):0}function Ea(e){if("number"==typeof e)return e;if(la(e))return d;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gt(e);var n=fe.test(e);return n||me.test(e)?nt(e.slice(2),n?2:8):pe.test(e)?d:+e}function ya(e){return wi(e,ka(e))}function va(e){return null==e?"":ai(e)}var ba=Ni((function(e,t){if(To(t)||zs(t))wi(t,Oa(t),e);else for(var n in t)ke.call(t,n)&&er(e,n,t[n])})),Aa=Ni((function(e,t){wi(t,ka(t),e)})),Ta=Ni((function(e,t,n,r){wi(t,ka(t),e,r)})),Ca=Ni((function(e,t,n,r){wi(t,Oa(t),e,r)})),Ra=eo(or),Sa=Kr((function(e,t){e=Re(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&yo(t[0],t[1],o)&&(r=1);++n<r;)for(var s=t[n],a=ka(s),c=-1,l=a.length;++c<l;){var u=a[c],h=e[u];(h===i||Hs(h,Ne[u])&&!ke.call(e,u))&&(e[u]=s[u])}return e})),_a=Kr((function(e){return e.push(i,Ji),Et(Fa,i,e)}));function xa(e,t,n){var r=null==e?i:Tr(e,t);return r===i?n:r}function wa(e,t){return null!=e&&fo(e,t,xr)}var Ia=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),tc(ic)),Na=Ui((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),ke.call(e,t)?e[t].push(n):e[t]=[n]}),so),La=Kr(Ir);function Oa(e){return zs(e)?Yn(e):Fr(e)}function ka(e){return zs(e)?Yn(e,!0):function(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Re(e))t.push(n);return t}(e);var t=To(e),n=[];for(var r in e)("constructor"!=r||!t&&ke.call(e,r))&&n.push(r);return n}(e)}var Da=Ni((function(e,t,n){$r(e,t,n)})),Fa=Ni((function(e,t,n,r){$r(e,t,n,r)})),Ma=eo((function(e,t){var n={};if(null==e)return n;var r=!1;t=St(t,(function(t){return t=Ei(t,e),r||(r=t.length>1),t})),wi(e,no(e),n),r&&(n=ar(n,7,Qi));for(var i=t.length;i--;)li(n,t[i]);return n})),Pa=eo((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return wa(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=St(no(e),(function(e){return[e]}));return t=so(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Ua=Ki(Oa),$a=Ki(ka);function Ha(e){return null==e?[]:Vt(e,Oa(e))}var Ga=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Wa(t):t)}));function Wa(e){return Ja(va(e).toLowerCase())}function Va(e){return(e=va(e))&&e.replace(ye,Yt).replace(je,"")}var ja=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qa=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),za=ki("toLowerCase"),Ka=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ya=Di((function(e,t,n){return e+(n?" ":"")+Ja(t)})),Xa=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ja=ki("toUpperCase");function Qa(e,t,n){return e=va(e),(t=n?i:t)===i?function(e){return Ye.test(e)}(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Za=Kr((function(e,t){try{return Et(e,i,t)}catch(e){return Js(e)?e:new Ae(e)}})),ec=eo((function(e,t){return vt(t,(function(t){t=Bo(t),ir(e,t,Ns(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Pi(),rc=Pi(!0);function ic(e){return e}function oc(e){return Dr("function"==typeof e?e:ar(e,1))}var sc=Kr((function(e,t){return function(n){return Ir(n,e,t)}})),ac=Kr((function(e,t){return function(n){return Ir(e,n,t)}}));function cc(e,t,n){var r=Oa(t),i=Ar(t,r);null!=n||ta(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Ar(t,Oa(t)));var o=!(ta(n)&&"chain"in n&&!n.chain),s=Qs(e);return vt(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=xi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,_t([this.value()],arguments))})})),e}function lc(){}var uc=Hi(St),hc=Hi(At),dc=Hi(It);function pc(e){return vo(e)?Pt(Bo(e)):function(e){return function(t){return Tr(t,e)}}(e)}var fc=Wi(),gc=Wi(!0);function mc(){return[]}function Ec(){return!1}var yc,vc=$i((function(e,t){return e+t}),0),bc=qi("ceil"),Ac=$i((function(e,t){return e/t}),1),Tc=qi("floor"),Cc=$i((function(e,t){return e*t}),1),Rc=qi("round"),Sc=$i((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new xe(o);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=ws,Un.assign=ba,Un.assignIn=Aa,Un.assignInWith=Ta,Un.assignWith=Ca,Un.at=Ra,Un.before=Is,Un.bind=Ns,Un.bindAll=ec,Un.bindKey=Ls,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return js(e)?e:[e]},Un.chain=ps,Un.chunk=function(e,t,n){t=(n?yo(e,t,n):t===i)?1:En(ga(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var s=0,a=0,c=r(un(o/t));s<o;)c[a++]=ti(e,s,s+=t);return c},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return _t(js(n)?xi(n):[n],mr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=so();return e=t?St(e,(function(e){if("function"!=typeof e[1])throw new xe(o);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Et(i[0],this,n))return Et(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Oa(e);return function(n){return cr(n,e,t)}}(ar(e,1))},Un.constant=tc,Un.countBy=ms,Un.create=function(e,t){var n=$n(e);return null==t?n:rr(n,t)},Un.curry=function e(t,n,r){var o=Yi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.curryRight=function e(t,n,r){var o=Yi(t,16,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.debounce=Os,Un.defaults=Sa,Un.defaultsDeep=_a,Un.defer=ks,Un.delay=Ds,Un.difference=Ho,Un.differenceBy=Go,Un.differenceWith=Wo,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:ga(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:ga(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?hi(e,so(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?hi(e,so(t,3),!0):[]},Un.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&yo(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=ga(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:ga(r))<0&&(r+=o),r=n>r?0:ma(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(js(e)?Tt:gr)(e,so(t,3))},Un.flatMap=function(e,t){return mr(Rs(e,t),1)},Un.flatMapDeep=function(e,t){return mr(Rs(e,t),u)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:ga(n),mr(Rs(e,t),n)},Un.flatten=qo,Un.flattenDeep=function(e){return null!=e&&e.length?mr(e,u):[]},Un.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===i?1:ga(t)):[]},Un.flip=function(e){return Yi(e,512)},Un.flow=nc,Un.flowRight=rc,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Ar(e,Oa(e))},Un.functionsIn=function(e){return null==e?[]:Ar(e,ka(e))},Un.groupBy=As,Un.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},Un.intersection=Ko,Un.intersectionBy=Yo,Un.intersectionWith=Xo,Un.invert=Ia,Un.invertBy=Na,Un.invokeMap=Ts,Un.iteratee=oc,Un.keyBy=Cs,Un.keys=Oa,Un.keysIn=ka,Un.map=Rs,Un.mapKeys=function(e,t){var n={};return t=so(t,3),vr(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=so(t,3),vr(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},Un.matches=function(e){return Br(ar(e,1))},Un.matchesProperty=function(e,t){return Ur(e,ar(t,1))},Un.memoize=Fs,Un.merge=Da,Un.mergeWith=Fa,Un.method=sc,Un.methodOf=ac,Un.mixin=cc,Un.negate=Ms,Un.nthArg=function(e){return e=ga(e),Kr((function(t){return Hr(t,e)}))},Un.omit=Ma,Un.omitBy=function(e,t){return Ba(e,Ms(so(t)))},Un.once=function(e){return Is(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(js(t)||(t=null==t?[]:[t]),js(n=r?i:n)||(n=null==n?[]:[n]),Gr(e,t,n))},Un.over=uc,Un.overArgs=Ps,Un.overEvery=hc,Un.overSome=dc,Un.partial=Bs,Un.partialRight=Us,Un.partition=Ss,Un.pick=Pa,Un.pickBy=Ba,Un.property=pc,Un.propertyOf=function(e){return function(t){return null==e?i:Tr(e,t)}},Un.pull=Qo,Un.pullAll=Zo,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,so(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e},Un.pullAt=es,Un.range=fc,Un.rangeRight=gc,Un.rearg=$s,Un.reject=function(e,t){return(js(e)?Tt:gr)(e,Ms(so(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=so(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return jr(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new xe(o);return Kr(e,t=t===i?t:ga(t))},Un.reverse=ts,Un.sampleSize=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ga(t),(js(e)?Jn:Xr)(e,t)},Un.set=function(e,t,n){return null==e?e:Jr(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Jr(e,t,n,r)},Un.shuffle=function(e){return(js(e)?Qn:ei)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yo(e,t,n)?(t=0,n=r):(t=null==t?0:ga(t),n=n===i?r:ga(n)),ti(e,t,n)):[]},Un.sortBy=_s,Un.sortedUniq=function(e){return e&&e.length?oi(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?oi(e,so(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&yo(e,t,n)&&(t=n=i),(n=n===i?p:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=ai(t))&&Qt(e)?vi(sn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new xe(o);return t=null==t?0:En(ga(t),0),Kr((function(n){var r=n[t],i=vi(n,0,t);return r&&_t(i,r),Et(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:ga(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:ga(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?hi(e,so(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?hi(e,so(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new xe(o);return ta(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Os(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=fs,Un.toArray=pa,Un.toPairs=Ua,Un.toPairsIn=$a,Un.toPath=function(e){return js(e)?St(e,Bo):la(e)?[e]:xi(Po(va(e)))},Un.toPlainObject=ya,Un.transform=function(e,t,n){var r=js(e),i=r||Ys(e)||ua(e);if(t=so(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ta(e)&&Qs(o)?$n(qe(e)):{}}return(i?vt:vr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return ws(e,1)},Un.union=ns,Un.unionBy=rs,Un.unionWith=is,Un.uniq=function(e){return e&&e.length?ci(e):[]},Un.uniqBy=function(e,t){return e&&e.length?ci(e,so(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ci(e,i,t):[]},Un.unset=function(e,t){return null==e||li(e,t)},Un.unzip=os,Un.unzipWith=ss,Un.update=function(e,t,n){return null==e?e:ui(e,t,mi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ui(e,t,mi(n),r)},Un.values=Ha,Un.valuesIn=function(e){return null==e?[]:Vt(e,ka(e))},Un.without=as,Un.words=Qa,Un.wrap=function(e,t){return Bs(mi(t),e)},Un.xor=cs,Un.xorBy=ls,Un.xorWith=us,Un.zip=hs,Un.zipObject=function(e,t){return fi(e||[],t||[],er)},Un.zipObjectDeep=function(e,t){return fi(e||[],t||[],Jr)},Un.zipWith=ds,Un.entries=Ua,Un.entriesIn=$a,Un.extend=Aa,Un.extendWith=Ta,cc(Un,Un),Un.add=vc,Un.attempt=Za,Un.camelCase=Ga,Un.capitalize=Wa,Un.ceil=bc,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Ea(n))==n?n:0),t!==i&&(t=(t=Ea(t))==t?t:0),sr(Ea(e),t,n)},Un.clone=function(e){return ar(e,4)},Un.cloneDeep=function(e){return ar(e,5)},Un.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||cr(e,t,Oa(t))},Un.deburr=Va,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=Ac,Un.endsWith=function(e,t,n){e=va(e),t=ai(t);var r=e.length,o=n=n===i?r:sr(ga(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=Hs,Un.escape=function(e){return(e=va(e))&&K.test(e)?e.replace(q,Xt):e},Un.escapeRegExp=function(e){return(e=va(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=js(e)?At:pr;return n&&yo(e,t,n)&&(t=i),r(e,so(t,3))},Un.find=Es,Un.findIndex=Vo,Un.findKey=function(e,t){return Lt(e,so(t,3),vr)},Un.findLast=ys,Un.findLastIndex=jo,Un.findLastKey=function(e,t){return Lt(e,so(t,3),br)},Un.floor=Tc,Un.forEach=vs,Un.forEachRight=bs,Un.forIn=function(e,t){return null==e?e:Er(e,so(t,3),ka)},Un.forInRight=function(e,t){return null==e?e:yr(e,so(t,3),ka)},Un.forOwn=function(e,t){return e&&vr(e,so(t,3))},Un.forOwnRight=function(e,t){return e&&br(e,so(t,3))},Un.get=xa,Un.gt=Gs,Un.gte=Ws,Un.has=function(e,t){return null!=e&&fo(e,t,_r)},Un.hasIn=wa,Un.head=zo,Un.identity=ic,Un.includes=function(e,t,n,r){e=zs(e)?e:Ha(e),n=n&&!r?ga(n):0;var i=e.length;return n<0&&(n=En(i+n,0)),ca(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&kt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ga(n);return i<0&&(i=En(r+i,0)),kt(e,t,i)},Un.inRange=function(e,t,n){return t=fa(t),n===i?(n=t,t=0):n=fa(n),function(e,t,n){return e>=yn(t,n)&&e<En(t,n)}(e=Ea(e),t,n)},Un.invoke=La,Un.isArguments=Vs,Un.isArray=js,Un.isArrayBuffer=qs,Un.isArrayLike=zs,Un.isArrayLikeObject=Ks,Un.isBoolean=function(e){return!0===e||!1===e||na(e)&&Rr(e)==E},Un.isBuffer=Ys,Un.isDate=Xs,Un.isElement=function(e){return na(e)&&1===e.nodeType&&!oa(e)},Un.isEmpty=function(e){if(null==e)return!0;if(zs(e)&&(js(e)||"string"==typeof e||"function"==typeof e.splice||Ys(e)||ua(e)||Vs(e)))return!e.length;var t=po(e);if(t==T||t==x)return!e.size;if(To(e))return!Fr(e).length;for(var n in e)if(ke.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Lr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Lr(e,t,i,n):!!r},Un.isError=Js,Un.isFinite=function(e){return"number"==typeof e&&fn(e)},Un.isFunction=Qs,Un.isInteger=Zs,Un.isLength=ea,Un.isMap=ra,Un.isMatch=function(e,t){return e===t||Or(e,t,co(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,Or(e,t,co(t),n)},Un.isNaN=function(e){return ia(e)&&e!=+e},Un.isNative=function(e){if(Ao(e))throw new Ae("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=ia,Un.isObject=ta,Un.isObjectLike=na,Un.isPlainObject=oa,Un.isRegExp=sa,Un.isSafeInteger=function(e){return Zs(e)&&e>=-9007199254740991&&e<=h},Un.isSet=aa,Un.isString=ca,Un.isSymbol=la,Un.isTypedArray=ua,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return na(e)&&po(e)==N},Un.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==Rr(e)},Un.join=function(e,t){return null==e?"":gn.call(e,t)},Un.kebabCase=ja,Un.last=Jo,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=ga(n))<0?En(r+o,0):yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ot(e,Ft,o,!0)},Un.lowerCase=qa,Un.lowerFirst=za,Un.lt=ha,Un.lte=da,Un.max=function(e){return e&&e.length?fr(e,ic,Sr):i},Un.maxBy=function(e,t){return e&&e.length?fr(e,so(t,2),Sr):i},Un.mean=function(e){return Mt(e,ic)},Un.meanBy=function(e,t){return Mt(e,so(t,2))},Un.min=function(e){return e&&e.length?fr(e,ic,Mr):i},Un.minBy=function(e,t){return e&&e.length?fr(e,so(t,2),Mr):i},Un.stubArray=mc,Un.stubFalse=Ec,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Cc,Un.nth=function(e,t){return e&&e.length?Hr(e,ga(t)):i},Un.noConflict=function(){return ot._===this&&(ot._=Be),this},Un.noop=lc,Un.now=xs,Un.pad=function(e,t,n){e=va(e);var r=(t=ga(t))?on(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Gi(hn(i),n)+e+Gi(un(i),n)},Un.padEnd=function(e,t,n){e=va(e);var r=(t=ga(t))?on(e):0;return t&&r<t?e+Gi(t-r,n):e},Un.padStart=function(e,t,n){e=va(e);var r=(t=ga(t))?on(e):0;return t&&r<t?Gi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(va(e).replace(re,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yo(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fa(e),t===i?(t=e,e=0):t=fa(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=An();return yn(e+o*(t-e+tt("1e-"+((o+"").length-1))),t)}return qr(e,t)},Un.reduce=function(e,t,n){var r=js(e)?xt:Ut,i=arguments.length<3;return r(e,so(t,4),n,i,hr)},Un.reduceRight=function(e,t,n){var r=js(e)?wt:Ut,i=arguments.length<3;return r(e,so(t,4),n,i,dr)},Un.repeat=function(e,t,n){return t=(n?yo(e,t,n):t===i)?1:ga(t),zr(va(e),t)},Un.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=Ei(t,e)).length;for(o||(o=1,e=i);++r<o;){var s=null==e?i:e[Bo(t[r])];s===i&&(r=o,s=n),e=Qs(s)?s.call(e):s}return e},Un.round=Rc,Un.runInContext=e,Un.sample=function(e){return(js(e)?Xn:Yr)(e)},Un.size=function(e){if(null==e)return 0;if(zs(e))return ca(e)?on(e):e.length;var t=po(e);return t==T||t==x?e.size:Fr(e).length},Un.snakeCase=Ka,Un.some=function(e,t,n){var r=js(e)?It:ni;return n&&yo(e,t,n)&&(t=i),r(e,so(t,3))},Un.sortedIndex=function(e,t){return ri(e,t)},Un.sortedIndexBy=function(e,t,n){return ii(e,t,so(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&Hs(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ri(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return ii(e,t,so(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(Hs(e[n],t))return n}return-1},Un.startCase=Ya,Un.startsWith=function(e,t,n){return e=va(e),n=null==n?0:sr(ga(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},Un.subtract=Sc,Un.sum=function(e){return e&&e.length?$t(e,ic):0},Un.sumBy=function(e,t){return e&&e.length?$t(e,so(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&yo(e,t,n)&&(t=i),e=va(e),t=Ta({},t,r,Xi);var o,s,a=Ta({},t.imports,r.imports,Xi),c=Oa(a),l=Vt(a,c),u=0,h=t.interpolate||ve,d="__p += '",p=Se((t.escape||ve).source+"|"+h.source+"|"+(h===J?he:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),f="//# sourceURL="+(ke.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Je+"]")+"\n";e.replace(p,(function(t,n,r,i,a,c){return r||(r=i),d+=e.slice(u,c).replace(be,Jt),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),a&&(s=!0,d+="';\n"+a+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),d+="';\n";var g=ke.call(t,"variable")&&t.variable;if(g){if(le.test(g))throw new Ae("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(s?d.replace(G,""):d).replace(W,"$1").replace(V,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Za((function(){return Te(c,f+"return "+d).apply(i,l)}));if(m.source=d,Js(m))throw m;return m},Un.times=function(e,t){if((e=ga(e))<1||e>h)return[];var n=p,r=yn(e,p);t=so(t),e-=p;for(var i=Ht(r,t);++n<e;)t(n);return i},Un.toFinite=fa,Un.toInteger=ga,Un.toLength=ma,Un.toLower=function(e){return va(e).toLowerCase()},Un.toNumber=Ea,Un.toSafeInteger=function(e){return e?sr(ga(e),-9007199254740991,h):0===e?e:0},Un.toString=va,Un.toUpper=function(e){return va(e).toUpperCase()},Un.trim=function(e,t,n){if((e=va(e))&&(n||t===i))return Gt(e);if(!e||!(t=ai(t)))return e;var r=sn(e),o=sn(t);return vi(r,qt(r,o),zt(r,o)+1).join("")},Un.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===i))return e.slice(0,an(e)+1);if(!e||!(t=ai(t)))return e;var r=sn(e);return vi(r,0,zt(r,sn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=va(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=sn(e);return vi(r,qt(r,sn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(ta(t)){var o="separator"in t?t.separator:o;n="length"in t?ga(t.length):n,r="omission"in t?ai(t.omission):r}var s=(e=va(e)).length;if(Qt(e)){var a=sn(e);s=a.length}if(n>=s)return e;var c=n-on(r);if(c<1)return r;var l=a?vi(a,0,c).join(""):e.slice(0,c);if(o===i)return l+r;if(a&&(c+=l.length-c),sa(o)){if(e.slice(c).search(o)){var u,h=l;for(o.global||(o=Se(o.source,va(de.exec(o))+"g")),o.lastIndex=0;u=o.exec(h);)var d=u.index;l=l.slice(0,d===i?c:d)}}else if(e.indexOf(ai(o),c)!=c){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},Un.unescape=function(e){return(e=va(e))&&z.test(e)?e.replace(j,cn):e},Un.uniqueId=function(e){var t=++De;return va(e)+t},Un.upperCase=Xa,Un.upperFirst=Ja,Un.each=vs,Un.eachRight=bs,Un.first=zo,cc(Un,(yc={},vr(Un,(function(e,t){ke.call(Un.prototype,t)||(yc[t]=e)})),yc),{chain:!1}),Un.VERSION="4.17.21",vt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),vt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===i?1:En(ga(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:so(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),vt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),vt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ic)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Ms(so(e)))},Wn.prototype.slice=function(e,t){e=ga(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ga(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(p)},vr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Un[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);o&&(Un.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Wn,l=a[0],u=c||js(t),h=function(e){var t=o.apply(Un,_t([e],a));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,p=!!this.__actions__.length,f=s&&!d,g=c&&!p;if(!s&&u){t=g?t:new Wn(this);var m=e.apply(t,a);return m.__actions__.push({func:fs,args:[h],thisArg:i}),new Gn(m,d)}return f&&g?e.apply(this,a):(m=this.thru(h),f?r?m.value()[0]:m.value():m)})})),vt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=we[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(js(i)?i:[],e)}return this[n]((function(n){return t.apply(js(n)?n:[],e)}))}})),vr(Wn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";ke.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}})),Nn[Bi(i,2).name]=[{name:"wrapper",func:i}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=xi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xi(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=js(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=yn(t,e+s);break;case"takeRight":e=En(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,c=a-s,l=r?a:s-1,u=this.__iteratees__,h=u.length,d=0,p=yn(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return di(e,this.__actions__);var f=[];e:for(;c--&&d<p;){for(var g=-1,m=e[l+=t];++g<h;){var E=u[g],y=E.iteratee,v=E.type,b=y(m);if(2==v)m=b;else if(!b){if(1==v)continue e;break e}}f[d++]=m}return f},Un.prototype.at=gs,Un.prototype.chain=function(){return ps(this)},Un.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=$o(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:fs,args:[ts],thisArg:i}),new Gn(t,this.__chain__)}return this.thru(ts)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,st&&(Un.prototype[st]=function(){return this}),Un}();ot._=ln,(r=function(){return ln}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},4663:(e,t,n)=>{"use strict";var r=String.prototype.replace,i=/%20/g,o=n(3304),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},5907:(e,t,n)=>{"use strict";var r=n(38),i=n(6186),o=n(4663);e.exports={formats:o,parse:i,stringify:r}},6186:(e,t,n)=>{"use strict";var r=n(3304),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(o),l=a?o.slice(0,a.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var h=0;n.depth>0&&null!==(a=s.exec(o))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+o.slice(a.index)+"]"),function(e,t,n,r){for(var i=r?t:c(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[])[u]=i:s[l]=i:s={0:i}}i=s}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,h),p=-1,f=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?f="utf-8":"utf8=%26%2310003%3B"===d[n]&&(f="iso-8859-1"),p=n,n=d.length);for(n=0;n<d.length;++n)if(n!==p){var g,m,E=d[n],y=E.indexOf("]="),v=-1===y?E.indexOf("="):y+1;-1===v?(g=t.decoder(E,s.decoder,f,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(E.slice(0,v),s.decoder,f,"key"),m=r.maybeMap(c(E.slice(v+1),t),(function(e){return t.decoder(e,s.decoder,f,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===f&&(m=a(m)),E.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(l,g)?l[g]=r.combine(l[g],m):l[g]=m}return l}(e,n):e,h=n.plainObjects?Object.create(null):{},d=Object.keys(u),p=0;p<d.length;++p){var f=d[p],g=l(f,u[f],n,"string"==typeof e);h=r.merge(h,g,n)}return r.compact(h)}},38:(e,t,n)=>{"use strict";var r=n(3304),i=n(4663),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,a(t)?t:[t])},u=Date.prototype.toISOString,h=i.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,i,o,s,c,u,h,p,f,g,m,E){var y,v=t;if("function"==typeof u?v=u(n,v):v instanceof Date?v=f(v):"comma"===i&&a(v)&&(v=r.maybeMap(v,(function(e){return e instanceof Date?f(e):e})).join(",")),null===v){if(o)return c&&!m?c(n,d.encoder,E,"key"):n;v=""}if("string"==typeof(y=v)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||r.isBuffer(v))return c?[g(m?n:c(n,d.encoder,E,"key"))+"="+g(c(v,d.encoder,E,"value"))]:[g(n)+"="+g(String(v))];var b,A=[];if(void 0===v)return A;if(a(u))b=u;else{var T=Object.keys(v);b=h?T.sort(h):T}for(var C=0;C<b.length;++C){var R=b[C],S=v[R];if(!s||null!==S){var _=a(v)?"function"==typeof i?i(n,R):n:n+(p?"."+R:"["+R+"]");l(A,e(S,_,i,o,s,c,u,h,p,f,g,m,E))}}return A};e.exports=function(e,t){var n,r=e,c=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],s=d.filter;return("function"==typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:s,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof c.filter?r=(0,c.filter)("",r):a(c.filter)&&(n=c.filter);var u,h=[];if("object"!=typeof r||null===r)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=s[u];n||(n=Object.keys(r)),c.sort&&n.sort(c.sort);for(var g=0;g<n.length;++g){var m=n[g];c.skipNulls&&null===r[m]||l(h,p(r[m],m,f,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.formatter,c.encodeValuesOnly,c.charset))}var E=h.join(c.delimiter),y=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),E.length>0?y+E:""}},3304:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],s=o.obj[o.prop],a=Object.keys(s),c=0;c<a.length;++c){var l=a[c],u=s[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:s,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var i=[],o=0;o<r.length;++o)void 0!==r[o]&&i.push(r[o]);t.obj[t.prop]=i}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var i=e;if("symbol"==typeof e?i=Symbol.prototype.toString.call(e):"string"!=typeof e&&(i=String(e)),"iso-8859-1"===n)return escape(i).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",s=0;s<i.length;++s){var a=i.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=i.charAt(s):a<128?o+=r[a]:a<2048?o+=r[192|a>>6]+r[128|63&a]:a<55296||a>=57344?o+=r[224|a>>12]+r[128|a>>6&63]+r[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&i.charCodeAt(s)),o+=r[240|a>>18]+r[128|a>>12&63]+r[128|a>>6&63]+r[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(t(e[i]));return r}return t(e)},merge:function e(r,o,s){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(s&&(s.plainObjects||s.allowPrototypes)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var a=r;return n(r)&&!n(o)&&(a=i(r,s)),n(r)&&n(o)?(o.forEach((function(n,i){if(t.call(r,i)){var o=r[i];o&&"object"==typeof o&&n&&"object"==typeof n?r[i]=e(o,n,s):r.push(n)}else r[i]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return t.call(n,r)?n[r]=e(n[r],i,s):n[r]=i,n}),a)}}},2390:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),s=new w(r||[]);return o._invoke=function(e,t,n){var r=h;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===g)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?f:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,s),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",p="executing",f="completed",g={};function m(){}function E(){}function y(){}var v={};v[o]=function(){return this};var b=Object.getPrototypeOf,A=b&&b(b(I([])));A&&A!==n&&r.call(A,o)&&(v=A);var T=y.prototype=m.prototype=Object.create(v);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function R(e,t){function n(i,o,s,a){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,a)}),(function(e){n("throw",e,s,a)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,a)}))}a(c.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function I(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,s=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return s.next=s}}return{next:N}}function N(){return{value:t,done:!0}}return E.prototype=T.constructor=y,y.constructor=E,E.displayName=c(y,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,a,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},C(R.prototype),R.prototype[s]=function(){return this},e.AsyncIterator=R,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var s=new R(l(t,n,r,i),o);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},C(T),c(T,a,"Generator"),T[o]=function(){return this},T.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),l=r.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},5701:(e,t,n)=>{"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function s(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function a(e,t){for(var n={},r=[],i=0;i<e.length;i++){var a=e[i],c=t.base?a[0]+t.base:a[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var h=s(u),d={css:a[1],media:a[2],sourceMap:a[3]};-1!==h?(o[h].references++,o[h].updater(d)):o.push({identifier:u,updater:g(d,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var s=i(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function h(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var o=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function d(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,f=0;function g(e,t){var n,r,i;if(t.singleton){var o=f++;n=p||(p=c(t)),r=h.bind(null,n,o,!1),i=h.bind(null,n,o,!0)}else n=c(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=a(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);o[i].references--}for(var c=a(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=c}}}}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var o=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=n,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>({22:"generic-ref",121:"pig-ref",138:"impala-ref",235:"phoenix-parser",284:"calcite-parser",294:"impala-parser",336:"presto-parser",389:"dasksql-parser",480:"sparksql-parser",498:"hive-ref",522:"flink-ref",534:"sparksql-ref",551:"ksql-parser",805:"flink-parser",832:"calcite-ref",902:"hive-parser",932:"generic-parser"}[e]+".js"),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="[name]:",i.l=(n,r,o,s)=>{if(e[n])e[n].push(r);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var h=l[u];if(h.getAttribute("src")==n||h.getAttribute("data-webpack")==t+o){a=h;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",t+o),a.src=n),e[n]=[r];var d=(t,r)=>{a.onerror=a.onload=null,clearTimeout(p);var i=e[n];if(delete e[n],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;i.g.importScripts&&(e=i.g.location+"");var t=i.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e={789:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=o);var s=i.p+i.u(t),a=new Error;i.l(s,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[s,a,c]=n,l=0;for(r in a)i.o(a,r)&&(i.m[r]=a[r]);for(c&&c(i),t&&t(n);l<s.length;l++)o=s[l],i.o(e,o)&&e[o]&&e[o][0](),e[s[l]]=0},n=self.webpackChunk_name_=self.webpackChunk_name_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o={};return(()=>{"use strict";function e(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}i.d(o,{default:()=>zA}),i(2390);const t=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),n=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function r(e){if(I(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=D(i)?c(i):r(i);if(o)for(const e in o)t[e]=o[e]}return t}return D(e)||M(e)?e:void 0}const s=/;(?![^(]*\))/g,a=/:(.+)/;function c(e){const t={};return e.split(s).forEach((e=>{if(e){const n=e.split(a);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function l(e){let t="";if(D(e))t=e;else if(I(e))for(let n=0;n<e.length;n++){const r=l(e[n]);r&&(t+=r+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function u(e){if(!e)return null;let{class:t,style:n}=e;return t&&!D(t)&&(e.class=l(t)),n&&(e.style=r(n)),e}const h=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),d=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),p=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr");function f(e,t){if(e===t)return!0;let n=O(e),r=O(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=I(e),r=I(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=f(e[r],t[r]);return n}(e,t);if(n=M(e),r=M(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!f(e[n],t[n]))return!1}}return String(e)===String(t)}function g(e,t){return e.findIndex((e=>f(e,t)))}const m=e=>null==e?"":I(e)||M(e)&&e.toString===B?JSON.stringify(e,E,2):String(e),E=(e,t)=>t&&t.__v_isRef?E(e,t.value):N(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:L(t)?{[`Set(${t.size})`]:[...t.values()]}:!M(t)||I(t)||H(t)?t:String(t),y={},v=[],b=()=>{},A=()=>!1,T=/^on[^a-z]/,C=e=>T.test(e),R=e=>e.startsWith("onUpdate:"),S=Object.assign,_=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},x=Object.prototype.hasOwnProperty,w=(e,t)=>x.call(e,t),I=Array.isArray,N=e=>"[object Map]"===U(e),L=e=>"[object Set]"===U(e),O=e=>e instanceof Date,k=e=>"function"==typeof e,D=e=>"string"==typeof e,F=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,P=e=>M(e)&&k(e.then)&&k(e.catch),B=Object.prototype.toString,U=e=>B.call(e),H=e=>"[object Object]"===U(e),G=e=>D(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,W=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),V=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},j=/-(\w)/g,q=V((e=>e.replace(j,((e,t)=>t?t.toUpperCase():"")))),z=/\B([A-Z])/g,K=V((e=>e.replace(z,"-$1").toLowerCase())),Y=V((e=>e.charAt(0).toUpperCase()+e.slice(1))),X=V((e=>e?`on${Y(e)}`:"")),J=(e,t)=>!Object.is(e,t),Q=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Z=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ee=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let te;const ne=[];class re{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&te&&(this.parent=te,this.index=(te.scopes||(te.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(ne.push(this),te=this)}off(){this.active&&(ne.pop(),te=ne[ne.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function ie(e,t){(t=t||te)&&t.active&&t.effects.push(e)}const oe=e=>{const t=new Set(e);return t.w=0,t.n=0,t},se=e=>(e.w&ue)>0,ae=e=>(e.n&ue)>0,ce=new WeakMap;let le=0,ue=1;const he=[];let de;const pe=Symbol(""),fe=Symbol("");class ge{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],ie(this,n)}run(){if(!this.active)return this.fn();if(!he.includes(this))try{return he.push(de=this),ye.push(Ee),Ee=!0,ue=1<<++le,le<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ue})(this):me(this),this.fn()}finally{le<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];se(i)&&!ae(i)?i.delete(e):t[n++]=i,i.w&=~ue,i.n&=~ue}t.length=n}})(this),ue=1<<--le,be(),he.pop();const e=he.length;de=e>0?he[e-1]:void 0}}stop(){this.active&&(me(this),this.onStop&&this.onStop(),this.active=!1)}}function me(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ee=!0;const ye=[];function ve(){ye.push(Ee),Ee=!1}function be(){const e=ye.pop();Ee=void 0===e||e}function Ae(e,t,n){if(!Te())return;let r=ce.get(e);r||ce.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=oe()),Ce(i)}function Te(){return Ee&&void 0!==de}function Ce(e,t){let n=!1;le<=30?ae(e)||(e.n|=ue,n=!se(e)):n=!e.has(de),n&&(e.add(de),de.deps.push(e))}function Re(e,t,n,r,i,o){const s=ce.get(e);if(!s)return;let a=[];if("clear"===t)a=[...s.values()];else if("length"===n&&I(e))s.forEach(((e,t)=>{("length"===t||t>=r)&&a.push(e)}));else switch(void 0!==n&&a.push(s.get(n)),t){case"add":I(e)?G(n)&&a.push(s.get("length")):(a.push(s.get(pe)),N(e)&&a.push(s.get(fe)));break;case"delete":I(e)||(a.push(s.get(pe)),N(e)&&a.push(s.get(fe)));break;case"set":N(e)&&a.push(s.get(pe))}if(1===a.length)a[0]&&Se(a[0]);else{const e=[];for(const t of a)t&&e.push(...t);Se(oe(e))}}function Se(e,t){for(const t of I(e)?e:[...e])(t!==de||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const _e=e("__proto__,__v_isRef,__isVue"),xe=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(F)),we=ke(),Ie=ke(!1,!0),Ne=ke(!0),Le=ke(!0,!0),Oe=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=vt(this);for(let e=0,t=this.length;e<t;e++)Ae(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(vt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ve();const n=vt(this)[t].apply(this,e);return be(),n}})),e}();function ke(e=!1,t=!1){return function(n,r,i){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&i===(e?t?ht:ut:t?lt:ct).get(n))return n;const o=I(n);if(!e&&o&&w(Oe,r))return Reflect.get(Oe,r,i);const s=Reflect.get(n,r,i);return(F(r)?xe.has(r):_e(r))?s:(e||Ae(n,0,r),t?s:Rt(s)?o&&G(r)?s:s.value:M(s)?e?ft(s):dt(s):s)}}function De(e=!1){return function(t,n,r,i){let o=t[n];if(!e&&(r=vt(r),o=vt(o),!I(t)&&Rt(o)&&!Rt(r)))return o.value=r,!0;const s=I(t)&&G(n)?Number(n)<t.length:w(t,n),a=Reflect.set(t,n,r,i);return t===vt(i)&&(s?J(r,o)&&Re(t,"set",n,r):Re(t,"add",n,r)),a}}const Fe={get:we,set:De(),deleteProperty:function(e,t){const n=w(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Re(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return F(t)&&xe.has(t)||Ae(e,0,t),n},ownKeys:function(e){return Ae(e,0,I(e)?"length":pe),Reflect.ownKeys(e)}},Me={get:Ne,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Pe=S({},Fe,{get:Ie,set:De(!0)}),Be=S({},Me,{get:Le}),Ue=e=>M(e)?dt(e):e,$e=e=>M(e)?ft(e):e,He=e=>e,Ge=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,r=!1){const i=vt(e=e.__v_raw),o=vt(t);t!==o&&!n&&Ae(i,0,t),!n&&Ae(i,0,o);const{has:s}=Ge(i),a=r?He:n?$e:Ue;return s.call(i,t)?a(e.get(t)):s.call(i,o)?a(e.get(o)):void(e!==i&&e.get(t))}function Ve(e,t=!1){const n=this.__v_raw,r=vt(n),i=vt(e);return e!==i&&!t&&Ae(r,0,e),!t&&Ae(r,0,i),e===i?n.has(e):n.has(e)||n.has(i)}function je(e,t=!1){return e=e.__v_raw,!t&&Ae(vt(e),0,pe),Reflect.get(e,"size",e)}function qe(e){e=vt(e);const t=vt(this);return Ge(t).has.call(t,e)||(t.add(e),Re(t,"add",e,e)),this}function ze(e,t){t=vt(t);const n=vt(this),{has:r,get:i}=Ge(n);let o=r.call(n,e);o||(e=vt(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?J(t,s)&&Re(n,"set",e,t):Re(n,"add",e,t),this}function Ke(e){const t=vt(this),{has:n,get:r}=Ge(t);let i=n.call(t,e);i||(e=vt(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Re(t,"delete",e,void 0),o}function Ye(){const e=vt(this),t=0!==e.size,n=e.clear();return t&&Re(e,"clear",void 0,void 0),n}function Xe(e,t){return function(n,r){const i=this,o=i.__v_raw,s=vt(o),a=t?He:e?$e:Ue;return!e&&Ae(s,0,pe),o.forEach(((e,t)=>n.call(r,a(e),a(t),i)))}}function Je(e,t,n){return function(...r){const i=this.__v_raw,o=vt(i),s=N(o),a="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,l=i[e](...r),u=n?He:t?$e:Ue;return!t&&Ae(o,0,c?fe:pe),{next(){const{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Qe(e){return function(...t){return"delete"!==e&&this}}const[Ze,et,tt,nt]=function(){const e={get(e){return We(this,e)},get size(){return je(this)},has:Ve,add:qe,set:ze,delete:Ke,clear:Ye,forEach:Xe(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return je(this)},has:Ve,add:qe,set:ze,delete:Ke,clear:Ye,forEach:Xe(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return je(this,!0)},has(e){return Ve.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Xe(!0,!1)},r={get(e){return We(this,e,!0,!0)},get size(){return je(this,!0)},has(e){return Ve.call(this,e,!0)},add:Qe("add"),set:Qe("set"),delete:Qe("delete"),clear:Qe("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=Je(i,!1,!1),n[i]=Je(i,!0,!1),t[i]=Je(i,!1,!0),r[i]=Je(i,!0,!0)})),[e,n,t,r]}();function rt(e,t){const n=t?e?nt:tt:e?et:Ze;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(w(n,r)&&r in t?n:t,r,i)}const it={get:rt(!1,!1)},ot={get:rt(!1,!0)},st={get:rt(!0,!1)},at={get:rt(!0,!0)},ct=new WeakMap,lt=new WeakMap,ut=new WeakMap,ht=new WeakMap;function dt(e){return e&&e.__v_isReadonly?e:gt(e,!1,Fe,it,ct)}function pt(e){return gt(e,!1,Pe,ot,lt)}function ft(e){return gt(e,!0,Me,st,ut)}function gt(e,t,n,r,i){if(!M(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=function(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>U(e).slice(8,-1))(e))}(e);if(0===s)return e;const a=new Proxy(e,2===s?r:n);return i.set(e,a),a}function mt(e){return Et(e)?mt(e.__v_raw):!(!e||!e.__v_isReactive)}function Et(e){return!(!e||!e.__v_isReadonly)}function yt(e){return mt(e)||Et(e)}function vt(e){const t=e&&e.__v_raw;return t?vt(t):e}function bt(e){return Z(e,"__v_skip",!0),e}function At(e){Te()&&((e=vt(e)).dep||(e.dep=oe()),Ce(e.dep))}function Tt(e,t){(e=vt(e)).dep&&Se(e.dep)}const Ct=e=>M(e)?dt(e):e;function Rt(e){return Boolean(e&&!0===e.__v_isRef)}function St(e){return xt(e)}class _t{constructor(e,t=!1){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:vt(e),this._value=t?e:Ct(e)}get value(){return At(this),this._value}set value(e){e=this._shallow?e:vt(e),J(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Ct(e),Tt(this))}}function xt(e,t=!1){return Rt(e)?e:new _t(e,t)}function wt(e){return Rt(e)?e.value:e}const It={get:(e,t,n)=>wt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Rt(i)&&!Rt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Nt(e){return mt(e)?e:new Proxy(e,It)}class Lt{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>At(this)),(()=>Tt(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ot(e){const t=I(e)?new Array(e.length):{};for(const n in e)t[n]=Dt(e,n);return t}class kt{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}function Dt(e,t){return Rt(e[t])?e[t]:new kt(e,t)}class Ft{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new ge(e,(()=>{this._dirty||(this._dirty=!0,Tt(this))})),this.__v_isReadonly=n}get value(){const e=vt(this);return At(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Mt(e,t){let n,r;return k(e)?(n=e,r=b):(n=e.get,r=e.set),new Ft(n,r,k(e)||!e.set)}let Pt;function Bt(e,t,...n){const r=e.vnode.props||y;let i=n;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:o}=r[e]||y;o?i=n.map((e=>e.trim())):t&&(i=n.map(ee))}let a,c=r[a=X(t)]||r[a=X(q(t))];!c&&o&&(c=r[a=X(K(t))]),c&&Ui(c,e,6,i);const l=r[a+"Once"];if(l){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Ui(l,e,6,i)}}function Ut(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let s={},a=!1;if(!k(e)){const r=e=>{const n=Ut(e,t,!0);n&&(a=!0,S(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||a?(I(o)?o.forEach((e=>s[e]=null)):S(s,o),r.set(e,s),s):(r.set(e,null),null)}function $t(e,t){return!(!e||!C(t))&&(t=t.slice(2).replace(/Once$/,""),w(e,t[0].toLowerCase()+t.slice(1))||w(e,K(t))||w(e,t))}let Ht=null,Gt=null;function Wt(e){const t=Ht;return Ht=e,Gt=e&&e.type.__scopeId||null,t}function Vt(e){Gt=e}function jt(){Gt=null}function qt(e,t=Ht,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Vr(-1);const i=Wt(t),o=e(...n);return Wt(i),r._d&&Vr(1),o};return r._n=!0,r._c=!0,r._d=!0,r}function zt(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:a,attrs:c,emit:l,render:u,renderCache:h,data:d,setupState:p,ctx:f,inheritAttrs:g}=e;let m;const E=Wt(e);try{let e;if(4&n.shapeFlag){const t=i||r;m=oi(u.call(t,t,h,o,p,d,f)),e=c}else m=oi(t(o,t.length>1?{attrs:c,slots:a,emit:l}:null)),e=t.props?c:Kt(c);let E=m;if(e&&!1!==g){const t=Object.keys(e),{shapeFlag:n}=E;t.length&&(1&n||6&n)&&(s&&t.some(R)&&(e=Yt(e,s)),E=ni(E,e))}n.dirs&&(E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&(E.transition=n.transition),m=E}catch(t){Ur.length=0,$i(t,e,1),m=ei(Pr)}return Wt(E),m}const Kt=e=>{let t;for(const n in e)("class"===n||"style"===n||C(n))&&((t||(t={}))[n]=e[n]);return t},Yt=(e,t)=>{const n={};for(const r in e)R(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Xt(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!$t(n,o))return!0}return!1}function Jt({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Qt={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,s,a,c,l){null==e?function(e,t,n,r,i,o,s,a,c){const{p:l,o:{createElement:u}}=c,h=u("div"),d=e.suspense=en(e,i,r,t,h,n,o,s,a,c);l(null,d.pendingBranch=e.ssContent,h,null,r,d,o,s),d.deps>0?(Zt(e,"onPending"),Zt(e,"onFallback"),l(null,e.ssFallback,t,n,r,null,o,s),rn(d,e.ssFallback)):d.resolve()}(t,n,r,i,o,s,a,c,l):function(e,t,n,r,i,o,s,a,{p:c,um:l,o:{createElement:u}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:E}=h;if(g)h.pendingBranch=d,Yr(d,g)?(c(g,d,h.hiddenContainer,null,i,h,o,s,a),h.deps<=0?h.resolve():m&&(c(f,p,n,r,i,null,o,s,a),rn(h,p))):(h.pendingId++,E?(h.isHydrating=!1,h.activeBranch=g):l(g,i,h),h.deps=0,h.effects.length=0,h.hiddenContainer=u("div"),m?(c(null,d,h.hiddenContainer,null,i,h,o,s,a),h.deps<=0?h.resolve():(c(f,p,n,r,i,null,o,s,a),rn(h,p))):f&&Yr(d,f)?(c(f,d,n,r,i,h,o,s,a),h.resolve(!0)):(c(null,d,h.hiddenContainer,null,i,h,o,s,a),h.deps<=0&&h.resolve()));else if(f&&Yr(d,f))c(f,d,n,r,i,h,o,s,a),rn(h,d);else if(Zt(t,"onPending"),h.pendingBranch=d,h.pendingId++,c(null,d,h.hiddenContainer,null,i,h,o,s,a),h.deps<=0)h.resolve();else{const{timeout:e,pendingId:t}=h;e>0?setTimeout((()=>{h.pendingId===t&&h.fallback(p)}),e):0===e&&h.fallback(p)}}(e,t,n,r,i,s,a,c,l)},hydrate:function(e,t,n,r,i,o,s,a,c){const l=t.suspense=en(t,r,n,e.parentNode,document.createElement("div"),null,i,o,s,a,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,o,s);return 0===l.deps&&l.resolve(),u},create:en,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=tn(r?n.default:n),e.ssFallback=r?tn(n.fallback):ei(Comment)}};function Zt(e,t){const n=e.props&&e.props[t];k(n)&&n()}function en(e,t,n,r,i,o,s,a,c,l,u=!1){const{p:h,m:d,um:p,n:f,o:{parentNode:g,remove:m}}=l,E=ee(e.props&&e.props.timeout),y={vnode:e,parent:t,parentComponent:n,isSVG:s,container:r,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:"number"==typeof E?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:i,effects:o,parentComponent:s,container:a}=y;if(y.isHydrating)y.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{i===y.pendingId&&d(r,a,t,0)});let{anchor:t}=y;n&&(t=f(n),p(n,s,y,!0)),e||d(r,a,t,0)}rn(y,r),y.pendingBranch=null,y.isInFallback=!1;let c=y.parent,l=!1;for(;c;){if(c.pendingBranch){c.effects.push(...o),l=!0;break}c=c.parent}l||io(o),y.effects=[],Zt(t,"onResolve")},fallback(e){if(!y.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:i,isSVG:o}=y;Zt(t,"onFallback");const s=f(n),l=()=>{y.isInFallback&&(h(null,e,i,s,r,null,o,a,c),rn(y,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=l),y.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){y.activeBranch&&d(y.activeBranch,e,t,n),y.container=e},next:()=>y.activeBranch&&f(y.activeBranch),registerDep(e,t){const n=!!y.pendingBranch;n&&y.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{$i(t,e,0)})).then((i=>{if(e.isUnmounted||y.isUnmounted||y.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:o}=e;_i(e,i),r&&(o.el=r);const a=!r&&e.subTree.el;t(e,o,g(r||e.subTree.el),r?null:f(e.subTree),y,s,c),a&&m(a),Jt(e,o.el),n&&0==--y.deps&&y.resolve()}))},unmount(e,t){y.isUnmounted=!0,y.activeBranch&&p(y.activeBranch,n,e,t),y.pendingBranch&&p(y.pendingBranch,n,e,t)}};return y}function tn(e){let t;if(k(e)){const n=e._c;n&&(e._d=!1,Hr()),e=e(),n&&(e._d=!0,t=$r,Gr())}if(I(e)){const t=function(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!Kr(r))return;if(r.type!==Pr||"v-if"===r.children){if(t)return;t=r}}return t}(e);e=t}return e=oi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function nn(e,t){t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):io(e)}function rn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Jt(r,i))}function on(e,t){if(yi){let n=yi.provides;const r=yi.parent&&yi.parent.provides;r===n&&(n=yi.provides=Object.create(r)),n[e]=t}}function sn(e,t,n=!1){const r=yi||Ht;if(r){const i=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&k(t)?t.call(r.proxy):t}}function an(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ln((()=>{e.isMounted=!0})),Dn((()=>{e.isUnmounting=!0})),e}const cn=[Function,Array],ln={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:cn,onEnter:cn,onAfterEnter:cn,onEnterCancelled:cn,onBeforeLeave:cn,onLeave:cn,onAfterLeave:cn,onLeaveCancelled:cn,onBeforeAppear:cn,onAppear:cn,onAfterAppear:cn,onAppearCancelled:cn},setup(e,{slots:t}){const n=vi(),r=an();let i;return()=>{const o=t.default&&gn(t.default(),!0);if(!o||!o.length)return;const s=vt(e),{mode:a}=s,c=o[0];if(r.isLeaving)return dn(c);const l=pn(c);if(!l)return dn(c);const u=hn(l,s,r,n);fn(l,u);const h=n.subTree,d=h&&pn(h);let p=!1;const{getTransitionKey:f}=l.type;if(f){const e=f();void 0===i?i=e:e!==i&&(i=e,p=!0)}if(d&&d.type!==Pr&&(!Yr(l,d)||p)){const e=hn(d,s,r,n);if(fn(d,e),"out-in"===a)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},dn(c);"in-out"===a&&l.type!==Pr&&(e.delayLeave=(e,t,n)=>{un(r,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return c}}};function un(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function hn(e,t,n,r){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:h,onLeave:d,onAfterLeave:p,onLeaveCancelled:f,onBeforeAppear:g,onAppear:m,onAfterAppear:E,onAppearCancelled:y}=t,v=String(e.key),b=un(n,e),A=(e,t)=>{e&&Ui(e,r,9,t)},T={mode:o,persisted:s,beforeEnter(t){let r=a;if(!n.isMounted){if(!i)return;r=g||a}t._leaveCb&&t._leaveCb(!0);const o=b[v];o&&Yr(e,o)&&o.el._leaveCb&&o.el._leaveCb(),A(r,[t])},enter(e){let t=c,r=l,o=u;if(!n.isMounted){if(!i)return;t=m||c,r=E||l,o=y||u}let s=!1;const a=e._enterCb=t=>{s||(s=!0,A(t?o:r,[e]),T.delayedLeave&&T.delayedLeave(),e._enterCb=void 0)};t?(t(e,a),t.length<=1&&a()):a()},leave(t,r){const i=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();A(h,[t]);let o=!1;const s=t._leaveCb=n=>{o||(o=!0,r(),A(n?f:p,[t]),t._leaveCb=void 0,b[i]===e&&delete b[i])};b[i]=e,d?(d(t,s),d.length<=1&&s()):s()},clone:e=>hn(e,t,n,r)};return T}function dn(e){if(vn(e))return(e=ni(e)).children=null,e}function pn(e){return vn(e)?e.children?e.children[0]:void 0:e}function fn(e,t){6&e.shapeFlag&&e.component?fn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gn(e,t=!1){let n=[],r=0;for(let i=0;i<e.length;i++){const o=e[i];o.type===Fr?(128&o.patchFlag&&r++,n=n.concat(gn(o.children,t))):(t||o.type!==Pr)&&n.push(o)}if(r>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}function mn(e){return k(e)?{setup:e,name:e.name}:e}const En=e=>!!e.type.__asyncLoader;function yn(e,{vnode:{ref:t,props:n,children:r}}){const i=ei(e,n,r);return i.ref=t,i}const vn=e=>e.type.__isKeepAlive,bn={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=vi(),r=n.ctx;if(!r.renderer)return t.default;const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:h}}}=r,d=h("div");function p(e){_n(e),u(e,n,a)}function f(e){i.forEach(((t,n)=>{const r=Oi(t.type);!r||e&&e(r)||g(n)}))}function g(e){const t=i.get(e);s&&t.type===s.type?s&&_n(s):p(t),i.delete(e),o.delete(e)}r.activate=(e,t,n,r,i)=>{const o=e.component;l(e,t,n,0,a),c(o.vnode,e,t,n,o,a,r,e.slotScopeIds,i),Er((()=>{o.isDeactivated=!1,o.a&&Q(o.a);const t=e.props&&e.props.onVnodeMounted;t&&Tr(t,o.parent,e)}),a)},r.deactivate=e=>{const t=e.component;l(e,d,null,1,a),Er((()=>{t.da&&Q(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Tr(n,t.parent,e),t.isDeactivated=!0}),a)},ho((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>An(e,t))),t&&f((e=>!An(t,e)))}),{flush:"post",deep:!0});let m=null;const E=()=>{null!=m&&i.set(m,xn(n.subTree))};return Ln(E),kn(E),Dn((()=>{i.forEach((e=>{const{subTree:t,suspense:r}=n,i=xn(t);if(e.type!==i.type)p(e);else{_n(i);const e=i.component.da;e&&Er(e,r)}}))})),()=>{if(m=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!Kr(r)||!(4&r.shapeFlag||128&r.shapeFlag))return s=null,r;let a=xn(r);const c=a.type,l=Oi(En(a)?a.type.__asyncResolved||{}:c),{include:u,exclude:h,max:d}=e;if(u&&(!l||!An(u,l))||h&&l&&An(h,l))return s=a,r;const p=null==a.key?c:a.key,f=i.get(p);return a.el&&(a=ni(a),128&r.shapeFlag&&(r.ssContent=a)),m=p,f?(a.el=f.el,a.component=f.component,a.transition&&fn(a,a.transition),a.shapeFlag|=512,o.delete(p),o.add(p)):(o.add(p),d&&o.size>parseInt(d,10)&&g(o.values().next().value)),a.shapeFlag|=256,s=a,r}}};function An(e,t){return I(e)?e.some((e=>An(e,t))):D(e)?e.split(",").indexOf(t)>-1:!!e.test&&e.test(t)}function Tn(e,t){Rn(e,"a",t)}function Cn(e,t){Rn(e,"da",t)}function Rn(e,t,n=yi){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(wn(t,r,n),n){let e=n.parent;for(;e&&e.parent;)vn(e.parent.vnode)&&Sn(r,t,n,e),e=e.parent}}function Sn(e,t,n,r){const i=wn(t,e,r,!0);Fn((()=>{_(r[t],i)}),n)}function _n(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function xn(e){return 128&e.shapeFlag?e.ssContent:e}function wn(e,t,n=yi,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ve(),bi(n);const i=Ui(t,n,e,r);return Ai(),be(),i});return r?i.unshift(o):i.push(o),o}}const In=e=>(t,n=yi)=>(!Si||"sp"===e)&&wn(e,t,n),Nn=In("bm"),Ln=In("m"),On=In("bu"),kn=In("u"),Dn=In("bum"),Fn=In("um"),Mn=In("sp"),Pn=In("rtg"),Bn=In("rtc");function Un(e,t=yi){wn("ec",e,t)}let $n=!0;function Hn(e,t,n){Ui(I(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Gn(e,t,n,r){const i=r.includes(".")?go(n,r):()=>n[r];if(D(e)){const n=t[e];k(n)&&ho(i,n)}else if(k(e))ho(i,e.bind(n));else if(M(e))if(I(e))e.forEach((e=>Gn(e,t,n,r)));else{const r=k(e.handler)?e.handler.bind(n):t[e.handler];k(r)&&ho(i,r,e)}}function Wn(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let c;return a?c=a:i.length||n||r?(c={},i.length&&i.forEach((e=>Vn(c,e,s,!0))),Vn(c,t,s)):c=t,o.set(t,c),c}function Vn(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Vn(e,o,n,!0),i&&i.forEach((t=>Vn(e,t,n,!0)));for(const i in t)if(r&&"expose"===i);else{const r=jn[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const jn={data:qn,props:Yn,emits:Yn,methods:Yn,computed:Yn,beforeCreate:Kn,created:Kn,beforeMount:Kn,mounted:Kn,beforeUpdate:Kn,updated:Kn,beforeDestroy:Kn,destroyed:Kn,activated:Kn,deactivated:Kn,errorCaptured:Kn,serverPrefetch:Kn,components:Yn,directives:Yn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=S(Object.create(null),e);for(const r in t)n[r]=Kn(e[r],t[r]);return n},provide:qn,inject:function(e,t){return Yn(zn(e),zn(t))}};function qn(e,t){return t?e?function(){return S(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function zn(e){if(I(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Kn(e,t){return e?[...new Set([].concat(e,t))]:t}function Yn(e,t){return e?S(S(Object.create(null),e),t):t}function Xn(e,t,n,r){const[i,o]=e.propsOptions;let s,a=!1;if(t)for(let c in t){if(W(c))continue;const l=t[c];let u;i&&w(i,u=q(c))?o&&o.includes(u)?(s||(s={}))[u]=l:n[u]=l:$t(e.emitsOptions,c)||l!==r[c]&&(r[c]=l,a=!0)}if(o){const t=vt(n),r=s||y;for(let s=0;s<o.length;s++){const a=o[s];n[a]=Jn(i,t,a,r[a],e,!w(r,a))}}return a}function Jn(e,t,n,r,i,o){const s=e[n];if(null!=s){const e=w(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&k(e)){const{propsDefaults:o}=i;n in o?r=o[n]:(bi(i),r=o[n]=e.call(null,t),Ai())}else r=e}s[0]&&(o&&!e?r=!1:!s[1]||""!==r&&r!==K(n)||(r=!0))}return r}function Qn(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,s={},a=[];let c=!1;if(!k(e)){const r=e=>{c=!0;const[n,r]=Qn(e,t,!0);S(s,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!c)return r.set(e,v),v;if(I(o))for(let e=0;e<o.length;e++){const t=q(o[e]);Zn(t)&&(s[t]=y)}else if(o)for(const e in o){const t=q(e);if(Zn(t)){const n=o[e],r=s[t]=I(n)||k(n)?{type:n}:n;if(r){const e=nr(Boolean,r.type),n=nr(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||w(r,"default"))&&a.push(t)}}}const l=[s,a];return r.set(e,l),l}function Zn(e){return"$"!==e[0]}function er(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function tr(e,t){return er(e)===er(t)}function nr(e,t){return I(t)?t.findIndex((t=>tr(t,e))):k(t)&&tr(t,e)?0:-1}const rr=e=>"_"===e[0]||"$stable"===e,ir=e=>I(e)?e.map(oi):[oi(e)],or=(e,t,n)=>{const r=qt((e=>ir(t(e))),n);return r._c=!1,r},sr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(rr(n))continue;const i=e[n];if(k(i))t[n]=or(0,i,r);else if(null!=i){const e=ir(i);t[n]=()=>e}}},ar=(e,t)=>{const n=ir(t);e.slots.default=()=>n};function cr(e,t){if(null===Ht)return e;const n=Ht.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[i,o,s,a=y]=t[e];k(i)&&(i={mounted:i,updated:i}),i.deep&&mo(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:s,modifiers:a})}return e}function lr(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let c=a.dir[r];c&&(ve(),Ui(c,n,8,[e.el,a,e,t]),be())}}function ur(){return{app:null,config:{isNativeTag:A,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let hr=0;function dr(e,t){return function(n,r=null){null==r||M(r)||(r=null);const i=ur(),o=new Set;let s=!1;const a=i.app={_uid:hr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ao,get config(){return i.config},set config(e){},use:(e,...t)=>(o.has(e)||(e&&k(e.install)?(o.add(e),e.install(a,...t)):k(e)&&(o.add(e),e(a,...t))),a),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),a),component:(e,t)=>t?(i.components[e]=t,a):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,a):i.directives[e],mount(o,c,l){if(!s){const u=ei(n,r);return u.appContext=i,c&&t?t(u,o):e(u,o,l),s=!0,a._container=o,o.__vue_app__=a,u.component.proxy}},unmount(){s&&(e(null,a._container),delete a._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,a)};return a}}let pr=!1;const fr=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,gr=e=>8===e.nodeType;function mr(e){const{mt:t,p:n,o:{patchProp:r,nextSibling:i,parentNode:o,remove:s,insert:a,createComment:c}}=e,l=(n,r,s,a,c,g=!1)=>{const m=gr(n)&&"["===n.data,E=()=>p(n,r,s,a,c,m),{type:y,ref:v,shapeFlag:b}=r,A=n.nodeType;r.el=n;let T=null;switch(y){case Mr:3!==A?T=E():(n.data!==r.children&&(pr=!0,n.data=r.children),T=i(n));break;case Pr:T=8!==A||m?E():i(n);break;case Br:if(1===A){T=n;const e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=T.outerHTML),t===r.staticCount-1&&(r.anchor=T),T=i(T);return T}T=E();break;case Fr:T=m?d(n,r,s,a,c,g):E();break;default:if(1&b)T=1!==A||r.type.toLowerCase()!==n.tagName.toLowerCase()?E():u(n,r,s,a,c,g);else if(6&b){r.slotScopeIds=c;const e=o(n);if(t(r,e,null,s,a,fr(e),g),T=m?f(n):i(n),En(r)){let t;m?(t=ei(Fr),t.anchor=T?T.previousSibling:e.lastChild):t=3===n.nodeType?ri(""):ei("div"),t.el=n,r.component.subTree=t}}else 64&b?T=8!==A?E():r.type.hydrate(n,r,s,a,c,g,e,h):128&b&&(T=r.type.hydrate(n,r,s,a,fr(o(n)),c,g,e,l))}return null!=v&&Ar(v,null,a,r),T},u=(e,t,n,i,o,a)=>{a=a||!!t.dynamicChildren;const{type:c,props:l,patchFlag:u,shapeFlag:d,dirs:p}=t,f="input"===c&&p||"option"===c;if(f||-1!==u){if(p&&lr(t,null,n,"created"),l)if(f||!a||16&u||32&u)for(const t in l)(f&&t.endsWith("value")||C(t)&&!W(t))&&r(e,t,null,l[t]);else l.onClick&&r(e,"onClick",null,l.onClick);let c;if((c=l&&l.onVnodeBeforeMount)&&Tr(c,n,t),p&&lr(t,null,n,"beforeMount"),((c=l&&l.onVnodeMounted)||p)&&nn((()=>{c&&Tr(c,n,t),p&&lr(t,null,n,"mounted")}),i),16&d&&(!l||!l.innerHTML&&!l.textContent)){let r=h(e.firstChild,t,e,n,i,o,a);for(;r;){pr=!0;const e=r;r=r.nextSibling,s(e)}}else 8&d&&e.textContent!==t.children&&(pr=!0,e.textContent=t.children)}return e.nextSibling},h=(e,t,r,i,o,s,a)=>{a=a||!!t.dynamicChildren;const c=t.children,u=c.length;for(let t=0;t<u;t++){const u=a?c[t]:c[t]=oi(c[t]);if(e)e=l(e,u,i,o,s,a);else{if(u.type===Mr&&!u.children)continue;pr=!0,n(null,u,r,null,i,o,fr(r),s)}}return e},d=(e,t,n,r,s,l)=>{const{slotScopeIds:u}=t;u&&(s=s?s.concat(u):u);const d=o(e),p=h(i(e),t,d,n,r,s,l);return p&&gr(p)&&"]"===p.data?i(t.anchor=p):(pr=!0,a(t.anchor=c("]"),d,p),p)},p=(e,t,r,a,c,l)=>{if(pr=!0,t.el=null,l){const t=f(e);for(;;){const n=i(e);if(!n||n===t)break;s(n)}}const u=i(e),h=o(e);return s(e),n(null,t,h,u,r,a,fr(h),c),u},f=e=>{let t=0;for(;e;)if((e=i(e))&&gr(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return i(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void so();pr=!1,l(t.firstChild,e,null,null,null),so(),pr&&console.error("Hydration completed but contains mismatches.")},l]}const Er=nn;function yr(e){return br(e)}function vr(e){return br(e,mr)}function br(e,t){const{insert:n,remove:r,patchProp:i,createElement:o,createText:s,createComment:a,setText:c,setElementText:l,parentNode:u,nextSibling:h,setScopeId:d=b,cloneNode:p,insertStaticContent:f}=e,g=(e,t,n,r=null,i=null,o=null,s=!1,a=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Yr(e,t)&&(r=X(e),G(e,i,o,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:l,ref:u,shapeFlag:h}=t;switch(l){case Mr:m(e,t,n,r);break;case Pr:E(e,t,n,r);break;case Br:null==e&&A(t,n,r,s);break;case Fr:L(e,t,n,r,i,o,s,a,c);break;default:1&h?T(e,t,n,r,i,o,s,a,c):6&h?O(e,t,n,r,i,o,s,a,c):(64&h||128&h)&&l.process(e,t,n,r,i,o,s,a,c,ee)}null!=u&&i&&Ar(u,e&&e.ref,o,t||e,!t)},m=(e,t,r,i)=>{if(null==e)n(t.el=s(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},E=(e,t,r,i)=>{null==e?n(t.el=a(t.children||""),r,i):t.el=e.el},A=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r)},T=(e,t,n,r,i,o,s,a,c)=>{s=s||"svg"===t.type,null==e?C(t,n,r,i,o,s,a,c):x(e,t,i,o,s,a,c)},C=(e,t,r,s,a,c,u,h)=>{let d,f;const{type:g,props:m,shapeFlag:E,transition:y,patchFlag:v,dirs:b}=e;if(e.el&&void 0!==p&&-1===v)d=e.el=p(e.el);else{if(d=e.el=o(e.type,c,m&&m.is,m),8&E?l(d,e.children):16&E&&_(e.children,d,null,s,a,c&&"foreignObject"!==g,u,h),b&&lr(e,null,s,"created"),m){for(const t in m)"value"===t||W(t)||i(d,t,null,m[t],c,e.children,s,a,Y);"value"in m&&i(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Tr(f,s,e)}R(d,e,e.scopeId,u,s)}b&&lr(e,null,s,"beforeMount");const A=(!a||a&&!a.pendingBranch)&&y&&!y.persisted;A&&y.beforeEnter(d),n(d,t,r),((f=m&&m.onVnodeMounted)||A||b)&&Er((()=>{f&&Tr(f,s,e),A&&y.enter(d),b&&lr(e,null,s,"mounted")}),a)},R=(e,t,n,r,i)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(i&&t===i.subTree){const t=i.vnode;R(e,t,t.scopeId,t.slotScopeIds,i.parent)}},_=(e,t,n,r,i,o,s,a,c=0)=>{for(let l=c;l<e.length;l++){const c=e[l]=a?si(e[l]):oi(e[l]);g(null,c,t,n,r,i,o,s,a)}},x=(e,t,n,r,o,s,a)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:h,dirs:d}=t;u|=16&e.patchFlag;const p=e.props||y,f=t.props||y;let g;if((g=f.onVnodeBeforeUpdate)&&Tr(g,n,t,e),d&&lr(t,e,n,"beforeUpdate"),u>0){if(16&u)N(c,t,p,f,n,r,o);else if(2&u&&p.class!==f.class&&i(c,"class",null,f.class,o),4&u&&i(c,"style",p.style,f.style,o),8&u){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const a=s[t],l=p[a],u=f[a];u===l&&"value"!==a||i(c,a,l,u,o,e.children,n,r,Y)}}1&u&&e.children!==t.children&&l(c,t.children)}else a||null!=h||N(c,t,p,f,n,r,o);const m=o&&"foreignObject"!==t.type;h?I(e.dynamicChildren,h,c,n,r,m,s):a||B(e,t,c,null,n,r,m,s,!1),((g=f.onVnodeUpdated)||d)&&Er((()=>{g&&Tr(g,n,t,e),d&&lr(t,e,n,"updated")}),r)},I=(e,t,n,r,i,o,s)=>{for(let a=0;a<t.length;a++){const c=e[a],l=t[a],h=c.el&&(c.type===Fr||!Yr(c,l)||6&c.shapeFlag||64&c.shapeFlag)?u(c.el):n;g(c,l,h,null,r,i,o,s,!0)}},N=(e,t,n,r,o,s,a)=>{if(n!==r){for(const c in r){if(W(c))continue;const l=r[c],u=n[c];l!==u&&"value"!==c&&i(e,c,u,l,a,t.children,o,s,Y)}if(n!==y)for(const c in n)W(c)||c in r||i(e,c,n[c],null,a,t.children,o,s,Y);"value"in r&&i(e,"value",n.value,r.value)}},L=(e,t,r,i,o,a,c,l,u)=>{const h=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(n(h,r,i),n(d,r,i),_(t.children,r,d,o,a,c,l,u)):p>0&&64&p&&f&&e.dynamicChildren?(I(e.dynamicChildren,f,r,o,a,c,l),(null!=t.key||o&&t===o.subTree)&&Cr(e,t,!0)):B(e,t,r,d,o,a,c,l,u)},O=(e,t,n,r,i,o,s,a,c)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,c):k(t,n,r,i,o,s,c):D(e,t,c)},k=(e,t,n,r,i,o,s)=>{const a=e.component=function(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||mi,o={uid:Ei++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,update:null,scope:new re(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qn(r,i),emitsOptions:Ut(r,i),emit:null,emitted:null,propsDefaults:y,inheritAttrs:r.inheritAttrs,ctx:y,data:y,props:y,attrs:y,slots:y,refs:y,setupState:y,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Bt.bind(null,o),e.ce&&e.ce(o),o}(e,r,i);if(vn(e)&&(a.ctx.renderer=ee),function(e,t=!1){Si=t;const{props:n,children:r}=e.vnode,i=Ti(e);(function(e,t,n,r=!1){const i={},o={};Z(o,Xr,1),e.propsDefaults=Object.create(null),Xn(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:pt(i):e.type.props?i:o,e.attrs=o})(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=vt(t),Z(t,"_",n)):sr(t,e.slots={})}else e.slots={},t&&ar(e,t);Z(e.slots,Xr,1)})(e,r),i&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=bt(new Proxy(e.ctx,fi));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?Ii(e):null;bi(e),ve();const i=Bi(r,e,0,[e.props,n]);if(be(),Ai(),P(i)){if(i.then(Ai,Ai),t)return i.then((t=>{_i(e,t)})).catch((t=>{$i(t,e,0)}));e.asyncDep=i}else _i(e,i)}else wi(e)}(e,t),Si=!1}(a),a.asyncDep){if(i&&i.registerDep(a,F),!e.el){const e=a.subTree=ei(Pr);E(null,e,t,n)}}else F(a,e,t,n,i,o,s)},D=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:a,patchFlag:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!a||a&&a.$stable)||r!==s&&(r?!s||Xt(r,s,l):!!s);if(1024&c)return!0;if(16&c)return r?Xt(r,s,l):!!s;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==r[n]&&!$t(l,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void M(r,t,n);r.next=t,function(e){const t=Wi.indexOf(e);t>Vi&&Wi.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},F=(e,t,n,r,i,o,s)=>{const a=new ge((()=>{if(e.isMounted){let t,{next:n,bu:r,u:c,parent:l,vnode:h}=e,d=n;n?(n.el=h.el,M(e,n,s)):n=h,a.allowRecurse=!1,r&&Q(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Tr(t,l,n,h),a.allowRecurse=!0;const p=zt(e),f=e.subTree;e.subTree=p,g(f,p,u(f.el),X(f),e,i,o),n.el=p.el,null===d&&Jt(e,p.el),c&&Er(c,i),(t=n.props&&n.props.onVnodeUpdated)&&Er((()=>Tr(t,l,n,h)),i)}else{let s;const{el:c,props:l}=t,{bm:u,m:h,parent:d}=e;if(a.allowRecurse=!1,u&&Q(u),(s=l&&l.onVnodeBeforeMount)&&Tr(s,d,t),a.allowRecurse=!0,c&&ne){const n=()=>{e.subTree=zt(e),ne(c,e.subTree,e,i,null)};En(t)?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=zt(e);g(null,s,n,r,e,i,o),t.el=s.el}if(h&&Er(h,i),s=l&&l.onVnodeMounted){const e=t;Er((()=>Tr(s,d,e)),i)}256&t.shapeFlag&&e.a&&Er(e.a,i),e.isMounted=!0,t=n=r=null}}),(()=>to(e.update)),e.scope),c=e.update=a.run.bind(a);c.id=e.uid,a.allowRecurse=c.allowRecurse=!0,c()},M=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=vt(i),[c]=e.propsOptions;let l=!1;if(!(r||s>0)||16&s){let r;Xn(e,t,i,o)&&(l=!0);for(const o in a)t&&(w(t,o)||(r=K(o))!==o&&w(t,r))||(c?!n||void 0===n[o]&&void 0===n[r]||(i[o]=Jn(c,a,o,void 0,e,!0)):delete i[o]);if(o!==a)for(const e in o)t&&w(t,e)||(delete o[e],l=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];const u=t[s];if(c)if(w(o,s))u!==o[s]&&(o[s]=u,l=!0);else{const t=q(s);i[t]=Jn(c,a,t,u,e,!1)}else u!==o[s]&&(o[s]=u,l=!0)}}l&&Re(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=y;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:(S(i,t),n||1!==e||delete i._):(o=!t.$stable,sr(t,i)),s=t}else t&&(ar(e,t),s={default:1});if(o)for(const e in i)rr(e)||e in s||delete i[e]})(e,t.children,n),ve(),oo(void 0,e.update),be()},B=(e,t,n,r,i,o,s,a,c=!1)=>{const u=e&&e.children,h=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void $(u,d,n,r,i,o,s,a,c);if(256&p)return void U(u,d,n,r,i,o,s,a,c)}8&f?(16&h&&Y(u,i,o),d!==u&&l(n,d)):16&h?16&f?$(u,d,n,r,i,o,s,a,c):Y(u,i,o,!0):(8&h&&l(n,""),16&f&&_(d,n,r,i,o,s,a,c))},U=(e,t,n,r,i,o,s,a,c)=>{const l=(e=e||v).length,u=(t=t||v).length,h=Math.min(l,u);let d;for(d=0;d<h;d++){const r=t[d]=c?si(t[d]):oi(t[d]);g(e[d],r,n,null,i,o,s,a,c)}l>u?Y(e,i,o,!0,!1,h):_(t,n,r,i,o,s,a,c,h)},$=(e,t,n,r,i,o,s,a,c)=>{let l=0;const u=t.length;let h=e.length-1,d=u-1;for(;l<=h&&l<=d;){const r=e[l],u=t[l]=c?si(t[l]):oi(t[l]);if(!Yr(r,u))break;g(r,u,n,null,i,o,s,a,c),l++}for(;l<=h&&l<=d;){const r=e[h],l=t[d]=c?si(t[d]):oi(t[d]);if(!Yr(r,l))break;g(r,l,n,null,i,o,s,a,c),h--,d--}if(l>h){if(l<=d){const e=d+1,h=e<u?t[e].el:r;for(;l<=d;)g(null,t[l]=c?si(t[l]):oi(t[l]),n,h,i,o,s,a,c),l++}}else if(l>d)for(;l<=h;)G(e[l],i,o,!0),l++;else{const p=l,f=l,m=new Map;for(l=f;l<=d;l++){const e=t[l]=c?si(t[l]):oi(t[l]);null!=e.key&&m.set(e.key,l)}let E,y=0;const b=d-f+1;let A=!1,T=0;const C=new Array(b);for(l=0;l<b;l++)C[l]=0;for(l=p;l<=h;l++){const r=e[l];if(y>=b){G(r,i,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(E=f;E<=d;E++)if(0===C[E-f]&&Yr(r,t[E])){u=E;break}void 0===u?G(r,i,o,!0):(C[u-f]=l+1,u>=T?T=u:A=!0,g(r,t[u],n,null,i,o,s,a,c),y++)}const R=A?function(e){const t=e.slice(),n=[0];let r,i,o,s,a;const c=e.length;for(r=0;r<c;r++){const c=e[r];if(0!==c){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,e[n[a]]<c?o=a+1:s=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}(C):v;for(E=R.length-1,l=b-1;l>=0;l--){const e=f+l,h=t[e],d=e+1<u?t[e+1].el:r;0===C[l]?g(null,h,n,d,i,o,s,a,c):A&&(E<0||l!==R[E]?H(h,n,d,2):E--)}}},H=(e,t,r,i,o=null)=>{const{el:s,type:a,transition:c,children:l,shapeFlag:u}=e;if(6&u)H(e.component.subTree,t,r,i);else if(128&u)e.suspense.move(t,r,i);else if(64&u)a.move(e,t,r,ee);else if(a!==Fr)if(a!==Br)if(2!==i&&1&u&&c)if(0===i)c.beforeEnter(s),n(s,t,r),Er((()=>c.enter(s)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=c,a=()=>n(s,t,r),l=()=>{e(s,(()=>{a(),o&&o()}))};i?i(s,a,l):l()}else n(s,t,r);else(({el:e,anchor:t},r,i)=>{let o;for(;e&&e!==t;)o=h(e),n(e,r,i),e=o;n(t,r,i)})(e,t,r);else{n(s,t,r);for(let e=0;e<l.length;e++)H(l[e],t,r,i);n(e.anchor,t,r)}},G=(e,t,n,r=!1,i=!1)=>{const{type:o,props:s,ref:a,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:h,dirs:d}=e;if(null!=a&&Ar(a,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&d;let f;if((f=s&&s.onVnodeBeforeUnmount)&&Tr(f,t,e),6&u)z(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);p&&lr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,i,ee,r):l&&(o!==Fr||h>0&&64&h)?Y(l,t,n,!1,!0):(o===Fr&&(128&h||256&h)||!i&&16&u)&&Y(c,t,n),r&&V(e)}((f=s&&s.onVnodeUnmounted)||p)&&Er((()=>{f&&Tr(f,t,e),p&&lr(e,null,t,"unmounted")}),n)},V=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===Fr)return void j(n,i);if(t===Br)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),r(e),e=n;r(t)})(e);const s=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},j=(e,t)=>{let n;for(;e!==t;)n=h(e),r(e),e=n;r(t)},z=(e,t,n)=>{const{bum:r,scope:i,update:o,subTree:s,um:a}=e;r&&Q(r),i.stop(),o&&(o.active=!1,G(s,e,t,n)),a&&Er(a,t),Er((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Y=(e,t,n,r=!1,i=!1,o=0)=>{for(let s=o;s<e.length;s++)G(e[s],t,n,r,i)},X=e=>6&e.shapeFlag?X(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),J=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),so(),t._vnode=e},ee={p:g,um:G,m:H,r:V,mt:k,mc:_,pc:B,pbc:I,n:X,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:J,hydrate:te,createApp:dr(J,te)}}function Ar(e,t,n,r,i=!1){if(I(e))return void e.forEach(((e,o)=>Ar(e,t&&(I(t)?t[o]:t),n,r,i)));if(En(r)&&!i)return;const o=4&r.shapeFlag?Ni(r.component)||r.component.proxy:r.el,s=i?null:o,{i:a,r:c}=e,l=t&&t.r,u=a.refs===y?a.refs={}:a.refs,h=a.setupState;if(null!=l&&l!==c&&(D(l)?(u[l]=null,w(h,l)&&(h[l]=null)):Rt(l)&&(l.value=null)),D(c)){const e=()=>{u[c]=s,w(h,c)&&(h[c]=s)};s?(e.id=-1,Er(e,n)):e()}else if(Rt(c)){const e=()=>{c.value=s};s?(e.id=-1,Er(e,n)):e()}else k(c)&&Bi(c,a,12,[s,u])}function Tr(e,t,n,r=null){Ui(e,t,7,[n,r])}function Cr(e,t,n=!1){const r=e.children,i=t.children;if(I(r)&&I(i))for(let e=0;e<r.length;e++){const t=r[e];let o=i[e];1&o.shapeFlag&&!o.dynamicChildren&&((o.patchFlag<=0||32===o.patchFlag)&&(o=i[e]=si(i[e]),o.el=t.el),n||Cr(t,o))}}const Rr=e=>e&&(e.disabled||""===e.disabled),Sr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,_r=(e,t)=>{const n=e&&e.to;return D(n)?t?t(n):null:n};function xr(e,t,n,{o:{insert:r},m:i},o=2){0===o&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:c,children:l,props:u}=e,h=2===o;if(h&&r(s,t,n),(!h||Rr(u))&&16&c)for(let e=0;e<l.length;e++)i(l[e],t,n,2);h&&r(a,t,n)}const wr={__isTeleport:!0,process(e,t,n,r,i,o,s,a,c,l){const{mc:u,pc:h,pbc:d,o:{insert:p,querySelector:f,createText:g}}=l,m=Rr(t.props);let{shapeFlag:E,children:y,dynamicChildren:v}=t;if(null==e){const e=t.el=g(""),l=t.anchor=g("");p(e,n,r),p(l,n,r);const h=t.target=_r(t.props,f),d=t.targetAnchor=g("");h&&(p(d,h),s=s||Sr(h));const v=(e,t)=>{16&E&&u(y,e,t,i,o,s,a,c)};m?v(n,l):h&&v(h,d)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,p=t.targetAnchor=e.targetAnchor,g=Rr(e.props),E=g?n:u,y=g?r:p;if(s=s||Sr(u),v?(d(e.dynamicChildren,v,E,i,o,s,a),Cr(e,t,!0)):c||h(e,t,E,y,i,o,s,a,!1),m)g||xr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=_r(t.props,f);e&&xr(t,e,null,l,0)}else g&&xr(t,u,p,l,1)}},remove(e,t,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:a,children:c,anchor:l,targetAnchor:u,target:h,props:d}=e;if(h&&o(u),(s||!Rr(d))&&(o(l),16&a))for(let e=0;e<c.length;e++){const r=c[e];i(r,t,n,!0,!!r.dynamicChildren)}},move:xr,hydrate:function(e,t,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:c}},l){const u=t.target=_r(t.props,c);if(u){const c=u._lpa||u.firstChild;16&t.shapeFlag&&(Rr(t.props)?(t.anchor=l(s(e),t,a(e),n,r,i,o),t.targetAnchor=c):(t.anchor=s(e),t.targetAnchor=l(c,t,u,n,r,i,o)),u._lpa=t.targetAnchor&&s(t.targetAnchor))}return t.anchor&&s(t.anchor)}};function Ir(e,t){return kr("components",e,!0,t)||e}const Nr=Symbol();function Lr(e){return D(e)?kr("components",e,!1)||e:e||Nr}function Or(e){return kr("directives",e)}function kr(e,t,n=!0,r=!1){const i=Ht||yi;if(i){const n=i.type;if("components"===e){const e=Oi(n);if(e&&(e===t||e===q(t)||e===Y(q(t))))return n}const o=Dr(i[e]||n[e],t)||Dr(i.appContext[e],t);return!o&&r?n:o}}function Dr(e,t){return e&&(e[t]||e[q(t)]||e[Y(q(t))])}const Fr=Symbol(void 0),Mr=Symbol(void 0),Pr=Symbol(void 0),Br=Symbol(void 0),Ur=[];let $r=null;function Hr(e=!1){Ur.push($r=e?null:[])}function Gr(){Ur.pop(),$r=Ur[Ur.length-1]||null}let Wr=1;function Vr(e){Wr+=e}function jr(e){return e.dynamicChildren=Wr>0?$r||v:null,Gr(),Wr>0&&$r&&$r.push(e),e}function qr(e,t,n,r,i,o){return jr(Zr(e,t,n,r,i,o,!0))}function zr(e,t,n,r,i){return jr(ei(e,t,n,r,i,!0))}function Kr(e){return!!e&&!0===e.__v_isVNode}function Yr(e,t){return e.type===t.type&&e.key===t.key}const Xr="__vInternal",Jr=({key:e})=>null!=e?e:null,Qr=({ref:e})=>null!=e?D(e)||Rt(e)||k(e)?{i:Ht,r:e}:e:null;function Zr(e,t=null,n=null,r=0,i=null,o=(e===Fr?0:1),s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jr(t),ref:t&&Qr(t),scopeId:Gt,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(ai(c,n),128&o&&e.normalize(c)):n&&(c.shapeFlag|=D(n)?8:16),Wr>0&&!s&&$r&&(c.patchFlag>0||6&o)&&32!==c.patchFlag&&$r.push(c),c}const ei=function(e,t=null,n=null,i=0,o=null,s=!1){if(e&&e!==Nr||(e=Pr),Kr(e)){const r=ni(e,t,!0);return n&&ai(r,n),r}var a;if(k(a=e)&&"__vccOpts"in a&&(e=e.__vccOpts),t){t=ti(t);let{class:e,style:n}=t;e&&!D(e)&&(t.class=l(e)),M(n)&&(yt(n)&&!I(n)&&(n=S({},n)),t.style=r(n))}return Zr(e,t,n,i,o,D(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:M(e)?4:k(e)?2:0,s,!0)};function ti(e){return e?yt(e)||Xr in e?S({},e):e:null}function ni(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,a=t?ci(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Jr(a),ref:t&&t.ref?n&&i?I(i)?i.concat(Qr(t)):[i,Qr(t)]:Qr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fr?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ni(e.ssContent),ssFallback:e.ssFallback&&ni(e.ssFallback),el:e.el,anchor:e.anchor}}function ri(e=" ",t=0){return ei(Mr,null,e,t)}function ii(e="",t=!1){return t?(Hr(),zr(Pr,null,e)):ei(Pr,null,e)}function oi(e){return null==e||"boolean"==typeof e?ei(Pr):I(e)?ei(Fr,null,e.slice()):"object"==typeof e?si(e):ei(Mr,null,String(e))}function si(e){return null===e.el||e.memo?e:ni(e)}function ai(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(I(t))n=16;else if("object"==typeof t){if(1&r||64&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),ai(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Xr in t?3===r&&Ht&&(1===Ht.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Ht}}else k(t)?(t={default:t,_ctx:Ht},n=32):(t=String(t),64&r?(n=16,t=[ri(t)]):n=8);e.children=t,e.shapeFlag|=n}function ci(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=l([t.class,i.class]));else if("style"===e)t.style=r([t.style,i.style]);else if(C(e)){const n=t[e],r=i[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=i[e])}return t}function li(e,t,n,r){let i;const o=n&&n[r];if(I(e)||D(e)){i=new Array(e.length);for(let n=0,r=e.length;n<r;n++)i[n]=t(e[n],n,void 0,o&&o[n])}else if("number"==typeof e){i=new Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,o&&o[n])}else if(M(e))if(e[Symbol.iterator])i=Array.from(e,((e,n)=>t(e,n,void 0,o&&o[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,s=n.length;r<s;r++){const s=n[r];i[r]=t(e[s],s,r,o&&o[r])}}else i=[];return n&&(n[r]=i),i}function ui(e,t,n={},r,i){if(Ht.isCE)return ei("slot","default"===t?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),Hr();const s=o&&hi(o(n)),a=zr(Fr,{key:n.key||`_${t}`},s||(r?r():[]),s&&1===e._?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function hi(e){return e.some((e=>!Kr(e)||e.type!==Pr&&!(e.type===Fr&&!hi(e.children))))?e:null}const di=e=>e?Ti(e)?Ni(e)||e.proxy:di(e.parent):null,pi=S(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>di(e.parent),$root:e=>di(e.root),$emit:e=>e.emit,$options:e=>Wn(e),$forceUpdate:e=>()=>to(e.update),$nextTick:e=>eo.bind(e.proxy),$watch:e=>fo.bind(e)}),fi={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:c}=e;let l;if("$"!==t[0]){const a=s[t];if(void 0!==a)switch(a){case 0:return r[t];case 1:return i[t];case 3:return n[t];case 2:return o[t]}else{if(r!==y&&w(r,t))return s[t]=0,r[t];if(i!==y&&w(i,t))return s[t]=1,i[t];if((l=e.propsOptions[0])&&w(l,t))return s[t]=2,o[t];if(n!==y&&w(n,t))return s[t]=3,n[t];$n&&(s[t]=4)}}const u=pi[t];let h,d;return u?("$attrs"===t&&Ae(e,0,t),u(e)):(h=a.__cssModules)&&(h=h[t])?h:n!==y&&w(n,t)?(s[t]=3,n[t]):(d=c.config.globalProperties,w(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;if(i!==y&&w(i,t))i[t]=n;else if(r!==y&&w(r,t))r[t]=n;else if(w(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(o[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return void 0!==n[s]||e!==y&&w(e,s)||t!==y&&w(t,s)||(a=o[0])&&w(a,s)||w(r,s)||w(pi,s)||w(i.config.globalProperties,s)}},gi=S({},fi,{get(e,t){if(t!==Symbol.unscopables)return fi.get(e,t,e)},has:(e,n)=>"_"!==n[0]&&!t(n)}),mi=ur();let Ei=0,yi=null;const vi=()=>yi||Ht,bi=e=>{yi=e,e.scope.on()},Ai=()=>{yi&&yi.scope.off(),yi=null};function Ti(e){return 4&e.vnode.shapeFlag}let Ci,Ri,Si=!1;function _i(e,t,n){k(t)?e.render=t:M(t)&&(e.setupState=Nt(t)),wi(e)}function xi(e){Ci=e,Ri=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,gi))}}function wi(e,t,n){const r=e.type;if(!e.render){if(Ci&&!r.render){const t=r.template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:s}=r,a=S(S({isCustomElement:n,delimiters:o},i),s);r.render=Ci(t,a)}}e.render=r.render||b,Ri&&Ri(e)}bi(e),ve(),function(e){const t=Wn(e),n=e.proxy,r=e.ctx;$n=!1,t.beforeCreate&&Hn(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:c,inject:l,created:u,beforeMount:h,mounted:d,beforeUpdate:p,updated:f,activated:g,deactivated:m,beforeUnmount:E,unmounted:y,render:v,renderTracked:A,renderTriggered:T,errorCaptured:C,serverPrefetch:R,expose:S,inheritAttrs:_,components:x,directives:w}=t;if(l&&function(e,t,n=b,r=!1){I(e)&&(e=zn(e));for(const n in e){const i=e[n];let o;o=M(i)?"default"in i?sn(i.from||n,i.default,!0):sn(i.from||n):sn(i),Rt(o)&&r?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[n]=o}}(l,r,null,e.appContext.config.unwrapInjectedRef),s)for(const e in s){const t=s[e];k(t)&&(r[e]=t.bind(n))}if(i){const t=i.call(n,n);M(t)&&(e.data=dt(t))}if($n=!0,o)for(const e in o){const t=o[e],i=Mt({get:k(t)?t.bind(n,n):k(t.get)?t.get.bind(n,n):b,set:!k(t)&&k(t.set)?t.set.bind(n):b});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(a)for(const e in a)Gn(a[e],r,n,e);if(c){const e=k(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{on(t,e[t])}))}function N(e,t){I(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Hn(u,e,"c"),N(Nn,h),N(Ln,d),N(On,p),N(kn,f),N(Tn,g),N(Cn,m),N(Un,C),N(Bn,A),N(Pn,T),N(Dn,E),N(Fn,y),N(Mn,R),I(S))if(S.length){const t=e.exposed||(e.exposed={});S.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});v&&e.render===b&&(e.render=v),null!=_&&(e.inheritAttrs=_),x&&(e.components=x),w&&(e.directives=w)}(e),be(),Ai()}function Ii(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ae(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ni(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Nt(bt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in pi?pi[n](e):void 0}))}const Li=/(?:^|[-_])(\w)/g;function Oi(e){return k(e)&&e.displayName||e.name}function ki(e,t,n=!1){let r=Oi(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Li,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}const Di=[];function Fi(e,...t){ve();const n=Di.length?Di[Di.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=function(){let e=Di[Di.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)Bi(r,n,11,[e+t.join(""),n&&n.proxy,i.map((({vnode:e})=>`at <${ki(n,e.type)}>`)).join("\n"),i]);else{const n=[`[Vue warn]: ${e}`,...t];i.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=` at <${ki(e.component,e.type,!!e.component&&null==e.component.parent)}`,i=">"+n;return e.props?[r,...Mi(e.props),i]:[r+i]}(e))})),t}(i)),console.warn(...n)}be()}function Mi(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Pi(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Pi(e,t,n){return D(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:Rt(t)?(t=Pi(e,vt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):k(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=vt(t),n?t:[`${e}=`,t])}function Bi(e,t,n,r){let i;try{i=r?e(...r):e()}catch(e){$i(e,t,n)}return i}function Ui(e,t,n,r){if(k(e)){const i=Bi(e,t,n,r);return i&&P(i)&&i.catch((e=>{$i(e,t,n)})),i}const i=[];for(let o=0;o<e.length;o++)i.push(Ui(e[o],t,n,r));return i}function $i(e,t,n,r=!0){if(t){let r=t.parent;const i=t.proxy,o=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,i,o))return;r=r.parent}const s=t.appContext.config.errorHandler;if(s)return void Bi(s,null,10,[e,i,o])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let Hi=!1,Gi=!1;const Wi=[];let Vi=0;const ji=[];let qi=null,zi=0;const Ki=[];let Yi=null,Xi=0;const Ji=Promise.resolve();let Qi=null,Zi=null;function eo(e){const t=Qi||Ji;return e?t.then(this?e.bind(this):e):t}function to(e){Wi.length&&Wi.includes(e,Hi&&e.allowRecurse?Vi+1:Vi)||e===Zi||(null==e.id?Wi.push(e):Wi.splice(function(e){let t=Vi+1,n=Wi.length;for(;t<n;){const r=t+n>>>1;ao(Wi[r])<e?t=r+1:n=r}return t}(e.id),0,e),no())}function no(){Hi||Gi||(Gi=!0,Qi=Ji.then(co))}function ro(e,t,n,r){I(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),no()}function io(e){ro(e,Yi,Ki,Xi)}function oo(e,t=null){if(ji.length){for(Zi=t,qi=[...new Set(ji)],ji.length=0,zi=0;zi<qi.length;zi++)qi[zi]();qi=null,zi=0,Zi=null,oo(e,t)}}function so(e){if(Ki.length){const e=[...new Set(Ki)];if(Ki.length=0,Yi)return void Yi.push(...e);for(Yi=e,Yi.sort(((e,t)=>ao(e)-ao(t))),Xi=0;Xi<Yi.length;Xi++)Yi[Xi]();Yi=null,Xi=0}}const ao=e=>null==e.id?1/0:e.id;function co(e){Gi=!1,Hi=!0,oo(e),Wi.sort(((e,t)=>ao(e)-ao(t)));try{for(Vi=0;Vi<Wi.length;Vi++){const e=Wi[Vi];e&&!1!==e.active&&Bi(e,null,14)}}finally{Vi=0,Wi.length=0,so(),Hi=!1,Qi=null,(Wi.length||ji.length||Ki.length)&&co(e)}}function lo(e,t){return po(e,null,{flush:"post"})}const uo={};function ho(e,t,n){return po(e,t,n)}function po(e,t,{immediate:n,deep:r,flush:i}=y){const o=yi;let s,a,c=!1,l=!1;if(Rt(e)?(s=()=>e.value,c=!!e._shallow):mt(e)?(s=()=>e,r=!0):I(e)?(l=!0,c=e.some(mt),s=()=>e.map((e=>Rt(e)?e.value:mt(e)?mo(e):k(e)?Bi(e,o,2):void 0))):s=k(e)?t?()=>Bi(e,o,2):()=>{if(!o||!o.isUnmounted)return a&&a(),Ui(e,o,3,[u])}:b,t&&r){const e=s;s=()=>mo(e())}let u=e=>{a=f.onStop=()=>{Bi(e,o,4)}},h=l?[]:uo;const d=()=>{if(f.active)if(t){const e=f.run();(r||c||(l?e.some(((e,t)=>J(e,h[t]))):J(e,h)))&&(a&&a(),Ui(t,o,3,[e,h===uo?void 0:h,u]),h=e)}else f.run()};let p;d.allowRecurse=!!t,p="sync"===i?d:"post"===i?()=>Er(d,o&&o.suspense):()=>{!o||o.isMounted?function(e){ro(e,qi,ji,zi)}(d):d()};const f=new ge(s,p);return t?n?d():h=f.run():"post"===i?Er(f.run.bind(f),o&&o.suspense):f.run(),()=>{f.stop(),o&&o.scope&&_(o.scope.effects,f)}}function fo(e,t,n){const r=this.proxy,i=D(e)?e.includes(".")?go(r,e):()=>r[e]:e.bind(r,r);let o;k(t)?o=t:(o=t.handler,n=t);const s=yi;bi(this);const a=po(i,o.bind(r),n);return s?bi(s):Ai(),a}function go(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function mo(e,t=new Set){if(!M(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Rt(e))mo(e.value,t);else if(I(e))for(let n=0;n<e.length;n++)mo(e[n],t);else if(L(e)||N(e))e.forEach((e=>{mo(e,t)}));else if(H(e))for(const n in e)mo(e[n],t);return e}function Eo(){const e=vi();return e.setupContext||(e.setupContext=Ii(e))}function yo(e,t,n){const r=arguments.length;return 2===r?M(t)&&!I(t)?Kr(t)?ei(e,null,[t]):ei(e,t):ei(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Kr(n)&&(n=[n]),ei(e,t,n))}const vo=Symbol("");function bo(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==t[e])return!1;return Wr>0&&$r&&$r.push(e),!0}const Ao="3.2.0",To="undefined"!=typeof document?document:null,Co=new Map,Ro={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?To.createElementNS("http://www.w3.org/2000/svg",e):To.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>To.createTextNode(e),createComment:e=>To.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>To.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const i=n?n.previousSibling:t.lastChild;let o=Co.get(e);if(!o){const t=To.createElement("template");if(t.innerHTML=r?`<svg>${e}</svg>`:e,o=t.content,r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}Co.set(e,o)}return t.insertBefore(o.cloneNode(!0),n),[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},So=/\s*!important$/;function _o(e,t,n){if(I(n))n.forEach((n=>_o(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=wo[t];if(n)return n;let r=q(t);if("filter"!==r&&r in e)return wo[t]=r;r=Y(r);for(let n=0;n<xo.length;n++){const i=xo[n]+r;if(i in e)return wo[t]=i}return t}(e,t);So.test(n)?e.setProperty(K(r),n.replace(So,""),"important"):e[r]=n}}const xo=["Webkit","Moz","ms"],wo={},Io="http://www.w3.org/1999/xlink";let No=Date.now,Lo=!1;if("undefined"!=typeof window){No()>document.createEvent("Event").timeStamp&&(No=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Lo=!!(e&&Number(e[1])<=53)}let Oo=0;const ko=Promise.resolve(),Do=()=>{Oo=0};function Fo(e,t,n,r){e.addEventListener(t,n,r)}const Mo=/(?:Once|Passive|Capture)$/,Po=/^on[a-z]/;function Bo(e,t){const n=mn(e);class r extends $o{constructor(e){super(n,e,t)}}return r.def=n,r}const Uo="undefined"!=typeof HTMLElement?HTMLElement:class{};class $o extends Uo{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"});for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0})}connectedCallback(){this._connected=!0,this._instance||(this._resolveDef(),Fs(this._createVNode(),this.shadowRoot))}disconnectedCallback(){this._connected=!1,eo((()=>{this._connected||(Fs(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;const e=e=>{this._resolved=!0;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e]);const{props:t,styles:n}=e,r=t?I(t)?t:Object.keys(t):[];for(const e of r.map(q))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n)},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){this._setProp(q(e),ee(this.getAttribute(e)),!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0){t!==this._props[e]&&(this._props[e]=t,this._instance&&Fs(this._createVNode(),this.shadowRoot),n&&(!0===t?this.setAttribute(K(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(K(e),t+""):t||this.removeAttribute(K(e))))}_createVNode(){const e=ei(this._def,S({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof $o){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function Ho(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Ho(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Go(e.el,t);else if(e.type===Fr)e.children.forEach((e=>Ho(e,t)));else if(e.type===Br){let{el:n,anchor:r}=e;for(;n&&(Go(n,t),n!==r);)n=n.nextSibling}}function Go(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const Wo=(e,{slots:t})=>yo(ln,Ko(e),t);Wo.displayName="Transition";const Vo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},jo=Wo.props=S({},ln.props,Vo),qo=(e,t=[])=>{I(e)?e.forEach((e=>e(...t))):e&&e(...t)},zo=e=>!!e&&(I(e)?e.some((e=>e.length>1)):e.length>1);function Ko(e){const t={};for(const n in e)n in Vo||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:l=s,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(M(e))return[Yo(e.enter),Yo(e.leave)];{const t=Yo(e);return[t,t]}}(i),g=f&&f[0],m=f&&f[1],{onBeforeEnter:E,onEnter:y,onEnterCancelled:v,onLeave:b,onLeaveCancelled:A,onBeforeAppear:T=E,onAppear:C=y,onAppearCancelled:R=v}=t,_=(e,t,n)=>{Jo(e,t?u:a),Jo(e,t?l:s),n&&n()},x=(e,t)=>{Jo(e,p),Jo(e,d),t&&t()},w=e=>(t,n)=>{const i=e?C:y,s=()=>_(t,e,n);qo(i,[t,s]),Qo((()=>{Jo(t,e?c:o),Xo(t,e?u:a),zo(i)||es(t,r,g,s)}))};return S(t,{onBeforeEnter(e){qo(E,[e]),Xo(e,o),Xo(e,s)},onBeforeAppear(e){qo(T,[e]),Xo(e,c),Xo(e,l)},onEnter:w(!1),onAppear:w(!0),onLeave(e,t){const n=()=>x(e,t);Xo(e,h),is(),Xo(e,d),Qo((()=>{Jo(e,h),Xo(e,p),zo(b)||es(e,r,m,n)})),qo(b,[e,n])},onEnterCancelled(e){_(e,!1),qo(v,[e])},onAppearCancelled(e){_(e,!0),qo(R,[e])},onLeaveCancelled(e){x(e),qo(A,[e])}})}function Yo(e){return ee(e)}function Xo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Jo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Qo(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Zo=0;function es(e,t,n,r){const i=e._endId=++Zo,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:s,timeout:a,propCount:c}=ts(e,t);if(!s)return r();const l=s+"end";let u=0;const h=()=>{e.removeEventListener(l,d),o()},d=t=>{t.target===e&&++u>=c&&h()};setTimeout((()=>{u<c&&h()}),a+1),e.addEventListener(l,d)}function ts(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r("transitionDelay"),o=r("transitionDuration"),s=ns(i,o),a=r("animationDelay"),c=r("animationDuration"),l=ns(a,c);let u=null,h=0,d=0;return"transition"===t?s>0&&(u="transition",h=s,d=o.length):"animation"===t?l>0&&(u="animation",h=l,d=c.length):(h=Math.max(s,l),u=h>0?s>l?"transition":"animation":null,d=u?"transition"===u?o.length:c.length:0),{type:u,timeout:h,propCount:d,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function ns(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>rs(t)+rs(e[n]))))}function rs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function is(){return document.body.offsetHeight}const os=new WeakMap,ss=new WeakMap,as={name:"TransitionGroup",props:S({},jo,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vi(),r=an();let i,o;return kn((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const i=1===t.nodeType?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=ts(r);return i.removeChild(r),o}(i[0].el,n.vnode.el,t))return;i.forEach(cs),i.forEach(ls);const r=i.filter(us);is(),r.forEach((e=>{const n=e.el,r=n.style;Xo(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n._moveCb=null,Jo(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const s=vt(e),a=Ko(s);let c=s.tag||Fr;i=o,o=t.default?gn(t.default()):[];for(let e=0;e<o.length;e++){const t=o[e];null!=t.key&&fn(t,hn(t,a,r,n))}if(i)for(let e=0;e<i.length;e++){const t=i[e];fn(t,hn(t,a,r,n)),os.set(t,t.el.getBoundingClientRect())}return ei(c,null,o)}}};function cs(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ls(e){ss.set(e,e.el.getBoundingClientRect())}function us(e){const t=os.get(e),n=ss.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration="0s",e}}const hs=e=>{const t=e.props["onUpdate:modelValue"];return I(t)?e=>Q(t,e):t};function ds(e){e.target.composing=!0}function ps(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const fs={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=hs(i);const o=r||i.props&&"number"===i.props.type;Fo(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():o&&(r=ee(r)),e._assign(r)})),n&&Fo(e,"change",(()=>{e.value=e.value.trim()})),t||(Fo(e,"compositionstart",ds),Fo(e,"compositionend",ps),Fo(e,"change",ps))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=hs(o),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((i||"number"===e.type)&&ee(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},gs={deep:!0,created(e,t,n){e._assign=hs(n),Fo(e,"change",(()=>{const t=e._modelValue,n=bs(e),r=e.checked,i=e._assign;if(I(t)){const e=g(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(L(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(As(e,r))}))},mounted:ms,beforeUpdate(e,t,n){e._assign=hs(n),ms(e,t,n)}};function ms(e,{value:t,oldValue:n},r){e._modelValue=t,I(t)?e.checked=g(t,r.props.value)>-1:L(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=f(t,As(e,!0)))}const Es={created(e,{value:t},n){e.checked=f(t,n.props.value),e._assign=hs(n),Fo(e,"change",(()=>{e._assign(bs(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=hs(r),t!==n&&(e.checked=f(t,r.props.value))}},ys={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=L(t);Fo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?ee(bs(e)):bs(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=hs(r)},mounted(e,{value:t}){vs(e,t)},beforeUpdate(e,t,n){e._assign=hs(n)},updated(e,{value:t}){vs(e,t)}};function vs(e,t){const n=e.multiple;if(!n||I(t)||L(t)){for(let r=0,i=e.options.length;r<i;r++){const i=e.options[r],o=bs(i);if(n)i.selected=I(t)?g(t,o)>-1:t.has(o);else if(f(bs(i),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function bs(e){return"_value"in e?e._value:e.value}function As(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ts={created(e,t,n){Cs(e,t,n,null,"created")},mounted(e,t,n){Cs(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Cs(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Cs(e,t,n,r,"updated")}};function Cs(e,t,n,r,i){let o;switch(e.tagName){case"SELECT":o=ys;break;case"TEXTAREA":o=fs;break;default:switch(n.props&&n.props.type){case"checkbox":o=gs;break;case"radio":o=Es;break;default:o=fs}}const s=o[i];s&&s(e,t,n,r)}const Rs=["ctrl","shift","alt","meta"],Ss={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Rs.some((n=>e[`${n}Key`]&&!t.includes(n)))},_s=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=Ss[t[e]];if(r&&r(n,t))return}return e(n,...r)},xs={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ws={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Is(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Is(e,!0),r.enter(e)):r.leave(e,(()=>{Is(e,!1)})):Is(e,t))},beforeUnmount(e,{value:t}){Is(e,t)}};function Is(e,t){e.style.display=t?e._vod:"none"}const Ns=S({patchProp:(e,t,r,i,o=!1,s,a,c,l)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,o):"style"===t?function(e,t,n){const r=e.style;if(n)if(D(n)){if(t!==n){const t=r.display;r.cssText=n,"_vod"in e&&(r.display=t)}}else{for(const e in n)_o(r,e,n[e]);if(t&&!D(t))for(const e in t)null==n[e]&&_o(r,e,"")}else e.removeAttribute("style")}(e,r,i):C(t)?R(t)||function(e,t,n,r,i=null){const o=e._vei||(e._vei={}),s=o[t];if(r&&s)s.value=r;else{const[n,a]=function(e){let t;if(Mo.test(e)){let n;for(t={};n=e.match(Mo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[K(e.slice(2)),t]}(t);r?Fo(e,n,o[t]=function(e,t){const n=e=>{const r=e.timeStamp||No();(Lo||r>=n.attached-1)&&Ui(function(e,t){if(I(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Oo||(ko.then(Do),Oo=No()),n}(r,i),a):s&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,a),o[t]=void 0)}}(e,t,0,i,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){return r?"innerHTML"===t||!!(t in e&&Po.test(t)&&k(n)):!("spellcheck"===t||"draggable"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName||Po.test(t)&&D(n)||!(t in e))}(e,t,i,o))?function(e,t,n,r,i,o,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,i,o),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const r=null==n?"":n;return e.value!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if(""===n&&"boolean"===r)return void(e[t]=!0);if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,i,s,a,c,l):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,r,i,o){if(i&&t.startsWith("xlink:"))null==r?e.removeAttributeNS(Io,t.slice(6,t.length)):e.setAttributeNS(Io,t,r);else{const i=n(t);null==r||i&&!1===r?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}(e,t,i,o))}},Ro);let Ls,Os=!1;function ks(){return Ls||(Ls=yr(Ns))}function Ds(){return Ls=Os?Ls:vr(Ns),Os=!0,Ls}const Fs=(...e)=>{ks().render(...e)},Ms=(...e)=>{Ds().hydrate(...e)},Ps=(...e)=>{const t=ks().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Bs(e);if(!r)return;const i=t._component;k(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Bs(e){return D(e)?document.querySelector(e):e}var Us=Object.freeze({__proto__:null,render:Fs,hydrate:Ms,createApp:Ps,createSSRApp:(...e)=>{const t=Ds().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Bs(e);if(t)return n(t,!0,t instanceof SVGElement)},t},defineCustomElement:Bo,defineSSRCustomElement:e=>Bo(e,Ms),VueElement:$o,useCssModule:function(e="$style"){{const t=vi();if(!t)return y;const n=t.type.__cssModules;return n&&n[e]||y}},useCssVars:function(e){const t=vi();if(!t)return;const n=()=>Ho(t.subTree,e(t.proxy));lo(n),Ln((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),Fn((()=>e.disconnect()))}))},Transition:Wo,TransitionGroup:as,vModelText:fs,vModelCheckbox:gs,vModelRadio:Es,vModelSelect:ys,vModelDynamic:Ts,withModifiers:_s,withKeys:(e,t)=>n=>{if(!("key"in n))return;const r=K(n.key);return t.some((e=>e===r||xs[e]===r))?e(n):void 0},vShow:ws,computed:Mt,reactive:dt,ref:St,readonly:ft,unref:wt,proxyRefs:Nt,isRef:Rt,toRef:Dt,toRefs:Ot,isProxy:yt,isReactive:mt,isReadonly:Et,customRef:function(e){return new Lt(e)},triggerRef:function(e){Tt(e)},shallowRef:function(e){return xt(e,!0)},shallowReactive:pt,shallowReadonly:function(e){return gt(e,!0,Be,at,ht)},markRaw:bt,toRaw:vt,effect:function(e,t){e.effect&&(e=e.effect.fn);const n=new ge(e);t&&(S(n,t),t.scope&&ie(n,t.scope)),t&&t.lazy||n.run();const r=n.run.bind(n);return r.effect=n,r},stop:function(e){e.effect.stop()},ReactiveEffect:ge,effectScope:function(e){return new re(e)},EffectScope:re,getCurrentScope:function(){return te},onScopeDispose:function(e){te&&te.cleanups.push(e)},watch:ho,watchEffect:function(e,t){return po(e,null,t)},watchPostEffect:lo,watchSyncEffect:function(e,t){return po(e,null,{flush:"sync"})},onBeforeMount:Nn,onMounted:Ln,onBeforeUpdate:On,onUpdated:kn,onBeforeUnmount:Dn,onUnmounted:Fn,onActivated:Tn,onDeactivated:Cn,onRenderTracked:Bn,onRenderTriggered:Pn,onErrorCaptured:Un,onServerPrefetch:Mn,provide:on,inject:sn,nextTick:eo,defineComponent:mn,defineAsyncComponent:function(e){k(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:s=!0,onError:a}=e;let c,l=null,u=0;const h=()=>{let e;return l||(e=l=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),a)return new Promise(((t,n)=>{a(e,(()=>t((u++,l=null,h()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==l&&l?l:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return mn({name:"AsyncComponentWrapper",__asyncLoader:h,get __asyncResolved(){return c},setup(){const e=yi;if(c)return()=>yn(c,e);const t=t=>{l=null,$i(t,e,13,!r)};if(s&&e.suspense)return h().then((t=>()=>yn(t,e))).catch((e=>(t(e),()=>r?ei(r,{error:e}):null)));const a=St(!1),u=St(),d=St(!!i);return i&&setTimeout((()=>{d.value=!1}),i),null!=o&&setTimeout((()=>{if(!a.value&&!u.value){const e=new Error(`Async component timed out after ${o}ms.`);t(e),u.value=e}}),o),h().then((()=>{a.value=!0,e.parent&&vn(e.parent.vnode)&&to(e.parent.update)})).catch((e=>{t(e),u.value=e})),()=>a.value&&c?yn(c,e):u.value&&r?ei(r,{error:u.value}):n&&!d.value?ei(n):void 0}})},useAttrs:function(){return Eo().attrs},useSlots:function(){return Eo().slots},defineProps:function(){return null},defineEmits:function(){return null},defineExpose:function(e){},withDefaults:function(e,t){return null},mergeDefaults:function(e,t){for(const n in t){const r=e[n];r?r.default=t[n]:null===r&&(e[n]={default:t[n]})}return e},withAsyncContext:function(e){const t=vi();let n=e();return Ai(),P(n)&&(n=n.catch((e=>{throw bi(t),e}))),[n,()=>bi(t)]},getCurrentInstance:vi,h:yo,createVNode:ei,cloneVNode:ni,mergeProps:ci,isVNode:Kr,Fragment:Fr,Text:Mr,Comment:Pr,Static:Br,Teleport:wr,Suspense:Qt,KeepAlive:bn,BaseTransition:ln,withDirectives:cr,useSSRContext:()=>{{const e=sn(vo);return e||Fi("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}},ssrContextKey:vo,createRenderer:yr,createHydrationRenderer:vr,queuePostFlushCb:io,warn:Fi,handleError:$i,callWithErrorHandling:Bi,callWithAsyncErrorHandling:Ui,resolveComponent:Ir,resolveDirective:Or,resolveDynamicComponent:Lr,registerRuntimeCompiler:xi,isRuntimeOnly:()=>!Ci,useTransitionState:an,resolveTransitionHooks:hn,setTransitionHooks:fn,getTransitionRawChildren:gn,initCustomFormatter:function(){},get devtools(){return Pt},setDevtoolsHook:function(e){Pt=e},withCtx:qt,pushScopeId:Vt,popScopeId:jt,withScopeId:e=>qt,renderList:li,toHandlers:function(e){const t={};for(const n in e)t[X(n)]=e[n];return t},renderSlot:ui,createSlots:function(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(I(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.fn)}return e},withMemo:function(e,t,n,r){const i=n[r];if(i&&bo(i,e))return i;const o=t();return o.memo=e.slice(),n[r]=o},isMemoSame:bo,openBlock:Hr,createBlock:zr,setBlockTracking:Vr,createTextVNode:ri,createCommentVNode:ii,createStaticVNode:function(e,t){const n=ei(Br,null,e);return n.staticCount=t,n},createElementVNode:Zr,createElementBlock:qr,guardReactiveProps:ti,toDisplayString:m,camelize:q,capitalize:Y,toHandlerKey:X,normalizeProps:u,normalizeClass:l,normalizeStyle:r,transformVNodeArgs:function(e){},$ref:function(){},$computed:function(){},$raw:function(){return null},$fromRefs:function(){return null},version:Ao,ssrUtils:null,resolveFilter:null,compatUtils:null});function $s(e){throw e}function Hs(e){}function Gs(e,t,n,r){const i=new SyntaxError(String(e));return i.code=e,i.loc=t,i}const Ws=Symbol(""),Vs=Symbol(""),js=Symbol(""),qs=Symbol(""),zs=Symbol(""),Ks=Symbol(""),Ys=Symbol(""),Xs=Symbol(""),Js=Symbol(""),Qs=Symbol(""),Zs=Symbol(""),ea=Symbol(""),ta=Symbol(""),na=Symbol(""),ra=Symbol(""),ia=Symbol(""),oa=Symbol(""),sa=Symbol(""),aa=Symbol(""),ca=Symbol(""),la=Symbol(""),ua=Symbol(""),ha=Symbol(""),da=Symbol(""),pa=Symbol(""),fa=Symbol(""),ga=Symbol(""),ma=Symbol(""),Ea=Symbol(""),ya=Symbol(""),va=Symbol(""),ba=Symbol(""),Aa=Symbol(""),Ta=Symbol(""),Ca=Symbol(""),Ra=Symbol(""),Sa=Symbol(""),_a=Symbol(""),xa=Symbol(""),wa=Symbol(""),Ia={[Ws]:"Fragment",[Vs]:"Teleport",[js]:"Suspense",[qs]:"KeepAlive",[zs]:"BaseTransition",[Ks]:"openBlock",[Ys]:"createBlock",[Xs]:"createElementBlock",[Js]:"createVNode",[Qs]:"createElementVNode",[Zs]:"createCommentVNode",[ea]:"createTextVNode",[ta]:"createStaticVNode",[na]:"resolveComponent",[ra]:"resolveDynamicComponent",[ia]:"resolveDirective",[oa]:"resolveFilter",[sa]:"withDirectives",[aa]:"renderList",[ca]:"renderSlot",[la]:"createSlots",[ua]:"toDisplayString",[ha]:"mergeProps",[da]:"normalizeClass",[pa]:"normalizeStyle",[fa]:"normalizeProps",[ga]:"guardReactiveProps",[ma]:"toHandlers",[Ea]:"camelize",[ya]:"capitalize",[va]:"toHandlerKey",[ba]:"setBlockTracking",[Aa]:"pushScopeId",[Ta]:"popScopeId",[Ca]:"withScopeId",[Ra]:"withCtx",[Sa]:"unref",[_a]:"isRef",[xa]:"withMemo",[wa]:"isMemoSame"},Na={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function La(e,t,n,r,i,o,s,a=!1,c=!1,l=!1,u=Na){return e&&(a?(e.helper(Ks),e.helper(sc(e.inSSR,l))):e.helper(oc(e.inSSR,l)),s&&e.helper(sa)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:s,isBlock:a,disableTracking:c,isComponent:l,loc:u}}function Oa(e,t=Na){return{type:17,loc:t,elements:e}}function ka(e,t=Na){return{type:15,loc:t,properties:e}}function Da(e,t){return{type:16,loc:Na,key:D(e)?Fa(e,!0):e,value:t}}function Fa(e,t=!1,n=Na,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Ma(e,t=Na){return{type:8,loc:t,children:e}}function Pa(e,t=[],n=Na){return{type:14,loc:n,callee:e,arguments:t}}function Ba(e,t,n=!1,r=!1,i=Na){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function Ua(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Na}}const $a=e=>4===e.type&&e.isStatic,Ha=(e,t)=>e===t||e===K(t);function Ga(e){return Ha(e,"Teleport")?Vs:Ha(e,"Suspense")?js:Ha(e,"KeepAlive")?qs:Ha(e,"BaseTransition")?zs:void 0}const Wa=/^\d|[^\$\w]/,Va=e=>!Wa.test(e),ja=/[A-Za-z_$\xA0-\uFFFF]/,qa=/[\.\?\w$\xA0-\uFFFF]/,za=/\s+[.[]\s*|\s*[.[]\s+/g,Ka=e=>{e=e.trim().replace(za,(e=>e.trim()));let t=0,n=[],r=0,i=0,o=null;for(let s=0;s<e.length;s++){const a=e.charAt(s);switch(t){case 0:if("["===a)n.push(t),t=1,r++;else if("("===a)n.push(t),t=2,i++;else if(!(0===s?ja:qa).test(a))return!1;break;case 1:"'"===a||'"'===a||"`"===a?(n.push(t),t=3,o=a):"["===a?r++:"]"===a&&(--r||(t=n.pop()));break;case 2:if("'"===a||'"'===a||"`"===a)n.push(t),t=3,o=a;else if("("===a)i++;else if(")"===a){if(s===e.length-1)return!1;--i||(t=n.pop())}break;case 3:a===o&&(t=n.pop(),o=null)}}return!r&&!i};function Ya(e,t,n){const r={source:e.source.substr(t,n),start:Xa(e.start,e.source,t),end:e.end};return null!=n&&(r.end=Xa(e.start,e.source,t+n)),r}function Xa(e,t,n=t.length){return Ja(S({},e),t,n)}function Ja(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)10===t.charCodeAt(e)&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=-1===i?e.column+n:n-i,e}function Qa(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&(D(t)?i.name===t:t.test(i.name)))return i}}function Za(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(6===o.type){if(n)continue;if(o.name===t&&(o.value||r))return o}else if("bind"===o.name&&(o.exp||r)&&ec(o.arg,t))return o}}function ec(e,t){return!(!e||!$a(e)||e.content!==t)}function tc(e){return 5===e.type||2===e.type}function nc(e){return 7===e.type&&"slot"===e.name}function rc(e){return 1===e.type&&3===e.tagType}function ic(e){return 1===e.type&&2===e.tagType}function oc(e,t){return e||t?Js:Qs}function sc(e,t){return e||t?Ys:Xs}const ac=new Set([fa,ga]);function cc(e,t=[]){if(e&&!D(e)&&14===e.type){const n=e.callee;if(!D(n)&&ac.has(n))return cc(e.arguments[0],t.concat(e))}return[e,t]}function lc(e,t,n){let r,i,o=13===e.type?e.props:e.arguments[2],s=[];if(o&&!D(o)&&14===o.type){const e=cc(o);o=e[0],s=e[1],i=s[s.length-1]}if(null==o||D(o))r=ka([t]);else if(14===o.type){const e=o.arguments[0];D(e)||15!==e.type?o.callee===ma?r=Pa(n.helper(ha),[ka([t]),o]):o.arguments.unshift(ka([t])):e.properties.unshift(t),!r&&(r=o)}else if(15===o.type){let e=!1;if(4===t.key.type){const n=t.key.content;e=o.properties.some((e=>4===e.key.type&&e.key.content===n))}e||o.properties.unshift(t),r=o}else r=Pa(n.helper(ha),[ka([t]),o]),i&&i.callee===ga&&(i=s[s.length-2]);13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function uc(e,t){return`_${t}_${e.replace(/[^\w]/g,"_")}`}function hc(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(oc(r,e.isComponent)),t(Ks),t(sc(r,e.isComponent)))}const dc=/&(gt|lt|amp|apos|quot);/g,pc={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},fc={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:A,isPreTag:A,isCustomElement:A,decodeEntities:e=>e.replace(dc,((e,t)=>pc[t])),onError:$s,onWarn:Hs,comments:!1};function gc(e,t,n){const r=Nc(n),i=r?r.ns:0,o=[];for(;!Fc(e,t,n);){const s=e.source;let a;if(0===t||1===t)if(!e.inVPre&&Lc(s,e.options.delimiters[0]))a=Sc(e,t);else if(0===t&&"<"===s[0])if(1===s.length);else if("!"===s[1])a=Lc(s,"\x3c!--")?yc(e):Lc(s,"<!DOCTYPE")?vc(e):Lc(s,"<![CDATA[")&&0!==i?Ec(e,n):vc(e);else if("/"===s[1])if(2===s.length);else{if(">"===s[2]){Oc(e,3);continue}if(/[a-z]/i.test(s[2])){Tc(e,1,r);continue}a=vc(e)}else/[a-z]/i.test(s[1])?a=bc(e,n):"?"===s[1]&&(a=vc(e));if(a||(a=_c(e,t)),I(a))for(let e=0;e<a.length;e++)mc(o,a[e]);else mc(o,a)}let s=!1;if(2!==t&&1!==t){const t="preserve"!==e.options.whitespace;for(let n=0;n<o.length;n++){const r=o[n];if(e.inPre||2!==r.type)3!==r.type||e.options.comments||(s=!0,o[n]=null);else if(/[^\t\r\n\f ]/.test(r.content))t&&(r.content=r.content.replace(/[\t\r\n\f ]+/g," "));else{const e=o[n-1],i=o[n+1];!e||!i||t&&(3===e.type||3===i.type||1===e.type&&1===i.type&&/[\r\n]/.test(r.content))?(s=!0,o[n]=null):r.content=" "}}if(e.inPre&&r&&e.options.isPreTag(r.tag)){const e=o[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}}return s?o.filter(Boolean):o}function mc(e,t){if(2===t.type){const n=Nc(e);if(n&&2===n.type&&n.loc.end.offset===t.loc.start.offset)return n.content+=t.content,n.loc.end=t.loc.end,void(n.loc.source+=t.loc.source)}e.push(t)}function Ec(e,t){Oc(e,9);const n=gc(e,3,t);return 0===e.source.length||Oc(e,3),n}function yc(e){const t=wc(e);let n;const r=/--(\!)?>/.exec(e.source);if(r){n=e.source.slice(4,r.index);const t=e.source.slice(0,r.index);let i=1,o=0;for(;-1!==(o=t.indexOf("\x3c!--",i));)Oc(e,o-i+1),i=o+1;Oc(e,r.index+r[0].length-i+1)}else n=e.source.slice(4),Oc(e,e.source.length);return{type:3,content:n,loc:Ic(e,t)}}function vc(e){const t=wc(e),n="?"===e.source[1]?1:2;let r;const i=e.source.indexOf(">");return-1===i?(r=e.source.slice(n),Oc(e,e.source.length)):(r=e.source.slice(n,i),Oc(e,i+1)),{type:3,content:r,loc:Ic(e,t)}}function bc(e,t){const n=e.inPre,r=e.inVPre,i=Nc(t),o=Tc(e,0,i),s=e.inPre&&!n,a=e.inVPre&&!r;if(o.isSelfClosing||e.options.isVoidTag(o.tag))return s&&(e.inPre=!1),a&&(e.inVPre=!1),o;t.push(o);const c=e.options.getTextMode(o,i),l=gc(e,c,t);if(t.pop(),o.children=l,Mc(e.source,o.tag))Tc(e,1,i);else if(0===e.source.length&&"script"===o.tag.toLowerCase()){const e=l[0];e&&Lc(e.loc.source,"\x3c!--")}return o.loc=Ic(e,o.loc.start),s&&(e.inPre=!1),a&&(e.inVPre=!1),o}const Ac=e("if,else,else-if,for,slot");function Tc(e,t,n){const r=wc(e),i=/^<\/?([a-z][^\t\r\n\f />]*)/i.exec(e.source),o=i[1],s=e.options.getNamespace(o,n);Oc(e,i[0].length),kc(e);const a=wc(e),c=e.source;e.options.isPreTag(o)&&(e.inPre=!0);let l=Cc(e,t);0===t&&!e.inVPre&&l.some((e=>7===e.type&&"pre"===e.name))&&(e.inVPre=!0,S(e,a),e.source=c,l=Cc(e,t).filter((e=>"v-pre"!==e.name)));let u=!1;if(0===e.source.length||(u=Lc(e.source,"/>"),Oc(e,u?2:1)),1===t)return;let h=0;return e.inVPre||("slot"===o?h=2:"template"===o?l.some((e=>7===e.type&&Ac(e.name)))&&(h=3):function(e,t,n){const r=n.options;if(r.isCustomElement(e))return!1;if("component"===e||/^[A-Z]/.test(e)||Ga(e)||r.isBuiltInComponent&&r.isBuiltInComponent(e)||r.isNativeTag&&!r.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){const n=t[e];if(6===n.type){if("is"===n.name&&n.value&&n.value.content.startsWith("vue:"))return!0}else{if("is"===n.name)return!0;"bind"===n.name&&ec(n.arg,"is")}}}(o,l,e)&&(h=1)),{type:1,ns:s,tag:o,tagType:h,props:l,isSelfClosing:u,children:[],loc:Ic(e,r),codegenNode:void 0}}function Cc(e,t){const n=[],r=new Set;for(;e.source.length>0&&!Lc(e.source,">")&&!Lc(e.source,"/>");){if(Lc(e.source,"/")){Oc(e,1),kc(e);continue}const i=Rc(e,r);0===t&&n.push(i),/^[^\t\r\n\f />]/.test(e.source),kc(e)}return n}function Rc(e,t){const n=wc(e),r=/^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(e.source)[0];t.has(r),t.add(r);{const e=/["'<]/g;let t;for(;t=e.exec(r););}let i;Oc(e,r.length),/^[\t\r\n\f ]*=/.test(e.source)&&(kc(e),Oc(e,1),kc(e),i=function(e){const t=wc(e);let n;const r=e.source[0],i='"'===r||"'"===r;if(i){Oc(e,1);const t=e.source.indexOf(r);-1===t?n=xc(e,e.source.length,4):(n=xc(e,t,4),Oc(e,1))}else{const t=/^[^\t\r\n\f >]+/.exec(e.source);if(!t)return;const r=/["'<=`]/g;let i;for(;i=r.exec(t[0]););n=xc(e,t[0].length,4)}return{content:n,isQuoted:i,loc:Ic(e,t)}}(e));const o=Ic(e,n);if(!e.inVPre&&/^(v-|:|\.|@|#)/.test(r)){const t=/(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(r);let s,a=Lc(r,"."),c=t[1]||(a||Lc(r,":")?"bind":Lc(r,"@")?"on":"slot");if(t[2]){const i="slot"===c,o=r.lastIndexOf(t[2]),a=Ic(e,Dc(e,n,o),Dc(e,n,o+t[2].length+(i&&t[3]||"").length));let l=t[2],u=!0;l.startsWith("[")?(u=!1,l.endsWith("]"),l=l.substr(1,l.length-2)):i&&(l+=t[3]||""),s={type:4,content:l,isStatic:u,constType:u?3:0,loc:a}}if(i&&i.isQuoted){const e=i.loc;e.start.offset++,e.start.column++,e.end=Xa(e.start,i.content),e.source=e.source.slice(1,-1)}const l=t[3]?t[3].substr(1).split("."):[];return a&&l.push("prop"),{type:7,name:c,exp:i&&{type:4,content:i.content,isStatic:!1,constType:0,loc:i.loc},arg:s,modifiers:l,loc:o}}return{type:6,name:r,value:i&&{type:2,content:i.content,loc:i.loc},loc:o}}function Sc(e,t){const[n,r]=e.options.delimiters,i=e.source.indexOf(r,n.length);if(-1===i)return;const o=wc(e);Oc(e,n.length);const s=wc(e),a=wc(e),c=i-n.length,l=e.source.slice(0,c),u=xc(e,c,t),h=u.trim(),d=u.indexOf(h);return d>0&&Ja(s,l,d),Ja(a,l,c-(u.length-h.length-d)),Oc(e,r.length),{type:5,content:{type:4,isStatic:!1,constType:0,content:h,loc:Ic(e,s,a)},loc:Ic(e,o)}}function _c(e,t){const n=["<",e.options.delimiters[0]];3===t&&n.push("]]>");let r=e.source.length;for(let t=0;t<n.length;t++){const i=e.source.indexOf(n[t],1);-1!==i&&r>i&&(r=i)}const i=wc(e);return{type:2,content:xc(e,r,t),loc:Ic(e,i)}}function xc(e,t,n){const r=e.source.slice(0,t);return Oc(e,t),2===n||3===n||-1===r.indexOf("&")?r:e.options.decodeEntities(r,4===n)}function wc(e){const{column:t,line:n,offset:r}=e;return{column:t,line:n,offset:r}}function Ic(e,t,n){return{start:t,end:n=n||wc(e),source:e.originalSource.slice(t.offset,n.offset)}}function Nc(e){return e[e.length-1]}function Lc(e,t){return e.startsWith(t)}function Oc(e,t){const{source:n}=e;Ja(e,n,t),e.source=n.slice(t)}function kc(e){const t=/^[\t\r\n\f ]+/.exec(e.source);t&&Oc(e,t[0].length)}function Dc(e,t,n){return Xa(t,e.originalSource.slice(t.offset,n),n)}function Fc(e,t,n){const r=e.source;switch(t){case 0:if(Lc(r,"</"))for(let e=n.length-1;e>=0;--e)if(Mc(r,n[e].tag))return!0;break;case 1:case 2:{const e=Nc(n);if(e&&Mc(r,e.tag))return!0;break}case 3:if(Lc(r,"]]>"))return!0}return!r}function Mc(e,t){return Lc(e,"</")&&e.substr(2,t.length).toLowerCase()===t.toLowerCase()&&/[\t\r\n\f />]/.test(e[2+t.length]||">")}function Pc(e,t){Uc(e,t,Bc(e,e.children[0]))}function Bc(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!ic(t)}function Uc(e,t,n=!1){let r=!0;const{children:i}=e,o=i.length;let s=0;for(let e=0;e<i.length;e++){const o=i[e];if(1===o.type&&0===o.tagType){const e=n?0:$c(o,t);if(e>0){if(e<3&&(r=!1),e>=2){o.codegenNode.patchFlag="-1",o.codegenNode=t.hoist(o.codegenNode),s++;continue}}else{const e=o.codegenNode;if(13===e.type){const n=jc(e);if((!n||512===n||1===n)&&Wc(o,t)>=2){const n=Vc(o);n&&(e.props=t.hoist(n))}e.dynamicProps&&(e.dynamicProps=t.hoist(e.dynamicProps))}}}else if(12===o.type){const e=$c(o.content,t);e>0&&(e<3&&(r=!1),e>=2&&(o.codegenNode=t.hoist(o.codegenNode),s++))}if(1===o.type){const e=1===o.tagType;e&&t.scopes.vSlot++,Uc(o,t),e&&t.scopes.vSlot--}else if(11===o.type)Uc(o,t,1===o.children.length);else if(9===o.type)for(let e=0;e<o.branches.length;e++)Uc(o.branches[e],t,1===o.branches[e].children.length)}r&&s&&t.transformHoist&&t.transformHoist(i,t,e),s&&s===o&&1===e.type&&0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&I(e.codegenNode.children)&&(e.codegenNode.children=t.hoist(Oa(e.codegenNode.children)))}function $c(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(jc(i))return n.set(e,0),0;{let r=3;const o=Wc(e,t);if(0===o)return n.set(e,0),0;o<r&&(r=o);for(let i=0;i<e.children.length;i++){const o=$c(e.children[i],t);if(0===o)return n.set(e,0),0;o<r&&(r=o)}if(r>1)for(let i=0;i<e.props.length;i++){const o=e.props[i];if(7===o.type&&"bind"===o.name&&o.exp){const i=$c(o.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}return i.isBlock&&(t.removeHelper(Ks),t.removeHelper(sc(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(oc(t.inSSR,i.isComponent))),n.set(e,r),r}case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return $c(e.content,t);case 4:return e.constType;case 8:let o=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if(D(r)||F(r))continue;const i=$c(r,t);if(0===i)return 0;i<o&&(o=i)}return o}}const Hc=new Set([da,pa,fa,ga]);function Gc(e,t){if(14===e.type&&!D(e.callee)&&Hc.has(e.callee)){const n=e.arguments[0];if(4===n.type)return $c(n,t);if(14===n.type)return Gc(n,t)}return 0}function Wc(e,t){let n=3;const r=Vc(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:i,value:o}=e[r],s=$c(i,t);if(0===s)return s;if(s<n&&(n=s),4!==o.type)return 14===o.type?Gc(o,t):0;const a=$c(o,t);if(0===a)return a;a<n&&(n=a)}}return n}function Vc(e){const t=e.codegenNode;if(13===t.type)return t.props}function jc(e){const t=e.patchFlag;return t?parseInt(t,10):void 0}function qc(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){const o=n[i](e,t);if(o&&(I(o)?r.push(...o):r.push(o)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(Zs);break;case 5:t.ssr||t.helper(ua);break;case 9:for(let n=0;n<e.branches.length;n++)qc(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];D(i)||(t.parent=e,t.childIndex=n,t.onNodeRemoved=r,qc(i,t))}}(e,t)}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function zc(e,t){const n=D(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(nc))return;const o=[];for(let s=0;s<i.length;s++){const a=i[s];if(7===a.type&&n(a.name)){i.splice(s,1),s--;const n=t(e,a,r);n&&o.push(n)}}return o}}}function Kc(e,t,{helper:n,push:r,newline:i,isTS:o}){const s=n("component"===t?na:ia);for(let n=0;n<e.length;n++){let a=e[n];const c=a.endsWith("__self");c&&(a=a.slice(0,-6)),r(`const ${uc(a,t)} = ${s}(${JSON.stringify(a)}${c?", true":""})${o?"!":""}`),n<e.length-1&&i()}}function Yc(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),Xc(e,t,n),n&&t.deindent(),t.push("]")}function Xc(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let s=0;s<e.length;s++){const a=e[s];D(a)?i(a):I(a)?Yc(a,t):Jc(a,t),s<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function Jc(e,t){if(D(e))t.push(e);else if(F(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:Jc(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),e)}(e,t);break;case 4:Qc(e,t);break;case 5:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n("/*#__PURE__*/"),n(`${r(ua)}(`),Jc(e.content,t),n(")")}(e,t);break;case 8:Zc(e,t);break;case 3:!function(e,t){const{push:n,helper:r,pure:i}=t;i&&n("/*#__PURE__*/"),n(`${r(Zs)}(${JSON.stringify(e.content)})`,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:s,children:a,patchFlag:c,dynamicProps:l,directives:u,isBlock:h,disableTracking:d,isComponent:p}=e;u&&n(r(sa)+"("),h&&n(`(${r(Ks)}(${d?"true":""}), `),i&&n("/*#__PURE__*/"),n(r(h?sc(t.inSSR,p):oc(t.inSSR,p))+"(",e),Xc(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([o,s,a,c,l]),t),n(")"),h&&n(")"),u&&(n(", "),Jc(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:i}=t,o=D(e.callee)?e.callee:r(e.callee);i&&n("/*#__PURE__*/"),n(o+"(",e),Xc(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:s}=e;if(!s.length)return void n("{}",e);const a=s.length>1||!1;n(a?"{":"{ "),a&&r();for(let e=0;e<s.length;e++){const{key:r,value:i}=s[e];el(r,t),n(": "),Jc(i,t),e<s.length-1&&(n(","),o())}a&&i(),n(a?"}":" }")}(e,t);break;case 17:!function(e,t){Yc(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:s,body:a,newline:c,isSlot:l}=e;l&&n(`_${Ia[Ra]}(`),n("(",e),I(o)?Xc(o,t):o&&Jc(o,t),n(") => "),(c||a)&&(n("{"),r()),s?(c&&n("return "),I(s)?Yc(s,t):Jc(s,t)):a&&Jc(a,t),(c||a)&&(i(),n("}")),l&&n(")")}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:s,indent:a,deindent:c,newline:l}=t;if(4===n.type){const e=!Va(n.content);e&&s("("),Qc(n,t),e&&s(")")}else s("("),Jc(n,t),s(")");o&&a(),t.indentLevel++,o||s(" "),s("? "),Jc(r,t),t.indentLevel--,o&&l(),o||s(" "),s(": ");const u=19===i.type;u||t.indentLevel++,Jc(i,t),u||t.indentLevel--,o&&c(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVNode&&(i(),n(`${r(ba)}(-1),`),s()),n(`_cache[${e.index}] = `),Jc(e.value,t),e.isVNode&&(n(","),s(),n(`${r(ba)}(1),`),s(),n(`_cache[${e.index}]`),o()),n(")")}(e,t);break;case 21:Xc(e.body,t,!0,!1)}}function Qc(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,e)}function Zc(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];D(r)?t.push(r):Jc(r,t)}}function el(e,t){const{push:n}=t;8===e.type?(n("["),Zc(e,t),n("]")):e.isStatic?n(Va(e.content)?e.content:JSON.stringify(e.content),e):n(`[${e.content}]`,e)}const tl=zc(/^(if|else|else-if)$/,((e,t,n)=>function(e,t,n,r){if("else"===t.name||t.exp&&t.exp.content.trim()||(t.exp=Fa("true",!1,t.exp?t.exp.loc:e.loc)),"if"===t.name){const i=nl(e,t),o={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-- >=-1;){const s=i[o];if(!s||2!==s.type||s.content.trim().length){if(s&&9===s.type){n.removeNode();const i=nl(e,t);s.branches.push(i);const o=r&&r(s,i,!1);qc(i,n),o&&o(),n.currentNode=null}break}n.removeNode(s)}}}(e,t,n,((e,t,r)=>{const i=n.parent.children;let o=i.indexOf(e),s=0;for(;o-- >=0;){const e=i[o];e&&9===e.type&&(s+=e.branches.length)}return()=>{r?e.codegenNode=rl(t,s,n):(function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode)).alternate=rl(t,s+e.branches.length-1,n)}}))));function nl(e,t){return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:3!==e.tagType||Qa(e,"for")?[e]:e.children,userKey:Za(e,"key")}}function rl(e,t,n){return e.condition?Ua(e.condition,il(e,t,n),Pa(n.helper(Zs),['""',"true"])):il(e,t,n)}function il(e,t,n){const{helper:r}=n,i=Da("key",Fa(`${t}`,!1,Na,2)),{children:o}=e,s=o[0];if(1!==o.length||1!==s.type){if(1===o.length&&11===s.type){const e=s.codegenNode;return lc(e,i,n),e}{let t=64;return La(n,r(Ws),ka([i]),o,t+"",void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(a=e).type&&a.callee===xa?a.arguments[1].returns:a;return 13===t.type&&hc(t,n),lc(t,i,n),e}var a}const ol=zc("for",((e,t,n)=>{const{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp)return;const i=ll(t.exp);if(!i)return;const{scopes:o}=n,{source:s,value:a,key:c,index:l}=i,u={type:11,loc:t.loc,source:s,valueAlias:a,keyAlias:c,objectIndexAlias:l,parseResult:i,children:rc(e)?e.children:[e]};n.replaceNode(u),o.vFor++;const h=r&&r(u);return()=>{o.vFor--,h&&h()}}(e,t,n,(t=>{const o=Pa(r(aa),[t.source]),s=Qa(e,"memo"),a=Za(e,"key"),c=a&&(6===a.type?Fa(a.value.content,!0):a.exp),l=a?Da("key",c):null,u=4===t.source.type&&t.source.constType>0,h=u?64:a?128:256;return t.codegenNode=La(n,r(Ws),void 0,o,h+"",void 0,void 0,!0,!u,!1,e.loc),()=>{let a;const h=rc(e),{children:d}=t,p=1!==d.length||1!==d[0].type,f=ic(e)?e:h&&1===e.children.length&&ic(e.children[0])?e.children[0]:null;if(f?(a=f.codegenNode,h&&l&&lc(a,l,n)):p?a=La(n,r(Ws),l?ka([l]):void 0,e.children,"64",void 0,void 0,!0,void 0,!1):(a=d[0].codegenNode,h&&l&&lc(a,l,n),a.isBlock!==!u&&(a.isBlock?(i(Ks),i(sc(n.inSSR,a.isComponent))):i(oc(n.inSSR,a.isComponent))),a.isBlock=!u,a.isBlock?(r(Ks),r(sc(n.inSSR,a.isComponent))):r(oc(n.inSSR,a.isComponent))),s){const e=Ba(hl(t.parseResult,[Fa("_cached")]));e.body={type:21,body:[Ma(["const _memo = (",s.exp,")"]),Ma(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(wa)}(_cached, _memo)) return _cached`]),Ma(["const _item = ",a]),Fa("_item.memo = _memo"),Fa("return _item")],loc:Na},o.arguments.push(e,Fa("_cache"),Fa(String(n.cached++)))}else o.arguments.push(Ba(hl(t.parseResult),a,!0))}}))})),sl=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,al=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,cl=/^\(|\)$/g;function ll(e,t){const n=e.loc,r=e.content,i=r.match(sl);if(!i)return;const[,o,s]=i,a={source:ul(n,s.trim(),r.indexOf(s,o.length)),value:void 0,key:void 0,index:void 0};let c=o.trim().replace(cl,"").trim();const l=o.indexOf(c),u=c.match(al);if(u){c=c.replace(al,"").trim();const e=u[1].trim();let t;if(e&&(t=r.indexOf(e,l+c.length),a.key=ul(n,e,t)),u[2]){const i=u[2].trim();i&&(a.index=ul(n,i,r.indexOf(i,a.key?t+e.length:l+c.length)))}}return c&&(a.value=ul(n,c,l)),a}function ul(e,t,n){return Fa(t,!1,Ya(e,n,t.length))}function hl({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||Fa("_".repeat(t+1),!1)))}([e,t,n,...r])}const dl=Fa("undefined",!1),pl=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)&&Qa(e,"slot"))return t.scopes.vSlot++,()=>{t.scopes.vSlot--}},fl=(e,t,n)=>Ba(e,t,!1,!0,t.length?t[0].loc:n);function gl(e,t,n=fl){t.helper(Ra);const{children:r,loc:i}=e,o=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Qa(e,"slot",!0);if(c){const{arg:e,exp:t}=c;e&&!$a(e)&&(a=!0),o.push(Da(e||Fa("default",!0),n(t,r,i)))}let l=!1,u=!1;const h=[],d=new Set;for(let e=0;e<r.length;e++){const i=r[e];let p;if(!rc(i)||!(p=Qa(i,"slot",!0))){3!==i.type&&h.push(i);continue}if(c)break;l=!0;const{children:f,loc:g}=i,{arg:m=Fa("default",!0),exp:E}=p;let y;$a(m)?y=m?m.content:"default":a=!0;const v=n(E,f,g);let b,A,T;if(b=Qa(i,"if"))a=!0,s.push(Ua(b.exp,ml(m,v),dl));else if(A=Qa(i,/^else(-if)?$/,!0)){let t,n=e;for(;n--&&(t=r[n],3===t.type););if(t&&rc(t)&&Qa(t,"if")){r.splice(e,1),e--;let t=s[s.length-1];for(;19===t.alternate.type;)t=t.alternate;t.alternate=A.exp?Ua(A.exp,ml(m,v),dl):ml(m,v)}}else if(T=Qa(i,"for")){a=!0;const e=T.parseResult||ll(T.exp);e&&s.push(Pa(t.helper(aa),[e.source,Ba(hl(e),ml(m,v),!0)]))}else{if(y){if(d.has(y))continue;d.add(y),"default"===y&&(u=!0)}o.push(Da(m,v))}}if(!c){const e=(e,t)=>Da("default",n(e,t,i));l?h.length&&h.some((e=>yl(e)))&&(u||o.push(e(void 0,h))):o.push(e(void 0,r))}const p=a?2:El(e.children)?3:1;let f=ka(o.concat(Da("_",Fa(p+"",!1))),i);return s.length&&(f=Pa(t.helper(la),[f,Oa(s)])),{slots:f,hasDynamicSlots:a}}function ml(e,t){return ka([Da("name",e),Da("fn",t)])}function El(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||El(n.children))return!0;break;case 9:if(El(n.branches))return!0;break;case 10:case 11:if(El(n.children))return!0}}return!1}function yl(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():yl(e.content))}const vl=new WeakMap,bl=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let o,s,a,c,l,u,h=i?function(e,t,n=!1){let{tag:r}=e;const i=Rl(r),o=Za(e,"is");if(o)if(i){const e=6===o.type?o.value&&Fa(o.value.content,!0):o.exp;if(e)return Pa(t.helper(ra),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const s=!i&&Qa(e,"is");if(s&&s.exp)return Pa(t.helper(ra),[s.exp]);const a=Ga(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(na),t.components.add(r),uc(r,"component"))}(e,t):`"${n}"`,d=0,p=M(h)&&h.callee===ra||h===Vs||h===js||!i&&("svg"===n||"foreignObject"===n||Za(e,"key",!0));if(r.length>0){const n=Al(e,t);o=n.props,d=n.patchFlag,l=n.dynamicPropNames;const r=n.directives;u=r&&r.length?Oa(r.map((e=>function(e,t){const n=[],r=vl.get(e);r?n.push(t.helperString(r)):(t.helper(ia),t.directives.add(e.name),n.push(uc(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Fa("true",!1,i);n.push(ka(e.modifiers.map((e=>Da(e,t))),i))}return Oa(n,e.loc)}(e,t)))):void 0}if(e.children.length>0)if(h===qs&&(p=!0,d|=1024),i&&h!==Vs&&h!==qs){const{slots:n,hasDynamicSlots:r}=gl(e,t);s=n,r&&(d|=1024)}else if(1===e.children.length&&h!==Vs){const n=e.children[0],r=n.type,i=5===r||8===r;i&&0===$c(n,t)&&(d|=1),s=i||2===r?n:e.children}else s=e.children;0!==d&&(a=String(d),l&&l.length&&(c=function(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}(l))),e.codegenNode=La(t,h,o,s,a,c,u,!!p,!1,i,e.loc)};function Al(e,t,n=e.props,r=!1){const{tag:i,loc:o}=e,s=1===e.tagType;let a=[];const c=[],l=[];let u=0,h=!1,d=!1,p=!1,f=!1,g=!1,m=!1;const E=[],y=({key:e,value:n})=>{if($a(e)){const r=e.content,i=C(r);if(s||!i||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||W(r)||(f=!0),i&&W(r)&&(m=!0),20===n.type||(4===n.type||8===n.type)&&$c(n,t)>0)return;"ref"===r?h=!0:"class"===r?d=!0:"style"===r?p=!0:"key"===r||E.includes(r)||E.push(r),!s||"class"!==r&&"style"!==r||E.includes(r)||E.push(r)}else g=!0};for(let s=0;s<n.length;s++){const u=n[s];if(6===u.type){const{loc:e,name:t,value:n}=u;let r=!0;if("ref"===t&&(h=!0),"is"===t&&(Rl(i)||n&&n.content.startsWith("vue:")))continue;a.push(Da(Fa(t,!0,Ya(e,0,t.length)),Fa(n?n.content:"",r,n?n.loc:e)))}else{const{name:n,arg:s,exp:h,loc:d}=u,p="bind"===n,f="on"===n;if("slot"===n)continue;if("once"===n||"memo"===n)continue;if("is"===n||p&&ec(s,"is")&&Rl(i))continue;if(f&&r)continue;if(!s&&(p||f)){g=!0,h&&(a.length&&(c.push(ka(Tl(a),o)),a=[]),c.push(p?h:{type:14,loc:d,callee:t.helper(ma),arguments:[h]}));continue}const m=t.directiveTransforms[n];if(m){const{props:n,needRuntime:i}=m(u,e,t);!r&&n.forEach(y),a.push(...n),i&&(l.push(u),F(i)&&vl.set(u,i))}else l.push(u)}}let v;if(c.length?(a.length&&c.push(ka(Tl(a),o)),v=c.length>1?Pa(t.helper(ha),c,o):c[0]):a.length&&(v=ka(Tl(a),o)),g?u|=16:(d&&!s&&(u|=2),p&&!s&&(u|=4),E.length&&(u|=8),f&&(u|=32)),0!==u&&32!==u||!(h||m||l.length>0)||(u|=512),!t.inSSR&&v)switch(v.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<v.properties.length;t++){const i=v.properties[t].key;$a(i)?"class"===i.content?e=t:"style"===i.content&&(n=t):i.isHandlerKey||(r=!0)}const i=v.properties[e],o=v.properties[n];r?v=Pa(t.helper(fa),[v]):(i&&!$a(i.value)&&(i.value=Pa(t.helper(da),[i.value])),o&&!$a(o.value)&&p&&(o.value=Pa(t.helper(pa),[o.value])));break;case 14:break;default:v=Pa(t.helper(fa),[Pa(t.helper(ga),[v])])}return{props:v,directives:l,patchFlag:u,dynamicPropNames:E}}function Tl(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const o=i.key.content,s=t.get(o);s?("style"===o||"class"===o||o.startsWith("on"))&&Cl(s,i):(t.set(o,i),n.push(i))}return n}function Cl(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Oa([e.value,t.value],e.loc)}function Rl(e){return e[0].toLowerCase()+e.slice(1)==="component"}const Sl=(e,t)=>{if(ic(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=function(e,t){let n,r='"default"';const i=[];for(let t=0;t<e.props.length;t++){const n=e.props[t];6===n.type?n.value&&("name"===n.name?r=JSON.stringify(n.value.content):(n.name=q(n.name),i.push(n))):"bind"===n.name&&ec(n.arg,"name")?n.exp&&(r=n.exp):("bind"===n.name&&n.arg&&$a(n.arg)&&(n.arg.content=q(n.arg.content)),i.push(n))}if(i.length>0){const{props:r,directives:o}=Al(e,t,i);n=r}return{slotName:r,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i];o&&s.push(o),n.length&&(o||s.push("{}"),s.push(Ba([],n,!1,!1,r))),t.scopeId&&!t.slotted&&(o||s.push("{}"),n.length||s.push("undefined"),s.push("true")),e.codegenNode=Pa(t.helper(ca),s,r)}},_l=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/,xl=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:s}=e;let a;4===s.type?a=s.isStatic?Fa(X(q(s.content)),!0,s.loc):Ma([`${n.helperString(va)}(`,s,")"]):(a=s,a.children.unshift(`${n.helperString(va)}(`),a.children.push(")"));let c=e.exp;c&&!c.content.trim()&&(c=void 0);let l=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const e=Ka(c.content),t=!(e||_l.test(c.content)),n=c.content.includes(";");(t||l&&e)&&(c=Ma([`${t?"$event":"(...args)"} => ${n?"{":"("}`,c,n?"}":")"]))}let u={props:[Da(a,c||Fa("() => {}",!1,i))]};return r&&(u=r(u)),l&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach((e=>e.key.isHandlerKey=!0)),u},wl=(e,t,n)=>{const{exp:r,modifiers:i,loc:o}=e,s=e.arg;return 4!==s.type?(s.children.unshift("("),s.children.push(') || ""')):s.isStatic||(s.content=`${s.content} || ""`),i.includes("camel")&&(4===s.type?s.content=s.isStatic?q(s.content):`${n.helperString(Ea)}(${s.content})`:(s.children.unshift(`${n.helperString(Ea)}(`),s.children.push(")"))),n.inSSR||(i.includes("prop")&&Il(s,"."),i.includes("attr")&&Il(s,"^")),!r||4===r.type&&!r.content.trim()?{props:[Da(s,Fa("",!0,o))]}:{props:[Da(s,r)]}},Il=(e,t)=>{4===e.type?e.content=e.isStatic?t+e.content:`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Nl=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,i=!1;for(let e=0;e<n.length;e++){const t=n[e];if(tc(t)){i=!0;for(let i=e+1;i<n.length;i++){const o=n[i];if(!tc(o)){r=void 0;break}r||(r=n[e]={type:8,loc:t.loc,children:[t]}),r.children.push(" + ",o),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name])))))for(let e=0;e<n.length;e++){const r=n[e];if(tc(r)||8===r.type){const i=[];2===r.type&&" "===r.content||i.push(r),t.ssr||0!==$c(r,t)||i.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:Pa(t.helper(ea),i)}}}}},Ll=new WeakSet,Ol=(e,t)=>{if(1===e.type&&Qa(e,"once",!0)){if(Ll.has(e)||t.inVOnce)return;return Ll.add(e),t.inVOnce=!0,t.helper(ba),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}}},kl=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return Dl();const o=r.loc.source,s=4===r.type?r.content:o;if(!s.trim()||!Ka(s))return Dl();const a=i||Fa("modelValue",!0),c=i?$a(i)?`onUpdate:${i.content}`:Ma(['"onUpdate:" + ',i]):"onUpdate:modelValue";let l;l=Ma([(n.isTS?"($event: any)":"$event")+" => (",r," = $event)"]);const u=[Da(a,e.exp),Da(c,l)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>(Va(e)?e:JSON.stringify(e))+": true")).join(", "),n=i?$a(i)?`${i.content}Modifiers`:Ma([i,' + "Modifiers"']):"modelModifiers";u.push(Da(n,Fa(`{ ${t} }`,!1,e.loc,2)))}return Dl(u)};function Dl(e=[]){return{props:e}}const Fl=new WeakSet,Ml=(e,t)=>{if(1===e.type){const n=Qa(e,"memo");if(!n||Fl.has(e))return;return Fl.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&hc(r,t),e.codegenNode=Pa(t.helper(xa),[n.exp,Ba(void 0,r),"_cache",String(t.cached++)]))}}};function Pl(e,t={}){const n=t.onError||$s,r="module"===t.mode;!0===t.prefixIdentifiers?n(Gs(45)):r&&n(Gs(46)),t.cacheHandlers&&n(Gs(47)),t.scopeId&&!r&&n(Gs(48));const i=D(e)?function(e,t={}){const n=function(e,t){const n=S({},fc);let r;for(r in t)n[r]=void 0===t[r]?fc[r]:t[r];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}(e,t),r=wc(n);return function(e,t=Na){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}(gc(n,0,[]),Ic(n,r))}(e,t):e,[o,s]=[[Ol,tl,Ml,ol,Sl,bl,pl,Nl],{on:xl,bind:wl,model:kl}];return function(e,t){const n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,cacheHandlers:i=!1,nodeTransforms:o=[],directiveTransforms:s={},transformHoist:a=null,isBuiltInComponent:c=b,isCustomElement:l=b,expressionPlugins:u=[],scopeId:h=null,slotted:d=!0,ssr:p=!1,inSSR:f=!1,ssrCssVars:g="",bindingMetadata:m=y,inline:E=!1,isTS:v=!1,onError:A=$s,onWarn:T=Hs,compatConfig:C}){const R=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),S={selfName:R&&Y(q(R[1])),prefixIdentifiers:n,hoistStatic:r,cacheHandlers:i,nodeTransforms:o,directiveTransforms:s,transformHoist:a,isBuiltInComponent:c,isCustomElement:l,expressionPlugins:u,scopeId:h,slotted:d,ssr:p,inSSR:f,ssrCssVars:g,bindingMetadata:m,inline:E,isTS:v,onError:A,onWarn:T,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new Map,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=S.helpers.get(e)||0;return S.helpers.set(e,t+1),e},removeHelper(e){const t=S.helpers.get(e);if(t){const n=t-1;n?S.helpers.set(e,n):S.helpers.delete(e)}},helperString:e=>`_${Ia[S.helper(e)]}`,replaceNode(e){S.parent.children[S.childIndex]=S.currentNode=e},removeNode(e){const t=e?S.parent.children.indexOf(e):S.currentNode?S.childIndex:-1;e&&e!==S.currentNode?S.childIndex>t&&(S.childIndex--,S.onNodeRemoved()):(S.currentNode=null,S.onNodeRemoved()),S.parent.children.splice(t,1)},onNodeRemoved:()=>{},addIdentifiers(e){},removeIdentifiers(e){},hoist(e){D(e)&&(e=Fa(e)),S.hoists.push(e);const t=Fa(`_hoisted_${S.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>function(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Na}}(S.cached++,e,t)};return S}(e,t);qc(e,n),t.hoistStatic&&Pc(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=r[0];if(Bc(e,n)&&n.codegenNode){const r=n.codegenNode;13===r.type&&hc(r,t),e.codegenNode=r}else e.codegenNode=n}else if(r.length>1){let r=64;e.codegenNode=La(t,n(Ws),void 0,e.children,r+"",void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=[...n.helpers.keys()],e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached}(i,S({},t,{prefixIdentifiers:!1,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:S({},s,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:c="vue",ssr:l=!1,isTS:u=!1,inSSR:h=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:c,ssr:l,isTS:u,inSSR:h,source:e.loc.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${Ia[e]}`,push(e,t){d.code+=e},indent(){p(++d.indentLevel)},deindent(e=!1){e?--d.indentLevel:p(--d.indentLevel)},newline(){p(d.indentLevel)}};function p(e){d.push("\n"+" ".repeat(e))}return d}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:s,deindent:a,newline:c,ssr:l}=n,u=e.helpers.length>0,h=!o&&"module"!==r;if(function(e,t){const{push:n,newline:r,runtimeGlobalName:i}=t,o=i;e.helpers.length>0&&(n(`const _Vue = ${o}\n`),e.hoists.length)&&n(`const { ${[Js,Qs,Zs,ea,ta].filter((t=>e.helpers.includes(t))).map((e=>`${Ia[e]}: _${Ia[e]}`)).join(", ")} } = _Vue\n`),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r(),e.forEach(((e,i)=>{e&&(n(`const _hoisted_${i+1} = `),Jc(e,t),r())})),t.pure=!1}(e.hoists,t),r(),n("return ")}(e,n),i(`function ${l?"ssrRender":"render"}(${(l?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),s(),h&&(i("with (_ctx) {"),s(),u&&(i(`const { ${e.helpers.map((e=>`${Ia[e]}: _${Ia[e]}`)).join(", ")} } = _Vue`),i("\n"),c())),e.components.length&&(Kc(e.components,"component",n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(Kc(e.directives,"directive",n),e.temps>0&&c()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n"),c()),l||i("return "),e.codegenNode?Jc(e.codegenNode,n):i("null"),h&&(a(),i("}")),a(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(i,S({},t,{prefixIdentifiers:!1}))}const Bl=Symbol(""),Ul=Symbol(""),$l=Symbol(""),Hl=Symbol(""),Gl=Symbol(""),Wl=Symbol(""),Vl=Symbol(""),jl=Symbol(""),ql=Symbol(""),zl=Symbol("");var Kl;let Yl;Kl={[Bl]:"vModelRadio",[Ul]:"vModelCheckbox",[$l]:"vModelText",[Hl]:"vModelSelect",[Gl]:"vModelDynamic",[Wl]:"withModifiers",[Vl]:"withKeys",[jl]:"vShow",[ql]:"Transition",[zl]:"TransitionGroup"},Object.getOwnPropertySymbols(Kl).forEach((e=>{Ia[e]=Kl[e]}));const Xl=e("style,iframe,script,noscript",!0),Jl={isVoidTag:p,isNativeTag:e=>h(e)||d(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return Yl||(Yl=document.createElement("div")),t?(Yl.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Yl.children[0].getAttribute("foo")):(Yl.innerHTML=e,Yl.textContent)},isBuiltInComponent:e=>Ha(e,"Transition")?ql:Ha(e,"TransitionGroup")?zl:void 0,getNamespace(e,t){let n=t?t.ns:0;if(t&&2===n)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(n=0);else t&&1===n&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(n=0));if(0===n){if("svg"===e)return 1;if("math"===e)return 2}return n},getTextMode({tag:e,ns:t}){if(0===t){if("textarea"===e||"title"===e)return 1;if(Xl(e))return 2}return 0}},Ql=(e,t)=>{const n=c(e);return Fa(JSON.stringify(n),!1,t,3)},Zl=e("passive,once,capture"),eu=e("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),tu=e("left,right"),nu=e("onkeyup,onkeydown,onkeypress",!0),ru=(e,t)=>$a(e)&&"onclick"===e.content.toLowerCase()?Fa(t,!0):4!==e.type?Ma(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,iu=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},ou=[e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Fa("style",!0,t.loc),exp:Ql(t.value.content,t.loc),modifiers:[],loc:t.loc})}))}],su={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:i}=e;return t.children.length&&(t.children.length=0),{props:[Da(Fa("innerHTML",!0,i),r||Fa("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:i}=e;return t.children.length&&(t.children.length=0),{props:[Da(Fa("textContent",!0),r?Pa(n.helperString(ua),[r],i):Fa("",!0))]}},model:(e,t,n)=>{const r=kl(e,t,n);if(!r.props.length||1===t.tagType)return r;const{tag:i}=t,o=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||o){let e=$l,s=!1;if("input"===i||o){const n=Za(t,"type");if(n){if(7===n.type)e=Gl;else if(n.value)switch(n.value.content){case"radio":e=Bl;break;case"checkbox":e=Ul;break;case"file":s=!0}}else(function(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))})(t)&&(e=Gl)}else"select"===i&&(e=Hl);s||(r.needRuntime=n.helper(e))}return r.props=r.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),r},on:(e,t,n)=>xl(e,0,n,(t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:o}=t.props[0];const{keyModifiers:s,nonKeyModifiers:a,eventOptionModifiers:c}=((e,t,n,r)=>{const i=[],o=[],s=[];for(let n=0;n<t.length;n++){const r=t[n];Zl(r)?s.push(r):tu(r)?$a(e)?nu(e.content)?i.push(r):o.push(r):(i.push(r),o.push(r)):eu(r)?o.push(r):i.push(r)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:s}})(i,r);if(a.includes("right")&&(i=ru(i,"onContextmenu")),a.includes("middle")&&(i=ru(i,"onMouseup")),a.length&&(o=Pa(n.helper(Wl),[o,JSON.stringify(a)])),!s.length||$a(i)&&!nu(i.content)||(o=Pa(n.helper(Vl),[o,JSON.stringify(s)])),c.length){const e=c.map(Y).join("");i=$a(i)?Fa(`${i.content}${e}`,!0):Ma(["(",i,`) + "${e}"`])}return{props:[Da(i,o)]}})),show:(e,t,n)=>({props:[],needRuntime:n.helper(jl)})},au=Object.create(null);xi((function(e,t){if(!D(e)){if(!e.nodeType)return b;e=e.innerHTML}const n=e,r=au[n];if(r)return r;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:i}=function(e,t={}){return Pl(e,S({},Jl,t,{nodeTransforms:[iu,...ou,...t.nodeTransforms||[]],directiveTransforms:S({},su,t.directiveTransforms||{}),transformHoist:null}))}(e,S({hoistStatic:!0,onError:void 0,onWarn:b},t)),o=new Function("Vue",i)(Us);return o._rc=!0,au[n]=o}));var cu={class:"sql-scratchpad"},lu={key:1,class:"sql-scratchpad-container"},uu={class:"sql-scratchpad-editor"},hu={class:"sql-scratchpad-progress"},du={class:"sql-scratchpad-actions"},pu={class:"sql-scratchpad-result"},fu={class:"sql-scratchpad-logs"},gu={key:2},mu=i(7759),Eu=i(5701),yu=i.n(Eu),vu=i(216);yu()(vu.Z,{insert:"head",singleton:!1}),vu.Z.locals;var bu="hue.executable.status.transitioned",Au="hue.executable.updated",Tu="hue.executable.logs.updated",Cu="hue.executable.result.updated",Ru={class:"ace-editor-component"},Su=["id"];i(664),i(5466),i(4469),i(1557),i(1986),i(9930),i(4157),i(2049),i(6515),i(3605),i(2821),i(7527),i(8336),i(5517),i(2092),i(262),i(8128),i(7911),i(5366),i(7060),i(2448),i(2224),i(4762),i(267),i(4998),i(4689),i(4042),i(5258),i(5409),i(1489),i(708),i(2426),i(7586),i(9783),i(5394),i(6282),i(1802),i(1220),i(3492),i(9180),i(841);const _u=window.ace;var xu={bigquery:"ace/mode/bigquery",druid:"ace/mode/druid",elasticsearch:"ace/mode/elasticsearch",flink:"ace/mode/flink",dasksql:"ace/mode/dasksql",hive:"ace/mode/hive",hplsql:"ace/mode/hplsql",impala:"ace/mode/impala",ksql:"ace/mode/ksql",mysql:"ace/mode/mysql",pgsq:"ace/mode/pgsql",phoenix:"ace/mode/phoenix",presto:"ace/mode/presto",solr:"ace/mode/solr",sql:"ace/mode/sql"},wu=function(e){return e&&xu[e]||xu.sql};function Iu(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}var Nu=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Iu(o,r,i,s,a,"next",e)}function a(e){Iu(o,r,i,s,a,"throw",e)}s(void 0)}))}}(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){return setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const Lu=Nu,Ou=function(e){Lu(0).finally(e)},ku=function(){};var Du=function(e,t,n){if(!n)return{dispose:ku};var r,i,o,s=n.getSqlAnalyzer(t),a=function(){r&&(r.element.remove(),r=void 0)},c=function(){var t=e.getValue();try{t.length&&!r&&(i=s.predict({beforeCursor:e.getTextBeforeCursor(),afterCursor:e.getTextAfterCursor()})).then((function(t){var n,i=t.prediction;if(i!==o){var s=e.getTextBeforeCursor();i&&i.toLowerCase().startsWith(s.toLowerCase())?(n=s+i.slice(s.length),a(),r=function(t){var n=document.createElement("div");return n.innerText=t,n.style.marginLeft="4px",n.classList.add("ace_invisible"),n.classList.add("ace_emptyMessage"),e.renderer.scroller.append(n),{text:t,element:n}}(n)):a()}o=i})).catch(a)}catch(e){a()}};e.commands.addCommand({name:"applyPredict",bindKey:{win:"Tab",mac:"Tab"},exec:function(){r?(e.setValue(r.text,1),e.clearSelection()):e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"}),e.commands.addCommand({name:"forceIndent",bindKey:{win:"Shift-Tab",mac:"Shift-Tab"},exec:function(){a(),e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"}),e.commands.addCommand({name:"cancelPredict",bindKey:{win:"Escape",mac:"Escape"},exec:function(){a()}});var l=-1,u=function(){if(i)try{i.cancel(),i=void 0}catch(e){}Ou((function(){window.clearTimeout(l);var t=e.getValue();!r||t.length&&r.text!==t&&0===r.text.indexOf(t)||a(),l=window.setTimeout(c,300)}))};return e.on("input",u),{dispose:function(){e.off("input",u)}}},Fu=i(911);yu()(Fu.Z,{insert:"head",singleton:!1}),Fu.Z.locals;var Mu="sql.syntax.dropdown.show",Pu={class:"dropdown-divider"};const Bu=mn({name:"DropdownDivider"});Bu.render=function(e,t,n,r,i,o){return Hr(),qr("li",Pu," ")};const Uu=Bu;var $u=i(1974);yu()($u.Z,{insert:"head",singleton:!1}),$u.Z.locals;var Hu=function(e){e.clickOutsideHandler&&(document.removeEventListener("click",e.clickOutsideHandler),e.clickOutsideHandler=void 0)},Gu=function(e,t){return Hu(e),e.clickOutsideHandler=function(n){document.contains(n.target)&&!e.contains(n.target)&&t(n)},document.addEventListener("click",e.clickOutsideHandler),function(){Hu(e)}},Wu={mounted:function(e,t){Ou((function(){t.value&&"function"==typeof t.value&&Gu(e,t.value)}))},unmounted:Hu};function Vu(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}const ju=mn({name:"DropdownDrawer",props:{open:{type:Boolean,required:!0},closeOnClick:{type:Boolean,default:!0},triggerElement:{type:Object,default:null},forceBottomPlacement:{type:Boolean,default:!1}},emits:["close"],data:function(){return{positionTop:!1,positionLeft:!1,position:{top:"100%",left:"0",right:"",bottom:""},parentPosition:{position:"fixed"}}},watch:{open:function(e){var t=this;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Vu(o,r,i,s,a,"next",e)}function a(e){Vu(o,r,i,s,a,"throw",e)}s(void 0)}))}}(regeneratorRuntime.mark((function n(){var r,i,o,s,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e){n.next=3;break}return Hu(t.$el),n.abrupt("return");case 3:return t.position={top:"100%",left:"0",right:"",bottom:""},t.parentPosition={position:"fixed"},n.next=7,eo();case 7:void 0,c=t.$refs.innerPanelElement.getBoundingClientRect(),r={bottom:c.bottom>window.innerHeight,right:c.right>window.innerWidth},i=r.right,r.bottom&&!t.forceBottomPlacement&&(s=(null===(o=t.triggerElement)||void 0===o?void 0:o.offsetHeight)||0,t.parentPosition={position:"relative"},t.position.top="",t.position.bottom="".concat(s,"px")),i&&(a=t.triggerElement?t.triggerElement.offsetWidth:0,t.position.left="",t.position.right="".concat(a,"px")),Ou((function(){Gu(t.$el,(function(e){t.triggerElement!==e.target&&t.$emit("close")}))})),t.$forceUpdate();case 12:case"end":return n.stop()}var c}),n)})))()}},methods:{closeDrawer:function(){this.open&&this.$emit("close")}}});ju.render=function(e,t,n,i,o,s){return Hr(),qr("div",{ref:"outerPanelElement",class:l(["hue-dropdown-drawer",{open:e.open}]),style:r(e.parentPosition),onClick:t[0]||(t[0]=function(t){return e.closeOnClick&&e.closeDrawer()})},[e.open?(Hr(),qr("div",{key:0,ref:"innerPanelElement",class:"hue-dropdown-drawer-inner",style:r(e.position)},[ui(e.$slots,"default")],4)):ii("v-if",!0)],6)};const qu=ju,zu=mn({name:"DropdownMenuButton",emits:["click"]});zu.render=function(e,t,n,r,i,o){return Hr(),qr("li",null,[Zr("button",{onClick:t[0]||(t[0]=_s((function(t){return e.$emit("click")}),["stop"]))},[ui(e.$slots,"default")])])};const Ku=mn({components:{DropdownDivider:Uu,DropdownMenuButton:zu,DropdownDrawer:qu},props:{options:{type:Array,default:function(){return[]}},keydownElement:{type:Object,default:null},open:{type:Boolean,default:!1},forceBottomPlacement:{type:Boolean,default:!1}},emits:["close","option-active","option-selected"],data:function(){return{selectedIndex:0,keydownDispose:null}},watch:{keydownElement:function(e){var t=this;if(this.keydownDispose&&this.keydownDispose(),e){var n=function(e){switch(e.key){case"ArrowDown":t.selectedIndex=(t.selectedIndex+1)%t.options.length;break;case"ArrowUp":t.selectedIndex=0!==t.selectedIndex?t.selectedIndex-1:t.options.length-1;break;case"Enter":t.$emit("option-selected",t.options[t.selectedIndex])}};e.addEventListener("keydown",n),this.keydownDispose=function(){e.removeEventListener("keydown",n)}}},selectedIndex:function(e){this.options.length&&this.$emit("option-active",this.options[e])},options:function(){this.selectedIndex=0,this.options.length&&this.$emit("option-active",this.options[this.selectedIndex])}},beforeUnmount:function(){this.keydownDispose&&this.keydownDispose()},methods:{getLabel:function(e){return e.label||e},onOptionClick:function(e,t){this.selectedIndex=t,this.$emit("option-selected",e),this.$emit("close")}}});Ku.render=function(e,t,n,r,i,o){var s=Ir("DropdownMenuButton"),a=Ir("DropdownDivider"),c=Ir("DropdownDrawer");return Hr(),zr(c,{open:e.open&&e.options.length>0,"force-bottom-placement":e.forceBottomPlacement,"trigger-element":e.keydownElement,onClose:t[0]||(t[0]=function(t){return e.$emit("close")})},{default:qt((function(){return[Zr("ul",null,[(Hr(!0),qr(Fr,null,li(e.options,(function(t,n){return Hr(),qr(Fr,{key:t.value||t.label||t},[t.divider?(Hr(),zr(a,{key:1})):(Hr(),zr(s,{key:0,class:l({selected:n===e.selectedIndex}),onClick:function(r){return e.onOptionClick(t,n)}},{default:qt((function(){return[ri(m(e.getLabel(t)),1)]})),_:2},1032,["class","onClick"]))],64)})),128))])]})),_:1},8,["open","force-bottom-placement","trigger-element"])};const Yu=Ku;var Xu;!function(e){e[e.RUNNING=0]="RUNNING",e[e.PAUSED=1]="PAUSED"}(Xu||(Xu={}));var Ju={},Qu=Ju.hasOwnProperty,Zu=function(e,t,n){Qu.call(Ju,e)||(Ju[e]=[]);var r=Ju[e].push({listener:t,app:n,state:Xu.RUNNING})-1;return{remove:function(){delete Ju[e][r]}}};const eh=function(e,t){Qu.call(Ju,e)&&Ju[e].forEach((function(e){e.state===Xu.RUNNING&&e.listener(t)}))},th=Zu;function nh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var rh=function(e){return void 0===e?null:e},ih=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.disposed=!1,this.disposals=[],Dn(this.dispose.bind(this))}var t,n;return t=e,(n=[{key:"addDisposable",value:function(e){this.disposals.push(e.dispose.bind(e))}},{key:"addEventListener",value:function(e,t,n){e.addEventListener(t,n),this.disposals.push((function(){e.removeEventListener(t,n)}))}},{key:"subscribe",value:function(e,t){if("string"==typeof e){var n=th(e,t);this.disposals.push((function(){n.remove()}))}else if(e.subscribe){var r=e.subscribe(t);this.disposals.push((function(){r.dispose()}))}}},{key:"trackObservable",value:function(e,t){var n=this;new Promise((function(t){var n=ho(e,(function(e){e&&(t(e),n())}),{immediate:!0})})).then((function(e){n.disposed||(t.value=rh(e()),n.subscribe(e,(function(e){t.value=rh(e)})))}))}},{key:"trackTimeout",value:function(e){this.disposals.push((function(){window.clearTimeout(e)}))}},{key:"dispose",value:function(){for(this.disposed=!0;this.disposals.length;)try{var e=this.disposals.pop();e&&e()}catch(e){console.warn(e)}}}])&&nh(t.prototype,n),e}(),oh=i(3780),sh=function(e,t){var n=void 0!==t?t:null;if(!window.localStorage||window.DISABLE_LOCAL_STORAGE)return n;var r=window.LOGGED_USERNAME?"".concat(window.LOGGED_USERNAME,".").concat(e):e,i=window.localStorage.getItem(r);if(null===i)return n;if(i&&i.length){try{return JSON.parse(i)}catch(e){}return i}return n},ah=function(e,t){if(window.localStorage)if(window.DISABLE_LOCAL_STORAGE)window.localStorage.clear();else{var n=window.LOGGED_USERNAME?"".concat(window.LOGGED_USERNAME,".").concat(e):e;if(null==t)window.localStorage.removeItem(n);else{var r=void 0;try{r=JSON.stringify(t)}catch(e){}try{window.localStorage.setItem(n,r||String(t))}catch(e){}}}};const ch=mn({name:"AceSyntaxDropdown",components:{DropdownMenuOptions:Yu},props:{editor:{type:Object,required:!0},editorId:{type:String,required:!0}},emits:[],setup:function(e){var t=Ot(e),n=t.editor,r=t.editorId,i=new ih,o=St(!1),s=St(),a=St([]),c=St(),l=function(){a.value=[],s.value=void 0,o.value=!1};return i.subscribe("sql.syntax.dropdown.hide",l),i.subscribe(Mu,(function(e){if(e.editorId===r.value){var t=e.data.expected.map((function(e){return{label:e.text,value:e.text}}));e.data.ruleId&&(t.push({label:"-",value:"_divider_",divider:!0}),t.push({label:(0,oh.Z)("Ignore this type of error"),value:"_suppress_",suppress:e.data.ruleId+e.data.text.toLowerCase()})),c.value={top:"".concat(e.source.bottom,"px"),left:"".concat(e.source.left,"px")},s.value=e.range,a.value=t,o.value=!0}})),{closePanel:l,options:a,optionSelected:function(e){var t=e.suppress,i=e.value;if(t){var o=sh("hue.syntax.checker.suppressedRules",{});o[t]=!0,ah("hue.syntax.checker.suppressedRules",o),eh("editor.refresh.statement.locations",r.value)}else s.value&&n.value.session.replace(s.value,i)},position:c,visible:o}}});ch.render=function(e,t,n,i,o,s){var a=Ir("DropdownMenuOptions");return Hr(),qr("div",{class:"ace-syntax-dropdown-container",style:r(e.position)},[ei(a,{"force-bottom-placement":!0,open:e.visible,options:e.options,onClose:e.closePanel,onOptionSelected:e.optionSelected},null,8,["open","options","onClose","onOptionSelected"])],4)};const lh=ch;var uh={class:"autocompleter-suggestions"},hh={key:0,class:"autocompleter-header"},dh={key:0,class:"autocompleter-categories"},ph=["onClick"],fh={class:"autocompleter-spinner"},gh={ref:"entriesScrollDiv",class:"autocompleter-entries"},mh={ref:"entriesDiv"},Eh=["onClick","onMouseover"],yh={class:"autocompleter-suggestion-value"},vh={key:0,class:"fa fa-key"},bh={class:"autocompleter-suggestion-meta"},Ah={key:0,class:"fa fa-star-o popular-color"},Th={key:0,class:"autocompleter-details"};function Ch(e){return Ch="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ch(e)}function Rh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sh(e,t){return!t||"object"!==Ch(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _h(e){var t="function"==typeof Map?new Map:void 0;return _h=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return xh(e,arguments,Nh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ih(n,e)},_h(e)}function xh(e,t,n){return xh=wh()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ih(i,n.prototype),i},xh.apply(null,arguments)}function wh(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Ih(e,t){return Ih=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ih(e,t)}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nh(e)}var Lh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ih(e,t)}(a,e);var t,n,r,i,o,s=(t=a,n=wh(),function(){var e,r=Nh(t);if(n){var i=Nh(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return Sh(this,e)});function a(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=void 0,r=!1;return(t=s.call(this,(function(t,i){return e((function(e){r=!0,t(e)}),(function(e){r=!0,i(e)}),(function(e){return n=e}))}))).onCancel=void 0,t.cancelPrevented=void 0,t.completed=void 0,t.cancelled=void 0,t.onCancel=n,t.completed=function(){return r},t}return r=a,o=[{key:"reject",value:function(e){return new a((function(t,n){n(e)}))}},{key:"resolve",value:function(e){return new a((function(t){t(e)}))}}],(i=[{key:"cancel",value:function(){this.completed()||this.cancelled||this.cancelPrevented||(this.onCancel&&this.onCancel(),this.cancelled=!0)}},{key:"preventCancel",value:function(){this.cancelPrevented=!0}}])&&Rh(r.prototype,i),o&&Rh(r,o),a}(_h(Promise));function Oh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var kh,Dh,Fh=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,(n=[{key:"analyzeCompatibility",value:function(e){return Lh.reject("analyzeCompatibility is not Implemented")}},{key:"analyzeRisk",value:function(e){return Lh.reject("analyzeRisk is not Implemented")}},{key:"analyzeSimilarity",value:function(e){return Lh.reject("analyzeSimilarity is not Implemented")}},{key:"fetchSqlAnalyzerMeta",value:function(e){return Lh.reject("fetchSqlAnalyzerMeta is not Implemented")}},{key:"fetchPopularity",value:function(e){return Lh.reject("analyzeCompatibility is not Implemented")}},{key:"fetchTopAggs",value:function(e){return Lh.reject("fetchTopAggs is not Implemented")}},{key:"fetchTopColumns",value:function(e){return Lh.reject("fetchTopColumns is not Implemented")}},{key:"fetchTopFilters",value:function(e){return Lh.reject("fetchTopFilters is not Implemented")}},{key:"fetchTopJoins",value:function(e){return Lh.reject("fetchTopJoins is not Implemented")}},{key:"predict",value:function(e){return Lh.reject("predict is not Implemented")}}])&&Oh(t.prototype,n),e}();function Mh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.Column="#2fae2f",e.Database="#517989",e.Files="#9e1414",e.IdentCteVar="#ca4f01",e.Keyword="#0074d2",e.Popular="#61bbff",e.Sample="#fea7a7",e.Table="#ffa139",e.UDF="#acfbac"}(kh||(kh={})),function(e){e.All="All",e.ColRefKeyword="ColRefKeyword",e.Column="Column",e.CTE="CTE",e.Database="Database",e.Files="Files",e.Identifier="Identifier",e.Keyword="Keyword",e.Option="Option",e.Popular="Popular",e.PopularActiveJoin="PopularActiveJoin",e.PopularAggregate="PopularAggregate",e.PopularFilter="PopularFilter",e.PopularGroupBy="PopularGroupBy",e.PopularJoin="PopularJoin",e.PopularJoinCondition="PopularJoinCondition",e.PopularOrderBy="PopularOrderBy",e.Sample="Sample",e.Table="Table",e.UDF="UDF",e.Variable="Variable",e.VirtualColumn="VirtualColumn"}(Dh||(Dh={}));var Ph={All:{categoryId:Dh.All,color:"#90ceff",label:(0,oh.Z)("All")},ColRefKeyword:{categoryId:Dh.ColRefKeyword,color:kh.Keyword,label:(0,oh.Z)("Keywords"),weight:100},Column:{categoryId:Dh.Column,color:kh.Column,label:(0,oh.Z)("Columns"),weight:1e3},CTE:{categoryId:Dh.CTE,color:kh.IdentCteVar,label:(0,oh.Z)("CTEs"),weight:700},Database:{categoryId:Dh.Database,color:kh.Database,label:(0,oh.Z)("Databases"),weight:500},Files:{categoryId:Dh.Files,color:kh.Files,label:(0,oh.Z)("Files"),weight:300},Identifier:{categoryId:Dh.Identifier,color:kh.IdentCteVar,label:(0,oh.Z)("Identifiers"),weight:800},Keyword:{categoryId:Dh.Keyword,color:kh.Keyword,label:(0,oh.Z)("Keywords"),weight:0},Option:{categoryId:Dh.Option,color:kh.UDF,detailsComponent:"OptionDetailsPanel",label:(0,oh.Z)("Options"),weight:400},Popular:{categoryId:Dh.Popular,color:kh.Popular,label:(0,oh.Z)("Popular"),popular:!0},PopularAggregate:{categoryId:Dh.PopularAggregate,color:kh.Popular,detailsComponent:"PopularAggregateUdfPanel",label:(0,oh.Z)("Popular"),popular:!0,weight:1500},PopularActiveJoin:{categoryId:Dh.PopularActiveJoin,color:kh.Popular,label:(0,oh.Z)("Popular"),detailsComponent:"PopularDetailsPanel",popular:!0,weight:1500},PopularFilter:{categoryId:Dh.PopularFilter,color:kh.Popular,label:(0,oh.Z)("Popular"),detailsComponent:"PopularDetailsPanel",popular:!0,weight:1400},PopularGroupBy:{categoryId:Dh.PopularGroupBy,color:kh.Popular,detailsComponent:"PopularDetailsPanel",label:(0,oh.Z)("Popular"),popular:!0,weight:1300},PopularJoin:{categoryId:Dh.PopularJoin,color:kh.Popular,detailsComponent:"PopularDetailsPanel",label:(0,oh.Z)("Popular"),weight:1500},PopularJoinCondition:{categoryId:Dh.PopularJoinCondition,color:kh.Popular,detailsComponent:"PopularDetailsPanel",label:(0,oh.Z)("Popular"),popular:!0,weight:1500},PopularOrderBy:{categoryId:Dh.PopularOrderBy,color:kh.Popular,detailsComponent:"PopularDetailsPanel",label:(0,oh.Z)("Popular"),popular:!0,weight:1200},Sample:{categoryId:Dh.Sample,color:kh.Sample,label:(0,oh.Z)("Samples"),weight:900},Table:{categoryId:Dh.Table,color:kh.Table,label:(0,oh.Z)("Tables"),weight:600},UDF:{categoryId:Dh.UDF,detailsComponent:"UdfDetailsPanel",color:kh.UDF,label:(0,oh.Z)("UDFs"),weight:400},Variable:{categoryId:Dh.Variable,color:kh.IdentCteVar,label:(0,oh.Z)("Variables"),weight:50},VirtualColumn:{categoryId:Dh.VirtualColumn,color:kh.Column,label:(0,oh.Z)("Columns"),weight:200}},Bh=i(1466),Uh=i.n(Bh),$h=function(e){return e||(e={}),void 0===e.silenceErrors&&(e.silenceErrors=!0),e},Hh=function(e,t){return!e||!e.preventCancel||t&&t.cancellable||e.preventCancel(),e},Gh=i(5526),Wh=i(2868),Vh=i.n(Wh),jh=i(5907),qh=i.n(jh);const zh=function(e){void 0!==window.console&&void 0!==window.console.error&&(void 0!==e&&console.error(e),console.error((new Error).stack))};function Kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xh,Jh=Vh().create({withCredentials:!0}),Qh=window.HUE_BASE_URL;Jh.interceptors.request.use((function(e){return Qh&&(e.baseURL=Qh),Xh&&(e.headers.Authorization="Bearer ".concat(Xh)),e})),Jh.interceptors.response.use((function(e){var t;return null!==(t=e.data)&&void 0!==t&&t.access&&(Xh=e.data.access),e}));var Zh=function(e){return void 0!==e&&(void 0!==e.traceback||void 0!==e.status&&0!==e.status||503===e.code||500===e.code)},ed="Unknown error occurred",td=function(e){if(!e)return ed;if("string"==typeof e)return e;var t=e;if(t.statusText&&"abort"!==t.statusText)return t.statusText;if(t.responseText){try{var n=JSON.parse(t.responseText);if(n.message)return n.message}catch(e){}return t.responseText}return e.message?e.message:t.statusText?t.statusText:t.error&&"string"==typeof t.error?t.error:ed},nd=function(e,t,n){n&&n.silenceErrors||(zh(t),-1===e.indexOf("AuthorizationException")&&eh("hue.error",e))},rd=function(e,t,n){var r=td(e.response&&e.response.data);t(r),nd(r,e&&e.response||e,n)},id=function(e,t,n,r){if(r&&r.handleSuccess)r.handleSuccess(e.data,t,(function(t){n(t),nd(String(t),e.data,r)}));else if(r&&r.ignoreSuccessErrors||!Zh(e.data))t(e.data);else{var i=td(e&&e.data);n(i),nd(i,e,r)}},od=function(){var e=Vh().CancelToken.source();return{cancelToken:e.token,cancel:e.cancel}},sd=function(e,t,n){return new Lh((function(r,i,o){var s=od(),a=s.cancelToken,c=s.cancel,l=!1;Jh.post(e,qh().stringify(t),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kh(Object(n),!0).forEach((function(t){Yh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({cancelToken:a},n)).then((function(e){id(e,r,i,n)})).catch((function(e){n&&n.handleError?n.handleError(e,r,(function(t){rd(e,i,n),nd(String(t),e,n)})):rd(e,i,n)})).finally((function(){l=!0})),o((function(){l||c()}))}))},ad=function(e,t,n){return new Lh((function(r,i,o){var s=od(),a=s.cancelToken,c=s.cancel,l=!1;Jh.get(e,{cancelToken:a,params:t}).then((function(e){id(e,r,i,n)})).catch((function(e){rd(e,i,n)})).finally((function(){l=!0})),o((function(){l||c()}))}))};function cd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ld(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function ud(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ld(o,r,i,s,a,"next",e)}function a(e){ld(o,r,i,s,a,"throw",e)}s(void 0)}))}}function hd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var dd,pd={bigint:"sort-numeric",date:"sort-date",datetime:"sort-date",decimal:"sort-numeric",double:"sort-numeric",float:"sort-numeric",int:"sort-numeric",real:"sort-numeric",smallint:"sort-numeric",timestamp:"sort-date",tinyint:"sort-numeric"},fd={bigint:!0,decimal:!0,double:!0,float:!0,int:!0,real:!0,smallint:!0,tinyint:!0},gd={date:!0,datetime:!0,timestamp:!0},md={array:!0,map:!0,struct:!0};!function(e){e.Table="table"}(dd||(dd={}));var Ed=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.executable=void 0,this.streaming=void 0,this.type=void 0,this.rows=[],this.meta=[],this.cleanedMeta=[],this.cleanedDateTimeMeta=[],this.cleanedStringMeta=[],this.cleanedNumericMeta=[],this.koEnrichedMeta=[],this.lastRows=[],this.images=[],this.hasMore=!0,this.isEscaped=!1,this.fetchedOnce=!1,this.executable=t,this.streaming=!!n}var t,n,r,i;return t=e,n=[{key:"fetchResultSize",value:(i=ud(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.executable.status!==ip.failed){e.next=2;break}return e.abrupt("return");case 2:return t=0,n=function(){var e=ud(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(++t<10)){e.next=16;break}return e.next=4,Op({executable:r.executable,silenceErrors:!0});case 4:if(!(i=e.sent).rows){e.next=9;break}return e.abrupt("return",i);case 9:return e.next=11,Lu(1e3);case 11:return e.next=13,n();case 13:return e.abrupt("return",e.sent);case 14:e.next=17;break;case 16:return e.abrupt("return",Promise.reject());case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=6,n();case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"fetchRows",value:(r=ud(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Lp({executable:this.executable,rows:t&&t.rows||100,startOver:!(!t||!t.startOver)});case 2:(n=e.sent)&&this.handleResultResponse(n);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"handleResultResponse",value:function(e){var t,n,r=this,i=this.rows.length;e.data.forEach((function(e,t){e.unshift(i+t+1)})),(t=this.rows).push.apply(t,function(e){if(Array.isArray(e))return cd(e)}(n=e.data)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cd(e,t):void 0}}(n)||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.")}()),this.lastRows=e.data,this.meta.length||(this.meta=e.meta,this.meta.unshift({type:"INT_TYPE",name:"",comment:null}),this.meta.forEach((function(e,t){var n=e.type.replace(/_type/i,"").toLowerCase();t&&(r.cleanedMeta.push(e),fd[n]?r.cleanedNumericMeta.push(e):gd[n]?r.cleanedDateTimeMeta.push(e):md[n]||r.cleanedStringMeta.push(e)),r.koEnrichedMeta.push({name:e.name,type:n,comment:e.comment,cssClass:pd[n]||"sort-string",checked:Gh.observable(!0),originalIndex:t})}))),this.hasMore=e.has_more,this.isEscaped=e.isEscaped,e.type&&(this.type=e.type),this.fetchedOnce=!0,this.notify()}},{key:"notify",value:function(){eh(Cu,this)}}],n&&hd(t.prototype,n),e}();function yd(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function vd(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){yd(o,r,i,s,a,"next",e)}function a(e){yd(o,r,i,s,a,"throw",e)}s(void 0)}))}}function bd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ad=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.executable=void 0,this.fullLog="",this.logLines=0,this.jobs=[],this.errors=[],this.executable=t}var t,n,r;return t=e,n=[{key:"notify",value:function(){eh(Tu,this)}},{key:"reset",value:function(){this.fullLog="",this.logLines=0,this.jobs=[],this.errors=[],this.notify()}},{key:"fetchLogs",value:(r=vd(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kp({executable:this.executable,fullLog:this.fullLog,jobs:this.jobs});case 2:-1===(n=e.sent).logs.indexOf("Unable to locate")||n.isFullLogs?this.fullLog=n.logs:this.fullLog+="\n"+n.logs,this.logLines=this.fullLog.split(/\r\n|\r|\n/).length,n.jobs?(n.jobs.forEach((function(e){void 0===e.percentJob&&(e.percentJob=-1)})),this.jobs=n.jobs):this.jobs=[],eh(Tu,this),t||(r=this.executable.getExecutionTime()>45e3?5e3:1e3,i=window.setTimeout(vd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.fetchLogs(o.executable.status!==ip.running&&o.executable.status!==ip.starting&&o.executable.status!==ip.waiting);case 2:case"end":return e.stop()}}),e)}))),r),this.executable.addCancellable({cancel:function(){window.clearTimeout(i)}}));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"toJs",value:function(){return{jobs:this.jobs,errors:this.errors.map((function(e){return e.message}))}}}],n&&bd(t.prototype,n),e}();function Td(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Cd(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Td(o,r,i,s,a,"next",e)}function a(e){Td(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Rd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Sd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.knownSessionPromises={}}var t,n,r,i,o,s,a;return t=e,n=[{key:"getSession",value:(a=Cd(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.knownSessionPromises[t.type]||(this.knownSessionPromises[t.type]=this.createDetachedSession(t),this.knownSessionPromises[t.type].catch((function(){delete n.knownSessionPromises[t.type]}))),e.abrupt("return",this.knownSessionPromises[t.type]);case 2:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"createDetachedSession",value:(s=Cd(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Cd(regeneratorRuntime.mark((function e(n,r){var i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={type:t.type,properties:t.properties||[]},e.next=3,Sp(i);case 3:"auth"in(o=e.sent)&&o.auth?(s=o,t.preventAuthModal?r(s):eh("show.session.auth.modal",{message:s.message,session:i,resolve:n,reject:r})):n(o);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"updateSession",value:function(e){this.knownSessionPromises[e.type]=Promise.resolve(e)}},{key:"getAllSessions",value:(o=Cd(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Object.keys(this.knownSessionPromises).map((function(e){return n.knownSessionPromises[e]})),e.abrupt("return",Promise.all(t));case 2:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"restartSession",value:(i=Cd(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.closeSession(t);case 2:return e.abrupt("return",this.getSession(t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"hasSession",value:function(e){return!!this.knownSessionPromises[e]}},{key:"closeSession",value:(r=Cd(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.hasSession(t.type)&&delete this.knownSessionPromises[t.type],e.next=3,_p({session:t,silenceErrors:!0});case 3:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}],n&&Rd(t.prototype,n),e}();const _d=new Sd;var xd,wd,Id,Nd,Ld="/api/editor/autocomplete/",Od="/desktop/api2/doc/",kd="/filebrowser/view="+encodeURIComponent("/"),Dd="/filebrowser/view="+encodeURIComponent("adl:/"),Fd="/filebrowser/view="+encodeURIComponent("ABFS://"),Md="/filebrowser/view="+encodeURIComponent("s3a://"),Pd="/desktop/api/configurations",Bd="/desktop/api2/gist/",Ud="/api/metadata/search/entities_interactive",$d="cluster.config.set.config";function Hd(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Gd(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Hd(o,r,i,s,a,"next",e)}function a(e){Hd(o,r,i,s,a,"throw",e)}s(void 0)}))}}(Nd=xd||(xd={})).browser="browser",Nd.editor="editor",Nd.dashboard="dashboard",Nd.scheduler="scheduler",Nd.sdkapps="sdkapps";var Wd=function(){var e=Gd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return wd=new Promise(function(){var e=Gd(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,sd("/api/get_config/",{},{silenceErrors:!0});case 3:0==(r=e.sent).status?t(Id=r):(eh("hue.error",r.message),n()),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}()),wd.then((function(e){eh($d,e)})).catch((function(){eh($d)})),e.abrupt("return",wd);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Vd=function(){return Id},jd=function(){var e=Gd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Vd()||Wd());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qd=function(e,t){return function(e){if(!Id||!Id.app_config)return[];var t=Id.app_config[e];return t?t.interpreters?t.interpreters:(console.warn("No interpreters configured for type ".concat(e)),[]):(console.warn("No app config for type ".concat(e)),[])}(e).find(t)},zd=function(e){return qd(xd.browser,e)},Kd=function(e){return qd(xd.editor,e)},Yd=/.*%3A%2F%2F(.+)$/,Xd=function(e){if(!e||"hdfs"===e.type)return"";var t=e.page.match(Yd);return t?t[1]+"/":""};th("cluster.config.refresh.config",Wd),th("cluster.config.get.config",(function(e){wd&&e&&wd.then(e).catch(e)}));var Jd=function(e,t){var n=window;return n.DEV&&n.hueDebugAnalytics&&("string"!=typeof e&&console.error('hueAnalytics parameter "area" must be a string'),"string"!=typeof t&&console.error('hueAnalytics parameter "action" must be a string')),"string"==typeof e&&"string"==typeof t};const Qd={log:function(e,t,n){var r,i=Vd(),o=window;if(n&&this.convert(e,t),null!=i&&null!==(r=i.hue_config)&&void 0!==r&&r.collect_usage){if(!Jd(e,t))return;var s,a=function(e,t){return{type:"event",name:e,params:{action:t,version:window.HUE_VERSION||""}}}(e,t),c=a.type,l=a.name,u=a.params;o.DEV&&o.hueDebugAnalytics&&console.info("Analytics debug:",c,l,u),o.DEV||null===(s=o.gtag)||void 0===s||s.call(o,c,l,u)}},convert:function(e,t){Jd(e,t)&&sd("/desktop/log_analytics",{area:e,action:t})}};var Zd=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};const ep=function(){return Zd()+Zd()+"-"+Zd()+"-"+Zd()+"-"+Zd()+"-"+Zd()+Zd()+Zd()};function tp(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function np(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){tp(o,r,i,s,a,"next",e)}function a(e){tp(o,r,i,s,a,"throw",e)}s(void 0)}))}}function rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ip;!function(e){e.available="available",e.failed="failed",e.success="success",e.expired="expired",e.running="running",e.starting="starting",e.waiting="waiting",e.ready="ready",e.streaming="streaming",e.canceled="canceled",e.canceling="canceling",e.closed="closed"}(ip||(ip={}));var op=/ALTER|ANALYZE|WITH|REFRESH|CREATE|DELETE|DROP|GRANT|INSERT|INVALIDATE|LOAD|SET|TRUNCATE|UPDATE|FROM|UPSERT|USE/i,sp=/([^;]*)([;]?[^;]*)/,ap=/line ([0-9]+)(:([0-9]+))?/i,cp=/(?:CREATE|DROP)\s+(?:TABLE|VIEW)\s+(?:IF\s+(?:NOT\s+)?EXISTS\s+)?(?:`([^`]+)`|([^;\s]+))\..*/i,lp=/(?:CREATE|DROP)\s+(?:DATABASE|SCHEMA)\s+(?:IF\s+(?:NOT\s+)?EXISTS\s+)?(?:`([^`]+)`|([^;\s]+))/i,up=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=ep(),this.database=void 0,this.executor=void 0,this.handle=void 0,this.operationId=void 0,this.history=void 0,this.status=ip.ready,this.progress=0,this.result=void 0,this.logs=void 0,this.cancellables=[],this.notifyThrottle=-1,this.executeStarted=0,this.executeEnded=0,this.previousExecutable=void 0,this.nextExecutable=void 0,this.observerState={},this.lost=!1,this.edited=!1,this.parsedStatement=void 0,this.logs=new Ad(this),this.executor=t.executor,this.database=t.database,this.parsedStatement=t.parsedStatement}var t,n,r,i,o,s,a,c,l,u,h;return t=e,n=[{key:"getLogs",value:function(){return this.logs}},{key:"getResult",value:function(){return this.result}},{key:"setStatus",value:function(e){var t=this.status;this.status=e,t!==e&&eh(bu,{executable:this,oldStatus:t,newStatus:e}),this.notify()}},{key:"setProgress",value:function(e){this.progress=e,this.notify()}},{key:"getExecutionStatus",value:function(){return this.status}},{key:"getExecutionTime",value:function(){return(this.executeEnded||Date.now())-this.executeStarted}},{key:"notify",value:function(e){var t=this;window.clearTimeout(this.notifyThrottle),e?eh(Au,this):this.notifyThrottle=window.setTimeout((function(){eh(Au,t)}),1)}},{key:"isReady",value:function(){return this.status===ip.ready||this.status===ip.closed||this.status===ip.canceled}},{key:"isRunning",value:function(){return this.status===ip.running||this.status===ip.streaming}},{key:"isSuccess",value:function(){return this.status===ip.success||this.status===ip.available}},{key:"isFailed",value:function(){return this.status===ip.failed}},{key:"isPartOfRunningExecution",value:function(){return!this.isReady()||!!this.previousExecutable&&this.previousExecutable.isPartOfRunningExecution()}},{key:"cancelBatchChain",value:(h=np(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.previousExecutable){e.next=7;break}if(this.previousExecutable.nextExecutable=void 0,n=this.previousExecutable.cancelBatchChain(t),!t){e.next=6;break}return e.next=6,n;case 6:this.previousExecutable=void 0;case 7:if(this.isReady()){e.next=14;break}if(!t){e.next=13;break}return e.next=11,this.cancel();case 11:e.next=14;break;case 13:this.cancel();case 14:if(!this.nextExecutable){e.next=21;break}if(this.nextExecutable.previousExecutable=void 0,r=this.nextExecutable.cancelBatchChain(t),!t){e.next=20;break}return e.next=20,r;case 20:this.nextExecutable=void 0;case 21:this.notify();case 22:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"execute",value:(u=np(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isReady()){e.next=2;break}return e.abrupt("return");case 2:return this.edited=!1,this.executeStarted=Date.now(),this.setStatus(ip.running),this.setProgress(0),this.notify(!0),e.prev=7,Qd.log("notebook","execute/"+(this.executor.connector()?this.executor.connector().dialect:"")),e.prev=9,e.next=12,this.internalExecute();case 12:t=e.sent,this.handle=t.handle,this.history=t.history,t.history&&(this.operationId=t.history.uuid),t.handle.session_id&&t.handle.session_type&&t.handle.session_guid&&_d.updateSession({type:t.handle.session_type,id:t.handle.session_id,session_id:t.handle.session_guid,properties:[]}),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(9),e.t0&&(e.t0.message||"string"==typeof e.t0)&&(n=this.adaptError(e.t0.message&&e.t0.message||e.t0),this.logs.errors.push(n),this.logs.notify()),e.t0;case 23:this.handle&&this.handle.has_result_set&&this.handle.sync&&(this.result=new Ed(this),this.handle.result&&this.result.handleResultResponse(this.handle.result),this.result.fetchRows()),this.executor.isSqlAnalyzerEnabled&&this.history&&eh("editor.upload.query",this.history.id),this.checkStatus(),this.logs.fetchLogs(),e.next=33;break;case 29:e.prev=29,e.t1=e.catch(7),console.warn(e.t1),this.setStatus(ip.failed);case 33:case"end":return e.stop()}}),e,this,[[7,29],[9,19]])}))),function(){return u.apply(this,arguments)})},{key:"checkStatus",value:(l=np(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.handle){e.next=2;break}return e.abrupt("return");case 2:return n=-1,r=t||0,t||this.addCancellable({cancel:function(){window.clearTimeout(n)}}),r++,e.next=8,Np({executable:this});case 8:i=e.sent,this.handle&&void 0!==i.has_result_set&&(this.handle.has_result_set=i.has_result_set),e.t0=i.status,e.next=e.t0===ip.success?13:e.t0===ip.available?17:e.t0===ip.canceled||e.t0===ip.expired?27:e.t0===ip.streaming?30:e.t0===ip.running||e.t0===ip.starting||e.t0===ip.waiting?33:e.t0===ip.failed?36:40;break;case 13:return this.executeEnded=Date.now(),this.setStatus(i.status),this.setProgress(99),e.abrupt("break",43);case 17:if(this.executeEnded=Date.now(),this.setStatus(i.status),this.setProgress(100),!this.result&&this.handle&&this.handle.has_result_set&&(this.result=new Ed(this),this.result.fetchRows()),!this.nextExecutable){e.next=26;break}if(this.nextExecutable.isReady()){e.next=25;break}return e.next=25,this.nextExecutable.reset();case 25:this.nextExecutable.execute();case 26:return e.abrupt("break",43);case 27:return this.executeEnded=Date.now(),this.setStatus(i.status),e.abrupt("break",43);case 30:if(i.result){e.next=32;break}return e.abrupt("return");case 32:window.WEB_SOCKETS_ENABLED?eh("editor.ws.query.fetch_result",i.result):(this.result||(this.result=new Ed(this,!0)),this.result.handleResultResponse(i.result));case 33:return this.setStatus(i.status),n=window.setTimeout((function(){o.checkStatus(t)}),r>45?5e3:1e3),e.abrupt("break",43);case 36:return this.executeEnded=Date.now(),this.setStatus(i.status),i.message&&eh("hue.error",i.message),e.abrupt("break",43);case 40:this.executeEnded=Date.now(),this.setStatus(ip.failed),console.warn("Got unknown status "+i.status);case 43:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"addCancellable",value:function(e){this.cancellables.push(e)}},{key:"internalExecute",value:(c=np(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.parsedStatement&&/CREATE|DROP/i.test(this.parsedStatement.firstToken)&&(t=this.parsedStatement.statement.match(cp),n=[],t||(t=this.parsedStatement.statement.match(lp))?n.push(t[1]||t[2]):this.database&&n.push(this.database),n.length&&window.setTimeout((function(){Wf.getEntry({namespace:r.executor.namespace(),compute:r.executor.compute(),connector:r.executor.connector(),path:n}).then((function(e){e.clearCache({cascade:!0,silenceErrors:!0})})).catch()}),5e3)),e.next=3,xp({executable:this,silenceErrors:!0});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"adaptError",value:function(e){var t=ap.exec(e);if(t){var n=parseInt(t[1]);return{message:e,column:t[3]&&parseInt(t[3])||0,row:n}}return{message:e,column:0,row:this.parsedStatement.location.first_line}}},{key:"canExecuteInBatch",value:function(){return this.parsedStatement&&op.test(this.parsedStatement.firstToken)}},{key:"getKey",value:function(){return this.database+"_"+this.parsedStatement.statement}},{key:"getRawStatement",value:function(){return this.parsedStatement.statement}},{key:"getStatement",value:function(){var e=this.getRawStatement();if(this.parsedStatement.firstToken&&"select"===this.parsedStatement.firstToken.toLowerCase()&&this.executor.defaultLimit&&!isNaN(this.executor.defaultLimit())&&this.executor.defaultLimit()>0&&/\sfrom\s/i.test(e)&&!/\slimit\s[0-9]/i.test(e)){var t=e.match(sp);t&&(e=t[1]+" LIMIT "+this.executor.defaultLimit(),t[2]&&(e+=t[2]))}return this.executor.variables&&(e=function(e,t){if(!Object.keys(t).length)return e;var n=Object.values(t).map((function(e){return e.name})).join("|");return e.replace(RegExp("([^\\\\])?\\${("+n+")(=[^}]*)?}","g"),(function(e,n,r){var i=t[r],o=i.value,s=i.type,a=i.meta,c="datetime-local"===s&&16===o.length?":00":"";return n+(("string"==typeof o?o:null!=o)?o+c:a.placeholder)}))}(e,this.executor.variables)),e}},{key:"toJson",value:function(){return JSON.stringify({id:this.id,parsedStatement:this.parsedStatement,statement:this.getStatement(),database:this.database})}},{key:"cancel",value:(a=np(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancellables.length||this.status!==ip.running&&this.status!==ip.streaming){e.next=11;break}Qd.log("notebook","cancel/"+(this.executor.connector()?this.executor.connector().dialect:"")),this.setStatus(ip.canceling);case 3:if(!this.cancellables.length){e.next=10;break}if(!(t=this.cancellables.pop())){e.next=8;break}return e.next=8,t.cancel();case 8:e.next=3;break;case 10:this.setStatus(ip.canceled);case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"reset",value:(s=np(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.result=void 0,this.logs.reset(),this.isReady()){e.next=10;break}return e.prev=3,e.next=6,this.close();case 6:e.next=10;break;case 8:e.prev=8,e.t0=e.catch(3);case 10:this.handle=void 0,this.setProgress(0),this.setStatus(ip.ready);case 13:case"end":return e.stop()}}),e,this,[[3,8]])}))),function(){return s.apply(this,arguments)})},{key:"toJs",value:function(){var e=Object.assign({},this.observerState);return delete e.aceAnchor,{executeEnded:this.executeEnded,executeStarted:this.executeStarted,handle:this.handle,history:this.history,id:this.id,logs:this.logs.toJs(),lost:this.lost,observerState:e,progress:this.progress,status:this.status,type:"sqlExecutable",database:this.database,parsedStatement:this.parsedStatement}}},{key:"close",value:(o=np(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.cancellables.length){e.next=13;break}if(!(t=this.cancellables.pop())){e.next=11;break}return e.prev=3,e.next=6,t.cancel();case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),console.warn(e.t0);case 11:e.next=0;break;case 13:return e.prev=13,e.next=16,Ip({executable:this,silenceErrors:!0});case 16:e.next=21;break;case 18:e.prev=18,e.t1=e.catch(13),console.warn("Failed closing statement");case 21:this.setStatus(ip.closed);case 22:case"end":return e.stop()}}),e,this,[[3,8],[13,18]])}))),function(){return o.apply(this,arguments)})},{key:"toContext",value:(i=np(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_d.getSession({type:this.executor.connector().id});case 2:if(n=e.sent,!this.executor.snippet){e.next=12;break}return e.t0=this.operationId,e.t1=this.executor.snippet.toContextJson(this.getStatement()),e.t2=JSON,e.next=9,this.executor.snippet.parentNotebook.toJs();case 9:return e.t3=e.sent,e.t4=e.t2.stringify.call(e.t2,e.t3),e.abrupt("return",{operationId:e.t0,snippet:e.t1,notebook:e.t4});case 12:return r={type:this.executor.connector().id,result:{handle:this.handle},connector:this.executor.connector(),executor:this.executor.toJs(),defaultLimit:this.executor.defaultLimit&&this.executor.defaultLimit()||null,status:this.status,id:t||ep(),statement_raw:this.getRawStatement(),statement:this.getStatement(),lastExecuted:this.executeStarted,variables:[],compute:this.executor.compute(),namespace:this.executor.namespace(),database:this.database,properties:{settings:[]}},i={type:"query-".concat(this.executor.connector().id),snippets:[r],uuid:ep(),name:"",isSaved:!1,sessions:[n],editorWsChannel:window.WS_CHANNEL},e.abrupt("return",{operationId:this.operationId,snippet:JSON.stringify(r),notebook:JSON.stringify(i)});case 15:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}],r=[{key:"fromJs",value:function(t,n){var r=new e({database:n.database,executor:t,parsedStatement:n.parsedStatement});return r.executeEnded=n.executeEnded,r.executeStarted=n.executeStarted,r.handle=n.handle,r.history=n.history,r.id=n.id,n.logs.errors&&(r.logs.errors=n.logs.errors.map((function(e){return r.adaptError(e)}))),r.logs.jobs=n.logs.jobs,r.lost=n.lost,r.observerState=n.observerState||{},r.operationId=n.history&&n.history.uuid,r.progress=n.progress,r.status=n.status,r}}],n&&rp(t.prototype,n),r&&rp(t,r),e}();function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach((function(t){pp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fp(e){return function(e){if(Array.isArray(e))return gp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gp(e,t):void 0}}(e)||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 gp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ep=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.connector=void 0,this.compute=void 0,this.namespace=void 0,this.database=void 0,this.defaultLimit=void 0,this.isSqlEngine=void 0,this.isSqlAnalyzerEnabled=void 0,this.executables=[],this.snippet=void 0,this.activeExecutable=void 0,this.variables={},this.connector=t.connector,this.compute=t.compute,this.namespace=t.namespace,this.database=t.database,this.isSqlEngine=t.isSqlEngine,this.isSqlAnalyzerEnabled=t.isSqlAnalyzerEnabled,this.executables=[],this.defaultLimit=t.defaultLimit,this.snippet=t.snippet}var t,n;return t=e,(n=[{key:"toJs",value:function(){return{executables:this.executables.map((function(e){return e.toJs()}))}}},{key:"cancelAll",value:function(){this.executables.forEach((function(e){return e.cancelBatchChain()}))}},{key:"setExecutables",value:function(e){this.cancelAll(),this.executables=e,this.executables.forEach((function(e){return e.notify()}))}},{key:"update",value:function(e,t){var n,r=function(e,t){var n=[].concat(fp(t.precedingStatements),[t.activeStatement],fp(t.followingStatements)),r=fp(e.executables),i={all:[],edited:[],lost:[],selected:[]},o=e.database(),s=0,a=0;return n.forEach((function(n,c){if(/USE/i.test(n.firstToken)){var l=n.statement.match(/use\s+([^;]+)/i);l&&(o=l[1])}var u=r[c];if(u){var h=u.database!==o||n.statement!==u.parsedStatement.statement;r[c]=void 0,u.database=o,u.parsedStatement=n,h&&(u.edited=!0,i.edited.push(u))}else(u=new up({parsedStatement:n,database:o,executor:e})).edited=!0;n===t.activeStatement&&(a=c),i.all.push(u),s<t.selectedStatements.length&&n===t.selectedStatements[s]&&(i.selected.push(u),s++)})),i.lost=r.filter((function(e){return void 0!==e})),dp(dp({},i),{},{active:i.all[a]})}(this,e);return r.lost.forEach((function(e){e.lost=!0,e.cancelBatchChain()})),t&&(r.selected.forEach((function(e){return e.cancelBatchChain()})),r.selected.forEach((function(e){n&&(e.previousExecutable=n,n.nextExecutable=e),n=e}))),this.activeExecutable=r.active,this.executables=r.all,this.executables.forEach((function(e){return e.notify()})),r.selected[0]}}])&&mp(t.prototype,n),e}(),yp=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,7],n=[1,6],r=[1,12],i=[5,9],o=[1,13],s=[5,8,9],a={trace:function(){},yy:{},symbols_:{error:2,HplsqlStatementsParser:3,Statements:4,EOF:5,OneOrMoreSeparators:6,StatementParts:7,PART_OF_STATEMENT:8,"/":9,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"PART_OF_STATEMENT",9:"/"},productions_:[0,[3,2],[3,3],[3,4],[3,3],[3,2],[3,1],[4,1],[4,3],[7,1],[7,2],[6,1],[6,2]],performAction:function(e,t,n,r,i,o,s){var c=o.length-1;switch(i){case 1:return a.removeTrailingWhiteSpace(o[c-1]),o[c-1];case 2:return a.handleLeadingStatements(o[c-2],o[c-1]),a.removeTrailingWhiteSpace(o[c-1]),o[c-1];case 3:return a.handleLeadingStatements(o[c-3],o[c-2]),a.handleTrailingStatements(o[c-2],o[c-1]),a.removeTrailingWhiteSpace(o[c-2]),o[c-2];case 4:return a.handleTrailingStatements(o[c-2],o[c-1]),a.removeTrailingWhiteSpace(o[c-2]),o[c-2];case 5:var l=[];return a.handleLeadingStatements(o[c-1],l),l;case 6:return l=[],a.addEntry(l,"statement",o[c],s[c]),l;case 7:this.$=[],a.addEntry(this.$,"statement",o[c],s[c]);break;case 8:a.handleTrailingStatements(o[c-2],o[c-1]),a.addEntry(o[c-2],"statement",o[c],s[c]);break;case 10:this.$=o[c-1]+o[c];break;case 11:this.$=[s[c]];break;case 12:o[c-1].push(s[c])}},table:[{3:1,4:2,5:[1,4],6:3,7:5,8:t,9:n},{1:[3]},{5:[1,8],6:9,9:n},{4:10,5:[1,11],7:5,8:t,9:r},{1:[2,6]},e(i,[2,7],{8:o}),e(s,[2,11]),e(s,[2,9]),{1:[2,1]},{5:[1,14],7:15,8:t,9:r},{5:[1,16],6:17,9:n},{1:[2,5]},e(s,[2,12]),e(s,[2,10]),{1:[2,4]},e(i,[2,8],{8:o}),{1:[2,2]},{5:[1,18],7:15,8:t,9:r},{1:[2,3]}],defaultActions:{4:[2,6],8:[2,1],11:[2,5],14:[2,4],16:[2,2],18:[2,3]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,s="",a=0,c=0,l=0,u=2,h=1,d=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;i.push(m);var E=p.options&&p.options.ranges;"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,v,b,A,T,C,R,S,_,x=function(){var e;return"number"!=typeof(e=p.lex()||h)&&(e=t.symbols_[e]||e),e},w={};;){if(b=n[n.length-1],this.defaultActions[b]?A=this.defaultActions[b]:(null==y&&(y=x()),A=o[b]&&o[b][y]),void 0===A||!A.length||!A[0]){var I="";for(C in _=[],o[b])this.terminals_[C]&&C>u&&_.push("'"+this.terminals_[C]+"'");I=p.showPosition?"Parse error on line "+(a+1)+":\n"+p.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(a+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(I,{text:p.match,token:this.terminals_[y]||y,line:p.yylineno,loc:p.yylloc,ruleId:n.slice(n.length-2,n.length).join("_"),expected:_})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+y);switch(A[0]){case 1:n.push(y),r.push(p.yytext),i.push(p.yylloc),n.push(A[1]),y=null,v?(y=v,v=null):(c=p.yyleng,s=p.yytext,a=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(R=this.productions_[A[1]][1],w.$=r[r.length-R],w._$={first_line:i[i.length-(R||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(R||1)].first_column,last_column:i[i.length-1].last_column},E&&(w._$.range=[i[i.length-(R||1)].range[0],i[i.length-1].range[1]]),void 0!==(T=this.performAction.apply(w,[s,c,a,f.yy,A[1],r,i].concat(d))))return T;R&&(n=n.slice(0,-1*R*2),r=r.slice(0,-1*R),i=i.slice(0,-1*R)),n.push(this.productions_[A[1]][0]),r.push(w.$),i.push(w._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},addEntry:function(e,t,n,r){a.yy.firstToken?(a.yy.useDatabase?(e.push({type:t,statement:n,location:r,firstToken:a.yy.firstToken,database:a.yy.useDatabase}),delete a.yy.useDatabase):e.push({type:t,statement:n,location:r,firstToken:a.yy.firstToken}),delete a.yy.firstToken):e.push({type:t,statement:n,location:r})},handleLeadingStatements:function(e,t){for(var n=e.length-1;n>=0;n--)t.unshift({type:"statement",statement:";",location:e[n]})},handleTrailingStatements:function(e,t){var n=e[e.length-1];if(n.statement+=";",n.location={first_line:n.location.first_line,first_column:n.location.first_column,last_line:t[0].last_line,last_column:t[0].last_column},t.length>1)for(var r=1;r<t.length;r++)e.push({type:"statement",statement:";",location:t[r]})},removeTrailingWhiteSpace:function(e){if(e.length>1){var t=e[e.length-1];/^\s+$/.test(t.statement)&&e.pop()}}},c=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("multiLineComment"),8;case 1:case 2:case 6:case 10:case 14:case 22:case 23:return 8;case 3:case 4:case 8:case 12:case 16:case 20:return this.popState(),8;case 5:return this.begin("inLineComment"),8;case 7:case 11:case 15:case 19:return this.popState(),5;case 9:return this.begin("doubleQuote"),8;case 13:return this.begin("singleQuote"),8;case 17:return this.begin("backTick"),8;case 18:return a.yy.usePreceding&&(a.yy.useDatabase=t.yytext,a.yy.usePreceding=!1),8;case 21:if(a.yy.firstToken)a.yy.usePreceding&&(a.yy.useDatabase=t.yytext,a.yy.usePreceding=!1);else{var i=t.yytext.match(/[a-zA-Z_]+/);i&&(a.yy.firstToken=i[0]);var o=t.yytext.match(/USE\s+(\S+)/i);o?a.yy.useDatabase=o[1]:a.yy.usePreceding=/USE/i.test(t.yytext)}return 8;case 24:return 9;case 25:return 5;case 26:break;case 27:console.log(t.yytext)}},rules:[/^(?:\/\*)/,/^(?:[^*]+)/,/^(?:[*][^/])/,/^(?:$)/,/^(?:\*\/)/,/^(?:--)/,/^(?:[^\n]+)/,/^(?:$)/,/^(?:[\n])/,/^(?:")/,/^(?:(?:\\\\|\\["]|[^"])+)/,/^(?:$)/,/^(?:")/,/^(?:')/,/^(?:(?:\\\\|\\[']|[^'])+)/,/^(?:$)/,/^(?:')/,/^(?:`)/,/^(?:[^`]+)/,/^(?:$)/,/^(?:`)/,/^(?:[^"\/;'`-]+)/,/^(?:[-][^-]?)/,/^(?:;)/,/^(?:\/)/,/^(?:$)/,/^(?:.)/,/^(?:.)/],conditions:{multiLineComment:{rules:[1,2,3,4],inclusive:!1},inLineComment:{rules:[6,7,8],inclusive:!1},singleQuote:{rules:[14,15,16],inclusive:!1},doubleQuote:{rules:[10,11,12],inclusive:!1},backTick:{rules:[18,19,20],inclusive:!1},INITIAL:{rules:[0,5,9,13,17,21,22,23,24,25,26,27],inclusive:!0}}};return e}();function l(){this.yy={}}return a.lexer=c,l.prototype=a,a.Parser=l,new l}();const vp=yp;var bp=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,7],n=[1,6],r=[1,12],i=[5,9],o=[1,13],s=[5,8,9],a={trace:function(){},yy:{},symbols_:{error:2,SqlStatementsParser:3,Statements:4,EOF:5,OneOrMoreSeparators:6,StatementParts:7,PART_OF_STATEMENT:8,";":9,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"PART_OF_STATEMENT",9:";"},productions_:[0,[3,2],[3,3],[3,4],[3,3],[3,2],[3,1],[4,1],[4,3],[7,1],[7,2],[6,1],[6,2]],performAction:function(e,t,n,r,i,o,s){var c=o.length-1;switch(i){case 1:return a.removeTrailingWhiteSpace(o[c-1]),o[c-1];case 2:return a.handleLeadingStatements(o[c-2],o[c-1]),a.removeTrailingWhiteSpace(o[c-1]),o[c-1];case 3:return a.handleLeadingStatements(o[c-3],o[c-2]),a.handleTrailingStatements(o[c-2],o[c-1]),a.removeTrailingWhiteSpace(o[c-2]),o[c-2];case 4:return a.handleTrailingStatements(o[c-2],o[c-1]),a.removeTrailingWhiteSpace(o[c-2]),o[c-2];case 5:var l=[];return a.handleLeadingStatements(o[c-1],l),l;case 6:return l=[],a.addEntry(l,"statement",o[c],s[c]),l;case 7:this.$=[],a.addEntry(this.$,"statement",o[c],s[c]);break;case 8:a.handleTrailingStatements(o[c-2],o[c-1]),a.addEntry(o[c-2],"statement",o[c],s[c]);break;case 10:this.$=o[c-1]+o[c];break;case 11:this.$=[s[c]];break;case 12:o[c-1].push(s[c])}},table:[{3:1,4:2,5:[1,4],6:3,7:5,8:t,9:n},{1:[3]},{5:[1,8],6:9,9:n},{4:10,5:[1,11],7:5,8:t,9:r},{1:[2,6]},e(i,[2,7],{8:o}),e(s,[2,11]),e(s,[2,9]),{1:[2,1]},{5:[1,14],7:15,8:t,9:r},{5:[1,16],6:17,9:n},{1:[2,5]},e(s,[2,12]),e(s,[2,10]),{1:[2,4]},e(i,[2,8],{8:o}),{1:[2,2]},{5:[1,18],7:15,8:t,9:r},{1:[2,3]}],defaultActions:{4:[2,6],8:[2,1],11:[2,5],14:[2,4],16:[2,2],18:[2,3]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,s="",a=0,c=0,l=0,u=2,h=1,d=i.slice.call(arguments,1),p=Object.create(this.lexer),f={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(f.yy[g]=this.yy[g]);p.setInput(e,f.yy),f.yy.lexer=p,f.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;i.push(m);var E=p.options&&p.options.ranges;"function"==typeof f.yy.parseError?this.parseError=f.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,v,b,A,T,C,R,S,_,x=function(){var e;return"number"!=typeof(e=p.lex()||h)&&(e=t.symbols_[e]||e),e},w={};;){if(b=n[n.length-1],this.defaultActions[b]?A=this.defaultActions[b]:(null==y&&(y=x()),A=o[b]&&o[b][y]),void 0===A||!A.length||!A[0]){var I="";for(C in _=[],o[b])this.terminals_[C]&&C>u&&_.push("'"+this.terminals_[C]+"'");I=p.showPosition?"Parse error on line "+(a+1)+":\n"+p.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(a+1)+": Unexpected "+(y==h?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(I,{text:p.match,token:this.terminals_[y]||y,line:p.yylineno,loc:p.yylloc,ruleId:n.slice(n.length-2,n.length).join("_"),expected:_})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+y);switch(A[0]){case 1:n.push(y),r.push(p.yytext),i.push(p.yylloc),n.push(A[1]),y=null,v?(y=v,v=null):(c=p.yyleng,s=p.yytext,a=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(R=this.productions_[A[1]][1],w.$=r[r.length-R],w._$={first_line:i[i.length-(R||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(R||1)].first_column,last_column:i[i.length-1].last_column},E&&(w._$.range=[i[i.length-(R||1)].range[0],i[i.length-1].range[1]]),void 0!==(T=this.performAction.apply(w,[s,c,a,f.yy,A[1],r,i].concat(d))))return T;R&&(n=n.slice(0,-1*R*2),r=r.slice(0,-1*R),i=i.slice(0,-1*R)),n.push(this.productions_[A[1]][0]),r.push(w.$),i.push(w._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0},addEntry:function(e,t,n,r){a.yy.firstToken?(a.yy.useDatabase?(e.push({type:t,statement:n,location:r,firstToken:a.yy.firstToken,database:a.yy.useDatabase}),delete a.yy.useDatabase):e.push({type:t,statement:n,location:r,firstToken:a.yy.firstToken}),delete a.yy.firstToken):e.push({type:t,statement:n,location:r})},handleLeadingStatements:function(e,t){for(var n=e.length-1;n>=0;n--)t.unshift({type:"statement",statement:";",location:e[n]})},handleTrailingStatements:function(e,t){var n=e[e.length-1];if(n.statement+=";",n.location={first_line:n.location.first_line,first_column:n.location.first_column,last_line:t[0].last_line,last_column:t[0].last_column},t.length>1)for(var r=1;r<t.length;r++)e.push({type:"statement",statement:";",location:t[r]})},removeTrailingWhiteSpace:function(e){if(e.length>1){var t=e[e.length-1];/^\s+$/.test(t.statement)&&e.pop()}}},c=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("multiLineComment"),8;case 1:case 2:case 6:case 10:case 14:case 22:case 23:return 8;case 3:case 4:case 8:case 12:case 16:case 20:return this.popState(),8;case 5:return this.begin("inLineComment"),8;case 7:case 11:case 15:case 19:return this.popState(),5;case 9:return this.begin("doubleQuote"),8;case 13:return this.begin("singleQuote"),8;case 17:return this.begin("backTick"),8;case 18:return a.yy.usePreceding&&(a.yy.useDatabase=t.yytext,a.yy.usePreceding=!1),8;case 21:if(a.yy.firstToken)a.yy.usePreceding&&(a.yy.useDatabase=t.yytext,a.yy.usePreceding=!1);else{var i=t.yytext.match(/[a-zA-Z_]+/);i&&(a.yy.firstToken=i[0]);var o=t.yytext.match(/USE\s+(\S+)/i);o?a.yy.useDatabase=o[1]:a.yy.usePreceding=/USE/i.test(t.yytext)}return 8;case 24:return 9;case 25:return 5;case 26:break;case 27:console.log(t.yytext)}},rules:[/^(?:\/\*)/,/^(?:[^*]+)/,/^(?:[*][^/])/,/^(?:$)/,/^(?:\*\/)/,/^(?:--)/,/^(?:[^\n]+)/,/^(?:$)/,/^(?:[\n])/,/^(?:")/,/^(?:(?:\\\\|\\["]|[^"])+)/,/^(?:$)/,/^(?:")/,/^(?:')/,/^(?:(?:\\\\|\\[']|[^'])+)/,/^(?:$)/,/^(?:')/,/^(?:`)/,/^(?:[^`]+)/,/^(?:$)/,/^(?:`)/,/^(?:[^"\/;'`-]+)/,/^(?:[-][^;-]?)/,/^(?:[/][^;*]?)/,/^(?:;)/,/^(?:$)/,/^(?:.)/,/^(?:.)/],conditions:{multiLineComment:{rules:[1,2,3,4],inclusive:!1},inLineComment:{rules:[6,7,8],inclusive:!1},singleQuote:{rules:[14,15,16],inclusive:!1},doubleQuote:{rules:[10,11,12],inclusive:!1},backTick:{rules:[18,19,20],inclusive:!1},INITIAL:{rules:[0,5,9,13,17,21,22,23,24,25,26,27],inclusive:!0}}};return e}();function l(){this.yy={}}return a.lexer=c,l.prototype=a,a.Parser=l,new l}();const Ap=bp;var Tp=function(e){return"hplsql"===e.dialect?vp:Ap};function Cp(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Rp(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Cp(o,r,i,s,a,"next",e)}function a(e){Cp(o,r,i,s,a,"throw",e)}s(void 0)}))}}var Sp=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={session:JSON.stringify({type:t.type,properties:t.properties||[]})},r=sd("/api/editor/create_session",n,{silenceErrors:!!t.silenceErrors,ignoreSuccessErrors:!0}),e.next=4,r;case 4:if(401!==(i=e.sent).status){e.next=7;break}return e.abrupt("return",{auth:!0,message:i.message});case 7:if(!Zh(i)){e.next=9;break}throw new Error(td(i));case 9:if(i.session){e.next=11;break}throw new Error("No session returned.");case 11:return e.abrupt("return",i.session);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_p=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={session:JSON.stringify(t.session)},e.next=3,sd("/api/editor/close_session",n,{silenceErrors:!!t.silenceErrors});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xp=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n,r,i,o,s,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.executable,r="/api/editor/execute/"+n.executor.connector().dialect,e.next=4,n.toContext();case 4:return(i=e.sent).executable=n.toJson(),o=sd(r,i,{silenceErrors:!!t.silenceErrors}),n.addCancellable({cancel:function(){var e=Rp(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.status!==ip.running&&(n.status,ip.streaming),e.prev=1,e.next=4,o;case 4:if(r=e.sent,t.executable.handle!==r.handle&&(t.executable.handle=r.handle),!r.handle){e.next=9;break}return e.next=9,wp(t);case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(1);case 13:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}()}),e.next=10,o;case 10:if((s=e.sent).handle){e.next=13;break}throw new Error("No handle in execute response");case 13:return s.handle.result=s.result,a={handle:s.handle},void 0!==s.history_id&&(a.history={id:s.history_id,uuid:s.history_uuid,parentUuid:s.history_parent_uuid}),e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),wp=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.executable.toContext();case 2:return n=e.sent,e.next=5,sd("/api/editor/cancel_statement",n,{silenceErrors:!!t.silenceErrors});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ip=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.executable.operationId){e.next=2;break}return e.abrupt("return");case 2:return n={operationId:t.executable.operationId},e.next=5,sd("/api/editor/close_statement",n,{silenceErrors:!!t.silenceErrors});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Np=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.executable.operationId){e.next=2;break}throw new Error("No operationId given.");case 2:return n={operationId:t.executable.operationId},r=sd("/api/editor/check_status",n,{silenceErrors:!!t.silenceErrors}),t.executable.addCancellable(r),e.next=7,r;case 7:if(!(i=e.sent).query_status){e.next=10;break}return e.abrupt("return",i.query_status);case 10:if(-3!==i.status){e.next=12;break}return e.abrupt("return",{status:ip.expired});case 12:return e.abrupt("return",{status:ip.failed,message:i.message});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lp=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.executable.toContext();case 2:return(n=e.sent).rows=t.rows,n.startOver=t.startOver,r=function(e){return JSON.bigdataParse(e)},e.next=8,sd("/api/editor/fetch_result_data",n,{silenceErrors:!!t.silenceErrors,transformResponse:r});case 8:return i=e.sent,e.abrupt("return",i.result);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Op=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.executable.toContext();case 2:return n=e.sent,r=sd("/api/editor/fetch_result_size",n,{silenceErrors:!!t.silenceErrors}),t.executable.addCancellable(r),e.next=7,r;case 7:return i=e.sent,e.abrupt("return",i.result);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),kp=function(){var e=Rp(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.executable.toContext();case 2:return(n=e.sent).full_log=t.fullLog,n.jobs=t.jobs&&JSON.stringify(t.jobs),n.from=t.from||0,r=sd("/api/editor/get_logs",n,{silenceErrors:!!t.silenceErrors}),t.executable.addCancellable(r),e.next=10,r;case 10:return i=e.sent,e.abrupt("return",{logs:1===i.status&&i.message||i.logs||"",jobs:i.jobs||[],isFullLogs:i.isFullLogs});case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Dp(){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 Fp(e,t){if(e){if("string"==typeof e)return Mp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mp(e,t):void 0}}function Mp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pp(e){if(Array.isArray(e))return e}function Bp(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Up(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Bp(o,r,i,s,a,"next",e)}function a(e){Bp(o,r,i,s,a,"throw",e)}s(void 0)}))}}i(8070);var $p=function(e){return e.path.join("/")+(e.path.length?"/":"")},Hp=function(e){var t=e.entry,n=e.silenceErrors;if(t.isDatabase())return Lh.resolve();var r=!1,i=function(){var e=Up(regeneratorRuntime.mark((function e(t,o){var s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sd(t,void 0,{silenceErrors:n});case 2:if(s=e.sent,!r){e.next=5;break}throw new Error("Cancelled");case 5:if(s.isFailure||s.isSuccess){e.next=11;break}return e.next=8,Lu(o);case 8:return e.abrupt("return",i(t,1e3));case 11:return e.abrupt("return",s);case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return new Lh(function(){var e=Up(regeneratorRuntime.mark((function e(o,s,a){var c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a((function(){r=!0})),e.prev=1,e.next=4,sd("/api/".concat("hive"===t.getConnector().id?"beeswax":t.getConnector().id,"/analyze/").concat($p(t)),void 0,{silenceErrors:n});case 4:if(c=e.sent,r||!c||0!==c.status||!c.watch_url){e.next=13;break}return e.t0=o,e.next=9,i(c.watch_url,500);case 9:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 13:s("Analyze failed");case 14:e.next=19;break;case 16:e.prev=16,e.t2=e.catch(1),s(e.t2||"Analyze failed");case 19:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(t,n,r){return e.apply(this,arguments)}}())},Gp=function(e){var t=e.entry,n=e.silenceErrors,r=e.refreshAnalysis;return new Lh(function(){var e=Up(regeneratorRuntime.mark((function e(i,o,s){var a,c,l,u,h,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.isSource()){e.next=3;break}return o("Describe is not possible on the source"),e.abrupt("return");case 3:if(!r){e.next=13;break}return a=Hp({entry:t,silenceErrors:n}),s(a.cancel.bind(a)),e.prev=6,e.next=9,a;case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(6);case 13:return f=t.path,c=Pp(f)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(f)||Fp(f)||Dp(),l=c[0],u=c[1],h=c.slice(2),d="".concat("/api/editor/describe/").concat(l),u&&h.length?d+="/".concat(u,"/stats/").concat(h.join("/")):u&&(d+="/".concat(u,"/")),p=sd(d,{format:"json",cluster:JSON.stringify(t.compute),source_type:Yp(t),connector:JSON.stringify(t.getConnector())},{silenceErrors:n,handleSuccess:function(e,t,n){if(Zh(e))n(td(e));else{var r=e;r.hueTimestamp=Date.now(),t(r)}}}),e.prev=17,e.t1=i,e.next=21,p;case 21:e.t2=e.sent,(0,e.t1)(e.t2),e.next=28;break;case 25:e.prev=25,e.t3=e.catch(17),o(e.t3||"Describe failed");case 28:case"end":return e.stop()}var f}),e,null,[[6,11],[17,25]])})));return function(t,n,r){return e.apply(this,arguments)}}())},Wp=function(e,t){return ad("/desktop/api2/context/clusters/".concat(e.id),void 0,{silenceErrors:t})},Vp=function(e,t){return ad("/desktop/api2/context/computes/".concat(e.id),void 0,{silenceErrors:t})},jp=function(e,t){return ad("/api/get_namespaces/".concat(e.id),void 0,{silenceErrors:t})},qp=function(e){var t=e.entry,n=e.silenceErrors,r=new URLSearchParams,i=function(e,t){return Pp(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||Fp(e,t)||Dp()}(t.path,3),o=i[0],s=i[1],a=i[2];if(o&&s&&a)r.append("type","field"),r.append("database",o),r.append("table",s);else if(o&&s)r.append("type",t.isView()?"view":"table"),r.append("database",o);else{if(!o)return Lh.reject("Navigator metadata is not possible on the source");r.append("type","database")}return r.append("name",t.name),sd("".concat("/metadata/api/catalog/find_entity","?").concat(r),{notebook:{},snippet:JSON.stringify({type:t.getConnector().id,source:"data"}),cluster:t.compute&&JSON.stringify(t.compute)||'""'},{silenceErrors:n,handleSuccess:function(e,t,n){if(Zh(e))n(td(e));else{var r=e.entity||e;r.hueTimestamp=Date.now(),t(r)}}})},zp=function e(t){return new Lh(function(){var n=Up(regeneratorRuntime.mark((function n(r,i,o){var s,a,c,l,u,h;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=!1,o((function(){a=!0,s&&s.cancel()})),c=sd("/api/editor/check_status",{notebook:t.notebookJson,snippet:t.snippetJson,cluster:t.entry.compute&&JSON.stringify(t.entry.compute)||'""'},{silenceErrors:t.silenceErrors}),n.prev=3,s=c,n.next=7,c;case 7:if(!((l=n.sent)&&l.query_status&&l.query_status.status)){n.next=34;break}if("available"!==(u=l.query_status.status)){n.next=14;break}r(l.query_status),n.next=31;break;case 14:if("running"!==u&&"starting"!==u&&"waiting"!==u){n.next=31;break}return n.next=17,Lu(500);case 17:if(n.prev=17,a){n.next=27;break}return h=e(t),s=h,n.t0=r,n.next=24,h;case 24:return n.t1=n.sent,(0,n.t0)(n.t1),n.abrupt("return");case 27:n.next=31;break;case 29:n.prev=29,n.t2=n.catch(17);case 31:i(l.query_status),n.next=35;break;case 34:i("Cancelled");case 35:n.next=40;break;case 37:n.prev=37,n.t3=n.catch(3),i(n.t3);case 40:case"end":return n.stop()}}),n,null,[[3,37],[17,29]])})));return function(e,t,r){return n.apply(this,arguments)}}())},Kp=function(e){var t=e.entry,n=e.silenceErrors,r=e.operation,i=e.sampleCount;return new Lh(function(){var e=Up(regeneratorRuntime.mark((function e(o,s,a){var c,l,u,h,d,p,f,g,m,E,y,v,b,A,T;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=[],l=void 0,u=void 0,h=function(){var e=Up(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=8;break}return e.prev=1,e.next=4,sd("/api/editor/close_statement",{notebook:l,snippet:u},{silenceErrors:!0});case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=Up(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=8;break}return e.prev=1,e.next=4,sd("/api/editor/cancel_statement",{notebook:l,snippet:u,cluster:t.compute&&JSON.stringify(t.compute)||'""'},{silenceErrors:!0});case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(){return e.apply(this,arguments)}}(),a((function(){c.forEach((function(e){return e.cancel()}))})),c.push({cancel:function(){var e=Up(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}()}),p=sd("".concat("/api/editor/sample/").concat($p(t)),{notebook:{},snippet:JSON.stringify({type:Yp(t),compute:t.compute}),async:!0,operation:'"'.concat(r||"default",'"'),cluster:t.compute&&JSON.stringify(t.compute)||'""'},{silenceErrors:n}),e.prev=8,c.push(p),e.next=12,p;case 12:if(f=e.sent,c.pop(),(g={id:ep(),type:f.result&&f.result.type||t.getConnector().id,compute:t.compute,status:"running",result:f.result||{}}).result.type="table",l=JSON.stringify({type:t.getConnector().id}),u=JSON.stringify(g),!f||!f.rows){e.next=23;break}o({type:"table",hueTimestamp:Date.now(),data:f.rows,meta:f.full_headers||[]}),h(),e.next=53;break;case 23:return E=zp({notebookJson:l,snippetJson:u,entry:t,silenceErrors:n}),c.push(E),e.next=27,E;case 27:if(y=e.sent,c.pop(),"available"===y.status){e.next=33;break}return s(),h(),e.abrupt("return");case 33:return null!==(m=g.result)&&void 0!==m&&m.handle&&void 0!==y.has_result_set&&(g.result.handle.has_result_set=y.has_result_set),u=JSON.stringify(g),v=sd("/api/editor/fetch_result_data",{notebook:l,snippet:u,rows:i||100,startOver:"false"},{silenceErrors:n,transformResponse:function(e){return JSON.bigdataParse(e)}}),e.next=39,v;case 39:if(b=e.sent,A={hueTimestamp:Date.now(),type:"table",data:b.result&&b.result.data||[],meta:b.result&&b.result.meta||[]},o(A),h(),c.pop(),!((T=window.CLOSE_SESSIONS)&&T[t.getConnector().dialect||""]&&g.result.handle&&g.result.handle.session_id)){e.next=53;break}return e.prev=46,e.next=49,_p({session:{id:g.result.handle.session_id,session_id:g.result.handle.session_guid||"",type:t.getConnector().id,properties:[]},silenceErrors:n});case 49:e.next=53;break;case 51:e.prev=51,e.t0=e.catch(46);case 53:e.next=59;break;case 55:e.prev=55,e.t1=e.catch(8),s(),h();case 59:case"end":return e.stop()}}),e,null,[[8,55],[46,51]])})));return function(t,n,r){return e.apply(this,arguments)}}())},Yp=function(e){var t=e.getConnector();if("hplsql"===t.dialect){var n=Kd((function(e){return"hive"===e.dialect}));if(n)return n.id}return t.id},Xp=function(e){var t=e.limit,n=e.query,r=e.rawQuery,i=e.silenceErrors,o=e.sources;return sd("/desktop/api/search/entities",{query_s:JSON.stringify(n),limit:t||100,raw_query:!!r,sources:o&&JSON.stringify(o)||'["sql"]'},{silenceErrors:i})},Jp=function(e){var t=e.deletedCustomMetadataKeys,n=e.identity,r=e.modifiedCustomMetadata,i=e.properties,o=e.silenceErrors,s={id:JSON.stringify(n)};return i&&(s.properties=JSON.stringify(i)),r&&(s.modifiedCustomMetadata=JSON.stringify(r)),t&&(s.deletedCustomMetadataKeys=JSON.stringify(t)),sd("/metadata/api/catalog/update_properties",s,{silenceErrors:o})},Qp=function(e,t){return sd("/metadata/api/catalog/add_tags",{id:JSON.stringify(e),tags:JSON.stringify(t)})},Zp=function(e,t){return sd("/metadata/api/catalog/delete_tags",{id:JSON.stringify(e),tags:JSON.stringify(t)})};function ef(e){return ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ef(e)}function tf(e){return function(e){if(Array.isArray(e))return nf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return nf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nf(e,t):void 0}}(e)||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 nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach((function(t){sf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cf(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function lf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){cf(o,r,i,s,a,"next",e)}function a(e){cf(o,r,i,s,a,"throw",e)}s(void 0)}))}}var uf=function(e){return!(!e||!e.cachedOnly)},hf=function(e){return!(Uf.cacheEnabled()&&(!e||!e.refreshCache&&!e.refreshAnalysis))},df=function(){var e=lf(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.isTableOrView()){e.next=2;break}return e.abrupt("return",Promise.reject());case 2:return e.abrupt("return",t.dataCatalog.getMultiTableEntry({namespace:t.namespace,compute:t.compute,paths:[t.path]}));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pf=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.compute=void 0,this.dataCatalog=void 0,this.definition=void 0,this.isTemporary=void 0,this.name=void 0,this.namespace=void 0,this.path=void 0,this.saveTimeout=-1,this.commentObservable=void 0,this.analysis=void 0,this.analysisPromise=void 0,this.childrenPromise=void 0,this.navigatorMeta=void 0,this.navigatorMetaForChildrenPromise=void 0,this.navigatorMetaPromise=void 0,this.sqlAnalyzerMeta=void 0,this.sqlAnalyzerMetaPromise=void 0,this.sqlAnalyzerPopularity=void 0,this.sqlAnalyzerPopularityForChildrenPromise=void 0,this.partitions=void 0,this.partitionsPromise=void 0,this.sample=void 0,this.samplePromise=void 0,this.sourceMeta=void 0,this.sourceMetaPromise=void 0,!t.dataCatalog.connector)throw new Error("DataCatalogEntry created without connector");this.namespace=t.namespace,this.compute=t.compute,this.dataCatalog=t.dataCatalog,this.path="string"==typeof t.path?t.path.split("."):t.path||[],this.name=this.path.length?this.path[this.path.length-1]:this.getConnector().id,this.isTemporary=t.isTemporary,t.definition?this.definition=t.definition:0===this.path.length?this.definition={type:"source"}:1===this.path.length?this.definition={type:"database"}:2===this.path.length&&(this.definition={type:"table"}),this.reset()}var t,n,r,i,o,s,a,c;return t=e,n=[{key:"reset",value:function(){this.saveTimeout=-1,this.analysis=void 0,this.analysisPromise=void 0,this.childrenPromise=void 0,this.navigatorMeta=void 0,this.navigatorMetaForChildrenPromise=void 0,this.navigatorMetaPromise=void 0,this.sqlAnalyzerMeta=void 0,this.sqlAnalyzerMetaPromise=void 0,this.sqlAnalyzerPopularity=void 0,this.sqlAnalyzerPopularityForChildrenPromise=void 0,this.partitions=void 0,this.partitionsPromise=void 0,this.sample=void 0,this.samplePromise=void 0,this.sourceMeta=void 0,this.sourceMetaPromise=void 0,this.path.length&&this.dataCatalog.getKnownEntry({namespace:this.namespace,compute:this.compute,path:this.path.slice(0,this.path.length-1)}).then((function(e){e&&(e.navigatorMetaForChildrenPromise=void 0,e.sqlAnalyzerPopularityForChildrenPromise=void 0)})).catch((function(e){console.warn(e)}))}},{key:"clearCache",value:(c=lf(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||(t={}),this.definition&&this.definition.sqlAnalyzerLoaded&&delete this.definition.sqlAnalyzerLoaded,this.reset(),e.prev=3,!t.cascade){e.next=9;break}return e.next=7,this.dataCatalog.clearStorageCascade(this.namespace,this.compute,this.path);case 7:e.next=11;break;case 9:return e.next=11,this.save();case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(3);case 15:eh("data.catalog.entry.refreshed",{entry:this,cascade:!!t.cascade});case 16:case"end":return e.stop()}}),e,this,[[3,13]])}))),function(e){return c.apply(this,arguments)})},{key:"reloadAnalysis",value:function(e){var t=this;return this.analysisPromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=Gp(of({entry:t},e)),o((function(){s.cancel()})),n.prev=2,n.next=5,s;case 5:t.analysis=n.sent,r(t.analysis),n.next=13;break;case 9:return n.prev=9,n.t0=n.catch(2),i(n.t0||"Fetch failed"),n.abrupt("return");case 13:t.saveLater();case 14:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t,r){return n.apply(this,arguments)}}()),Hh(this.analysisPromise,e)}},{key:"reloadNavigatorMeta",value:function(e){var t=this;return this.canHaveNavigatorMetadata()?this.navigatorMetaPromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,qp(of(of({},e),{},{entry:t}));case 3:t.navigatorMeta=n.sent,r(t.navigatorMeta),n.next=11;break;case 7:return n.prev=7,n.t0=n.catch(0),i(n.t0||"Fetch failed"),n.abrupt("return");case 11:t.saveLater(),t.commentObservable&&t.commentObservable(t.getResolvedComment());case 13:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(e,t){return n.apply(this,arguments)}}()):this.navigatorMetaPromise=Lh.reject(),Hh(this.navigatorMetaPromise)}},{key:"reloadSqlAnalyzerMeta",value:function(e){var t=this,n=e.cancellable,r=e.silenceErrors,i=e.sqlAnalyzer;return this.dataCatalog.canHaveSqlAnalyzerMeta()?this.sqlAnalyzerMetaPromise=new Lh(function(){var e=lf(regeneratorRuntime.mark((function e(n,o,s){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=i.fetchSqlAnalyzerMeta({path:t.path,silenceErrors:r}),s((function(){a.cancel()})),e.prev=2,e.next=5,a;case 5:t.sqlAnalyzerMeta=e.sent,n(t.sqlAnalyzerMeta),e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(2),o(e.t0||"Fetch failed"),e.abrupt("return");case 13:t.saveLater();case 14:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n,r){return e.apply(this,arguments)}}()):this.sqlAnalyzerMetaPromise=Lh.reject(),Hh(this.sqlAnalyzerMetaPromise,{cancellable:n})}},{key:"reloadPartitions",value:function(e){var t=this;return this.partitionsPromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,void 0,void 0,s=(o=of(of({},e),{},{entry:t})).entry,a=o.silenceErrors,sd("".concat("/metastore/table/").concat($p(s),"partitions"),{format:"json",cluster:s.compute&&JSON.stringify(s.compute)||'""'},{silenceErrors:a,handleSuccess:function(e,t,n){var r=e||{};r.hueTimestamp=Date.now(),Zh(e)?n("Partitions failed: ".concat(td(e))):t(r)},handleError:function(e,t,n){e.response&&e.response.data&&-1!==e.response.data.indexOf("is not partitioned")?t({hueTimestamp:Date.now(),partition_keys_json:[],partition_values_json:[]}):n(e)}});case 3:t.partitions=n.sent,r(t.partitions),n.next=11;break;case 7:return n.prev=7,n.t0=n.catch(0),i(n.t0||"Fetch failed"),n.abrupt("return");case 11:t.saveLater();case 12:case"end":return n.stop()}var o,s,a}),n,null,[[0,7]])})));return function(e,t){return n.apply(this,arguments)}}()),Hh(this.partitionsPromise,e)}},{key:"reloadSample",value:function(e){var t=this;return this.samplePromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Kp(of(of({},e),{},{entry:t}));case 3:t.sample=n.sent,r(t.sample),n.next=11;break;case 7:return n.prev=7,n.t0=n.catch(0),i(n.t0||"Fetch failed"),n.abrupt("return");case 11:t.saveLater();case 12:case"end":return n.stop()}}),n,null,[[0,7]])})));return function(e,t){return n.apply(this,arguments)}}()),Hh(this.samplePromise,e)}},{key:"reloadSourceMeta",value:function(e){var t=this;return this.sourceMetaPromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.dataCatalog.invalidatePromise){n.next=8;break}return n.prev=1,n.next=4,t.dataCatalog.invalidatePromise;case 4:n.next=8;break;case 6:n.prev=6,n.t0=n.catch(1);case 8:return n.prev=8,n.next=11,s=void 0,void 0,s=(o=of(of({},e),{},{entry:t})).entry,a=o.silenceErrors,sd("".concat("/api/editor/autocomplete/").concat($p(s)),{notebook:{},snippet:JSON.stringify({type:Yp(s),source:"data"}),operation:s.isModel()?"model":"default",cluster:s.compute&&JSON.stringify(s.compute)||'""'},{silenceErrors:a,handleSuccess:function(e,t,n){var r=e.error||e.message||"",i=e||{};i.notFound=!!e&&0===e.status&&500===e.code&&(-1!==r.indexOf("Error 10001")||-1!==r.indexOf("AnalysisException")),i.hueTimestamp=Date.now(),!i.notFound&&Zh(e)?n(td(e)):t(i)}});case 11:t.sourceMeta=n.sent,r(t.sourceMeta),n.next=19;break;case 15:return n.prev=15,n.t1=n.catch(8),i(n.t1||"Fetch failed"),n.abrupt("return");case 19:t.saveLater();case 20:case"end":return n.stop()}var o,s,a}),n,null,[[1,6],[8,15]])})));return function(e,t){return n.apply(this,arguments)}}()),Hh(this.sourceMetaPromise,e)}},{key:"drop",value:function(e){var t=this;if(!this.isDatabase()&&!this.isTableOrView())return Lh.reject("Drop is only possible for a database, table or view.");var n="DROP ".concat(this.isDatabase()?"DATABASE":this.isView()?"VIEW":"TABLE"," IF EXISTS `").concat(this.path.join("`.`"),"`").concat(this.isDatabase()&&e?" CASCADE;":";");return new Lh((function(e,r,i){var o=function(e){var t=e.database,n=void 0===t?"default":t,r=e.connector,i=e.namespace,o=e.compute,s=e.statement,a=new ih,c=new Lh((function(e,t,c){c((function(){return t("Cancelled")}));var l=new Ep({database:function(){return n},connector:function(){return r},namespace:function(){return i},compute:function(){return o}}),u=void 0;try{u=Tp(r).parse(s)[0]}catch(e){}if(u){var h=new up({executor:l,database:n,parsedStatement:u});l.setExecutables([h]),a.subscribe(bu,(function(n){var r=n.executable,i=n.newStatus;r.id===h.id&&i===ip.failed?t("Execution failed."):r.isSuccess()&&r.handle&&!r.handle.has_result_set&&e()})),a.subscribe(Cu,(function(t){var n=t.executable,r=t.rows,i=t.meta;n.id===h.id&&r.length&&e({rows:r,meta:i})})),a.addDisposable({dispose:function(){h.cancel().catch()}}),h.execute().catch(t)}else t("Failed parsing statement")}));return c.finally((function(){a.dispose()})),c}({connector:t.getConnector(),namespace:t.namespace,compute:t.compute,statement:n});i((function(){o.cancel()})),o.then((function(){t.clearCache({cascade:!0}).catch(),e()})).catch(r)}))}},{key:"save",value:(a=lf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.clearTimeout(this.saveTimeout),e.prev=1,e.next=4,this.dataCatalog.persistCatalogEntry(this);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,this,[[1,6]])}))),function(){return a.apply(this,arguments)})},{key:"saveLater",value:function(){var e,t=this;((null===(e=window.CACHEABLE_TTL)||void 0===e?void 0:e.default)||0)>0&&(window.clearTimeout(this.saveTimeout),this.saveTimeout=window.setTimeout(lf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.save();case 2:case"end":return e.stop()}}),e)}))),1e3))}},{key:"getParent",value:function(){return this.path.length?this.dataCatalog.getEntry({namespace:this.namespace,compute:this.compute,path:this.path.slice(0,this.path.length-1)}):Promise.reject()}},{key:"getChildren",value:function(e){var t=this;return this.childrenPromise&&this.childrenPromise.cancelled&&(this.childrenPromise=void 0),!this.childrenPromise&&uf(e)?Lh.reject():(this.childrenPromise&&!hf(e)||(this.childrenPromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a,c,l,u,h,d,p,f,g;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=!1,o((function(){a=!0})),n.prev=2,n.next=5,t.getSourceMeta(e);case 5:s=n.sent,n.next=10;break;case 8:n.prev=8,n.t0=n.catch(2);case 10:if(!a){n.next=13;break}return i("Cancelled"),n.abrupt("return");case 13:if(s){n.next=16;break}return i("No source meta found"),n.abrupt("return");case 16:if(!s.notFound){n.next=19;break}return r([]),n.abrupt("return");case 19:c={},(l=s).partition_keys&&l.partition_keys.forEach((function(e){c[e.name]=!0})),u={},l.primary_keys&&l.primary_keys.forEach((function(e){u[e.name]=!0})),h={},l.foreign_keys&&l.foreign_keys.forEach((function(e){h[e.name]=e})),d=s.databases||s.tables_meta||s.extended_columns||s.fields||s.columns||[],p=[],f=0,d.forEach((function(e){if(!s.databases||"_impala_builtins"!==e){var n=e.name||e,r=t.dataCatalog.getEntry({namespace:t.namespace,compute:t.compute,path:[].concat(tf(t.path),[n])});r.then((function(r){if(!r.definition||void 0===r.definition.index){var i="object"===ef(e)?e:{name:e};i.type||(0===t.path.length?i.type="database":1===t.path.length?i.type="table":2===t.path.length&&(i.type="column")),s.partition_keys&&(i.partitionKey=c[n]),s.primary_keys&&(i.primaryKey=u[n]),s.foreign_keys&&(i.foreignKey=h[n]),i.index=f++,r.definition=i,r.saveLater()}})).catch((function(e){console.warn(e)})),p.push(r)}})),s&&("impala"===t.getDialect()||"hive"===t.getDialect())&&t.isComplex()&&("map"===(g=s).type?["key","value"]:["item"]).forEach((function(e){var n=g[e];if(n){var r=t.dataCatalog.getEntry({namespace:t.namespace,compute:t.compute,path:[].concat(tf(t.path),[e])});r.then((function(t){t.definition&&void 0!==t.definition.index||(n.index=f++,n.isMapValue="value"===e,t.definition=n,t.saveLater())})).catch((function(e){console.warn(e)})),p.push(r)}})),Promise.all(p).then(r).catch(i);case 32:case"end":return n.stop()}}),n,null,[[2,8]])})));return function(e,t,r){return n.apply(this,arguments)}}())),Hh(this.childrenPromise,e))}},{key:"loadNavigatorMetaForChildren",value:function(e){var t=this;return this.navigatorMetaForChildrenPromise&&this.navigatorMetaForChildrenPromise.cancelled&&(this.navigatorMetaPromise=void 0),e=$h(e),!this.canHaveNavigatorMetadata()||this.isField()?Lh.resolve([]):(this.navigatorMetaForChildrenPromise&&!hf(e)||(this.navigatorMetaForChildrenPromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a,c,l,u,h,d;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=[],o((function(){s.forEach((function(e){e.cancel()}))})),n.prev=2,c=t.getChildren(e),s.push(c),n.next=7,c;case 7:if(!(l=n.sent).some((function(e){return e.navigatorMeta}))||hf(e)){n.next=12;break}return r(l),n.abrupt("return");case 12:u=t.path.length?'parentPath:"/'.concat(t.path.join("/"),'" AND type:(table view field)'):"type:database",h=function(){l.forEach((function(e){e.navigatorMeta||(e.navigatorMeta=void 0,e.navigatorMetaPromise=void 0)}))},d=Xp({query:u,rawQuery:!0,limit:l.length,silenceErrors:null===(a=e)||void 0===a?void 0:a.silenceErrors}),s.push(d),d.then((function(e){if(e&&e.entities){var t={};l.forEach((function(e){t[e.name.toLowerCase()]=e})),e.entities.forEach((function(e){var n=t[(e.original_name||e.originalName).toLowerCase()];n&&(n.navigatorMeta=e,e.hueTimestamp=Date.now(),n.navigatorMetaPromise=Lh.resolve(n.navigatorMeta),e&&n.commentObservable&&n.commentObservable(n.getResolvedComment()),n.saveLater())}))}})).catch((function(){return r([])})).finally((function(){h(),r(l)})),n.next=23;break;case 19:return n.prev=19,n.t0=n.catch(2),r([]),n.abrupt("return");case 23:case"end":return n.stop()}}),n,null,[[2,19]])})));return function(e,t,r){return n.apply(this,arguments)}}())),Hh(this.navigatorMetaForChildrenPromise,e))}},{key:"applySqlAnalyzerResponseToChildren",value:function(e,t){var n=this;return this.definition||(this.definition={}),this.definition.sqlAnalyzerLoaded=!0,this.saveLater(),new Lh(function(){var r=lf(regeneratorRuntime.mark((function r(i,o,s){var a,c,l,u,h,d;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=n.getChildren(t),s((function(){a.cancel()})),r.prev=2,r.next=5,a;case 5:c=r.sent,l={},c.forEach((function(e){l[e.name.toLowerCase()]=e})),u={},n.isDatabase()&&e.top_tables?e.top_tables.forEach((function(e){if(e.name){var t=l[e.name.toLowerCase()];t&&(t.sqlAnalyzerPopularity=e,t.saveLater(),u[t.getQualifiedPath()]=t)}})):n.isTableOrView()&&e.values&&((h=function(e,t){e&&e.forEach((function(e){if(e.columnName){var n=l[e.columnName.toLowerCase()];n&&(n.sqlAnalyzerPopularity||(n.sqlAnalyzerPopularity={column_count:0,columnCount:0}),n.sqlAnalyzerPopularity[t]=e,n.saveLater(),u[n.getQualifiedPath()]=n)}}))})(e.values.filterColumns,"filterColumn"),h(e.values.groupbyColumns,"groupByColumn"),h(e.values.joinColumns,"joinColumn"),h(e.values.orderbyColumns,"orderByColumn"),h(e.values.selectColumns,"selectColumn")),d=[],Object.keys(u).forEach((function(e){d.push(u[e])})),i(d),r.next=18;break;case 15:r.prev=15,r.t0=r.catch(2),o(r.t0);case 18:case"end":return r.stop()}}),r,null,[[2,15]])})));return function(e,t,n){return r.apply(this,arguments)}}())}},{key:"loadSqlAnalyzerPopularityForChildren",value:function(e){var t=this;return this.sqlAnalyzerPopularityForChildrenPromise&&this.sqlAnalyzerPopularityForChildrenPromise.cancelled&&(this.sqlAnalyzerPopularityForChildrenPromise=void 0),e.silenceErrors=!0,this.dataCatalog.canHaveSqlAnalyzerMeta()?this.sqlAnalyzerPopularityForChildrenPromise&&!hf(e)?Hh(this.sqlAnalyzerPopularityForChildrenPromise,e):(this.definition&&this.definition.sqlAnalyzerLoaded&&!hf(e)?this.sqlAnalyzerPopularityForChildrenPromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=t.getChildren(e),o((function(){s.cancel()})),n.prev=2,n.next=5,s;case 5:a=n.sent,r(a.filter((function(e){return e.sqlAnalyzerPopularity}))),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),i(n.t0);case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e,t,r){return n.apply(this,arguments)}}()):this.isDatabase()||this.isTableOrView()?this.sqlAnalyzerPopularityForChildrenPromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a,c,l,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=[],o((function(){s.forEach((function(e){return e.cancel()}))})),a=e.sqlAnalyzer.fetchPopularity(of(of({},e),{},{paths:[t.path]})),s.push(a),n.prev=4,n.next=7,a;case 7:return c=n.sent,l=t.applySqlAnalyzerResponseToChildren(c,e),s.push(l),n.next=12,l;case 12:u=n.sent,r(u),n.next=19;break;case 16:n.prev=16,n.t0=n.catch(4),r([]);case 19:case"end":return n.stop()}}),n,null,[[4,16]])})));return function(e,t,r){return n.apply(this,arguments)}}()):this.sqlAnalyzerPopularityForChildrenPromise=Lh.resolve([]),Hh(this.sqlAnalyzerPopularityForChildrenPromise)):Lh.reject()}},{key:"canHaveNavigatorMetadata",value:function(){return!!window.HAS_CATALOG&&("hive"===this.getDialect()||"impala"===this.getDialect())&&(this.isDatabase()||this.isTableOrView()||this.isColumn())}},{key:"getResolvedComment",value:function(){if(this.navigatorMeta&&("hive"===this.getDialect()||"impala"===this.getDialect())){if(this.navigatorMeta.description)return this.navigatorMeta.description;if(this.navigatorMeta.originalDescription)return this.navigatorMeta.originalDescription}return this.definition&&this.definition.comment?this.definition.comment:this.sourceMeta&&this.sourceMeta.comment||""}},{key:"getCommentObservable",value:function(){return this.commentObservable||(this.commentObservable=Gh.observable(this.getResolvedComment())),this.commentObservable}},{key:"hasResolvedComment",value:function(){return this.canHaveNavigatorMetadata()?void 0!==this.navigatorMeta:void 0!==this.sourceMeta}},{key:"getComment",value:function(e){var t=this,n=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a,c,l,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=[],o((function(){s.forEach((function(e){return e.cancel()}))})),!t.canHaveNavigatorMetadata()){n.next=16;break}return a=t.getNavigatorMeta(e),s.push(a),n.prev=5,n.next=8,a;case 8:if(!(c=n.sent)){n.next=12;break}return r(c.description||c.originalDescription||""),n.abrupt("return");case 12:n.next=16;break;case 14:n.prev=14,n.t0=n.catch(5);case 16:if(!t.sourceMeta){n.next=20;break}r(t.sourceMeta.comment||""),n.next=35;break;case 20:if(!t.definition||!t.definition.comment){n.next=24;break}r(t.definition.comment),n.next=35;break;case 24:return l=t.getSourceMeta(e),n.prev=25,n.next=28,l;case 28:u=n.sent,r(u&&u.comment||""),n.next=35;break;case 32:n.prev=32,n.t1=n.catch(25),i(n.t1);case 35:case"end":return n.stop()}}),n,null,[[5,14],[25,32]])})));return function(e,t,r){return n.apply(this,arguments)}}());return Hh(n)}},{key:"updateNavigatorCustomMetadata",value:(s=lf(regeneratorRuntime.mark((function e(t,n,r){var i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.canHaveNavigatorMetadata()){e.next=2;break}return e.abrupt("return",Promise.reject());case 2:return e.next=4,this.getNavigatorMeta(r);case 4:if(i=e.sent){e.next=7;break}throw new Error("Could not load navigator metadata.");case 7:return e.abrupt("return",new Promise((function(e,r){Jp({identity:i.identity,modifiedCustomMetadata:t,deletedCustomMetadataKeys:n}).then((function(t){t?(o.navigatorMeta=t,o.navigatorMetaPromise=Lh.resolve(t),o.saveLater(),e(t)):r()})).catch(r)})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"setComment",value:(o=lf(regeneratorRuntime.mark((function e(t,n){var r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.canHaveNavigatorMetadata()){e.next=7;break}return e.next=3,this.getNavigatorMeta(n);case 3:if(r=e.sent){e.next=6;break}throw new Error("Could not load navigator metadata.");case 6:return e.abrupt("return",new Promise((function(e,o){Jp({identity:r.identity,properties:{description:t}}).then(function(){var t=lf(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r&&(i.navigatorMeta=r,i.navigatorMetaPromise=Lh.resolve(r),i.saveLater()),i.getComment(n).then((function(t){i.commentObservable&&i.commentObservable(t),e(t)})).catch(o);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch(o)})));case 7:return e.abrupt("return",new Promise((function(e,r){var o,s,a,c,l,u;(o={entry:i,properties:{comment:t},silenceErrors:null==n?void 0:n.silenceErrors},a=o.entry,c=o.properties,l=o.silenceErrors,u={source_type:a.getConnector().id},1===a.path.length?(s="/metastore/databases/".concat(a.path[0],"/alter"),u.properties=JSON.stringify(c)):2===a.path.length?(s="/metastore/table/".concat(a.path[0],"/").concat(a.path[1],"/alter"),null!=c&&c.name&&(u.new_table_name=c.name)):a.path.length>2&&(s="/metastore/table/".concat(a.path[0],"/").concat(a.path[1],"/alter_column"),u.column=a.path.slice(2).join("."),null!=c&&c.name&&(u.new_column_name=c.name),null!=c&&c.type&&(u.new_column_type=c.type),null!=c&&c.partitions&&(u.partition_spec=JSON.stringify(c.partitions))),null!=c&&c.comment&&(u.comment=c.comment),s?sd(s,u,{silenceErrors:l}):Lh.reject()).then(lf(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.reloadSourceMeta(n);case 3:return t.next=5,i.getComment(n);case 5:o=t.sent,i.commentObservable&&i.commentObservable(o),e(o),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),r(t.t0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))).catch(r)})));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"addNavigatorTags",value:(i=lf(regeneratorRuntime.mark((function e(t,n){var r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.canHaveNavigatorMetadata()){e.next=2;break}return e.abrupt("return",Promise.reject());case 2:return e.next=4,this.getNavigatorMeta(n);case 4:return r=e.sent,e.abrupt("return",new Promise((function(e,n){Qp(r.identity,t).then((function(t){t?(i.navigatorMeta=t,i.navigatorMetaPromise=Lh.resolve(t),i.saveLater(),e(t)):n()})).catch(n)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"deleteNavigatorTags",value:(r=lf(regeneratorRuntime.mark((function e(t,n){var r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.canHaveNavigatorMetadata()){e.next=2;break}return e.abrupt("return",Promise.reject());case 2:return e.next=4,this.getNavigatorMeta(n);case 4:return r=e.sent,e.abrupt("return",new Promise((function(e,n){Zp(r.identity,t).then((function(t){t?(i.navigatorMeta=t,i.navigatorMetaPromise=Lh.resolve(t),i.saveLater(),e(t)):n()})).catch(n)})));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"hasPossibleChildren",value:function(){return this.path.length<3||!this.definition&&!this.sourceMeta||!!this.sourceMeta&&/^(?:struct|array|map)/i.test(this.sourceMeta.type)||!!this.definition&&!!this.definition.type&&/^(?:struct|array|map)/i.test(this.definition.type)}},{key:"getIndex",value:function(){return this.definition&&this.definition.index||0}},{key:"getDialect",value:function(){return this.getConnector().dialect||this.getConnector().id}},{key:"getConnector",value:function(){return this.dataCatalog.connector}},{key:"isSource",value:function(){return 0===this.path.length}},{key:"isDatabase",value:function(){return 1===this.path.length}},{key:"isTableOrView",value:function(){return 2===this.path.length}},{key:"getTitle",value:function(e){var t=this.getQualifiedPath();if(this.isField()){var n=this.getType();n&&(t+=" ("+n+")")}else this.definition&&this.definition.type&&"materialized_view"===this.definition.type.toLowerCase()&&(t+=" ("+(0,oh.Z)("Materialized")+")");return e&&this.hasResolvedComment()&&this.getResolvedComment()&&(t+=" - "+this.getResolvedComment()),t}},{key:"getQualifiedPath",value:function(){return this.path.join(".")}},{key:"getDisplayName",value:function(e){var t=e?this.getQualifiedPath():this.name;if(this.isField()){var n=this.getType();if(n)return"".concat(t," (").concat(n,")")}return t}},{key:"isPrimaryKey",value:function(){return!!(this.isColumn()&&this.definition&&this.definition.primaryKey)}},{key:"isPartitionKey",value:function(){return!(!this.definition||!this.definition.partitionKey)}},{key:"isForeignKey",value:function(){return!!this.definition&&!!this.definition.foreignKey}},{key:"isKey",value:function(){return this.isPartitionKey()||this.isPrimaryKey()||this.isForeignKey()}},{key:"isTable",value:function(){return!(2!==this.path.length||this.analysis&&this.analysis.details&&this.analysis.details.properties&&"VIRTUAL_VIEW"===this.analysis.details.properties.table_type||(this.sourceMeta?this.sourceMeta.is_view:this.definition&&this.definition.type&&"table"!==this.definition.type.toLowerCase()))}},{key:"getHdfsFilePath",value:function(){var e;return((null===(e=this.analysis)||void 0===e?void 0:e.hdfs_link)||"").replace("/filebrowser/view=","")}},{key:"isIcebergTable",value:function(){var e,t,n;return"ICEBERG"===(null===(e=this.analysis)||void 0===e||null===(t=e.details)||void 0===t||null===(n=t.stats)||void 0===n?void 0:n.table_type)}},{key:"isTransactionalTable",value:function(){var e,t,n;return"true"===(null===(e=this.analysis)||void 0===e||null===(t=e.details)||void 0===t||null===(n=t.stats)||void 0===n?void 0:n.transactional)}},{key:"isView",value:function(){if(2===this.path.length){if(this.sourceMeta&&this.sourceMeta.is_view)return!0;if(this.definition&&this.definition.type&&("view"===this.definition.type.toLowerCase()||"materialized_view"===this.definition.type.toLowerCase()))return!0;if(this.analysis&&this.analysis.details&&this.analysis.details.properties&&"VIRTUAL_VIEW"===this.analysis.details.properties.table_type)return!0}return!1}},{key:"isModel",value:function(){return 2===this.path.length&&!!this.definition&&!!this.definition.type&&"model"===this.definition.type.toLowerCase()}},{key:"isColumn",value:function(){return 3===this.path.length}},{key:"isComplex",value:function(){var e=this.sourceMeta;return!!(this.path.length>2&&(e&&/^(?:struct|array|map)/i.test(e.type)||this.definition&&this.definition.type&&/^(?:struct|array|map)/i.test(this.definition.type)))}},{key:"isField",value:function(){return this.path.length>2}},{key:"isArray",value:function(){return!!this.sourceMeta&&/^array/i.test(this.sourceMeta.type)||!!this.definition&&!!this.definition.type&&/^array/i.test(this.definition.type)}},{key:"isMap",value:function(){return!!this.sourceMeta&&/^map/i.test(this.sourceMeta.type)||!!this.definition&&!!this.definition.type&&/^map/i.test(this.definition.type)}},{key:"isMapValue",value:function(){return!!this.definition&&!!this.definition.isMapValue}},{key:"getType",value:function(){var e=this.getRawType();return-1!==e.indexOf("<")&&(e=e.substring(0,e.indexOf("<"))),e.toLowerCase()}},{key:"getRawType",value:function(){return this.sourceMeta&&this.sourceMeta.type||this.definition&&this.definition.type||""}},{key:"getSourceMeta",value:function(e){return this.sourceMetaPromise&&this.sourceMetaPromise.cancelled&&(this.sourceMetaPromise=void 0),!this.sourceMetaPromise&&uf(e)?Lh.reject():!this.sourceMetaPromise||hf(e)?this.reloadSourceMeta(e):Hh(this.sourceMetaPromise,e)}},{key:"getAnalysis",value:function(e){return this.analysisPromise&&this.analysisPromise.cancelled&&(this.analysisPromise=void 0),!this.analysisPromise&&uf(e)?Lh.reject():!this.analysisPromise||hf(e)?this.reloadAnalysis(e):Hh(this.analysisPromise,e)}},{key:"getPartitions",value:function(e){return this.partitionsPromise&&this.partitionsPromise.cancelled&&(this.partitionsPromise=void 0),!this.isTableOrView()||!this.partitionsPromise&&uf(e)?Lh.reject():!this.partitionsPromise||hf(e)?this.reloadPartitions(e):Hh(this.partitionsPromise,e)}},{key:"getNavigatorMeta",value:function(e){return this.navigatorMetaPromise&&this.navigatorMetaPromise.cancelled&&(this.navigatorMetaPromise=void 0),e=$h(e),!this.canHaveNavigatorMetadata()||!this.navigatorMetaPromise&&uf(e)?Lh.reject():!this.navigatorMetaPromise||hf(e)?this.reloadNavigatorMeta(e):Hh(this.navigatorMetaPromise,e)}},{key:"getSqlAnalyzerMeta",value:function(e){return this.sqlAnalyzerMetaPromise&&this.sqlAnalyzerMetaPromise.cancelled&&(this.sqlAnalyzerMetaPromise=void 0),e.silenceErrors=!0,this.dataCatalog.canHaveSqlAnalyzerMeta()&&this.isTableOrView()?!this.sqlAnalyzerMetaPromise&&uf(e)?Lh.reject():!this.sqlAnalyzerMetaPromise||hf(e)?this.reloadSqlAnalyzerMeta(e):Hh(this.sqlAnalyzerMetaPromise,e):Lh.reject()}},{key:"getSample",value:function(e){var t=this;if(this.samplePromise&&this.samplePromise.cancelled&&(this.samplePromise=void 0),e&&e.operation&&"default"!==e.operation){var n=e.operation,r=Kp({entry:this,operation:n,silenceErrors:e.silenceErrors});return Hh(r,e)}return this.samplePromise||!this.isColumn()||hf(e)?!this.samplePromise&&uf(e)?Lh.reject():!this.samplePromise||hf(e)?this.reloadSample(e):Hh(this.samplePromise,e):(this.samplePromise=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a,c,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=[],o((function(){s.forEach((function(e){return e.cancel()}))})),n.prev=2,n.next=5,t.dataCatalog.getEntry({namespace:t.namespace,compute:t.compute,path:t.path.slice(0,2),definition:{type:"table"}});case 5:if(!(a=n.sent)||!a.samplePromise){n.next=11;break}return n.delegateYield(regeneratorRuntime.mark((function n(){var i,o,c,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s.push(Hh(a.samplePromise,e)),n.next=3,a.samplePromise;case 3:if(i=n.sent,o={hueTimestamp:i.hueTimestamp,has_more:i.has_more,type:i.type,data:[],meta:[]},!i.meta){n.next=15;break}c=function(e){if(i.meta[e].name.toLowerCase()===t.name.toLowerCase())return o.meta[0]=i.meta[e],i.data.forEach((function(t){o.data.push([t[e]])})),"break"},l=0;case 8:if(!(l<i.meta.length)){n.next=15;break}if("break"!==c(l)){n.next=12;break}return n.abrupt("break",15);case 12:l++,n.next=8;break;case 15:if(!o.meta.length){n.next=19;break}return t.sample=o,r(t.sample),n.abrupt("return",{v:void 0});case 19:case"end":return n.stop()}}),n)}))(),"t0",8);case 8:if("object"!==ef(c=n.t0)){n.next=11;break}return n.abrupt("return",c.v);case 11:n.next=15;break;case 13:n.prev=13,n.t1=n.catch(2);case 15:if(!uf(e)){n.next=19;break}i(),n.next=31;break;case 19:return l=t.reloadSample(e),n.prev=20,n.t2=r,n.next=24,l;case 24:n.t3=n.sent,(0,n.t2)(n.t3),n.next=31;break;case 28:n.prev=28,n.t4=n.catch(20),i();case 31:case"end":return n.stop()}}),n,null,[[2,13],[20,28]])})));return function(e,t,r){return n.apply(this,arguments)}}()),Hh(this.samplePromise,e))}},{key:"getTopAggs",value:function(e){var t=this,n=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,df(t);case 2:s=n.sent,a=s.getTopAggs(e),o((function(){a.cancel()})),a.then(r).catch(i);case 6:case"end":return n.stop()}}),n)})));return function(e,t,r){return n.apply(this,arguments)}}());return Hh(n)}},{key:"getTopFilters",value:function(e){var t=this,n=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,df(t);case 2:s=n.sent,a=s.getTopFilters(e),o((function(){a.cancel()})),a.then(r).catch(i);case 6:case"end":return n.stop()}}),n)})));return function(e,t,r){return n.apply(this,arguments)}}());return Hh(n)}},{key:"getTopJoins",value:function(e){var t=this,n=new Lh(function(){var n=lf(regeneratorRuntime.mark((function n(r,i,o){var s,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,df(t);case 2:s=n.sent,a=s.getTopJoins(e),o((function(){a.cancel()})),a.then(r).catch(i);case 6:case"end":return n.stop()}}),n)})));return function(e,t,r){return n.apply(this,arguments)}}());return Hh(n)}}],n&&af(t.prototype,n),e}();function ff(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function gf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ff(o,r,i,s,a,"next",e)}function a(e){ff(o,r,i,s,a,"throw",e)}s(void 0)}))}}function mf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ef=window.LOGGED_USERNAME,yf="hue.dataCatalog.allNavTags",vf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=void 0,this.allNavigatorTagsPromise=void 0,this.store=Uh().createInstance({name:"HueDataCatalog_"+Ef})}var t,n,r,i;return t=e,n=[{key:"getAllNavigatorTags",value:(i=gf(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.allNavigatorTagsPromise||!Uf.cacheEnabled()||t&&t.refreshCache){e.next=2;break}return e.abrupt("return",this.allNavigatorTagsPromise);case 2:if(window.HAS_CATALOG){e.next=4;break}return e.abrupt("return",{});case 4:return n=window.CACHEABLE_TTL||{},this.allNavigatorTagsPromise=new Promise((function(e,i){var o=function(){var o,s;(o={silenceErrors:t&&t.silenceErrors},s=o.silenceErrors,sd("/metadata/api/catalog/list_tags",void 0,{silenceErrors:s,handleSuccess:function(e,t,n){Zh(e)?n(td(e)):t(e.tags||{})}})).then((function(t){e(t),n.default&&n.default>0&&r.store.setItem(yf,{allTags:t,hueTimestamp:Date.now(),version:5})})).catch(i)};!(n.default&&n.default>0&&Uf.cacheEnabled())||t&&t.refreshCache?o():r.store.getItem(yf).then((function(t){t&&5===t.version&&n.default&&(!t.hueTimestamp||Date.now()-t.hueTimestamp<n.default)?e(t.allTags):o()})).catch(o)})),e.abrupt("return",this.allNavigatorTagsPromise);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"updateAllNavigatorTags",value:(r=gf(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.allNavigatorTagsPromise){e.next=8;break}return e.next=3,this.allNavigatorTagsPromise;case 3:return r=e.sent,t.forEach((function(e){r[e]||(r[e]=0),r[e]++})),n.forEach((function(e){r[e]||(r[e]--,0===r[e]&&delete r[e])})),e.next=8,this.store.setItem(yf,{allTags:r,hueTimestamp:Date.now(),version:5});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})}],n&&mf(t.prototype,n),e}();function bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Af=function(e,t,n,r,i,o){var s=r();return Uf.cacheEnabled()&&t&&t.cachedOnly?s&&Hh(s)||Lh.reject():((!s||!Uf.cacheEnabled()||t&&t.refreshCache)&&(s=function(e,t,n,r,i){var o=new Lh((function(o,s,a){if(e.dataCatalog.canHaveSqlAnalyzerMeta()){var c=function(e,t,n,r){var i=e({paths:n.paths,silenceErrors:r&&r.silenceErrors});return i.then((function(e){t(e),n.saveLater()})).catch(ku),i}(i,r,e,t);a((function(){c.cancel&&c.cancel()})),c.then(o).catch((function(e){c.cancelled&&n(void 0),s(e)}))}else s()}));return n(o),o}(e,t,n,i,o)),Hh(s,t))},Tf=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dataCatalog=void 0,this.identifier=void 0,this.paths=void 0,this.saveTimeout=-1,this.topAggs=void 0,this.topAggsPromise=void 0,this.topColumns=void 0,this.topColumnsPromise=void 0,this.topFilters=void 0,this.topFiltersPromise=void 0,this.topJoins=void 0,this.topJoinsPromise=void 0,this.identifier=t.identifier,this.dataCatalog=t.dataCatalog,this.paths=t.paths}var t,n;return t=e,n=[{key:"save",value:function(){return window.clearTimeout(this.saveTimeout),this.dataCatalog.persistMultiTableEntry(this)}},{key:"saveLater",value:function(){var e=this,t=window.CACHEABLE_TTL;t&&t.default&&t.default>0&&(window.clearTimeout(this.saveTimeout),this.saveTimeout=window.setTimeout((function(){e.save().catch()}),1e3))}},{key:"getDialect",value:function(){return this.getConnector().dialect||this.getConnector().id}},{key:"getConnector",value:function(){return this.dataCatalog.connector}},{key:"getTopAggs",value:function(e){var t=this;return Af(this,e,(function(e){t.topAggsPromise=e}),(function(){return t.topAggsPromise}),(function(e){t.topAggs=e}),e.sqlAnalyzer.fetchTopAggs.bind(e.sqlAnalyzer))}},{key:"getTopColumns",value:function(e){var t=this;return Af(this,e,(function(e){t.topColumnsPromise=e}),(function(){return t.topColumnsPromise}),(function(e){t.topColumns=e}),e.sqlAnalyzer.fetchTopColumns.bind(e.sqlAnalyzer))}},{key:"getTopFilters",value:function(e){var t=this;return Af(this,e,(function(e){t.topFiltersPromise=e}),(function(){return t.topFiltersPromise}),(function(e){t.topFilters=e}),e.sqlAnalyzer.fetchTopFilters.bind(e.sqlAnalyzer))}},{key:"getTopJoins",value:function(e){var t=this;return Af(this,e,(function(e){t.topJoinsPromise=e}),(function(){return t.topJoinsPromise}),(function(e){t.topJoins=e}),e.sqlAnalyzer.fetchTopJoins.bind(e.sqlAnalyzer))}}],n&&bf(t.prototype,n),e}();const Cf=Tf;var Rf;function Sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){xf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wf(e){return function(e){if(Array.isArray(e))return If(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return If(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?If(e,t):void 0}}(e)||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 If(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nf(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Lf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Nf(o,r,i,s,a,"next",e)}function a(e){Nf(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e.local="local",e.api="api",e.off="off"}(Rf||(Rf={}));var kf=window.LOGGED_USERNAME||"",Df=!0,Ff=function(e){var t=e.namespace.id;if(e.path)"string"==typeof e.path?t+="_"+e.path:e.path.length&&(t+="_"+e.path.join("."));else if(e.paths&&e.paths.length){var n={};e.paths.forEach((function(e){n[e.join(".")]=!0}));var r=Object.keys(n);r.sort(),t+="_"+r.join(",")}return t},Mf=function(e,t){var n=window.CACHEABLE_TTL||{},r=void 0!==t?t:n.default;return!e.hueTimestamp||void 0===r||Date.now()-e.hueTimestamp<r},Pf=function(e,t){if(5===t.version&&(t.definition&&Mf(t.definition)&&(e.definition=t.definition),t.sourceMeta&&Mf(t.sourceMeta)&&(e.sourceMeta=t.sourceMeta,e.sourceMetaPromise=Lh.resolve(e.sourceMeta)),t.analysis&&Mf(t.analysis)&&(e.analysis=t.analysis,e.analysisPromise=Lh.resolve(e.analysis)),t.partitions&&Mf(t.partitions)&&(e.partitions=t.partitions,e.partitionsPromise=Lh.resolve(e.partitions)),t.sample&&Mf(t.sample)&&(e.sample=t.sample,e.samplePromise=Lh.resolve(e.sample)),t.navigatorMeta&&Mf(t.navigatorMeta)&&(e.navigatorMeta=t.navigatorMeta,e.navigatorMetaPromise=Lh.resolve(e.navigatorMeta)),e.getConnector().optimizer!==Rf.local)){var n=window.CACHEABLE_TTL||{};t.sqlAnalyzerMeta&&Mf(t.sqlAnalyzerMeta,n.sqlAnalyzer)&&(e.sqlAnalyzerMeta=t.sqlAnalyzerMeta,e.sqlAnalyzerMetaPromise=Lh.resolve(e.sqlAnalyzerMeta)),t.sqlAnalyzerPopularity&&Mf(t.sqlAnalyzerPopularity,n.sqlAnalyzer)&&(e.sqlAnalyzerPopularity=t.sqlAnalyzerPopularity)}},Bf=function(e,t){if(e.getConnector().optimizer!==Rf.local&&5===t.version){var n=window.CACHEABLE_TTL||{};t.topAggs&&Mf(t.topAggs,n.sqlAnalyzer)&&(e.topAggs=t.topAggs,e.topAggsPromise=Lh.resolve(e.topAggs)),t.topColumns&&Mf(t.topColumns,n.sqlAnalyzer)&&(e.topColumns=t.topColumns,e.topColumnsPromise=Lh.resolve(e.topColumns)),t.topFilters&&Mf(t.topFilters,n.sqlAnalyzer)&&(e.topFilters=t.topFilters,e.topFiltersPromise=Lh.resolve(e.topFilters)),t.topJoins&&Mf(t.topJoins,n.sqlAnalyzer)&&(e.topJoins=t.topJoins,e.topJoinsPromise=Lh.resolve(e.topJoins))}},Uf=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.connector=void 0,this.entries={},this.temporaryEntries={},this.multiTableEntries={},this.store=void 0,this.multiTableStore=void 0,this.invalidatePromise=void 0,!t||!t.id)throw new Error("DataCatalog created without connector or id");this.connector=t,this.store=Uh().createInstance({name:"HueDataCatalog_"+this.connector.id+"_"+kf}),this.multiTableStore=Uh().createInstance({name:"HueDataCatalog_"+this.connector.id+"_multiTable_"+kf})}var t,n,r,i,o,s,a,c,l;return t=e,n=[{key:"canHaveSqlAnalyzerMeta",value:function(){return!!(window.HAS_SQL_ANALYZER&&this.connector&&this.connector.optimizer&&this.connector.optimizer!==Rf.off)}},{key:"clearStorageCascade",value:(l=Lf(regeneratorRuntime.mark((function e(t,n,r){var i,o,s=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&n){e.next=5;break}if(r&&0!==r.length){e.next=4;break}return this.entries={},e.abrupt("return",this.store.clear());case 4:return e.abrupt("return");case 5:return i=Ff({namespace:t,path:r}),Object.keys(this.entries).forEach((function(e){0===e.indexOf(i)&&delete s.entries[e]})),o=[],e.prev=8,e.next=11,this.store.keys();case 11:return e.sent.forEach((function(e){0===e.indexOf(i)&&o.push(s.store.removeItem(e))})),e.next=15,Promise.all(o);case 15:e.next=19;break;case 17:e.prev=17,e.t0=e.catch(8);case 19:case"end":return e.stop()}}),e,this,[[8,17]])}))),function(e,t,n){return l.apply(this,arguments)})},{key:"persistCatalogEntry",value:(c=Lf(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=window.CACHEABLE_TTL||{},Df&&n.default&&!(n.default<=0)){e.next=3;break}return e.abrupt("return");case 3:return r=Ff(t),e.next=6,this.store.setItem(r,{version:5,definition:t.definition,sourceMeta:t.sourceMeta,analysis:t.analysis,partitions:t.partitions,sample:t.sample,navigatorMeta:t.navigatorMeta,sqlAnalyzerMeta:this.connector.optimizer!==Rf.local?t.sqlAnalyzerMeta:void 0,sqlAnalyzerPopularity:this.connector.optimizer!==Rf.local?t.sqlAnalyzerPopularity:void 0});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"loadSqlAnalyzerPopularityForTables",value:function(e){var t=this,n=[],r=[],i=[],o=[];e.paths.forEach((function(s){var a=new Promise(function(){var o=Lf(regeneratorRuntime.mark((function o(a,c){var l,u,h;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,t.getEntry({namespace:e.namespace,compute:e.compute,path:s});case 3:if(!(l=o.sent).sqlAnalyzerPopularityForChildrenPromise){o.next=11;break}return o.next=7,l.sqlAnalyzerPopularityForChildrenPromise;case 7:u=o.sent,r.push.apply(r,wf(u)),o.next=21;break;case 11:if(!l.definition||!l.definition.sqlAnalyzerLoaded){o.next=20;break}return h=l.getChildren(_f(_f({},e),{},{silenceErrors:!0})),n.push(h),o.next=16,h;case 16:o.sent.forEach((function(e){e.sqlAnalyzerPopularity&&r.push(e)})),o.next=21;break;case 20:i.push(s);case 21:o.next=26;break;case 23:o.prev=23,o.t0=o.catch(0),c(o.t0);case 26:a();case 27:case"end":return o.stop()}}),o,null,[[0,23]])})));return function(e,t){return o.apply(this,arguments)}}());o.push(a)}));var s=new Lh(function(){var s=Lf(regeneratorRuntime.mark((function s(a,c,l){var u,h,d,p,f;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return l((function(){n.forEach((function(e){e.cancel()}))})),s.prev=1,s.next=4,Promise.all(o);case 4:s.next=8;break;case 6:s.prev=6,s.t0=s.catch(1);case 8:if(i.length){s.next=11;break}return a(r),s.abrupt("return");case 11:return u=e.sqlAnalyzer.fetchPopularity({silenceErrors:!0,paths:i}),n.push(u),s.prev=13,s.next=16,u;case 16:h=s.sent,d={},p=function(e){var t=h.values&&h.values[e];t&&t.forEach((function(t){var n=d[t.dbName+"."+t.tableName];if(n||(n={values:{}},d[t.dbName+"."+t.tableName]=n),n.values){var r=n.values[e];r||(r=[],n.values[e]=r),r.push(t)}}))},h.values&&(p("filterColumns"),p("groupbyColumns"),p("joinColumns"),p("orderbyColumns"),p("selectColumns")),f=Object.keys(d).map((function(i){return new Promise(function(){var o=Lf(regeneratorRuntime.mark((function o(s){var a,c;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,t.getEntry({namespace:e.namespace,compute:e.compute,path:i});case 3:return a=o.sent,c=a.applySqlAnalyzerResponseToChildren(d[i],_f(_f({},e),{},{silenceErrors:!0})),n.push(c),o.t0=r.push,o.t1=r,o.t2=wf,o.next=11,c;case 11:o.t3=o.sent,o.t4=(0,o.t2)(o.t3),o.t0.apply.call(o.t0,o.t1,o.t4),o.next=18;break;case 16:o.prev=16,o.t5=o.catch(0);case 18:s();case 19:case"end":return o.stop()}}),o,null,[[0,16]])})));return function(e){return o.apply(this,arguments)}}())})),Promise.all(f).finally((function(){a(r)})),s.next=27;break;case 24:s.prev=24,s.t1=s.catch(13),a(r);case 27:case"end":return s.stop()}}),s,null,[[1,6],[13,24]])})));return function(e,t,n){return s.apply(this,arguments)}}());return Hh(s)}},{key:"getKnownEntry",value:(a=Lf(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.entries[Ff(t)]);case 1:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"addTemporaryTable",value:function(e){var t=this,n=e.database||"default",r=[n,e.name],i=[],o=function(e,t){e.sourceMeta=t||e.definition,e.sourceMetaPromise=Lh.resolve(e.sourceMeta)},s=Ff({namespace:e.namespace,path:[]});if(!this.temporaryEntries[s]){var a=new pf({isTemporary:!0,dataCatalog:this,namespace:e.namespace,compute:e.compute,path:[],definition:{index:0,sqlAnalyzerLoaded:!0,type:"source"}});o(a),i.push(s),a.childrenPromise=Lh.resolve([]),this.temporaryEntries[s]=Promise.resolve(a)}return this.temporaryEntries[s].then(function(){var s=Lf(regeneratorRuntime.mark((function s(a){var c,l,u,h,d,p,f,g,m,E,y;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.getChildren();case 2:return c=s.sent,l=Ff({namespace:e.namespace,path:[n]}),t.temporaryEntries[l]||(u=new pf({isTemporary:!0,dataCatalog:t,namespace:e.namespace,compute:e.compute,path:[n],definition:{index:0,sqlAnalyzerLoaded:!0,type:"database"}}),o(u),u.childrenPromise=Lh.resolve([]),i.push(l),c.push(u),t.temporaryEntries[l]=Promise.resolve(u)),s.next=7,t.temporaryEntries[l];case 7:return h=s.sent,s.next=10,h.getChildren();case 10:if(d=s.sent,p=Ff({namespace:e.namespace,path:r}),!t.temporaryEntries[p]){s.next=18;break}return s.next=15,t.temporaryEntries[p];case 15:f=s.sent,-1!==(g=d.indexOf(f))&&d.splice(g,1);case 18:m=new pf({isTemporary:!0,dataCatalog:t,namespace:e.namespace,compute:e.compute,path:r,definition:{comment:"",index:d.length,name:e.name,sqlAnalyzerLoaded:!0,type:"table"}}),d.push(m),E={columns:(e.columns||[]).map((function(e){return e.name})),extended_columns:e.columns||[],comment:"",notFound:!1,is_view:!1},o(m,E),m.sample={data:e.sample,meta:e.columns,type:"table"},m.samplePromise=Lh.resolve(m.sample),i.push(p),t.temporaryEntries[p]=Promise.resolve(m),y=[],m.childrenPromise=Lh.resolve(y),e.columns.forEach((function(n,s){var a=[].concat(r,[n.name]),c=new pf({isTemporary:!0,dataCatalog:t,namespace:e.namespace,compute:e.compute,path:a,definition:{comment:"",index:s,name:n.name,partitionKey:!1,type:n.type}});c.sample={data:e.sample.map((function(e){return[e[s]]})),meta:[n],type:"table"},c.samplePromise=Lh.resolve(c.sample),E.columns.push(n.name),E.extended_columns.push(c.definition),o(c,{comment:"",name:n.name,notFound:!1,sample:c.sample.data,type:n.type});var l=Ff({namespace:e.namespace,path:a});i.push(l),t.temporaryEntries[l]=Lh.resolve(c)}));case 29:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}()),{delete:function(){for(;i.length;){var e=i.pop();e&&delete t.temporaryEntries[e]}}}}},{key:"getEntry",value:(s=Lf(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ff(t),!t.temporaryOnly){e.next=3;break}return e.abrupt("return",this.temporaryEntries[n]||$.Deferred().reject().promise());case 3:if(!this.entries[n]){e.next=5;break}return e.abrupt("return",this.entries[n]);case 5:return this.entries[n]=new Promise((function(e){Df?r.store.getItem(n).then((function(n){var i=n?n.definition:t.definition,o=new pf({dataCatalog:r,namespace:t.namespace,compute:t.compute,path:t.path,definition:i});n?Pf(o,n):!t.cachedOnly&&t.definition&&o.saveLater(),e(o)})).catch((function(n){console.warn(n);var i=new pf({dataCatalog:r,namespace:t.namespace,compute:t.compute,path:t.path,definition:t.definition});!t.cachedOnly&&t.definition&&i.saveLater(),e(i)})):e(new pf({dataCatalog:r,namespace:t.namespace,compute:t.compute,path:t.path,definition:t.definition}))})),e.abrupt("return",this.entries[n]);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"getMultiTableEntry",value:(o=Lf(regeneratorRuntime.mark((function e(t){var n,r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ff(t),!this.multiTableEntries[n]){e.next=3;break}return e.abrupt("return",this.multiTableEntries[n]);case 3:return r=new Cf({identifier:n,dataCatalog:this,paths:t.paths}),this.multiTableEntries[n]=new Promise(function(){var e=Lf(regeneratorRuntime.mark((function e(t){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Df){e.next=3;break}return t(r),e.abrupt("return");case 3:return e.prev=3,e.next=6,i.multiTableStore.getItem(n);case 6:(o=e.sent)&&Bf(r,o),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.warn(e.t0);case 13:t(r);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}()),e.abrupt("return",this.multiTableEntries[n]);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"persistMultiTableEntry",value:(i=Lf(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=window.CACHEABLE_TTL||{},!(!Df||n.default&&n.default<=0||n.sqlAnalyzer&&n.sqlAnalyzer<=0||t.getConnector().optimizer===Rf.local)){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.multiTableStore.setItem(t.identifier,{version:5,topAggs:t.topAggs,topColumns:t.topColumns,topFilters:t.topFilters,topJoins:t.topJoins});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}],r=[{key:"disableCache",value:function(){Df=!1}},{key:"enableCache",value:function(){Df=!0}},{key:"cacheEnabled",value:function(){return Df}}],n&&Of(t.prototype,n),r&&Of(t,r),e}(),$f=new vf,Hf={},Gf=function(e){if(!e||!e.id)throw new Error("getCatalog called without connector with id");return Hf[e.id]||(Hf[e.id]=new Uf(e))};const Wf={addTemporaryTable:function(e){return Gf(e.connector).addTemporaryTable(e)},getEntry:function(e){return Gf(e.connector).getEntry(e)},getMultiTableEntry:function(e){return Gf(e.connector).getMultiTableEntry(e)},getChildren:function(e){return new Lh(function(){var t=Lf(regeneratorRuntime.mark((function t(n,r,i){var o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Gf(e.connector).getEntry(e);case 3:o=t.sent,s=o.getChildren(e),i((function(){s.cancel()})),n(Hh(s,e)),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),r(t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(e,n,r){return t.apply(this,arguments)}}())},getCatalog:Gf,getAllNavigatorTags:$f.getAllNavigatorTags.bind($f),updateAllNavigatorTags:$f.updateAllNavigatorTags.bind($f),enableCache:function(){Df=!0},disableCache:function(){Df=!1}};function Vf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jf(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function qf(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){jf(o,r,i,s,a,"next",e)}function a(e){jf(o,r,i,s,a,"throw",e)}s(void 0)}))}}var zf,Kf,Yf,Xf,Jf,Qf,Zf,eg,tg,ng,rg,ig,og,sg,ag,cg=new Set,lg={calcite:(eg=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(832).then(i.bind(i,7609)));case 1:case"end":return e.stop()}}),e)}))),function(){return eg.apply(this,arguments)}),flink:(Zf=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(522).then(i.bind(i,8973)));case 1:case"end":return e.stop()}}),e)}))),function(){return Zf.apply(this,arguments)}),generic:(Qf=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(22).then(i.bind(i,7844)));case 1:case"end":return e.stop()}}),e)}))),function(){return Qf.apply(this,arguments)}),hive:(Jf=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(498).then(i.bind(i,6295)));case 1:case"end":return e.stop()}}),e)}))),function(){return Jf.apply(this,arguments)}),impala:(Xf=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(138).then(i.bind(i,5253)));case 1:case"end":return e.stop()}}),e)}))),function(){return Xf.apply(this,arguments)}),postgresql:(Yf=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(22).then(i.bind(i,3090)));case 1:case"end":return e.stop()}}),e)}))),function(){return Yf.apply(this,arguments)}),presto:(Kf=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(22).then(i.bind(i,4035)));case 1:case"end":return e.stop()}}),e)}))),function(){return Kf.apply(this,arguments)}),sparksql:(zf=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(534).then(i.bind(i,104)));case 1:case"end":return e.stop()}}),e)}))),function(){return zf.apply(this,arguments)})},ug={impala:(tg=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(138).then(i.bind(i,8299)));case 1:case"end":return e.stop()}}),e)}))),function(){return tg.apply(this,arguments)})},hg={flink:(ag=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(522).then(i.bind(i,2542)));case 1:case"end":return e.stop()}}),e)}))),function(){return ag.apply(this,arguments)}),generic:(sg=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(22).then(i.bind(i,9843)));case 1:case"end":return e.stop()}}),e)}))),function(){return sg.apply(this,arguments)}),hive:(og=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(498).then(i.bind(i,65)));case 1:case"end":return e.stop()}}),e)}))),function(){return og.apply(this,arguments)}),impala:(ig=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(138).then(i.bind(i,865)));case 1:case"end":return e.stop()}}),e)}))),function(){return ig.apply(this,arguments)}),pig:(rg=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(121).then(i.bind(i,7595)));case 1:case"end":return e.stop()}}),e)}))),function(){return rg.apply(this,arguments)}),sparksql:(ng=qf(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.e(534).then(i.bind(i,7545)));case 1:case"end":return e.stop()}}),e)}))),function(){return ng.apply(this,arguments)})},dg=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r,i,o;return t=e,n=[{key:"getReservedKeywords",value:(o=qf(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=lg[t]||lg.generic,e.next=3,n();case 3:return r=e.sent,e.abrupt("return",r.RESERVED_WORDS||cg);case 5:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"getSetOptions",value:(i=qf(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ug[t]){e.next=5;break}return e.next=3,ug[t]();case 3:return n=e.sent,e.abrupt("return",n.SET_OPTIONS||{});case 5:return e.abrupt("return",{});case 6:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getUdfCategories",value:(r=qf(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=hg[t]||hg.generic,e.next=3,n();case 3:return r=e.sent,e.abrupt("return",r.UDF_CATEGORIES||[]);case 5:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"hasUdfCategories",value:function(e){return!!hg[e]}}],n&&Vf(t.prototype,n),e}();const pg=new dg;function fg(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}const gg={autocompleteFilter:function(e,t){var n=e.toLowerCase();return t.filter((function(t){var r=t.value.toLowerCase().indexOf(n);return-1!==r?0===r||t.filterValue&&0===t.filterValue.toLowerCase().indexOf(n)?t.filterWeight=3:t.filterWeight=2:t.details&&t.details.comment&&-1===n.indexOf(" ")&&-1!==(r=t.details.comment.toLowerCase().indexOf(n))&&(t.filterWeight=1,t.matchComment=!0),-1!==r&&(t.matchIndex=r,t.matchLength=e.length,!0)}))},backTickIfNeeded:(mg=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){fg(o,r,i,s,a,"next",e)}function a(e){fg(o,r,i,s,a,"throw",e)}s(void 0)}))}}(regeneratorRuntime.mark((function e(t,n,r,i){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=2;break}return e.abrupt("return",n+"`");case 2:if(o=t.dialect_properties&&t.dialect_properties.sql_identifier_quote||"`",0!==n.indexOf(o)){e.next=5;break}return e.abrupt("return",n);case 5:return e.next=7,(r||pg).getReservedKeywords(t.dialect||"generic");case 7:if(!e.sent.has(n.toUpperCase())){e.next=10;break}return e.abrupt("return",o+n+o);case 10:if(/^[A-Za-z][A-Za-z0-9_]*$/.test(n)){e.next=12;break}return e.abrupt("return",o+n+o);case 12:return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e)}))),function(e,t,n,r){return mg.apply(this,arguments)}),locationEquals:function(e,t){return!!e&&!!t&&e.first_line===t.first_line&&e.first_column===t.first_column&&e.last_line===t.last_line&&e.last_column===t.last_column},identifierEquals:function(e,t){return!!e&&!!t&&e.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase()===t.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase()},sortSuggestions:function(e,t,n){e.sort((function(e,r){if(t){if(void 0!==e.filterWeight&&void 0!==r.filterWeight&&r.filterWeight!==e.filterWeight)return r.filterWeight-e.filterWeight;if(void 0!==e.filterWeight&&void 0===r.filterWeight)return-1;if(void 0===e.filterWeight&&void 0!==r.filterWeight)return 1}if(n&&n.partitionColumnsFirst){if(e.partitionKey&&!r.partitionKey)return-1;if(r.partitionKey&&!e.partitionKey)return 1}var i=(e.category.weight||0)+(e.weightAdjust||0),o=(r.category.weight||0)+(r.weightAdjust||0);return void 0!==i&&void 0!==o&&o!==i?o-i:void 0!==i&&void 0===o?-1:void 0===i&&void 0!==o?1:e.value.localeCompare(r.value)}))},identifierChainToPath:function(e){return e.map((function(e){return e.name}))}};var mg,Eg=["innerHTML"];const yg=mn({name:"MatchedText",props:{suggestion:{type:Object,required:!0},filter:{type:String,required:!0},isComment:{type:Boolean,required:!1,default:!1}},computed:{content:function(){var e=(this.isComment?this.suggestion.details.comment:this.suggestion.value)||"";if(this.filter&&void 0!==this.suggestion.matchIndex&&this.suggestion.matchIndex>-1&&void 0!==this.suggestion.matchLength&&(!this.isComment&&!this.suggestion.matchComment||this.isComment&&this.suggestion.matchComment)){var t=e.substring(0,this.suggestion.matchIndex),n=e.substring(this.suggestion.matchIndex,this.suggestion.matchIndex+this.suggestion.matchLength),r=e.substring(this.suggestion.matchIndex+this.suggestion.matchLength);return"".concat(t,"<b>").concat(n,"</b>").concat(r)}return e||""}}});yg.render=function(e,t,n,r,i,o){return Hr(),qr("span",{innerHTML:e.content},null,8,Eg)};const vg=yg;var bg=i(1271),Ag=i.n(bg),Tg=function(e){return void 0!==e&&(void 0!==e.traceback||void 0!==e.status&&0!==e.status||503===e.code||500===e.code)},Cg=function(e){return function(t){var n="Unknown error occurred";if(null!=t){if(void 0!==t.statusText&&"abort"===t.statusText)return;if(void 0!==t.responseText)try{var r=JSON.parse(t.responseText);n=void 0!==r.message?r.message:t.responseText}catch(e){n=t.responseText}else void 0!==t.message&&null!==t.message?n=t.message:void 0!==t.statusText&&null!==t.statusText?n=t.statusText:"undefined"!==t.error&&"[object String]"===Object.prototype.toString.call(t.error)?n=t.error:"[object String]"===Object.prototype.toString.call(t)&&(n=t)}return e&&e.silenceErrors||(zh(t),n&&-1===n.indexOf("AuthorizationException")&&Ag()(document).trigger("error",n)),e&&e.errorCallback&&e.errorCallback(n),n}},Rg=function(e,t,n){return n||(n={}),Ag().get(e,t,(function(e){Tg(e)?Cg(n)(e):void 0!==n.successCallback&&n.successCallback(e)})).fail(Cg(n))},Sg=function(e,t,n){var r=Ag().Deferred(),i=Ag().post({url:e,data:t,dataType:n&&n.dataType}).done((function(e){Tg(e)?r.reject(Cg(n)(e)):(n&&n.successCallback&&n.successCallback(e),r.resolve(e))})).fail(Cg(n));i.fail((function(e){r.reject(Cg(n)(e))}));var o=r.promise();return o.getReadyState=function(){return i.readyState},o.abort=function(){i.abort()},o.cancel=o.abort,o},_g=function(e){null!=e&&(e.getReadyState?e.getReadyState():e.readyState)<4&&e.abort()};function xg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const wg=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.callQueue={}}var t,n;return t=e,(n=[{key:"getQueued",value:function(e,t){return this.callQueue[e+(t||"")]}},{key:"addToQueue",value:function(e,t,n){var r=this;r.callQueue[t+(n||"")]=e,e.always((function(){delete r.callQueue[t+(n||"")]}))}}])&&xg(t.prototype,n),e}());function Ig(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ng=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cancelCallbacks=[],this.deferred=void 0,this.request=void 0,this.otherCancellables=void 0,this.cancelled=!1,this.cancelPrevented=!1,this.deferred=t,this.request=n,this.otherCancellables=r}var t,n;return t=e,n=[{key:"preventCancel",value:function(){return this.cancelPrevented=!0,this}},{key:"cancel",value:function(){if(this.cancelPrevented||this.cancelled||"pending"!==this.state())return Ag().Deferred().resolve().promise();this.cancelled=!0,this.request&&_g(this.request),this.state&&"pending"===this.state()&&this.deferred.reject&&this.deferred.reject();var e=[];for(this.otherCancellables&&this.otherCancellables.forEach((function(t){t.cancel&&e.push(t.cancel())}));this.cancelCallbacks.length;){var t=this.cancelCallbacks.pop();t&&t()}return Ag().when(e)}},{key:"onCancel",value:function(e){return this.cancelled?e():this.cancelCallbacks.push(e),this}},{key:"then",value:function(e){return this.deferred.then(e),this}},{key:"done",value:function(e){return this.deferred.done(e),this}},{key:"fail",value:function(e){return this.deferred.fail(e),this}},{key:"always",value:function(e){return this.deferred.always(e),this}},{key:"pipe",value:function(e){return this.deferred.pipe(e),this}},{key:"progress",value:function(e){return this.deferred.progress(e),this}},{key:"state",value:function(){return this.deferred.state&&this.deferred.state()}}],n&&Ig(t.prototype,n),e}();const Lg={clearCaches:function(){var e=[],t=function(t){e.push(Uh().createInstance({name:t+window.LOGGED_USERNAME}).clear())};t("HueContextCatalog_"),t("HueDataCatalog_"),t("HueDataCatalog_hive_"),t("HueDataCatalog_hive_multiTable_"),t("HueDataCatalog_impala_"),t("HueDataCatalog_impala_multiTable_"),Promise.all(e).then((function(){console.log("Done! Refresh the browser.")}))}};function Og(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function kg(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Og(o,r,i,s,a,"next",e)}function a(e){Og(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Dg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Fg=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queueManager=wg,this.cancelActiveRequest=_g,th("assist.clear.git.cache",(function(){ah(t.getAssistCacheIdentifier({sourceType:"git"}),{})})),th("assist.clear.collections.cache",(function(){ah(t.getAssistCacheIdentifier({sourceType:"collections"}),{})})),th("assist.clear.hbase.cache",(function(){ah(t.getAssistCacheIdentifier({sourceType:"hbase"}),{})})),th("assist.clear.document.cache",(function(){ah(t.getAssistCacheIdentifier({sourceType:"document"}),{})}));var n=function(){t.clearDbCache({sourceType:"hive",clearAll:!0}),t.clearDbCache({sourceType:"impala",clearAll:!0}),ah(t.getAssistCacheIdentifier({sourceType:"hdfs"}),{}),ah(t.getAssistCacheIdentifier({sourceType:"adls"}),{}),ah(t.getAssistCacheIdentifier({sourceType:"abfs"}),{}),ah(t.getAssistCacheIdentifier({sourceType:"git"}),{}),ah(t.getAssistCacheIdentifier({sourceType:"s3"}),{}),ah(t.getAssistCacheIdentifier({sourceType:"collections"}),{}),ah(t.getAssistCacheIdentifier({sourceType:"hbase"}),{}),ah(t.getAssistCacheIdentifier({sourceType:"document"}),{})};th("assist.clear.all.caches",n),window.performance&&window.performance.navigation&&1===window.performance.navigation.type&&-1!==location.href.indexOf("/metastore")&&n()}var t,n,r,i,o,s,a,c,l,u,h,d,p,f;return t=e,n=[{key:"clearStorageCache",value:function(e){ah(this.getAssistCacheIdentifier({sourceType:e}),{})}},{key:"hasExpired",value:function(e,t){return void 0!==Lg&&void 0!==Lg.cacheTimeout?(new Date).getTime()-e>Lg.cacheTimeout:(new Date).getTime()-e>CACHEABLE_TTL[t]}},{key:"fetchCached",value:function(e){var t=this.getAssistCacheIdentifier(e),n=sh(t)||{},r=e.hash?e.url+e.hash:e.url;if(e.refreshCache||void 0===n[r]||this.hasExpired(n[r].timestamp,e.cacheType||"default"))return void 0!==e.editor&&null!==e.editor&&e.editor.showSpinner(),e.fetchFunction((function(e){n[r]={timestamp:(new Date).getTime(),data:e};try{ah(t,n)}catch(e){}}));e.promise&&e.promise.resolve(n[r].data),e.successCallback(n[r].data)}},{key:"getAssistCacheIdentifier",value:function(e){return"hue.assist."+(e.cacheType||"default")+"."+e.sourceType}},{key:"saveSnippetToFile",value:function(e,t){Ag().post("/filebrowser/save",e,(function(e){void 0!==t.successCallback&&t.successCallback(e)}),"json").fail(Cg(t))}},{key:"fetchUsersAndGroups",value:function(e){Ag().ajax({method:"GET",url:"/desktop/api/users/autocomplete",data:e.data||{},contentType:"application/json"}).done((function(t){e.successCallback(t)})).fail((function(t){e.errorCallback(t)}))}},{key:"fetchUsersByIds",value:function(e){Ag().ajax({method:"GET",url:"/desktop/api/users",data:{userids:e.userids},contentType:"application/json"}).done((function(t){e.successCallback(t)})).fail((function(t){e.errorCallback(t)}))}},{key:"fetchTopo",value:function(e){var t="/desktop/topo/"+e.location;return Rg(t,void 0,e)}},{key:"fetchStoragePreview",value:function(e){var t;t="s3"===e.type?Md:"adls"===e.type?Dd:"abfs"===e.type?Fd:kd;var n=e.path.concat();n.length&&"/"===n[0]&&n.shift(),t+=n.join("/").replace(/#/g,"%23")+"?compression=none&mode=text",t+="&offset="+(e.offset||0),t+="&length="+(e.length||118784);var r=Ag().Deferred();return Ag().ajax({dataType:"json",url:t,success:function(t){Tg(t)?r.reject(Cg(e)(t)):r.resolve(t)},fail:r.reject}),r.promise()}},{key:"fetchHdfsPath",value:function(e){e.pathParts.length>0&&("/"===e.pathParts[0]||""===e.pathParts[0])&&e.pathParts.shift();var t=kd+encodeURI(e.pathParts.join("/"))+"?format=json&sortby=name&descending=false&pagesize="+(e.pageSize||500)+"&pagenum="+(e.page||1);return e.filter&&(t+="&filter="+e.filter),this.fetchCached(Ag().extend({},e,{sourceType:"hdfs",url:t,fetchFunction:function(n){if(0!==e.timeout)return Ag().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Tg(t)||void 0===t.files||null===t.files?Cg(e)(t):(t.files.length>2&&!e.filter&&n(t),e.successCallback(t))}}).fail(Cg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()}));Cg(e)({status:-1})}}))}},{key:"fetchAdlsPath",value:function(e){e.pathParts.shift();var t=Dd+encodeURI(e.pathParts.join("/"))+"?format=json&sortby=name&descending=false&pagesize="+(e.pageSize||500)+"&pagenum="+(e.page||1);return e.filter&&(t+="&filter="+e.filter),this.fetchCached(Ag().extend({},e,{sourceType:"adls",url:t,fetchFunction:function(n){if(0!==e.timeout)return Ag().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Tg(t)||void 0===t.files||null===t.files?Cg(e)(t):(t.files.length>2&&!e.filter&&n(t),e.successCallback(t))}}).fail(Cg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()}));Cg(e)({status:-1})}}))}},{key:"fetchAbfsPath",value:function(e){var t=Fd+encodeURI(e.pathParts.join("/"))+"?format=json&sortby=name&descending=false&pagesize="+(e.pageSize||500)+"&pagenum="+(e.page||1);return e.filter&&(t+="&filter="+e.filter),this.fetchCached(Ag().extend({},e,{sourceType:"abfs",url:t,fetchFunction:function(n){if(0!==e.timeout)return Ag().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Tg(t)||void 0===t.files||null===t.files?Cg(e)(t):(t.files.length>2&&!e.filter&&n(t),e.successCallback(t))}}).fail(Cg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()}));Cg(e)({status:-1})}}))}},{key:"fetchGitContents",value:function(e){var t="/desktop/api/vcs/contents/?path="+encodeURI(e.pathParts.join("/"))+"&fileType="+e.fileType;this.fetchCached(Ag().extend({},e,{sourceType:"git",url:t,fetchFunction:function(n){0!==e.timeout?Ag().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Tg(t)?Cg(e)(t):"dir"===t.fileType&&void 0!==t.files&&null!==t.files?(t.files.length>2&&n(t),e.successCallback(t)):"file"===t.fileType&&void 0!==t.content&&null!==t.content&&e.successCallback(t)}}).fail(Cg(e)):Cg(e)({status:-1})}}))}},{key:"fetchS3Path",value:function(e){e.pathParts.shift();var t=Md+encodeURI(e.pathParts.join("/"))+"?format=json&sortby=name&descending=false&pagesize="+(e.pageSize||500)+"&pagenum="+(e.page||1);e.filter&&(t+="&filter="+e.filter),this.fetchCached(Ag().extend({},e,{sourceType:"s3",url:t,fetchFunction:function(n){0!==e.timeout?Ag().ajax({dataType:"json",url:t,timeout:e.timeout,success:function(t){t.error||Tg(t)||void 0===t.files||null===t.files?Cg(e)(t):(t.files.length>2&&!e.filter&&n(t),e.successCallback(t))}}).fail(Cg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()})):Cg(e)({status:-1})}}))}},{key:"fetchFavoriteApp",value:(f=kg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){Rg("/desktop/api2/user_preferences/default_app").done(e).fail(t)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return f.apply(this,arguments)})},{key:"setFavoriteAppAsync",value:(p=kg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){Sg("/desktop/api2/user_preferences/default_app",t).done(e).fail(n)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return p.apply(this,arguments)})},{key:"fetchDashboardTerms",value:function(e){0!==e.timeout?Ag().ajax({dataType:"json",url:"/dashboard/get_terms",type:"POST",data:{collection:Gh.mapping.toJSON({id:"",name:e.collectionName,engine:e.engine||"solr"}),analysis:Gh.mapping.toJSON({name:e.fieldName,terms:{prefix:e.prefix||""}})},timeout:e.timeout,success:function(t){t.error||Tg(t)||0!==t.status?Cg(e)(t):e.successCallback(t)}}).fail(Cg(e)).always(e.alwaysCallback):Cg(e)({status:-1})}},{key:"fetchDashboardStats",value:function(e){0!==e.timeout?Ag().ajax({dataType:"json",url:"/dashboard/get_stats",type:"POST",data:{collection:Gh.mapping.toJSON({id:"",name:e.collectionName,engine:e.engine||"solr"}),analysis:Gh.mapping.toJSON({name:e.fieldName,stats:{facet:""}}),query:Gh.mapping.toJSON({qs:[{q:""}],fqs:[]})},timeout:e.timeout,success:function(t){t.error||Tg(t)||0!==t.status?1===t.status?e.notSupportedCallback(t):Cg(e)(t):e.successCallback(t)}}).fail(Cg(e)).always(e.alwaysCallback):Cg(e)({status:-1})}},{key:"fetchHBase",value:function(e){var t="getClusters";""!==e.parent.name&&(t="getTableList/"+e.parent.name);var n="/hbase/api/"+t;this.fetchCached(Ag().extend({},e,{sourceType:"hbase",url:n,fetchFunction:function(t){0!==e.timeout?Ag().ajax({dataType:"json",url:n,timeout:e.timeout,success:function(n){n.error||Tg(n)?Cg(e)(n):(t(n),e.successCallback(n))}}).fail(Cg(e)).always((function(){void 0!==e.editor&&null!==e.editor&&e.editor.hideSpinner()})):Cg(e)({status:-1})}}))}},{key:"fetchResourceStats",value:function(e){var t=arguments,n=function(t){var n=Date.now();return Sg("/metadata/api/prometheus/query",{query:Gh.mapping.toJSON(t),start:Math.floor((n-e.pastMs)/1e3),end:Math.floor(n/1e3),step:e.stepMs/1e3})},r=Ag().Deferred();return Ag().when(n("round((go_memstats_alloc_bytes / go_memstats_sys_bytes) * 100)"),n("round((go_memstats_alloc_bytes / go_memstats_sys_bytes) * 100)"),n("round((go_memstats_alloc_bytes / go_memstats_sys_bytes) * 100)"),n('impala_queries_count{datawarehouse="'+e.clusterName+'"}'),n('impala_queries{datawarehouse="'+e.clusterName+'"}')).done((function(){for(var e={},n=0;n<t.length;n++){var i=t[n];if(i.data.result[0])for(var o=i.data.result[0].values,s=0;s<o.length;s++)e[o[s][0]]||(e[o[s][0]]=[1e3*o[s][0],0,0,0,0,0]),e[o[s][0]][n+1]=parseFloat(o[s][1])}var a=[];Object.keys(e).forEach((function(t){a.push(e[t])})),a.sort((function(e,t){return e[0]-t[0]})),r.resolve(a)})).fail(r.reject),r.promise()}},{key:"fetchConfigurations",value:function(e){Rg(Pd,{},e)}},{key:"saveGlobalConfiguration",value:function(e){Sg(Pd,{configuration:Gh.mapping.toJSON(e.configuration)},e)}},{key:"saveConfiguration",value:function(e){Sg("/desktop/api/configurations/save/",{app:e.app,properties:Gh.mapping.toJSON(e.properties),is_default:e.isDefault,group_id:e.groupId,user_id:e.userId},e)}},{key:"fetchDocuments",value:function(e){var t="";e.uuid&&(t+=e.uuid),e.type&&"all"!==e.type&&(t+=e.type);var n=this.queueManager.getQueued(Od,t),r=void 0===n;if(r&&(n=Ag().Deferred(),this.queueManager.addToQueue(n,Od,t)),n.done(e.successCallback).fail(Cg(e)),r){var i={uuid:e.uuid};e.type&&"all"!==e.type&&(i.type=["directory",e.type]),Ag().ajax({url:Od,data:i,traditional:!0,success:function(e){Tg(e)?n.reject(e):n.resolve(e)}}).fail(n.reject)}}},{key:"searchDocuments",value:function(e){return Ag().ajax({url:"/desktop/api2/docs/",data:{uuid:e.uuid,text:e.query,type:e.type,page:e.page,limit:e.limit,include_trashed:e.include_trashed},success:function(t){Tg(t)?Cg(e)(t):e.successCallback(t)}}).fail(Cg(e))}},{key:"fetchDocument",value:function(e){var t=Ag().Deferred(),n=Ag().ajax({url:Od,data:{uuid:e.uuid,data:!!e.fetchContents,dependencies:e.dependencies},success:function(n){Tg(n)?t.reject(Cg({silenceErrors:e.silenceErrors})):t.resolve(n)}}).fail(Cg({silenceErrors:e.silenceErrors,errorCallback:t.reject}));return new Ng(t,n)}},{key:"fetchDocumentAsync",value:(d=kg(regeneratorRuntime.mark((function e(t){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){n.fetchDocument(t).done(e).fail(r)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return d.apply(this,arguments)})},{key:"setLinkSharingPermsAsync",value:(h=kg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){Sg("/desktop/api2/doc/share/link",{uuid:JSON.stringify(t.uuid),perm:JSON.stringify(t.perm)}).done(e).fail(n)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return h.apply(this,arguments)})},{key:"createDocumentsFolder",value:function(e){Sg(Od+"mkdir",{parent_uuid:Gh.mapping.toJSON(e.parentUuid),name:Gh.mapping.toJSON(e.name)},e)}},{key:"updateDocument",value:function(e){Sg(Od+"update",{uuid:Gh.mapping.toJSON(e.uuid),name:e.name},e)}},{key:"uploadDocument",value:function(e){Ag().ajax({url:Od+"import",type:"POST",success:function(t){Tg(t)?Cg(e)(t):e.successCallback(t)},xhr:function(){var t=Ag().ajaxSettings.xhr();return t.upload&&e.progressHandler&&t.upload.addEventListener("progress",e.progressHandler,!1),t},dataType:"json",data:e.formData,cache:!1,contentType:!1,processData:!1}).fail(Cg(e))}},{key:"moveDocument",value:function(e){Sg(Od+"move",{source_doc_uuid:Gh.mapping.toJSON(e.sourceId),destination_doc_uuid:Gh.mapping.toJSON(e.destinationId)},e)}},{key:"deleteDocument",value:function(e){Sg(Od+"delete",{uuid:Gh.mapping.toJSON(e.uuid),skip_trash:Gh.mapping.toJSON(e.skipTrash||!1)},e)}},{key:"copyDocument",value:function(e){Sg(Od+"copy",{uuid:Gh.mapping.toJSON(e.uuid)},e)}},{key:"restoreDocument",value:function(e){Sg(Od+"restore",{uuids:Gh.mapping.toJSON(e.uuids)},e)}},{key:"clearDbCache",value:function(e){var t=this.getAssistCacheIdentifier(e);if(e.clearAll)ah(t,{});else{var n=Ld;e.databaseName&&(n+=e.databaseName+"/"),e.tableName&&(n+=e.tableName+"/"),e.fields&&(n+=e.fields.length>0?"/"+e.fields.join("/"):"");var r=sh(t)||{};delete r[n],sh(t,r)}}},{key:"invalidateSourceMetadata",value:function(e){var t=Ag().Deferred();if("impala"===e.sourceType&&("invalidate"===e.invalidate||"invalidateAndFlush"===e.invalidate)){var n={flush_all:"invalidateAndFlush"===e.invalidate,cluster:JSON.stringify(e.compute)};e.path&&e.path.length>0&&(n.database=e.path[0]),e.path&&e.path.length>1&&(n.table=e.path[1]);var r=Sg("/impala/api/invalidate",n,e).done(t.resolve).fail(t.reject);return new Ng(t,r)}return t.resolve().promise()}},{key:"fetchPartitions",value:function(e){var t=Ag().Deferred(),n=Ag().post("/metastore/table/"+e.path.join("/")+"/partitions",{format:"json",cluster:JSON.stringify(e.compute)}).done((function(n){Tg(n)?Cg({silenceErrors:e.silenceErrors,errorCallback:t.reject})(n):(n||(n={}),n.hueTimestamp=Date.now(),t.resolve(n))})).fail((function(n){n&&n.responseText&&-1!==n.responseText.indexOf("is not partitioned")?t.resolve({hueTimestamp:Date.now(),partition_keys_json:[],partition_values_json:[]}):Cg({silenceErrors:e.silenceErrors,errorCallback:t.reject})(n)}));return new Ng(t,n)}},{key:"clearNotebookHistory",value:function(e){var t={notebook:e.notebookJson,doc_type:e.docType,is_notification_manager:e.isNotificationManager};return Sg("/notebook/api/clear_history",t)}},{key:"closeNotebook",value:function(e){var t={notebook:e.notebookJson,editorMode:e.editorMode};return Sg("/notebook/api/notebook/close",t)}},{key:"checkStatus",value:(u=kg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r={notebook:t.notebookJson};Ag().post({url:"/notebook/api/check_status",data:r}).done((function(r){r&&void 0!==r.status?e(r):Tg(r)?n(Cg(t)(r)):n()})).fail(Cg(t))})));case 1:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})},{key:"getExternalStatement",value:function(e){var t={notebook:e.notebookJson,snippet:e.snippetJson};return Sg("/notebook/api/get_external_statement",t)}},{key:"fetchResultSize",value:function(e){var t={notebook:e.notebookJson,snippet:e.snippetJson};return Sg("/notebook/api/fetch_result_size",t)}},{key:"getLogs",value:function(e){var t={notebook:e.notebookJson,snippet:e.snippetJson,from:e.from,jobs:e.jobsJson,full_log:e.fullLog,operationId:e.executable.operationId};return Sg("/notebook/api/get_logs",t)}},{key:"saveNotebook",value:(l=kg(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={notebook:t.notebookJson,editorMode:t.editorMode},e.abrupt("return",new Promise((function(e,t){Sg("/notebook/api/notebook/save",n).then(e).catch(t)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return l.apply(this,arguments)})},{key:"getHistory",value:(c=kg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){Ag().get("/api/editor/get_history",{doc_type:t.type,limit:t.limit||50,page:t.page||1,doc_text:t.docFilter,is_notification_manager:t.isNotificationManager}).done((function(r){Tg(r)?n(Cg(t)(r)):e(r)})).fail(n)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)})},{key:"explainAsync",value:(a=kg(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.snippet.parentNotebook.toContextJson();case 2:return e.t0=e.sent,e.t1=t.snippet.toContextJson(),n={notebook:e.t0,snippet:e.t1},e.abrupt("return",new Promise((function(e,r){Sg("/notebook/api/explain",n,t).done((function(t){e(t.explanation)})).fail(r)})));case 6:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"createGistAsync",value:(s=kg(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={statement:t.statement,doc_type:t.doc_type,name:t.name,description:t.description},e.abrupt("return",new Promise((function(e,r){Sg(Bd+"create",n,t).done((function(t){e(t.link)})).fail(r)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"sendSlackMessageAsync",value:(o=kg(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={channel:t.channel,message:t.message},e.abrupt("return",new Promise((function(e,r){Sg("/desktop/slack/api/message/send",n,t).done(e).fail(r)})));case 2:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"getSlackChannelsAsync",value:(i=kg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){Rg("/desktop/slack/api/channels/get",{},t).done((function(t){e(t.channels)})).fail(n)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"fetchQueryExecutionAnalysis",value:function(e){var t=Ag().Deferred(),n=0,r=[],i=new Ng(t,void 0,r);return function o(){10!==n?(n++,r.pop(),r.push(t,Sg("/impala/api/query/alanize",{cluster:JSON.stringify(e.compute),query_id:'"'+e.queryId+'"'},e).done((function(e){if(e&&e.data)t.resolve(e.data);else{var r=window.setTimeout((function(){o()}),1e3+500*n);i.onCancel((function(){window.clearTimeout(r)}))}})).fail(t.reject))):t.reject()}(),i}},{key:"fixQueryExecutionAnalysis",value:function(e){var t=Ag().Deferred(),n=Sg("/impala/api/query/alanize/fix",{cluster:JSON.stringify(e.compute),fix:JSON.stringify(e.fix),start_time:e.start_time},{silenceErrors:e.silenceErrors,successCallback:function(e){0===e.status?t.resolve(e.details):t.reject()},errorCallback:t.reject});return new Ng(t,n)}},{key:"fetchQueryExecutionStatistics",value:function(e){var t=Ag().Deferred(),n=Sg("/impala/api/query/alanize/metrics",{cluster:JSON.stringify(e.cluster),query_id:'"'+e.queryId+'"'},{silenceErrors:e.silenceErrors,successCallback:function(e){0===e.status?t.resolve(e.data):t.reject()},errorCallback:t.reject});return new Ng(t,n)}},{key:"fetchHueConfigAsync",value:(r=kg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,t){Ag().get("/desktop/api2/get_hue_config").done((function(n){n||-1!==n.status?e(n):t(n.message)})).fail(t)})));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"fetchHueDocsInteractive",value:function(e){var t=Ag().Deferred(),n=Ag().post(Ud,{query_s:Gh.mapping.toJSON(e),limit:50,sources:'["documents"]'}).done((function(e){0===e.status?t.resolve(e):t.reject(e)})).fail(t.reject);return new Ng(t,n)}},{key:"fetchNavEntitiesInteractive",value:function(e){var t=Ag().Deferred(),n=Ag().post(Ud,{query_s:Gh.mapping.toJSON(e.query),field_facets:Gh.mapping.toJSON(e.facets||[]),limit:50,sources:'["sql", "hdfs", "s3"]'}).done((function(e){0===e.status?t.resolve(e):t.reject(e)})).fail(t.reject);return new Ng(t,n)}},{key:"formatSql",value:function(e){var t=Ag().Deferred(),n=Sg("/notebook/api/format",{statements:e.statements},{silenceErrors:e.silenceErrors,successCallback:t.resolve,errorCallback:t.reject});return new Ng(t,n)}},{key:"createGist",value:function(e){var t=Ag().Deferred(),n=Sg(Bd+"create",{statement:e.statement,doc_type:e.doc_type,name:e.name,description:e.description},{silenceErrors:e.silenceErrors,successCallback:t.resolve,errorCallback:t.reject});return new Ng(t,n)}}],n&&Dg(t.prototype,n),e}();const Mg=new Fg;function Pg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Bg={adls:{apiHelperFetchFunction:"fetchAdlsPath",dblClickPubSubId:"assist.dblClickAdlsItem"},abfs:{apiHelperFetchFunction:"fetchAbfsPath",dblClickPubSubId:"assist.dblClickAbfsItem"},hdfs:{apiHelperFetchFunction:"fetchHdfsPath",dblClickPubSubId:"assist.dblClickHdfsItem"},s3:{apiHelperFetchFunction:"fetchS3Path",dblClickPubSubId:"assist.dblClickS3Item"}},Ug=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this;n.source=t.source,n.originalType=t.originalType,n.definition=t.definition,n.parent=t.parent,n.rootPath=t.rootPath||"",n.path="",null!==n.parent&&(n.path=n.parent.path,"/"===n.parent.path||/\/$/.test(n.path)||(n.path+="/")),n.path+=n.definition.name,n.abfsPath=(/^\//.test(n.path)?"abfs:/":"abfs://")+n.path,n.currentPage=1,n.hasMorePages=!0,n.preview=Gh.observable(),n.contextPopoverVisible=Gh.observable(!1),n.filter=Gh.observable("").extend({rateLimit:400}),n.filter.subscribe((function(){n.currentPage=1,n.hasMorePages=!0,n.loadEntries()})),n.entries=Gh.observableArray([]),n.loaded=!1,n.loading=Gh.observable(!1),n.loadingMore=Gh.observable(!1),n.errorText=Gh.observable(),n.hasErrors=Gh.observable(!1),n.open=Gh.observable(!1),n.open.subscribe((function(e){e&&0===n.entries().length&&("dir"===n.definition.type?n.loadEntries():n.loadPreview())})),n.hasEntries=Gh.pureComputed((function(){return n.entries().length>0}))}var t,n,r;return t=e,r=[{key:"getEntry",value:function(t,n){var r=Ag().Deferred(),i=t.match(/^([^:]+):\/(\/.*)\/?/i);n=(n=(n=(n=i?i[1]:n||"hdfs").replace(/s3.*/i,"s3")).replace(/adl.*/i,"adls")).replace(/abfs.*/i,"abfs");var o=zd((function(e){return e.type===n}));if(o){var s=Xd(o),a=new e({source:o,rootPath:s,originalType:i&&i[1],definition:{name:s,type:"dir"},parent:null,apiHelper:Mg});if("abfs"===n||"adls"===n){var c=t.match(/^([^:]+):\/(\/((\w+)@)?[\w]+([\-\.]{1}\w+)*\.[\w]*)?(\/.*)?\/?/i);t=(c?c[6]||"":t).replace(/(?:^\/)|(?:\/$)/g,"").split("/"),c&&c[4]&&t.unshift(c[4])}else t=(i?i[2]:t).replace(/(?:^\/)|(?:\/$)/g,"").split("/");a.loadDeep(t,r.resolve)}else r.reject();return r.promise()}}],(n=[{key:"dblClick",value:function(){eh(Bg[self.source.type].dblClickPubSubId,this)}},{key:"loadPreview",value:function(){var e=this;e.loading(!0),Mg.fetchStoragePreview({path:e.getHierarchy(),type:e.source.type,silenceErrors:!0}).done((function(t){e.preview(t)})).fail((function(t){e.hasErrors(!0),e.errorText(t)})).always((function(){e.loading(!1)}))}},{key:"loadEntries",value:function(t){var n=this;n.loading()||(n.loading(!0),n.hasErrors(!1),Mg[Bg[n.source.type].apiHelperFetchFunction]({pageSize:100,page:n.currentPage,filter:n.filter().trim()?n.filter():void 0,pathParts:n.getHierarchy(),rootPath:n.rootPath,successCallback:function(r){n.hasMorePages=r.page.next_page_number>n.currentPage;var i=r.files.filter((function(e){return"."!==e.name&&".."!==e.name}));n.entries(i.map((function(t){return new e({originalType:n.originalType,rootPath:n.rootPath,source:n.source,definition:t,parent:n})}))),n.loaded=!0,n.loading(!1),n.hasErrors(!!r.s3_listing_not_allowed),n.errorText(r.s3_listing_not_allowed),t&&t()},errorCallback:function(e){n.hasErrors(!0),n.errorText(e),n.loading(!1),t&&t()}}))}},{key:"goHome",value:function(){eh("assist.storage.go.home")}},{key:"loadDeep",value:function(e,t){var n=this;if(0!==e.length){if(this.rootPath){var r=e.join("/").replace(new RegExp("^"+this.rootPath,""),"");e=r.split("/")}var i=e.shift(),o=0,s=function r(){var s=n.entries().filter((function(e){return e.definition.name===i})),a=n.entries().length>0&&n.entries()[n.entries().length-1].definition.name.localeCompare(i)>0;1===s.length?s[0].loadDeep(e,t):!a&&n.hasMorePages&&o<50?(o++,n.fetchMore(r,(function(){t(n)}))):t(n)};n.loaded?s():n.loadEntries(s)}else t(n)}},{key:"getHierarchy",value:function(){for(var e=[],t=this;t;){if(!t.parent&&t.definition.name){var n=t.definition.name.split("/").filter(Boolean);n.reverse(),e=e.concat(n)}else t.definition.name&&e.push(t.definition.name);t=t.parent}return e.reverse(),e}},{key:"toggleOpen",value:function(e,t){var n=this;"file"!==n.definition.type?(n.open(!n.open()),".."===n.definition.name?n.parent.parent&&eh("assist.selectStorageEntry",n.parent.parent):eh("assist.selectStorageEntry",n)):t.ctrlKey||t.metaKey||2===t.which?window.open("/hue"+n.definition.url,"_blank"):eh("open.link",n.definition.url)}},{key:"fetchMore",value:function(t,n){var r=this;r.hasMorePages&&!r.loadingMore()&&(r.currentPage++,r.loadingMore(!0),r.hasErrors(!1),Mg[Bg[r.source.type].apiHelperFetchFunction]({pageSize:100,page:r.currentPage,filter:r.filter().trim()?r.filter():void 0,pathParts:r.getHierarchy(),successCallback:function(n){r.hasMorePages=n.page.next_page_number>r.currentPage;var i=n.files.filter((function(e){return"."!==e.name&&".."!==e.name}));r.entries(r.entries().concat(i.map((function(t){return new e({originalType:r.originalType,rootPath:r.rootPath,source:r.source,definition:t,parent:r})})))),r.loadingMore(!1),t&&t()},errorCallback:function(){r.hasErrors(!0),n&&n()}}))}},{key:"showContextPopover",value:function(e,t,n){var r,i,o,s=Ag()(t.target),a=s.offset();e.contextPopoverVisible(!0),n&&(a.left+=n.left,a.top+=n.top),eh("context.popover.show",{data:{type:"storageEntry",storageEntry:e},pinEnabled:!0,orientation:"right",source:{element:t.target,left:a.left,top:a.top-3,right:a.left+s.width()+3,bottom:a.top+s.height()-3}}),r=function(){e.contextPopoverVisible(!1)},o=Zu("context.popover.hidden",(function(e){r(e),o.remove()}),i)}},{key:"openInImporter",value:function(){eh("open.in.importer",this.definition.path)}}])&&Pg(t.prototype,n),r&&Pg(t,r),e}();const $g=Ug;var Hg=i(8957);function Gg(e){return function(e){if(Array.isArray(e))return Wg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wg(e,t):void 0}}(e)||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 Wg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vg(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function jg(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Vg(o,r,i,s,a,"next",e)}function a(e){Vg(o,r,i,s,a,"throw",e)}s(void 0)}))}}function qg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var zg="editor.refresh.statement.locations",Kg="editor.active.statement.changed",Yg="get.active.editor.locations",Xg="hive",Jg="impala",Qg="sparksql",Zg=50,em=(0,oh.Z)("Right-click to expand with columns"),tm=(0,oh.Z)("Right-click for details"),nm=function(e,t){var n=t.row+1,r=t.column;return e.first_line<n&&n<e.last_line||e.first_line===n&&n===e.last_line&&e.first_column<=r&&r<e.last_column||e.first_line===n&&n<e.last_line&&r>=e.first_column||e.first_line<n&&n===e.last_line&&r<e.last_column},rm=function(e,t){return e.row===t.row&&e.column===t.column},im=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=void 0,this.editorId=void 0,this.executor=void 0,this.activeLocationHighlighting=void 0,this.temporaryOnly=void 0,this.subTracker=new ih,this.availableDatabases=new Set,this.changeThrottle=-1,this.verifyThrottle=-1,this.updateTimeout=-1,this.cursorChangePaused=!1,this.sqlSyntaxWorkerSub=void 0,this.sqlReferenceProvider=void 0,this.activeStatement=void 0,this.lastKnownStatements={editorChangeTime:0,statements:[]},this.editor=t.editor,this.editorId=t.editorId,this.executor=t.executor,this.activeLocationHighlighting=t.activeLocationHighlighting||"all",this.temporaryOnly=!!t.temporaryOnly,this.sqlReferenceProvider=t.sqlReferenceProvider,this.attachStatementLocator(),this.attachSqlWorker(),this.attachMouseListeners(),this.subTracker.subscribe(this.executor.connector,this.updateAvailableDatabases.bind(this)),this.subTracker.trackTimeout(this.changeThrottle),this.subTracker.trackTimeout(this.verifyThrottle),this.subTracker.trackTimeout(this.updateTimeout),this.updateAvailableDatabases()}var t,n,r,i,o;return t=e,n=[{key:"updateAvailableDatabases",value:(o=jg(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window.clearTimeout(this.updateTimeout),this.executor.namespace()&&this.executor.compute()){e.next=4;break}return this.updateTimeout=window.setTimeout(this.updateAvailableDatabases.bind(this),300),e.abrupt("return");case 4:return e.prev=4,e.next=7,Wf.getChildren({connector:this.executor.connector(),namespace:this.executor.namespace(),compute:this.executor.compute(),path:[]});case 7:t=e.sent,this.availableDatabases.clear(),t.forEach((function(e){n.availableDatabases.add(e.name.toLowerCase())})),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(4);case 14:case"end":return e.stop()}}),e,this,[[4,12]])}))),function(){return o.apply(this,arguments)})},{key:"isSqlDialect",value:function(){return this.executor.connector().is_sql}},{key:"getDialect",value:function(){return this.executor.connector().dialect}},{key:"attachMouseListeners",value:function(){var e=this,t=_u.require("ace/tooltip").Tooltip,n=_u.require("ace/range").Range,r=new t(this.editor.container),i=-1,o=!1,s=null,a=[],c=!1,l=function(){clearTimeout(i),r.hide()},u=function(){for(l();a.length>(c?1:0);){var t=a.shift();void 0!==t&&e.editor.session.removeMarker(t)}},h=function(t){var r;return r="function"===t.type?new n(t.location.first_line-1,t.location.first_column-1,t.location.last_line-1,t.location.last_column):new n(t.location.first_line-1,t.location.first_column-1,t.location.last_line-1,t.location.last_column-1),a.push(e.editor.session.addMarker(r,"hue-ace-location")),r};this.subTracker.subscribe("context.popover.shown",(function(){l(),c=!0,o=!0})),this.subTracker.subscribe("context.popover.hidden",(function(){o=!1,u(),c=!1}));var d=this.editor.on("mousemove",(function(t){if(clearTimeout(i),e.editor.selection.getRange().isEmpty()){var n=e.editor.renderer.screenToTextCoordinates(t.clientX+5,t.clientY);if(e.editor.renderer.screenToTextCoordinates(t.clientX+15,t.clientY).column!==n.column){var a=e.editor.session.getTokenAt(n.row,n.column);"all"!==e.activeLocationHighlighting||null===a||a.notFound||!a.parseLocation||o||"alias"===a.parseLocation.type?null!==a&&a.notFound?i=window.setTimeout((function(){if(a.notFound&&a.syntaxError){var t;t=a.syntaxError.expected.length>0?(0,oh.Z)("Did you mean")+' "'+a.syntaxError.expected[0].text+'"?':(0,oh.Z)("Could not find")+' "'+(a.qualifiedIdentifier||a.value)+'"';var i=e.editor.renderer.textToScreenCoordinates(n.row,a.start||0);r.show(t,i.pageX,i.pageY+e.editor.renderer.lineHeight+3)}}),500):null!==a&&a.syntaxError?i=window.setTimeout((function(){var t;if(a.syntaxError&&(a.syntaxError.expected.length>0?t=(0,oh.Z)("Did you mean")+' "'+a.syntaxError.expected[0].text+'"?':a.syntaxError.expectedStatementEnd&&(t=(0,oh.Z)("Expected end of statement")),t)){var i=e.editor.renderer.textToScreenCoordinates(n.row,a.start||0);r.show(t,i.pageX,i.pageY+e.editor.renderer.lineHeight+3)}}),500):l():i=window.setTimeout((function(){if(a.parseLocation){var t,i=e.editor.renderer.textToScreenCoordinates(n.row,a.start||0),o="asterisk"===a.parseLocation.type?em:tm;if("column"===a.parseLocation.type){var s=Gg(a.parseLocation.identifierChain||[]),c=s.pop();if(s.length>0&&c&&c.name){var l=c.name.toLowerCase();Wf.getEntry({namespace:e.executor.namespace(),compute:e.executor.compute(),connector:e.executor.connector(),temporaryOnly:e.temporaryOnly,path:s.map((function(e){return e.name}))}).then((function(e){e.getSourceMeta({cachedOnly:!0,silenceErrors:!0}).then((function(e){e&&e.extended_columns&&e.extended_columns.every((function(e){return e.name.toLowerCase()!==l||(t=(e.type.match(/^[^<]*/g)||["T"])[0],!1)}))}))}))}}if(a.parseLocation.identifierChain){var u=a.parseLocation.identifierChain.map((function(e){return e.name})).join(".");t&&(u+=" ("+t+")"),o=u+" - "+o}else a.parseLocation.function&&(o=a.parseLocation.function+" - "+o);r.show(o,i.pageX,i.pageY+e.editor.renderer.lineHeight+3)}}),500),s!==a&&(u(),"all"===e.activeLocationHighlighting&&null!==a&&!a.notFound&&a.parseLocation&&-1===["alias","whereClause","limitClause","selectList"].indexOf(a.parseLocation.type)&&h(a.parseLocation),s=a)}else u(),s=null}}));this.subTracker.addDisposable({dispose:function(){return e.editor.off("mousemove",d)}});var p=this.editor.on("input",(function(){u(),s=null}));this.subTracker.addDisposable({dispose:function(){return e.editor.off("input",p)}});var f=function(){u(),clearTimeout(i),r.hide(),s=null};this.editor.container.addEventListener("mouseout",f),this.subTracker.addDisposable({dispose:function(){return e.editor.container.removeEventListener("mouseout",f)}});var g=function(t){var r=e.editor.selection.getRange();if(eh("context.popover.hide"),eh("sql.syntax.dropdown.hide"),r.isEmpty()){var i=e.editor.renderer.screenToTextCoordinates(t.clientX+5,t.clientY),o=e.editor.session.getTokenAt(i.row,i.column);if(o&&(o.parseLocation&&-1===["alias","whereClause","limitClause","selectList"].indexOf(o.parseLocation.type)||o.syntaxError)){var s=void 0;if(o.parseLocation&&("all"===e.activeLocationHighlighting||o.notFound)?s=h(o.parseLocation):o.syntaxError&&(s=new n(o.syntaxError.loc.first_line-1,o.syntaxError.loc.first_column,o.syntaxError.loc.last_line-1,o.syntaxError.loc.first_column+o.syntaxError.text.length)),!s)return;var a=e.editor.renderer.textToScreenCoordinates(s.start.row,s.start.column),c=e.editor.renderer.textToScreenCoordinates(s.end.row,s.end.column),l={left:a.pageX-3,top:a.pageY,right:c.pageX-3,bottom:c.pageY+e.editor.renderer.lineHeight};if(o.parseLocation&&o.parseLocation.identifierChain&&!o.notFound)o.parseLocation.resolveCatalogEntry({temporaryOnly:e.temporaryOnly}).then((function(t){eh("context.popover.show",{data:{type:"catalogEntry",catalogEntry:t},pinEnabled:!0,connector:e.executor.connector(),source:l})})).catch((function(){o.notFound=!0}));else if(o.parseLocation&&!o.notFound){var u=o.parseLocation;"file"===u.type&&u.path?$g.getEntry(u.path).then((function(t){t.open(!0),eh("context.popover.show",{data:{type:"storageEntry",storageEntry:t,editorLocation:u.location},connector:e.executor.connector(),pinEnabled:!0,source:l})})):eh("context.popover.show",{data:u,connector:e.executor.connector(),sourceType:e.executor.connector().dialect,namespace:e.executor.namespace(),compute:e.executor.compute(),defaultDatabase:e.executor.database(),pinEnabled:!0,source:l})}else o.syntaxError&&eh(Mu,{editorId:e.editorId,data:o.syntaxError,editor:e.editor,range:s,sourceType:e.executor.connector().dialect,defaultDatabase:e.executor.database(),source:l});return t.preventDefault(),!1}}};this.editor.container.addEventListener("contextmenu",g),this.subTracker.addDisposable({dispose:function(){return e.editor.container.removeEventListener("contextmenu",g)}})}},{key:"attachStatementLocator",value:function(){var e,t,n,r=this;this.changeThrottle=window.setTimeout(this.parseForStatements.bind(this),0),window.setTimeout(this.updateActiveStatement.bind(this),0),this.cursorChangePaused=!1;var i=this.editor.on("changeSelection",(function(){r.cursorChangePaused||(window.clearTimeout(r.changeThrottle),r.changeThrottle=window.setTimeout((function(){var i=r.editor.getCursorPosition();n&&n.row===i.row&&n.column===i.column||(eh("editor.cursor.position.changed",{editorId:r.editorId,position:i}),n=i);var o=r.editor.getSelectionRange().start,s=r.editor.getSelectionRange().end;!r.isSqlDialect()||e&&rm(e,o)&&t&&rm(t,s)||(r.updateActiveStatement(!0),e=o,t=s)}),100))}));this.subTracker.addDisposable({dispose:function(){return r.editor.off("changeSelection",i)}});var o=this.editor.on("change",(function(){r.isSqlDialect()&&(window.clearTimeout(r.changeThrottle),r.cursorChangePaused=!0,r.changeThrottle=window.setTimeout((function(){r.parseForStatements(),r.updateActiveStatement(),r.cursorChangePaused=!1}),500),r.editor.lastChangeTime=Date.now())}));this.subTracker.addDisposable({dispose:function(){return r.editor.off("change",o)}}),this.subTracker.subscribe(zg,(function(e){e===r.editorId&&r.refreshStatementLocations()}))}},{key:"updateActiveStatement",value:function(e){var t=this;if(this.isSqlDialect()){var n=this.editor.getSelectionRange(),r=n.start;rm(n.start,n.end);var i=[],o=[],s=[];this.activeStatement=void 0;var a,c,l=(a=n.start,c=n.end,a.row===c.row?a.column<=c.column?a:c:a.row<c.row?a:c),u=n.start===l?n.end:n.start,h=!1,d=0,p=!1;1===this.lastKnownStatements.statements.length?this.activeStatement=this.lastKnownStatements.statements[0]:(this.lastKnownStatements.statements.forEach((function(e){rm(l,u)||(!p&&nm(e.location,l)&&(p=!0),p&&(i.push(e),(nm(e.location,u)||e.location.last_line===u.row+1&&e.location.last_column===u.column)&&(p=!1))),nm(e.location,r)?(d++,h=!0,t.activeStatement=e):h?h&&s.length<10&&s.push(e):(d++,10===o.length&&o.shift(),o.push(e))})),h||(o.pop(),this.activeStatement=this.lastKnownStatements.statements[this.lastKnownStatements.statements.length-1])),!i.length&&this.activeStatement&&i.push(this.activeStatement),eh(Kg,{id:this.editorId,editorChangeTime:this.lastKnownStatements.editorChangeTime,activeStatementIndex:d,totalStatementCount:this.lastKnownStatements.statements.length,precedingStatements:o,activeStatement:this.activeStatement,selectedStatements:i,followingStatements:s}),this.activeStatement&&this.checkForSyntaxErrors(this.activeStatement.location,l)}}},{key:"parseForStatements",value:function(){if(this.isSqlDialect())try{var e=this.editor.lastChangeTime;this.lastKnownStatements.statements=Tp(this.executor.connector()).parse(this.editor.getValue()),this.lastKnownStatements.editorChangeTime=e;var t=window.hueDebug;t&&t.logStatementLocations&&console.log(this.lastKnownStatements)}catch(e){console.warn("Could not parse statements!"),console.warn(e)}}},{key:"refreshStatementLocations",value:function(){this.cursorChangePaused=!0,window.clearTimeout(this.changeThrottle),this.parseForStatements(),this.updateActiveStatement(),this.cursorChangePaused=!1}},{key:"clearMarkedErrors",value:function(e){var t=this.editor.getSession().$backMarkers;for(var n in t)0===t[n].clazz.indexOf("hue-ace-syntax-"+(e||""))&&t[n].dispose()}},{key:"checkForSyntaxErrors",value:function(e,t){if(this.sqlSyntaxWorkerSub&&(this.getDialect()===Jg||this.getDialect()===Xg||this.getDialect()===Qg)){var n=_u.require("ace/range").Range,r=this.editor.lastChangeTime,i=this.editor.getSession().getTextRange(new n(e.first_line-1,e.first_column,t.row,t.column)),o=this.editor.getSession().getTextRange(new n(t.row,t.column,e.last_line-1,e.last_column));eh("ace.sql.syntax.worker.post",{id:this.editorId,editorChangeTime:r,beforeCursor:i,afterCursor:o,statementLocation:e,connector:this.executor.connector()})}}},{key:"addAnchoredMarker",value:function(e,t,n){var r=this;e.start=this.editor.getSession().doc.createAnchor(e.start),e.end=this.editor.getSession().doc.createAnchor(e.end);var i=this.editor.getSession().addMarker(e,n),o=this.editor.getSession().$backMarkers[i];o.token=t,o.dispose=function(){e.start.detach(),e.end.detach(),delete o.token.syntaxError,delete o.token.notFound,r.editor.getSession().removeMarker(i)}}},{key:"attachSqlSyntaxWorker",value:function(){var e=this;this.sqlSyntaxWorkerSub||(this.sqlSyntaxWorkerSub=th("ace.sql.syntax.worker.message",(function(t){if(t.data.id===e.editorId&&t.data.editorChangeTime===e.editor.lastChangeTime&&(e.clearMarkedErrors("error"),t.data.syntaxError&&t.data.syntaxError.expected&&0!==t.data.syntaxError.expected.length)){var n=sh("hue.syntax.checker.suppressedRules",{});if(t.data.syntaxError&&t.data.syntaxError.ruleId&&!n[t.data.syntaxError.ruleId.toString()+t.data.syntaxError.text.toLowerCase()]){var r=window.hueDebug;r&&r.showSyntaxParseResult&&console.log(t.data.syntaxError);var i=e.editor.getSession().getTokenAt(t.data.syntaxError.loc.first_line-1,t.data.syntaxError.loc.first_column+1);if(/[a-z]$/i.test(e.editor.getTextBeforeCursor())&&!/^[a-z]/i.test(e.editor.getTextAfterCursor())){var o=e.editor.getCursorPosition();if(e.editor.getSession().getTokenAt(o.row,o.column)===i)return}if(i){i.syntaxError=t.data.syntaxError;var s=new(0,_u.require("ace/range").Range)(t.data.syntaxError.loc.first_line-1,t.data.syntaxError.loc.first_column,t.data.syntaxError.loc.last_line-1,t.data.syntaxError.loc.first_column+t.data.syntaxError.text.length);e.addAnchoredMarker(s,i,"hue-ace-syntax-error")}}}})),eh(zg,this.editorId))}},{key:"detachSqlSyntaxWorker",value:function(){this.sqlSyntaxWorkerSub&&(this.sqlSyntaxWorkerSub.remove(),this.sqlSyntaxWorkerSub=void 0),this.clearMarkedErrors()}},{key:"fetchChildren",value:(i=jg(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Wf.getChildren({connector:this.executor.connector(),namespace:this.executor.namespace(),compute:this.executor.compute(),temporaryOnly:this.temporaryOnly,path:t.map((function(e){return e.name})),silenceErrors:!0,cachedOnly:!0}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"fetchPossibleValues",value:(r=jg(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.parseLocation&&t.parseLocation.tables&&t.parseLocation.tables.length>0)){e.next=10;break}return n=[],t.parseLocation.tables.forEach((function(e){e.identifierChain&&n.push(o.fetchChildren(e.identifierChain))})),e.next=5,Promise.all(n);case 5:return r=e.sent,i=[],r.forEach((function(e){i.push.apply(i,Gg(e))})),t.parseLocation&&"column"===t.parseLocation.type&&t.parseLocation.tables&&t.parseLocation.tables.forEach((function(e){e.alias||i.push(e.identifierChain[e.identifierChain.length-1])})),e.abrupt("return",i);case 10:if(!(t.parseLocation&&t.parseLocation.identifierChain&&t.parseLocation.identifierChain.length)){e.next=19;break}return e.prev=11,e.next=14,this.fetchChildren(t.parseLocation.identifierChain.slice(0,t.parseLocation.identifierChain.length-1));case 14:return e.abrupt("return",e.sent);case 17:e.prev=17,e.t0=e.catch(11);case 19:return e.abrupt("return",[]);case 20:case"end":return e.stop()}}),e,this,[[11,17]])}))),function(e){return r.apply(this,arguments)})},{key:"verifyExists",value:function(e,t){var n=this;if(window.clearTimeout(this.verifyThrottle),this.clearMarkedErrors("warning"),this.sqlSyntaxWorkerSub){var r=this.editor.getCursorPosition(),i=e.filter((function(e){return e&&e.parseLocation&&("table"===e.parseLocation.type||"column"===e.parseLocation.type)&&(e.parseLocation.identifierChain||e.parseLocation.tables)&&!(r.row+1===e.parseLocation.location.last_line&&r.column+1===e.parseLocation.location.first_column+e.value.length)})).slice(0,50);if(0!==i.length){var o={},s=[];t.forEach((function(e){"alias"!==e.type||!e.alias||"column"!==e.source&&"table"!==e.source&&"subquery"!==e.source&&"cte"!==e.source||(o[e.alias.toLowerCase()]=e,s.push({name:e.alias.toLowerCase()}))})),this.verifyThrottle=window.setTimeout((function e(){var t=i.shift();if(t){var r=t.parseLocation;if(r){if(("column"===r.type||"complex"===r.type)&&r.tables&&r.tables.some((function(e){return!!e.subQuery})))return void(n.verifyThrottle=window.setTimeout(e,Zg));(function(e){return new Promise((function(t){"column"===e.type&&e.tables&&e.identifierChain&&1===e.identifierChain.length?e.tables.length>1?function r(i){var o=i.shift();o&&!o.subQuery?Wf.getChildren({connector:n.executor.connector(),namespace:n.executor.namespace(),compute:n.executor.compute(),temporaryOnly:n.temporaryOnly,path:o.identifierChain.map((function(e){return e.name})),cachedOnly:!0,silenceErrors:!0}).then((function(n){n.some((function(t){return e.identifierChain&&gg.identifierEquals(t.name,e.identifierChain[0].name)}))?(e.identifierChain=[].concat(Gg(o.identifierChain),Gg(e.identifierChain||[])),delete e.tables,t()):i.length?r(i):t()})).catch((function(){return t()})):i.length>0?r(i):t()}(Gg(e.tables)):1===e.tables.length&&e.tables[0].identifierChain&&(e.identifierChain=[].concat(Gg(e.tables[0].identifierChain),Gg(e.identifierChain)),delete e.tables,t()):t()}))})(r).then((function(){var i;"column"===r.type&&(r.tables&&r.identifierChain&&r.identifierChain.length>1&&t.parseLocation&&t.parseLocation.identifierChain?i=o[t.parseLocation.identifierChain[0].name.toLowerCase()]:r.tables&&r.tables.some((function(e){return!(!e.identifierChain||1!==e.identifierChain.length||!e.identifierChain[0].name)&&(i=o[e.identifierChain[0].name.toLowerCase()])})),i&&"cte"===i.source)?n.verifyThrottle=window.setTimeout(e,Zg):n.fetchPossibleValues(t).then(function(){var r=jg(regeneratorRuntime.mark((function r(i){var o,a,c,l,u,h,d,p,f,g;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.parseLocation){r.next=3;break}return n.verifyThrottle=window.setTimeout(e,Zg),r.abrupt("return");case 3:("column"!==t.parseLocation.type&&"complex"!==t.parseLocation.type||!t.parseLocation.qualified)&&(i=i.concat(s)),o=t.actualValue.toLowerCase(),a=new Set,c=[],l=0;case 8:if(!(l<i.length)){r.next=21;break}return u=i[l],r.next=12,gg.backTickIfNeeded(n.executor.connector(),u.name,n.sqlReferenceProvider);case 12:if(u.name=r.sent,(h=u.name.toLowerCase())!==o&&(0!==o.indexOf("`")||o.replace(/`/g,"")!==h)){r.next=17;break}return n.verifyThrottle=window.setTimeout(e,Zg),r.abrupt("return");case 17:a.has(h)||(c.push(u),a.add(h));case 18:l++,r.next=8;break;case 21:i=c,d=o===t.value,p=i.map((function(e){var n=e.name;return{text:d?n.toLowerCase():n,distance:(0,Hg.Z)(t.value,n)}})),p.sort((function(e,t){return e.distance===t.distance?e.text.localeCompare(t.text):e.distance-t.distance})),t.syntaxError={loc:t.parseLocation.location,text:t.value,expected:p.slice(0,50)},t.notFound=!0,t.parseLocation&&"table"===t.parseLocation.type&&t.parseLocation.identifierChain&&(t.qualifiedIdentifier=t.parseLocation.identifierChain.map((function(e){return e.name})).join(".")),t.parseLocation&&p.length>0&&(f=_u.require("ace/range").Range,g=new f(t.parseLocation.location.first_line-1,t.parseLocation.location.first_column-1,t.parseLocation.location.last_line-1,t.parseLocation.location.last_column-1),n.addAnchoredMarker(g,t,"hue-ace-syntax-warning")),n.verifyThrottle=window.setTimeout(e,Zg);case 30:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()).catch((function(){n.verifyThrottle=window.setTimeout(e,Zg)}))})).catch((function(){n.verifyThrottle=window.setTimeout(e,Zg)}))}}}),Zg)}}}},{key:"isDatabase",value:function(e){if(!e)return!1;var t=e.replace(/^\s*`/,"").replace(/`\s*$/,"").toLowerCase();return this.availableDatabases.has(t)}},{key:"attachSqlWorker",value:function(){var e=this,t=[],n={};this.subTracker.subscribe(Yg,(function(e){e(n)})),this.subTracker.subscribe("ace.sql.location.worker.message",(function(r){if(r.data.id===e.editorId&&r.data.editorChangeTime===e.editor.lastChangeTime&&e.isSqlDialect()){for(n={id:e.editorId,connector:e.executor.connector(),namespace:e.executor.namespace(),compute:e.executor.compute(),defaultDatabase:e.executor.database(),locations:r.data.locations,editorChangeTime:r.data.editorChangeTime,activeStatementLocations:r.data.activeStatementLocations,totalStatementCount:r.data.totalStatementCount,activeStatementIndex:r.data.activeStatementIndex};t.length>0;){var i=t.pop();i&&delete i.parseLocation}var o=[];r.data.locations.forEach((function(n){if(("statementType"!==n.type||e.getDialect()===Jg)&&-1===["statement","selectList","whereClause","limitClause"].indexOf(n.type)&&("table"!==n.type&&"column"!==n.type||void 0!==n.identifierChain)){n.identifierChain&&n.identifierChain.length&&n.identifierChain[0].name&&e.getDialect()===Jg&&n.identifierChain.length>2&&("table"===n.type||"column"===n.type)&&e.isDatabase(n.identifierChain[0].name)&&(n.type="complex");var r=e.editor.getSession().getTokenAt(n.location.first_line-1,n.location.first_column),i=e.editor.getSession().getTokens(n.location.first_line-1);if("column"===n.type&&r&&i){var s=!1,a=!1;i.some((function(e){return(!s||!/\s+/.test(e.value))&&(s?(a="("===e.value,!0):void(e===r&&(s=!0)))})),a&&(n.type="function",delete n.identifierChain,n.function=r.value,r=null)}if(r&&r.value&&/`$/.test(r.value)&&(r=e.editor.getSession().getTokenAt(n.location.first_line-1,n.location.first_column+1)),r&&r.value&&/^\s*\${\s*$/.test(r.value)&&(r=null),r&&r.value){var c=_u.require("ace/range").Range;r.actualValue=e.editor.getSession().getTextRange(new c(n.location.first_line-1,n.location.first_column-1,n.location.last_line-1,n.location.last_column-1))}null!==r&&(r.parseLocation=n,t.push(r),delete r.notFound,delete r.syntaxError,n.active&&o.push(r))}})),e.getDialect()!==Jg&&e.getDialect()!==Xg&&e.getDialect()!==Qg||e.verifyExists(o,r.data.activeStatementLocations),eh("editor.active.locations",n)}})),this.subTracker.subscribe("editor.active.statement.changed",(function(t){t.id===e.editorId&&e.isSqlDialect()&&eh("ace.sql.location.worker.post",{id:e.editorId,statementDetails:t,connector:e.executor.connector(),namespace:e.executor.namespace(),compute:e.executor.compute(),defaultDatabase:e.executor.database()})}))}},{key:"dispose",value:function(){this.subTracker.dispose(),this.detachSqlSyntaxWorker()}}],n&&qg(t.prototype,n),e}(),om=i(1302);function sm(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function am(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){sm(o,r,i,s,a,"next",e)}function a(e){sm(o,r,i,s,a,"throw",e)}s(void 0)}))}}var cm="HUE_GLOBAL_UDF_KEY",lm=function(e){return Uh().createInstance({name:"HueUdfCatalog_".concat("0","_").concat(e.id)})},um=function(){var e=am(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lm(t).clear();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),hm=function(){var e=am(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lm(t).getItem(n||cm);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),dm=function(){var e=am(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lm(t).setItem(n||cm,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();function pm(e){return pm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pm(e)}function fm(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function gm(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){fm(o,r,i,s,a,"next",e)}function a(e){fm(o,r,i,s,a,"throw",e)}s(void 0)}))}}function mm(e){return function(e){if(Array.isArray(e))return Em(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Em(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Em(e,t):void 0}}(e)||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 Em(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ym(){ym=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),bm(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return vm(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!==pm(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},ym.apply(this,arguments)}function vm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bm(e,t)}function bm(e,t){return bm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bm(e,t)}var Am="function",Tm="functions",Cm=(0,oh.Z)("No description available."),Rm=["T"],Sm=[[{type:"T",multiple:!0}]],_m=/([a-z]+(?:\.{3})?)/gi,xm=ym(/([a-z]+)(\.{3})?/i,{type:1,multiple:2}),wm=function(e){return e.replace(/\(\*(,\*)?\)/g,"")},Im=function(e){return e.return_type?[wm(e.return_type)]:Rm},Nm=function(e){if(e.signature){var t=wm(e.signature);if("()"===t)return[];var n=t.match(_m);if(n)return n.map((function(e){var t=e.match(xm);if(t&&t.groups){var n={type:t.groups.type};return t.groups.multiple&&(n.multiple=!0),[n]}return[]}))}return Sm},Lm=function(e){var t=[],n={};return e.forEach((function(e){if(n[e.name]){var r=n[e.name],i=Nm(e);if(function(e,t){for(var n=0;n<e.length;n++){var r;if(n>=t.length)break;"T"!==e[n][0].type&&("T"!==t[n][0].type?(r=e[n]).push.apply(r,mm(t[n])):e[n]=t[n])}}(r.arguments,i),"T"!==r.returnTypes[0]){var o,s=Im(e);"T"!==s[0]?(o=r.returnTypes).push.apply(o,mm(s)):r.returnTypes=s}r.returnTypes=mm(new Set(r.returnTypes))}else n[e.name]=function(e){var t=e.name+"()";return{name:e.name,returnTypes:Im(e),arguments:Nm(e),signature:t,draggable:t,description:Cm,described:!1}}(e),t.push(n[e.name])})),t},Om=function(e,t){return e&&t?"".concat(Ld).concat(e,"/").concat(t.name):e?"".concat(Ld).concat(e,"/"):t?"".concat(Ld).concat(t.name):Ld},km=function(e,t){return{notebook:{},snippet:JSON.stringify({type:e.id}),operation:t}},Dm=function(){var e=gm(regeneratorRuntime.mark((function e(t,n){var r,i,o,s,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!(a.length>2&&void 0!==a[2])||a[2],i=Om(n),o=km(t,Tm),e.prev=3,e.next=6,sd(i,o,{silenceErrors:r});case 6:if(null==(s=e.sent)||!s.functions){e.next=9;break}return e.abrupt("return",Lm(s.functions));case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:return e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n){return e.apply(this,arguments)}}(),Fm=function(){var e=gm(regeneratorRuntime.mark((function e(t,n,r){var i,o,s,a,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=!(c.length>3&&void 0!==c[3])||c[3],o=Om(r,n),s=km(t,Am),e.prev=3,e.next=6,sd(o,s,{silenceErrors:i});case 6:if(null==(a=e.sent)||!a.function){e.next=9;break}return e.abrupt("return",a.function);case 9:e.next=13;break;case 11:e.prev=11,e.t0=e.catch(3);case 13:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(t,n,r){return e.apply(this,arguments)}}();function Mm(e){return function(e){if(Array.isArray(e))return Pm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pm(e,t):void 0}}(e)||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 Pm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bm(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Um(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Bm(o,r,i,s,a,"next",e)}function a(e){Bm(o,r,i,s,a,"throw",e)}s(void 0)}))}}var $m=/^[!=$%&*+-/<>^|~]+$/,Hm={},Gm=function(e,t){var n=e.id;return t&&(n+="_"+t),n},Wm=function(e,t){var n=new Set;t.forEach((function(e){Object.keys(e.functions).forEach((function(e){n.add(e.toUpperCase())}))}));var r={};return e.forEach((function(e){r[e.name]||n.has(e.name.toUpperCase())||$m.test(e.name)||(r[e.name]=e)})),r},Vm=function(){var e=Um(regeneratorRuntime.mark((function e(t,n,r){var i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Dm(n,r);case 2:(i=e.sent).length&&(o=Wm(i,t),Object.keys(o).length&&(s={name:(0,oh.Z)("General"),functions:o},t.unshift(s)));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),jm=function(){var e=Um(regeneratorRuntime.mark((function e(t,n,r){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Gm(n,r),Hm[i]||(Hm[i]=new Promise(function(){var e=Um(regeneratorRuntime.mark((function e(i){var o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hm(n,r);case 2:if((o=e.sent)&&i(o),s=[],!n.dialect||!t.hasUdfCategories(n.dialect)){e.next=10;break}return e.next=8,t.getUdfCategories(n.dialect);case 8:(s=e.sent).forEach((function(e){Object.values(e.functions).forEach((function(e){e.described=!0}))}));case 10:return e.next=12,Vm(s,n,r);case 12:return e.next=14,dm(n,r,s);case 14:i(s);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),e.next=4,Hm[i];case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),qm=function(){var e=Um(regeneratorRuntime.mark((function e(t,n,r){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jm(t,n);case 2:return i=e.sent,o=[],i.forEach((function(e){e.functions[r]&&o.push(e.functions[r])})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),zm=function(){var e=Um(regeneratorRuntime.mark((function e(t,n,r){var i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return",["T"]);case 2:return e.next=4,qm(t,n,r);case 4:if((i=e.sent).length){e.next=11;break}if(o=!1,s=new Set,i.forEach((function(e){e.returnTypes&&(o=!0,e.returnTypes.forEach((function(e){return s.add(e)})))})),!o){e.next=11;break}return e.abrupt("return",Mm(s));case 11:return e.abrupt("return",["T"]);case 12:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Km=function(){var e=Um(regeneratorRuntime.mark((function e(t,n,r,i,o){var s,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jm(t,n);case 2:return s=e.sent,a=[],s.forEach((function(e){(!e.isAnalytic&&!e.isAggregate||i&&e.isAggregate||o&&e.isAnalytic)&&Object.keys(e.functions).forEach((function(t){var i=e.functions[t];(!r||n.dialect&&(0,om.s)(n.dialect,r,i.returnTypes))&&a.push(i)}))})),a.sort((function(e,t){return e.name.localeCompare(t.name)})),e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,i,o){return e.apply(this,arguments)}}(),Ym=function(){var e=Um(regeneratorRuntime.mark((function e(t,n,r,i){var o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qm(t,n,r);case 2:if((o=e.sent).length){e.next=5;break}return e.abrupt("return",[{type:"T"}]);case 5:return s=[],o.forEach((function(e){var t=e.arguments;i>t.length?s.push.apply(s,Mm(t[t.length-1].filter((function(e){return e.multiple})))):s.push.apply(s,Mm(t[i-1]))})),e.abrupt("return",s);case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}(),Xm=function(e,t){var n=void 0;return e.some((function(e){return Object.values(e.functions).some((function(e){if(e.name===t)return n=e,!0}))})),n};th("hue.describe.udf",function(){var e=Um(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jm(t.sqlReferenceProvider,t.connector,t.database);case 2:if(n=e.sent,!(r=Xm(n,t.udfName))||r.described){e.next=15;break}return e.next=7,Fm(t.connector,r,t.database);case 7:if(!(i=e.sent)){e.next=15;break}return i.description&&(r.description=i.description),i.signature&&(r.signature=i.signature),r.described=!0,e.next=14,dm(t.connector,t.database,n);case 14:eh("hue.udf.described",{connector:t.connector,database:t.database,udf:r});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),th("hue.clear.udf.cache",function(){var e=Um(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,um(t.connector);case 2:Object.keys(Hm).forEach((function(e){e!==t.connector.id&&0!==e.indexOf(t.connector.id+"_")||delete Hm[e]})),t.callback&&t.callback();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());const Jm=function(e,t){return!!e&&!!t&&e.toLowerCase()===t.toLowerCase()};function Qm(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=tE(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Zm(e){return Zm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zm(e)}function eE(e){return function(e){if(Array.isArray(e))return nE(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tE(e)||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 tE(e,t){if(e){if("string"==typeof e)return nE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nE(e,t):void 0}}function nE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rE(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function iE(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){rE(o,r,i,s,a,"next",e)}function a(e){rE(o,r,i,s,a,"throw",e)}s(void 0)}))}}function oE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var sE={AggregateFunction:(0,oh.Z)("aggregate"),Alias:(0,oh.Z)("alias"),CTE:(0,oh.Z)("cte"),Database:(0,oh.Z)("database"),Dir:(0,oh.Z)("dir"),Filter:(0,oh.Z)("filter"),GroupBy:(0,oh.Z)("group by"),Join:(0,oh.Z)("join"),JoinCondition:(0,oh.Z)("condition"),Keyword:(0,oh.Z)("keyword"),OrderBy:(0,oh.Z)("order by"),Sample:(0,oh.Z)("sample"),Table:(0,oh.Z)("table"),Variable:(0,oh.Z)("variable"),View:(0,oh.Z)("view"),Virtual:(0,oh.Z)("virtual")},aE="hive",cE="impala",lE=["BLOCK__OFFSET__INSIDE__FILE","GROUPING__ID","RAW__DATA__SIZE","ROW__ID","ROW__IS__DELETED","ROW__OFFSET__INSIDE__BLOCK"],uE=function(e,t){if(e)return e.find((function(e){return Jm(e.alias,t)}))},hE=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.executor=void 0,this.editor=void 0,this.temporaryOnly=void 0,this.activeDatabase=void 0,this.sqlReferenceProvider=void 0,this.sqlAnalyzer=void 0,this.parseResult=void 0,this.subTracker=new ih,this.onCancelFunctions=[],this.lastKnownRequests=[],this.cancellablePromises=[],this.sqlReferenceProvider=t.sqlReferenceProvider,this.sqlAnalyzer=null===(n=t.sqlAnalyzerProvider)||void 0===n?void 0:n.getSqlAnalyzer(t.executor.connector()),this.executor=t.executor,this.editor=t.editor,this.temporaryOnly=t.temporaryOnly,this.activeDatabase=this.executor.database()}var t,n,r,i,o,s,a,c,l,u,h,d,p,f,g,m,E,y,v,b,A,T,C,R,S,_,x,w,I,N,L,O;return t=e,n=[{key:"dialect",value:function(){return this.executor.connector().dialect||this.executor.connector().type}},{key:"update",value:(O=iE(regeneratorRuntime.mark((function e(t,n){var r,i,o,s,a,c,l,u=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(;r=this.onCancelFunctions.pop();)r();if(this.activeDatabase=t.useDatabase||this.executor.database(),this.parseResult=t,!this.parseResult.udfArgument){e.next=6;break}return e.next=6,this.adjustForUdfArgument();case 6:return i=[],o=function(e){var t=new Promise((function(t){u.onCancelFunctions.push(t),e.then((function(e){e&&e.length&&n.push.apply(n,eE(e)),t()})).catch(t)}));return i.push(t),e},s=this.handleColumnReference(),a=this.loadDatabases(),o(this.handleKeywords()),o(this.handleColRefKeywords(s)),o(this.handleIdentifiers()),o(this.handleColumnAliases()),o(this.handleCommonTableExpressions()),o(this.handleOptions()),o(this.handleFunctions(s)),o(this.handleDatabases(a)),c=o(this.handleTables(a)),l=o(this.handleColumns(s,c)),o(this.handleValues(s)),o(this.handlePaths()),this.temporaryOnly||(o(this.handleJoins()),o(this.handleJoinConditions()),o(this.handleAggregateFunctions()),o(this.handleGroupBys(l)),o(this.handleOrderBys(l)),o(this.handleFilters()),o(this.handlePopularTables(c)),o(this.handlePopularColumns(l))),e.abrupt("return",Promise.all(i));case 24:case"end":return e.stop()}}),e,this)}))),function(e,t){return O.apply(this,arguments)})},{key:"adjustForUdfArgument",value:(L=iE(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ym(this.sqlReferenceProvider,this.executor.connector(),this.parseResult.udfArgument.name,this.parseResult.udfArgument.position);case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0=[{type:"T"}];case 5:0===(t=e.t0).length&&this.parseResult.suggestColumns?(delete this.parseResult.suggestColumns,delete this.parseResult.suggestKeyValues,delete this.parseResult.suggestValues,delete this.parseResult.suggestFunctions,delete this.parseResult.suggestIdentifiers,delete this.parseResult.suggestKeywords):"BOOLEAN"!==t[0].type&&(this.parseResult.suggestFunctions&&!this.parseResult.suggestFunctions.types&&(this.parseResult.suggestFunctions.types=t.map((function(e){return e.type}))),this.parseResult.suggestColumns&&!this.parseResult.suggestColumns.types&&(this.parseResult.suggestColumns.types=t.map((function(e){return e.type})))),t.length&&(n=[],t.forEach((function(e){e.keywords&&n.push.apply(n,eE(e.keywords))})),n.length&&(this.parseResult.suggestKeywords||(this.parseResult.suggestKeywords=[]),(r=this.parseResult.suggestKeywords).push.apply(r,eE(n.map((function(e){return"object"===Zm(e)?e:{value:e,weight:1e4}}))))));case 8:case"end":return e.stop()}}),e,this)}))),function(){return L.apply(this,arguments)})},{key:"handleColumnReference",value:(N=iE(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.parseResult.colRef){e.next=2;break}return e.abrupt("return",{type:"T"});case 2:if(this.parseResult.colRef.identifierChain.some((function(e){return void 0!==e.name&&0===e.name.indexOf("${")}))){e.next=18;break}return e.prev=4,e.next=7,this.fetchFieldForIdentifierChain(this.parseResult.colRef.identifierChain);case 7:if(!(t=e.sent)){e.next=14;break}return e.next=11,new Promise((function(e,n){r.onCancelFunctions.push(n);var i=t.getSourceMeta({silenceErrors:!0,cancellable:!0});r.cancellablePromises.push(i),i.then(e).catch(n)}));case 11:if(!(n=e.sent).type){e.next=14;break}return e.abrupt("return",{type:n.type,sample:n.sample});case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(4);case 18:return e.abrupt("return",{type:"T"});case 19:case"end":return e.stop()}}),e,this,[[4,16]])}))),function(){return N.apply(this,arguments)})},{key:"loadDatabases",value:(I=iE(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,new Promise((function(e,t){n.onCancelFunctions.push(t),Wf.getEntry({namespace:n.executor.namespace(),compute:n.executor.compute(),connector:n.executor.connector(),path:[],temporaryOnly:n.temporaryOnly}).then(e).catch(t)}));case 3:return t=e.sent,e.next=6,new Promise((function(e,r){n.onCancelFunctions.push(r);var i=t.getChildren({silenceErrors:!0,cancellable:!0});n.cancellablePromises.push(i),i.then(e).catch(r)}));case 6:return e.abrupt("return",e.sent);case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,null,[[0,9]])}))),function(){return I.apply(this,arguments)})},{key:"handleKeywords",value:(w=iE(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestKeywords){e.next=3;break}return e.abrupt("return",[]);case 3:return e.abrupt("return",t.map((function(e){return{value:n.parseResult.lowerCase?e.value.toLowerCase():e.value,meta:sE.Keyword,category:Ph.Keyword,weightAdjust:e.weight,popular:!1}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"handleColRefKeywords",value:(x=iE(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestColRefKeywords){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,t;case 5:return r=e.sent,i=[],Object.keys(n).forEach((function(e){(0,om.s)(o.dialect(),[e],[r.type.toUpperCase()])&&n[e].forEach((function(e){i.push({value:o.parseResult.lowerCase?e.toLowerCase():e,meta:sE.Keyword,category:Ph.ColRefKeyword,popular:!1,details:{type:r.type}})}))})),e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"handleIdentifiers",value:(_=iE(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestIdentifiers){e.next=3;break}return e.abrupt("return",[]);case 3:return e.abrupt("return",t.map((function(e){return{value:e.name,meta:e.type,category:Ph.Identifier,popular:!1}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return _.apply(this,arguments)})},{key:"handleColumnAliases",value:(S=iE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,s,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestColumnAliases){e.next=3;break}return e.abrupt("return",[]);case 3:n=[],r=Qm(t),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=30;break}if(o=i.value,"COLREF"!==(s=o.types&&1===o.types.length?o.types[0]:"T")){e.next=14;break}n.push({value:o.name,meta:sE.Alias,category:Ph.Column,popular:!1,details:o}),e.next=28;break;case 14:if("UDFREF"!==s||!o.udfRef){e.next=27;break}return e.prev=15,e.next=18,zm(this.sqlReferenceProvider,this.executor.connector(),o.udfRef);case 18:a=e.sent,c=1===a.length?a[0]:"T",n.push({value:o.name,meta:c,category:Ph.Column,popular:!1,details:o}),e.next=25;break;case 23:e.prev=23,e.t0=e.catch(15);case 25:e.next=28;break;case 27:n.push({value:o.name,meta:s,category:Ph.Column,popular:!1,details:o});case 28:e.next=7;break;case 30:e.next=35;break;case 32:e.prev=32,e.t1=e.catch(5),r.e(e.t1);case 35:return e.prev=35,r.f(),e.finish(35);case 38:return e.abrupt("return",n);case 39:case"end":return e.stop()}}),e,this,[[5,32,35,38],[15,23]])}))),function(){return S.apply(this,arguments)})},{key:"handleCommonTableExpressions",value:(R=iE(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestCommonTableExpressions){e.next=3;break}return e.abrupt("return",[]);case 3:return n=[],t.forEach((function(e){var t=e.prependQuestionMark?"? ":"";e.prependFrom&&(t+=r.parseResult.lowerCase?"from ":"FROM "),n.push({value:t+e.name,filterValue:e.name,meta:sE.CTE,category:Ph.CTE,popular:!1})})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(){return R.apply(this,arguments)})},{key:"handleOptions",value:(C=iE(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.parseResult.suggestSetOptions){e.next=2;break}return e.abrupt("return",[]);case 2:return e.prev=2,e.next=5,this.sqlReferenceProvider.getSetOptions(this.executor.connector().dialect||"generic");case 5:return t=e.sent,e.abrupt("return",Object.keys(t).map((function(e){return{category:Ph.Option,value:e,meta:"",popular:!1,weightAdjust:0,details:t[e]}})));case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",[]);case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return C.apply(this,arguments)})},{key:"handleFunctions",value:(T=iE(regeneratorRuntime.mark((function e(t){var n,r,i,o,s,a,c,l=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestFunctions){e.next=3;break}return e.abrupt("return",[]);case 3:if(r=[],!n.types||"COLREF"!==n.types[0]&&"UDFREF"!==n.types[0]){e.next=28;break}if(i=function(){var e=iE(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Km(l.sqlReferenceProvider,l.executor.connector(),t,!!l.parseResult.suggestAggregateFunctions,!!l.parseResult.suggestAnalyticFunctions);case 3:return n=e.sent,r=t[0].toUpperCase(),i=[],n.map((function(e){return{category:Ph.UDF,value:e.name+"()",meta:e.returnTypes.join("|"),weightAdjust:"T"!==r&&e.returnTypes.some((function(e){return e===r}))?1:0,popular:!1,details:e}})),e.abrupt("return",i);case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",[]);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}(),o=["T"],e.prev=7,"COLREF"!==n.types[0]){e.next=15;break}return e.next=11,t;case 11:s=e.sent,o=[s.type.toUpperCase()],e.next=19;break;case 15:if(!n.udfRef){e.next=19;break}return e.next=18,zm(this.sqlReferenceProvider,this.executor.connector(),n.udfRef);case 18:o=e.sent;case 19:e.next=23;break;case 21:e.prev=21,e.t0=e.catch(7);case 23:return e.next=25,i(o);case 25:r=e.sent,e.next=38;break;case 28:return a=n.types||["T"],e.prev=29,e.next=32,Km(this.sqlReferenceProvider,this.executor.connector(),a,!!this.parseResult.suggestAggregateFunctions,!!this.parseResult.suggestAnalyticFunctions);case 32:c=e.sent,r=c.map((function(e){return{category:Ph.UDF,value:e.name+"()",meta:e.returnTypes.join("|"),weightAdjust:"T"!==a[0].toUpperCase()&&e.returnTypes.some((function(e){return e===a[0].toUpperCase()}))?1:0,popular:!1,details:e}})),e.next=38;break;case 36:e.prev=36,e.t1=e.catch(29);case 38:return e.abrupt("return",r);case 39:case"end":return e.stop()}}),e,this,[[7,21],[29,36]])}))),function(e){return T.apply(this,arguments)})},{key:"handleDatabases",value:(A=iE(regeneratorRuntime.mark((function e(t){var n,r,i,o,s,a,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestDatabases){e.next=3;break}return e.abrupt("return",[]);case 3:return r=[],e.prev=4,i=n.prependQuestionMark?"? ":"",n.prependFrom&&(i+=this.parseResult.lowerCase?"from ":"FROM "),e.next=9,t;case 9:o=e.sent,s=Qm(o),e.prev=11,s.s();case 13:if((a=s.n()).done){e.next=33;break}if(c=a.value,""===(l=c.name)){e.next=31;break}return e.t0=r,e.t1=i,e.next=21,gg.backTickIfNeeded(this.executor.connector(),l,this.sqlReferenceProvider);case 21:e.t2=e.sent,e.t3=e.t1+e.t2,e.t4=n.appendDot?".":"",e.t5=e.t3+e.t4,e.t6=l,e.t7=sE.Database,e.t8=Ph.Database,e.t9=c,e.t10={value:e.t5,filterValue:e.t6,meta:e.t7,category:e.t8,popular:!1,hasCatalogEntry:!0,details:e.t9},e.t0.push.call(e.t0,e.t10);case 31:e.next=13;break;case 33:e.next=38;break;case 35:e.prev=35,e.t11=e.catch(11),s.e(e.t11);case 38:return e.prev=38,s.f(),e.finish(38);case 41:e.next=45;break;case 43:e.prev=43,e.t12=e.catch(4);case 45:return e.abrupt("return",r);case 46:case"end":return e.stop()}}),e,this,[[4,43],[11,35,38,41]])}))),function(e){return A.apply(this,arguments)})},{key:"handleTables",value:(b=iE(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestTables){e.next=3;break}return e.abrupt("return",[]);case 3:if(r=function(){var e=iE(regeneratorRuntime.mark((function e(){var t,r,i,s,a,c,l,u,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.prependQuestionMark?"? ":"",n.prependFrom&&(t+=o.parseResult.lowerCase?"from ":"FROM "),r=n.identifierChain&&1===n.identifierChain.length?n.identifierChain[0].name:o.activeDatabase,i=[],e.prev=4,e.next=7,new Promise((function(e,t){o.onCancelFunctions.push(t),Wf.getEntry({namespace:o.executor.namespace(),compute:o.executor.compute(),connector:o.executor.connector(),path:[r],temporaryOnly:o.temporaryOnly}).then(e).catch(t)}));case 7:return s=e.sent,e.next=10,new Promise((function(e,t){o.onCancelFunctions.push(t);var n=s.getChildren({silenceErrors:!0,cancellable:!0});o.cancellablePromises.push(n),n.then(e).catch(t)}));case 10:a=e.sent,c=Qm(a),e.prev=12,c.s();case 14:if((l=c.n()).done){e.next=34;break}if(u=l.value,!(n.onlyTables&&!u.isTable()||n.onlyViews&&!u.isView())){e.next=18;break}return e.abrupt("continue",32);case 18:return h=u.name,e.t0=i,e.t1=t,e.next=23,gg.backTickIfNeeded(o.executor.connector(),h,o.sqlReferenceProvider);case 23:e.t2=e.sent,e.t3=e.t1+e.t2,e.t4=h,e.t5=h,e.t6=u.isView()?sE.View:sE.Table,e.t7=Ph.Table,e.t8=u,e.t9={value:e.t3,filterValue:e.t4,tableName:e.t5,meta:e.t6,category:e.t7,popular:!1,hasCatalogEntry:!0,details:e.t8},e.t0.push.call(e.t0,e.t9);case 32:e.next=14;break;case 34:e.next=39;break;case 36:e.prev=36,e.t10=e.catch(12),c.e(e.t10);case 39:return e.prev=39,c.f(),e.finish(39);case 42:e.next=46;break;case 44:e.prev=44,e.t11=e.catch(4);case 46:return e.abrupt("return",i);case 47:case"end":return e.stop()}}),e,null,[[4,44],[12,36,39,42]])})));return function(){return e.apply(this,arguments)}}(),i=[],this.dialect()!==cE||!n.identifierChain||1!==n.identifierChain.length){e.next=24;break}return e.prev=6,e.next=9,t;case 9:if(!e.sent.find((function(e){return Jm(e.name,n.identifierChain[0].name)}))){e.next=17;break}return e.next=14,r();case 14:i=e.sent,e.next=18;break;case 17:this.parseResult.suggestColumns={tables:[{identifierChain:n.identifierChain}]};case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(6);case 22:e.next=31;break;case 24:if(!(this.dialect()===cE&&n.identifierChain&&n.identifierChain.length>1)){e.next=28;break}this.parseResult.suggestColumns={tables:[{identifierChain:n.identifierChain}]},e.next=31;break;case 28:return e.next=30,r();case 30:i=e.sent;case 31:return e.abrupt("return",i);case 32:case"end":return e.stop()}}),e,this,[[6,20]])}))),function(e){return b.apply(this,arguments)})},{key:"handleColumns",value:(v=iE(regeneratorRuntime.mark((function t(n,r){var i,o,s,a,c,l=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r;case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:if(i=this.parseResult.suggestColumns){t.next=10;break}return t.abrupt("return",[]);case 10:if(o=[],s=[],a=["T"],t.prev=13,!i.types||"COLREF"!==i.types[0]){t.next=21;break}return t.next=17,n;case 17:c=t.sent,a=[c.type.toUpperCase()],t.next=25;break;case 21:if(!i.types||"UDFREF"!==i.types[0]||!i.udfRef){t.next=25;break}return t.next=24,zm(this.sqlReferenceProvider,this.executor.connector(),i.udfRef);case 24:a=t.sent;case 25:t.next=29;break;case 27:t.prev=27,t.t1=t.catch(13);case 29:return i.tables.forEach((function(e){s.push(l.addColumns(e,a,o))})),t.prev=30,t.next=33,Promise.all(s);case 33:t.next=37;break;case 35:t.prev=35,t.t2=t.catch(30);case 37:return e.mergeColumns(o),this.dialect()===aE&&/[^.]$/.test(this.editor.getTextBeforeCursor())&&lE.forEach((function(e){o.push({value:e,meta:sE.Virtual,category:Ph.VirtualColumn,popular:!1,details:{name:e}})})),t.abrupt("return",o);case 40:case"end":return t.stop()}}),t,this,[[0,5],[13,27],[30,35]])}))),function(e,t){return v.apply(this,arguments)})},{key:"addCteColumns",value:(y=iE(regeneratorRuntime.mark((function e(t,n){var r,i,o,s,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.parseResult.commonTableExpressions){e.next=3;break}return e.abrupt("return");case 3:if(i=r.find((function(e){return Jm(e.alias,t.identifierChain[0].cte)}))){e.next=6;break}return e.abrupt("return");case 6:o=Qm(i.columns),e.prev=7,o.s();case 9:if((s=o.n()).done){e.next=40;break}if(a=s.value,c=a.type&&"COLREF"!==a.type?a.type:"T",!a.alias){e.next=26;break}return e.t0=n,e.next=16,gg.backTickIfNeeded(this.executor.connector(),a.alias,this.sqlReferenceProvider);case 16:e.t1=e.sent,e.t2=a.alias,e.t3=c,e.t4=Ph.Column,e.t5=t,e.t6=a,e.t7={value:e.t1,filterValue:e.t2,meta:e.t3,category:e.t4,table:e.t5,popular:!1,details:e.t6},e.t0.push.call(e.t0,e.t7),e.next=38;break;case 26:if(!(void 0!==a.identifierChain&&a.identifierChain.length>0&&void 0!==a.identifierChain[a.identifierChain.length-1].name)){e.next=38;break}return e.t8=n,e.next=30,gg.backTickIfNeeded(this.executor.connector(),a.identifierChain[a.identifierChain.length-1].name,this.sqlReferenceProvider);case 30:e.t9=e.sent,e.t10=a.identifierChain[a.identifierChain.length-1].name,e.t11=c,e.t12=Ph.Column,e.t13=t,e.t14=a,e.t15={value:e.t9,filterValue:e.t10,meta:e.t11,category:e.t12,table:e.t13,popular:!1,details:e.t14},e.t8.push.call(e.t8,e.t15);case 38:e.next=9;break;case 40:e.next=45;break;case 42:e.prev=42,e.t16=e.catch(7),o.e(e.t16);case 45:return e.prev=45,o.f(),e.finish(45);case 48:case"end":return e.stop()}}),e,this,[[7,42,45,48]])}))),function(e,t){return y.apply(this,arguments)})},{key:"addSubQueryColumns",value:(E=iE(regeneratorRuntime.mark((function e(t,n){var r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.identifierChain.length&&t.identifierChain[0].subQuery){e.next=2;break}return e.abrupt("return");case 2:if(r=uE(this.parseResult.subQueries,t.identifierChain[0].subQuery),i=function(){var e=iE(regeneratorRuntime.mark((function e(s){var a,c,l,u,h,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=o.executor.connector(),c=Qm(s),e.prev=2,c.s();case 4:if((l=c.n()).done){e.next=43;break}if(!(u=l.value).alias&&!u.identifierChain){e.next=36;break}if(h=void 0!==u.type&&"COLREF"!==u.type?u.type:"T",!u.alias){e.next=22;break}return e.t0=n,e.next=12,gg.backTickIfNeeded(a,u.alias,o.sqlReferenceProvider);case 12:e.t1=e.sent,e.t2=u.alias,e.t3=h,e.t4=Ph.Column,e.t5=t,e.t6=u,e.t7={value:e.t1,filterValue:e.t2,meta:e.t3,category:e.t4,table:e.t5,popular:!1,details:e.t6},e.t0.push.call(e.t0,e.t7),e.next=34;break;case 22:if(!(u.identifierChain&&u.identifierChain.length>0)){e.next=34;break}return e.t8=n,e.next=26,gg.backTickIfNeeded(a,u.identifierChain[u.identifierChain.length-1].name,o.sqlReferenceProvider);case 26:e.t9=e.sent,e.t10=u.identifierChain[u.identifierChain.length-1].name,e.t11=h,e.t12=Ph.Column,e.t13=t,e.t14=u,e.t15={value:e.t9,filterValue:e.t10,meta:e.t11,category:e.t12,table:e.t13,popular:!1,details:e.t14},e.t8.push.call(e.t8,e.t15);case 34:e.next=41;break;case 36:if(!(r&&u.subQuery&&r.subQueries)){e.next=41;break}if(!(d=uE(r.subQueries,u.subQuery))){e.next=41;break}return e.next=41,i(d.columns);case 41:e.next=4;break;case 43:e.next=48;break;case 45:e.prev=45,e.t16=e.catch(2),c.e(e.t16);case 48:return e.prev=48,c.f(),e.finish(48);case 51:case"end":return e.stop()}}),e,null,[[2,45,48,51]])})));return function(t){return e.apply(this,arguments)}}(),!(r&&r.columns.length>0)){e.next=7;break}return e.next=7,i(r.columns);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return E.apply(this,arguments)})},{key:"addColumns",value:(m=iE(regeneratorRuntime.mark((function e(t,n,r){var i,o,s,a,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t.identifierChain||1!==t.identifierChain.length||void 0===t.identifierChain[0].cte){e.next=6;break}if(!(void 0!==this.parseResult.commonTableExpressions&&this.parseResult.commonTableExpressions.length>0)){e.next=4;break}return e.next=4,this.addCteColumns(t,r);case 4:e.next=26;break;case 6:if(void 0===t.identifierChain||1!==t.identifierChain.length||void 0===t.identifierChain[0].subQuery){e.next=11;break}return e.next=9,this.addSubQueryColumns(t,r);case 9:e.next=26;break;case 11:if(void 0===t.identifierChain){e.next=26;break}return i=function(){var e=iE(regeneratorRuntime.mark((function e(i){var o,s,a,l,u,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,t){c.onCancelFunctions.push(t);var n=i.getSourceMeta({silenceErrors:!0,cancellable:!0});c.cancellablePromises.push(n),n.then(e).catch(t)}));case 2:return o=e.sent,e.next=5,new Promise((function(e,t){c.onCancelFunctions.push(t);var n=i.getChildren({silenceErrors:!0,cancellable:!0});c.cancellablePromises.push(n),n.then(e).catch(t)}));case 5:s=e.sent,a=Qm(s),e.prev=7,u=regeneratorRuntime.mark((function e(){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=l.value,e.next=3,gg.backTickIfNeeded(c.executor.connector(),i.name,c.sqlReferenceProvider);case 3:o=e.sent,c.dialect()===aE&&(i.isArray()||i.isMap())&&(o+="[]"),((0,om.s)(c.dialect(),n,[i.getType().toUpperCase()])||(0,om.s)(c.dialect(),[i.getType().toUpperCase()],n)||"column"===i.getType()||i.isComplex())&&r.push({value:o,meta:i.getType(),table:t,category:Ph.Column,popular:!1,weightAdjust:"T"!==n[0].toUpperCase()&&n.some((function(e){return Jm(e,i.getType())}))?1:0,hasCatalogEntry:!0,details:i});case 6:case"end":return e.stop()}}),e)})),a.s();case 10:if((l=a.n()).done){e.next=14;break}return e.delegateYield(u(),"t0",12);case 12:e.next=10;break;case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(7),a.e(e.t1);case 19:return e.prev=19,a.f(),e.finish(19);case 22:c.dialect()===aE&&(i.isArray()||i.isMap())&&(r.pop(),i.isMap()&&r.pop()),h=o.value&&o.value.fields||o.item&&o.item.fields,c.dialect()!==cE&&c.dialect()!==aE||!h||h.forEach((function(e){var i=-1!==e.type.indexOf("<")?e.type.substring(0,e.type.indexOf("<")):e.type;r.push({value:e.name,meta:i,table:t,category:Ph.Column,popular:!1,weightAdjust:"T"!==n[0].toUpperCase()&&n.some((function(e){return Jm(e,i)}))?1:0,hasCatalogEntry:!1,details:e})}));case 25:case"end":return e.stop()}}),e,null,[[7,16,19,22]])})));return function(t){return e.apply(this,arguments)}}(),o=this.parseResult.suggestColumns,s=o&&o.identifierChain||t.identifierChain,e.prev=15,e.next=18,this.fetchFieldForIdentifierChain(s);case 18:if(!(a=e.sent)){e.next=22;break}return e.next=22,i(a);case 22:e.next=26;break;case 24:e.prev=24,e.t0=e.catch(15);case 26:case"end":return e.stop()}}),e,this,[[15,24]])}))),function(e,t,n){return m.apply(this,arguments)})},{key:"handleValues",value:(g=iE(regeneratorRuntime.mark((function e(t){var n,r,i,o,s,a,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestValues){e.next=3;break}return e.abrupt("return",[]);case 3:return r=[],(i=this.parseResult.colRef)&&i.identifierChain&&r.push({value:"${"+i.identifierChain[i.identifierChain.length-1].name+"}",meta:sE.Variable,category:Ph.Variable,popular:!1}),e.next=8,t;case 8:return(o=e.sent).sample&&(s="string"===o.type,a=n.partialQuote?"":"'",c=void 0===n.missingEndQuote||n.missingEndQuote?n.partialQuote||"'":"",o.sample.forEach((function(e){r.push({value:s?a+e[0]+c:String(e[0]),meta:sE.Sample,category:Ph.Sample,popular:!1})}))),e.abrupt("return",r);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"handlePaths",value:(f=iE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,s,a,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestHdfs){e.next=3;break}return e.abrupt("return",[]);case 3:if(n=[],""===(r=t.path)&&n.push({value:"adl://",meta:sE.Keyword,category:Ph.Keyword,weightAdjust:0,popular:!1},{value:"s3a://",meta:sE.Keyword,category:Ph.Keyword,weightAdjust:0,popular:!1},{value:"hdfs://",meta:sE.Keyword,category:Ph.Keyword,weightAdjust:0,popular:!1},{value:"abfs://",meta:sE.Keyword,category:Ph.Keyword,weightAdjust:0,popular:!1},{value:"/",meta:sE.Dir,category:Ph.Files,popular:!1}),i="fetchHdfsPath",!/^s3a:\/\//i.test(r)){e.next=12;break}i="fetchS3Path",r=r.substring(5),e.next=29;break;case 12:if(!/^adl:\/\//i.test(r)){e.next=17;break}i="fetchAdlsPath",r=r.substring(5),e.next=29;break;case 17:if(!/^abfs:\/\//i.test(r)){e.next=28;break}if(i="fetchAbfsPath","/"!==(r=r.substring(6))){e.next=26;break}if(o=zd((function(e){return"abfs"===e.type})),!(s=o&&Xd(o))){e.next=26;break}return n.push({value:s,meta:"abfs",category:Ph.Files,weightAdjust:0,popular:!1}),e.abrupt("return",n);case 26:e.next=29;break;case 28:/^hdfs:\/\//i.test(r)&&(r=r.substring(6));case 29:return(a=r.split("/")).shift(),a.pop(),e.next=34,new Promise((function(e){var t=Mg[i];c.lastKnownRequests.push(t.bind(Mg)({pathParts:a,successCallback:function(t){t.error||t.files.forEach((function(e){if(".."!==e.name&&"."!==e.name){var t=""===r?"/"+e.name:e.name;"dir"===e.type&&(t+="/"),n.push({value:t,meta:e.type,category:Ph.Files,popular:!1,details:e})}})),e()},silenceErrors:!0,errorCallback:e,timeout:window.AUTOCOMPLETE_TIMEOUT}))}));case 34:return e.abrupt("return",n);case 35:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"tableIdentifierChainsToPaths",value:function(e){var t=this,n=[];return e.forEach((function(e){if(e.identifierChain.every((function(e){return void 0!==e.name}))){var r=e.identifierChain.map((function(e){return e.name}));1===r.length&&r.unshift(t.activeDatabase),n.push(r)}})),n}},{key:"handleJoins",value:(p=iE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,s,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestJoins,window.HAS_SQL_ANALYZER&&t&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:if((n=this.tableIdentifierChainsToPaths(t.tables)).length){e.next=6;break}return e.abrupt("return",[]);case 6:return r=[],e.prev=7,e.next=10,new Promise((function(e,t){a.onCancelFunctions.push(t),Wf.getMultiTableEntry({namespace:a.executor.namespace(),compute:a.executor.compute(),connector:a.executor.connector(),paths:n}).then(e).catch(t)}));case 10:return i=e.sent,e.next=13,new Promise((function(e,t){a.onCancelFunctions.push(t);var n=i.getTopJoins({cancellable:!0,silenceErrors:!0,sqlAnalyzer:a.sqlAnalyzer});a.cancellablePromises.push(n),n.then(e).catch(t)}));case 13:o=e.sent,s=0,o.values&&(o.values.forEach((function(e){var n=e.joinType||"join";n+=" ";var i=t.prependJoin?a.parseResult.lowerCase?n.toLowerCase():n.toUpperCase():"",o=!0,c=new Set;t.tables.forEach((function(e){c.add(e.identifierChain[e.identifierChain.length-1].name)}));var l=!1,u=!1;e.tables.forEach((function(e){var n=e.split(".");if(!c.has(n[n.length-1])){u=!0;var r=a.convertSqlAnalyzerQualifiedIdentifier(e,t.tables);i+=l?(a.parseResult.lowerCase?" join ":" JOIN ")+r:r,l=!0}})),e.joinCols.length>0&&(!u&&t.prependJoin&&(i="",u=!0),i+=a.parseResult.lowerCase?" on ":" ON "),u&&(e.joinCols.forEach((function(e){o||(i+=a.parseResult.lowerCase?" and ":" AND "),i+=a.convertSqlAnalyzerQualifiedIdentifier(e.columns[0],t.tables)+" = "+a.convertSqlAnalyzerQualifiedIdentifier(e.columns[1],t.tables),o=!1})),s+=e.totalQueryCount,r.push({value:i,meta:sE.Join,category:t.prependJoin?Ph.PopularJoin:Ph.PopularActiveJoin,popular:!0,details:e}))})),r.forEach((function(e){var t=e.details;t.relativePopularity=0===s?t.totalQueryCount:Math.round(100*t.totalQueryCount/s),e.weightAdjust=t.relativePopularity+1}))),e.next=20;break;case 18:e.prev=18,e.t0=e.catch(7);case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,this,[[7,18]])}))),function(){return p.apply(this,arguments)})},{key:"handleJoinConditions",value:(d=iE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,s,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestJoinConditions,window.HAS_SQL_ANALYZER&&t&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:if((n=this.tableIdentifierChainsToPaths(t.tables)).length){e.next=6;break}return e.abrupt("return",[]);case 6:return r=[],e.prev=7,e.next=10,new Promise((function(e,t){a.onCancelFunctions.push(t),Wf.getMultiTableEntry({namespace:a.executor.namespace(),compute:a.executor.compute(),connector:a.executor.connector(),paths:n}).then(e).catch(t)}));case 10:return i=e.sent,e.next=13,new Promise((function(e,t){a.onCancelFunctions.push(t);var n=i.getTopJoins({cancellable:!0,silenceErrors:!0,sqlAnalyzer:a.sqlAnalyzer});a.cancellablePromises.push(n),n.then(e).catch(t)}));case 13:o=e.sent,s=0,o.values&&(o.values.forEach((function(e){if(e.joinCols.length>0){var n=t.prependOn?a.parseResult.lowerCase?"on ":"ON ":"",i=!0;e.joinCols.forEach((function(e){i||(n+=a.parseResult.lowerCase?" and ":" AND "),n+=a.convertSqlAnalyzerQualifiedIdentifier(e.columns[0],t.tables)+" = "+a.convertSqlAnalyzerQualifiedIdentifier(e.columns[1],t.tables),i=!1})),s+=e.totalQueryCount,r.push({value:n,meta:sE.JoinCondition,category:Ph.PopularJoinCondition,popular:!0,details:e})}})),r.forEach((function(e){var t=e.details;t.relativePopularity=0===s?t.totalQueryCount:Math.round(100*t.totalQueryCount/s),e.weightAdjust=t.relativePopularity+1}))),e.next=20;break;case 18:e.prev=18,e.t0=e.catch(7);case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,this,[[7,18]])}))),function(){return d.apply(this,arguments)})},{key:"handleAggregateFunctions",value:(h=iE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,s,a,c,l,u=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestAggregateFunctions,window.HAS_SQL_ANALYZER&&t&&t.tables.length&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:if((n=this.tableIdentifierChainsToPaths(t.tables)).length){e.next=6;break}return e.abrupt("return",[]);case 6:return r=[],e.prev=7,e.next=10,new Promise((function(e,t){u.onCancelFunctions.push(t),Wf.getMultiTableEntry({namespace:u.executor.namespace(),compute:u.executor.compute(),connector:u.executor.connector(),paths:n}).then(e).catch(t)}));case 10:return i=e.sent,e.next=13,new Promise((function(e,t){u.onCancelFunctions.push(t);var n=i.getTopAggs({cancellable:!0,silenceErrors:!0,sqlAnalyzer:u.sqlAnalyzer});u.cancellablePromises.push(n),n.then(e).catch(t)}));case 13:if((o=e.sent).values&&o.values.length){e.next=16;break}return e.abrupt("return",[]);case 16:o.values.forEach((function(e){e.aggregateInfo.forEach((function(t){e.aggregateClause=e.aggregateClause.replace(new RegExp("([^.])"+t.columnName,"gi"),"$1"+t.databaseName+"."+t.tableName+"."+t.columnName)}))})),s=[],t.tables.forEach((function(e){var n=e.alias?e.alias+".":t.tables.length>1?e.identifierChain[e.identifierChain.length-1].name+".":"";e.identifierChain.length>1?s.push({replace:new RegExp(e.identifierChain.map((function(e){return e.name})).join(".")+".","gi"),with:n}):1===e.identifierChain.length&&(s.push({replace:new RegExp(u.activeDatabase+"."+e.identifierChain[0].name+".","gi"),with:n}),s.push({replace:new RegExp(e.identifierChain[0].name+".","gi"),with:n}))})),a=0,c=regeneratorRuntime.mark((function e(t){var n,i,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.values[t],a+=n.totalQueryCount,i=n.aggregateClause,s.forEach((function(e){i=i.replace(e.replace,e.with)})),e.next=6,qm(u.sqlReferenceProvider,u.executor.connector(),n.aggregateFunction);case 6:c=e.sent,n.function=c.length?c[0]:void 0,r.push({value:i,meta:n.function&&n.function.returnTypes.join("|")||"",category:Ph.PopularAggregate,weightAdjust:Math.min(n.totalQueryCount,99),popular:!0,details:n});case 9:case"end":return e.stop()}}),e)})),l=0;case 22:if(!(l<o.values.length)){e.next=27;break}return e.delegateYield(c(l),"t0",24);case 24:l++,e.next=22;break;case 27:r.forEach((function(e){var t=e.details;t.relativePopularity=0===a?t.totalQueryCount:Math.round(100*t.totalQueryCount/a),e.weightAdjust=t.relativePopularity+1})),e.next=32;break;case 30:e.prev=30,e.t1=e.catch(7);case 32:return e.abrupt("return",r);case 33:case"end":return e.stop()}}),e,this,[[7,30]])}))),function(){return h.apply(this,arguments)})},{key:"handlePopularGroupByOrOrderBy",value:(u=iE(regeneratorRuntime.mark((function e(t,n,r){var i,o,s,a,c,l,u,h,d=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sqlAnalyzer){e.next=2;break}return e.abrupt("return",[]);case 2:return i=[],n.tables.forEach((function(e){e.identifierChain&&(1===e.identifierChain.length&&e.identifierChain[0].name?i.push([d.activeDatabase,e.identifierChain[0].name]):2===e.identifierChain.length&&e.identifierChain[0].name&&e.identifierChain[1].name&&i.push([e.identifierChain[0].name,e.identifierChain[1].name]))})),e.prev=4,e.next=7,new Promise((function(e,t){d.onCancelFunctions.push(t);var n=Wf.getCatalog(d.executor.connector()).loadSqlAnalyzerPopularityForTables({namespace:d.executor.namespace(),compute:d.executor.compute(),paths:i,sqlAnalyzer:d.sqlAnalyzer,silenceErrors:!0,cancellable:!0});d.cancellablePromises.push(n),n.then(e).catch(t)}));case 7:if(o=e.sent,s=0,a=[],c=n.prefix?(this.parseResult.lowerCase?n.prefix.toLowerCase():n.prefix)+" ":"",o.forEach((function(e){if(e.sqlAnalyzerPopularity){var n=e.sqlAnalyzerPopularity[t];n&&(s+=n.columnCount,a.push(e))}})),!(s>0)){e.next=24;break}if(l=[],a.forEach((function(e){var r=e.sqlAnalyzerPopularity&&e.sqlAnalyzerPopularity[t];if(r){var i=d.createSqlAnalyzerIdentifierForColumn(r,n.tables);l.push({value:c+i,filterValue:i,meta:"groupByColumn"===t?sE.GroupBy:sE.OrderBy,category:"groupByColumn"===t?Ph.PopularGroupBy:Ph.PopularOrderBy,weightAdjust:Math.round(100*r.columnCount/s),popular:!0,hasCatalogEntry:!1,details:e})}})),""!==c||!l.length){e.next=23;break}return e.next=18,r;case 18:return u=e.sent,h={},l.forEach((function(e){h[e.value]=e})),u.forEach((function(e){var t=e.details;h[t.name]&&(e.category=h[t.name].category)})),e.abrupt("return",[]);case 23:return e.abrupt("return",l);case 24:e.next=28;break;case 26:e.prev=26,e.t0=e.catch(4);case 28:return e.abrupt("return",[]);case 29:case"end":return e.stop()}}),e,this,[[4,26]])}))),function(e,t,n){return u.apply(this,arguments)})},{key:"handleGroupBys",value:(l=iE(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestGroupBys,window.HAS_SQL_ANALYZER&&n){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,this.handlePopularGroupByOrOrderBy("groupByColumn",n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"handleOrderBys",value:(c=iE(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestOrderBys,window.HAS_SQL_ANALYZER&&n){e.next=3;break}return e.abrupt("return",[]);case 3:return e.next=5,this.handlePopularGroupByOrOrderBy("orderByColumn",n,t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"handleFilters",value:(a=iE(regeneratorRuntime.mark((function e(){var t,n,r,i,o,s,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.parseResult.suggestFilters,window.HAS_SQL_ANALYZER&&t&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:if((n=this.tableIdentifierChainsToPaths(t.tables)).length){e.next=6;break}return e.abrupt("return",[]);case 6:return r=[],e.prev=7,e.next=10,new Promise((function(e,t){a.onCancelFunctions.push(t),Wf.getMultiTableEntry({namespace:a.executor.namespace(),compute:a.executor.compute(),connector:a.executor.connector(),paths:n}).then(e).catch(t)}));case 10:return i=e.sent,e.next=13,new Promise((function(e,t){a.onCancelFunctions.push(t);var n=i.getTopFilters({cancellable:!0,silenceErrors:!0,sqlAnalyzer:a.sqlAnalyzer});a.cancellablePromises.push(n),n.then(e).catch(t)}));case 13:o=e.sent,s=0,o.values&&o.values.forEach((function(e){e.popularValues&&e.popularValues.forEach((function(n){n.group&&n.group.forEach((function(i){var o=t.prefix?(a.parseResult.lowerCase?t.prefix.toLowerCase():t.prefix)+" ":"";o+=a.createSqlAnalyzerIdentifier(e.tableName,i.columnName,t.tables),/^ /.test(i.op)||(o+=" "),o+=a.parseResult.lowerCase?i.op.toLowerCase():i.op,/ $/.test(i.op)||(o+=" "),o+=i.literal,s+=n.count,r.push({value:o,meta:sE.Filter,category:Ph.PopularFilter,popular:!1,details:n})}))}))})),r.forEach((function(e){var t=e.details;t.relativePopularity=0===s?t.count:Math.round(100*t.count/s),e.weightAdjust=t.relativePopularity+1})),e.next=21;break;case 19:e.prev=19,e.t0=e.catch(7);case 21:return e.abrupt("return",r);case 22:case"end":return e.stop()}}),e,this,[[7,19]])}))),function(){return a.apply(this,arguments)})},{key:"handlePopularTables",value:(s=iE(regeneratorRuntime.mark((function e(t){var n,r,i,o,s,a,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestTables,window.HAS_SQL_ANALYZER&&n&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:return r=n.identifierChain&&1===n.identifierChain.length&&n.identifierChain[0].name?n.identifierChain[0].name:this.activeDatabase,e.prev=4,e.next=7,new Promise((function(e,t){c.onCancelFunctions.push(t),Wf.getEntry({namespace:c.executor.namespace(),compute:c.executor.compute(),connector:c.executor.connector(),path:[r],temporaryOnly:c.temporaryOnly}).then(e).catch(t)}));case 7:return i=e.sent,e.next=10,new Promise((function(e,t){c.onCancelFunctions.push(t);var n=i.loadSqlAnalyzerPopularityForChildren({cancellable:!0,silenceErrors:!0,sqlAnalyzer:c.sqlAnalyzer});c.cancellablePromises.push(n),n.then(e).catch(t)}));case 10:if(o=e.sent,s=0,a=new Set,o.forEach((function(e){e.sqlAnalyzerPopularity&&e.sqlAnalyzerPopularity.popularity&&(a.add(e.name),s+=e.sqlAnalyzerPopularity.popularity)})),!(s>0&&a.size>0)){e.next=19;break}return e.next=17,t;case 17:e.sent.forEach((function(e){var t=e.details;if(a.has(t.name)){var n=t.sqlAnalyzerPopularity&&t.sqlAnalyzerPopularity.popularity||0;e.relativePopularity=Math.round(100*n/s),e.relativePopularity>=5&&(e.popular=!0),e.weightAdjust=e.relativePopularity}}));case 19:e.next=23;break;case 21:e.prev=21,e.t0=e.catch(4);case 23:return e.abrupt("return",[]);case 24:case"end":return e.stop()}}),e,this,[[4,21]])}))),function(e){return s.apply(this,arguments)})},{key:"handlePopularColumns",value:(o=iE(regeneratorRuntime.mark((function e(t){var n,r,i,o,s,a,c,l,u=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.parseResult.suggestColumns,window.HAS_SQL_ANALYZER&&n&&n.source&&this.sqlAnalyzer){e.next=3;break}return e.abrupt("return",[]);case 3:return r=[],e.prev=4,e.next=7,t;case 7:r=e.sent,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(4);case 12:if(r.length){e.next=14;break}return e.abrupt("return",[]);case 14:return e.prev=14,i=[],n.tables.forEach((function(e){e.identifierChain&&e.identifierChain.length>0&&(1===e.identifierChain.length&&e.identifierChain[0].name?i.push([u.activeDatabase,e.identifierChain[0].name]):2===e.identifierChain.length&&e.identifierChain[0].name&&e.identifierChain[1].name&&i.push([e.identifierChain[0].name,e.identifierChain[1].name]))})),e.next=19,new Promise((function(e,t){u.onCancelFunctions.push(t);var n=Wf.getCatalog(u.executor.connector()).loadSqlAnalyzerPopularityForTables({namespace:u.executor.namespace(),compute:u.executor.compute(),paths:i,sqlAnalyzer:u.sqlAnalyzer,silenceErrors:!0,cancellable:!0});u.cancellablePromises.push(n),n.then(e).catch(t)}));case 19:o=e.sent,e.t1=n.source,e.next="select"===e.t1?23:"group by"===e.t1?25:"order by"===e.t1?27:28;break;case 23:return s="selectColumn",e.abrupt("break",28);case 25:return s="groupByColumn",e.abrupt("break",28);case 27:s="orderByColumn";case 28:if(a=new Set,o.forEach((function(e){s&&e.sqlAnalyzerPopularity&&e.sqlAnalyzerPopularity[s]&&a.add(e.getQualifiedPath())})),s&&0!==a.size){e.next=32;break}return e.abrupt("return",[]);case 32:c=0,l=[],r.forEach((function(e){var t=e.details;if(s){var n=t.sqlAnalyzerPopularity&&t.sqlAnalyzerPopularity[s];n&&e.hasCatalogEntry&&a.has(t.getQualifiedPath())&&(l.push(e),c+=n.columnCount)}})),c>0&&l.forEach((function(e){var t=e.details;if(t.sqlAnalyzerPopularity&&s){var n=t.sqlAnalyzerPopularity[s];n&&(e.relativePopularity=Math.round(100*n.columnCount/c),e.relativePopularity>=5&&(e.popular=!0),e.weightAdjust=e.relativePopularity)}})),e.next=40;break;case 38:e.prev=38,e.t2=e.catch(14);case 40:return e.abrupt("return",[]);case 41:case"end":return e.stop()}}),e,this,[[4,10],[14,38]])}))),function(e){return o.apply(this,arguments)})},{key:"createSqlAnalyzerIdentifier",value:function(e,t,n){for(var r=e+"."+t.split(".").pop(),i=0;i<n.length;i++){var o="";if(2===n[i].identifierChain.length?o=n[i].identifierChain.map((function(e){return e.name})).join("."):1===n[i].identifierChain.length&&(o=this.activeDatabase+"."+n[i].identifierChain[0].name),0===r.indexOf(o)){r=r.substring(o.length+1),n[i].alias?r=n[i].alias+"."+r:n.length>0&&(r=n[i].identifierChain[n[i].identifierChain.length-1].name+"."+r);break}}return r}},{key:"createSqlAnalyzerIdentifierForColumn",value:function(e,t){for(var n=0;n<t.length;n++)if((!e.dbName||e.dbName===this.activeDatabase&&e.dbName===t[n].identifierChain[0].name)&&e.tableName&&Jm(e.tableName,t[n].identifierChain[t[n].identifierChain.length-1].name)&&t[n].alias)return t[n].alias+"."+e.columnName;return e.dbName&&e.dbName!==this.activeDatabase?e.dbName+"."+e.tableName+"."+e.columnName:t.length>1?e.tableName+"."+e.columnName:e.columnName||""}},{key:"convertSqlAnalyzerQualifiedIdentifier",value:function(e,t){var n=this,r=[],i=!1;t.forEach((function(e){i=i||Jm(e.identifierChain[0].name.toLowerCase(),n.activeDatabase.toLowerCase()),e.alias&&r.push({qualifiedName:e.identifierChain.map((function(e){return e.name})).join(".").toLowerCase(),alias:e.alias})}));for(var o=0;o<r.length;o++){if(0===e.toLowerCase().indexOf(r[o].qualifiedName))return r[o].alias+e.substring(r[o].qualifiedName.length);if(0===e.toLowerCase().indexOf(this.activeDatabase.toLowerCase()+"."+r[o].qualifiedName))return r[o].alias+e.substring((this.activeDatabase+"."+r[o].qualifiedName).length)}if(0===e.toLowerCase().indexOf(this.activeDatabase.toLowerCase())&&!i)return e.substring(this.activeDatabase.length+1);if(this.dialect()===aE){var s=e.split(".");if(s.length>2)return s.slice(1).join(".")}return e}},{key:"fetchFieldForIdentifierChain",value:(i=iE(regeneratorRuntime.mark((function e(t){var n,r,i,o,s=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],r=0;case 2:if(!(r<t.length)){e.next=11;break}if(!t[r].name||t[r].subQuery){e.next=7;break}n.push(t[r].name),e.next=8;break;case 7:return e.abrupt("return");case 8:r++,e.next=2;break;case 11:if(i=function(){var e=iE(regeneratorRuntime.mark((function e(t,n){var r,o,a,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||[],t.length>0&&(((r=t.shift())||"phoenix"===s.dialect()&&""===r)&&n.push(r),t.length>0&&("item"===t[0]||"value"===t[0].name)&&(r=t.shift())&&n.push(r)),e.next=4,new Promise((function(e,t){s.onCancelFunctions.push(t),Wf.getEntry({namespace:s.executor.namespace(),compute:s.executor.compute(),connector:s.executor.connector(),path:n,temporaryOnly:s.temporaryOnly}).then(e).catch(t)}));case 4:return o=e.sent,e.next=7,new Promise((function(e,t){s.onCancelFunctions.push(t);var n=o.getSourceMeta({silenceErrors:!0,cancellable:!0});s.cancellablePromises.push(n),n.then(e).catch(t)}));case 7:if(a=e.sent,c=a.extended_columns,s.dialect()===aE&&c&&1===c.length&&/^(?:map|array|struct)/i.test(c[0].type)&&t.unshift(c[0].name),!t.length){e.next=17;break}return/value|item|key/i.test(t[0])?(l=t.shift())&&n.push(l):"array"===a.type?n.push("item"):"map"===a.type&&n.push("value"),e.next=14,i(t,n);case 14:return e.abrupt("return",e.sent);case 17:return e.abrupt("return",o);case 18:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),!(n.length>1)||this.dialect()!==cE&&this.dialect()!==aE){e.next=23;break}return e.next=15,new Promise((function(e,t){s.onCancelFunctions.push(t),Wf.getEntry({namespace:s.executor.namespace(),compute:s.executor.compute(),connector:s.executor.connector(),path:[],temporaryOnly:s.temporaryOnly}).then(e).catch(t)}));case 15:return o=e.sent,e.next=18,new Promise((function(e,t){s.onCancelFunctions.push(t);var n=o.getChildren({silenceErrors:!0,cancellable:!0});s.cancellablePromises.push(n),n.then(e).catch(t)}));case 18:e.sent.some((function(e){return Jm(e.name,n[0])}))||n.unshift(this.activeDatabase),e.next=24;break;case 23:n.length<=1&&n.unshift(this.activeDatabase);case 24:return e.next=26,i(n);case 26:return e.abrupt("return",e.sent);case 27:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"cancelRequests",value:function(){for(;this.lastKnownRequests.length;)_g(this.lastKnownRequests.pop());for(;this.cancellablePromises.length;){var e=this.cancellablePromises.pop();e&&e.cancel&&e.cancel()}}}],r=[{key:"mergeColumns",value:function(e){e.sort((function(e,t){return e.value.localeCompare(t.value)}));for(var t=0;t<e.length;t++){var n=e[t];n.isColumn=!0;for(var r=!1;t+1<e.length&&e[t+1].value===n.value;t++){var i=e[t+1].table;if(i&&i.alias)e[t+1].value=i.alias+"."+e[t+1].value;else if(i&&i.identifierChain&&i.identifierChain.length){var o=i.identifierChain[i.identifierChain.length-1];void 0!==o.name?e[t+1].value=o.name+"."+e[t+1].value:void 0!==o.subQuery&&(e[t+1].value=o.subQuery+"."+e[t+1].value)}r=!0}if(n.table&&n.table.alias)n.value=n.table.alias+"."+n.value;else if(r&&n.table&&n.table.identifierChain&&n.table.identifierChain.length){var s=n.table.identifierChain[n.table.identifierChain.length-1];void 0!==s.name?n.value=s.name+"."+n.value:void 0!==s.subQuery&&(n.value=s.subQuery+"."+n.value)}}}}],n&&oE(t.prototype,n),r&&oE(t,r),e}();const dE=hE;function pE(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function fE(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){pE(o,r,i,s,a,"next",e)}function a(e){pE(o,r,i,s,a,"throw",e)}s(void 0)}))}}function gE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var mE=function(){function e(t){var n=this,r=t.editorId,i=t.executor,o=t.temporaryOnly,s=void 0!==o&&o,a=t.editor,c=t.fixedPrefix,l=t.fixedPostfix,u=t.autocompleteParser,h=t.sqlReferenceProvider,d=t.sqlAnalyzerProvider;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=void 0,this.executor=void 0,this.fixedPrefix=void 0,this.fixedPostfix=void 0,this.autocompleteParser=void 0,this.autocompleteResults=void 0,this.editorId=void 0,this.subTracker=new ih,this.activeStatement=null,this.onPartial=void 0,this.editorId=r,this.editor=a,this.executor=i,this.fixedPrefix=c||function(){return""},this.fixedPostfix=l||function(){return""},this.autocompleteParser=u,this.autocompleteResults=new dE({sqlReferenceProvider:h,sqlAnalyzerProvider:d,executor:i,editor:a,temporaryOnly:s}),this.subTracker.subscribe(Kg,(function(e){e.id===n.editorId&&(n.activeStatement=e.activeStatement)}))}var t,n,r,i,o;return t=e,n=[{key:"getDialect",value:function(){return this.executor.connector().dialect}},{key:"parseActiveStatement",value:(o=fE(regeneratorRuntime.mark((function e(){var t,n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.activeStatement){e.next=2;break}return e.abrupt("return");case 2:if(t=this.activeStatement.location,n=this.editor.getCursorPosition(),!(t.first_line-1<n.row||t.first_line-1===n.row&&t.first_column<=n.column)||!(t.last_line-1>n.row||t.last_line-1===n.row&&t.last_column>=n.column)){e.next=14;break}return r=this.fixedPrefix()+this.editor.session.getTextRange({start:{row:t.first_line-1,column:t.first_column},end:n}),i=this.editor.session.getTextRange({start:n,end:{row:t.last_line-1,column:t.last_column}})+this.fixedPostfix(),e.prev=7,e.abrupt("return",this.autocompleteParser.parseSql(r,i));case 11:e.prev=11,e.t0=e.catch(7),console.warn(e.t0);case 14:case"end":return e.stop()}}),e,this,[[7,11]])}))),function(){return o.apply(this,arguments)})},{key:"parseAll",value:(i=fE(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",this.autocompleteParser.parseSql(this.editor.getTextBeforeCursor(),this.editor.getTextAfterCursor()));case 4:e.prev=4,e.t0=e.catch(0),console.warn(e.t0);case 7:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(){return i.apply(this,arguments)})},{key:"autocomplete",value:(r=fE(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,eh(Yg,(function(e){e.editorChangeTime!==n.editor.lastChangeTime&&eh(zg,n.editorId)})),e.next=4,this.parseActiveStatement();case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),void 0!==console.warn&&console.warn(e.t0);case 10:if(t){e.next=20;break}return e.prev=11,e.next=14,this.parseAll();case 14:t=e.sent,e.next=20;break;case 17:e.prev=17,e.t1=e.catch(11),void 0!==console.warn&&console.warn(e.t1);case 20:return e.abrupt("return",t);case 21:case"end":return e.stop()}}),e,this,[[0,7],[11,17]])}))),function(){return r.apply(this,arguments)})},{key:"dispose",value:function(){this.subTracker.dispose()}}],n&&gE(t.prototype,n),e}(),EE={class:"autocompleter-header"},yE={key:4,class:"autocompleter-header-popularity"},vE=["title"],bE={class:"autocompleter-details-contents"},AE={class:"autocompleter-details-contents-inner"},TE={key:0},CE={class:"details-attribute"},RE=Zr("i",{class:"fa fa-table fa-fw"},null,-1),SE={key:1,class:"details-attribute"},_E=Zr("i",{class:"fa fa-key fa-fw"},null,-1),xE={key:2,class:"details-attribute"},wE=Zr("i",{class:"fa fa-key fa-fw"},null,-1),IE={key:3,class:"details-attribute"},NE=Zr("i",{class:"fa fa-key fa-fw"},null,-1),LE={key:4,class:"details-comment"},OE={key:5,class:"details-comment"},kE={key:6,class:"details-no-comment"},DE={key:2},FE=i(4801);yu()(FE.Z,{insert:"head",singleton:!1}),FE.Z.locals;const ME=mn({name:"SpinnerLargeIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueSpinnerLargeSymbol" /></svg>'}),PE=mn({name:"SpinnerSmallIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueSpinnerSmallSymbol" /></svg>'}),BE=mn({name:"Spinner",components:{SpinnerSmallIcon:PE,SpinnerLargeIcon:ME},props:{spin:{type:Boolean,default:!0},size:{type:String,default:"default"},center:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},label:{type:String,default:""},blackout:{type:Boolean,default:!1}}});BE.render=function(e,t,n,i,o,s){var a=Ir("SpinnerLargeIcon"),c=Ir("SpinnerSmallIcon");return e.spin?(Hr(),qr("div",{key:0,class:l(["spinner-container",{"spinner-overlay":e.overlay,"spinner-inline":e.inline,spinner:!e.overlay&&!e.inline,"spinner-blackout":e.blackout}])},[Zr("div",{class:l(["spinner-inner",{"spinner-center":e.center,"spinner-large":"large"===e.size,"spinner-xlarge":"xlarge"===e.size}]),style:r({width:e.center&&e.inline?"100%":null})},["large"===e.size||"xlarge"===e.size?(Hr(),zr(a,{key:0,class:"spinner-spin"})):(Hr(),zr(c,{key:1,class:"spinner-spin"})),e.label?(Hr(),qr("span",DE,m(e.label),1)):ii("v-if",!0)],6)],2)):ii("v-if",!0)};const UE=BE,$E=mn({name:"ColumnIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueColumnSymbol" /></svg>'}),HE=mn({name:"DatabaseIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueDatabaseSymbol" /></svg>'}),GE=mn({name:"TableIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueTableSymbol" /></svg>'}),WE=mn({name:"ViewIcon",template:'<svg class="hi hi-fw"><use xlink:href="#hueViewSymbol" /></svg>'}),VE=mn({name:"CatalogEntryDetailsPanel",components:{ColumnIcon:$E,TableIcon:GE,ViewIcon:WE,DatabaseIcon:HE,Spinner:UE},props:{suggestion:{type:Object,required:!0}},data:function(){return{loading:!1,comment:null,loadTimeout:-1,commentPromise:null}},computed:{details:function(){return this.suggestion.details},popularityTitle:function(){return"".concat((0,oh.Z)("Popularity")," ").concat(this.suggestion.relativePopularity,"%")},showTitle:function(){return!1}},mounted:function(){var e=this;this.details.hasResolvedComment()?this.comment=this.details.getResolvedComment():(this.loading=!0,this.loadTimeout=window.setTimeout((function(){e.commentPromise=e.details.getComment({silenceErrors:!0,cancellable:!0}),e.commentPromise.then((function(t){e.comment=t})).finally((function(){e.loading=!1}))}),1500))},unmounted:function(){window.clearTimeout(this.loadTimeout),this.commentPromise&&this.commentPromise.cancel()},methods:{I18n:oh.Z}});VE.render=function(e,t,n,r,i,o){var s=Ir("DatabaseIcon"),a=Ir("ViewIcon"),c=Ir("TableIcon"),l=Ir("ColumnIcon"),u=Ir("spinner");return Hr(),qr("div",null,[Zr("div",EE,[e.details.isDatabase()?(Hr(),zr(s,{key:0})):e.details.isView()?(Hr(),zr(a,{key:1})):e.details.isTable()?(Hr(),zr(c,{key:2})):e.details.isField()?(Hr(),zr(l,{key:3})):ii("v-if",!0),Zr("span",null,m(e.details.getTitle()),1),e.suggestion.popular&&e.suggestion.relativePopularity?(Hr(),qr("div",yE,[Zr("i",{class:"fa fa-fw fa-star-o popular-color",title:e.popularityTitle},null,8,vE)])):ii("v-if",!0)]),Zr("div",bE,[Zr("div",AE,[e.details.isColumn()?(Hr(),qr("div",TE,[Zr("div",CE,[RE,Zr("span",null,m(e.details.path[0])+"."+m(e.details.path[1]),1)])])):ii("v-if",!0),e.details.isPartitionKey()?(Hr(),qr("div",SE,[_E,ri(" "+m(e.I18n("Partition key")),1)])):e.details.isPrimaryKey()?(Hr(),qr("div",xE,[wE,ri(" "+m(e.I18n("Primary key")),1)])):e.details.isForeignKey()?(Hr(),qr("div",IE,[NE,ri(" "+m(e.I18n("Foreign key")),1)])):ii("v-if",!0),e.loading?(Hr(),qr("div",LE,[ei(u,{size:"small",inline:!0})])):e.comment?(Hr(),qr("div",OE,m(e.comment),1)):(Hr(),qr("div",kE,m(e.I18n("No description")),1))])])])};const jE=VE;var qE={class:"autocompleter-header"},zE={class:"autocompleter-details-contents"},KE={class:"autocompleter-details-contents-inner"},YE={class:"details-code"},XE={class:"details-code"},JE={class:"details-description"};const QE=mn({name:"OptionDetailsPanel",props:{suggestion:{type:Object,required:!0}},computed:{details:function(){return this.suggestion.details}},methods:{I18n:oh.Z}});QE.render=function(e,t,n,r,i,o){return Hr(),qr("div",null,[Zr("div",qE,m(e.suggestion.value),1),Zr("div",zE,[Zr("div",KE,[Zr("div",YE,[ri(m(e.I18n("Type:"))+" ",1),Zr("span",null,m(e.details.type),1)]),Zr("div",XE,[ri(m(e.I18n("Default:"))+" ",1),Zr("span",null,m(e.details.default),1)]),Zr("div",JE,m(e.details.description),1)])])])};const ZE=QE;var ey={class:"autocompleter-header"},ty=Zr("i",{class:"fa fa-fw fa-superscript"},null,-1),ny=["title"],ry={class:"autocompleter-details-contents"},iy={class:"autocompleter-details-contents-inner"},oy={class:"details-code"},sy={class:"details-comment","data-bind":"text: details.function.description"},ay={class:"ace-highlight"},cy=i(4175);function ly(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}var uy=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){ly(o,r,i,s,a,"next",e)}function a(e){ly(o,r,i,s,a,"throw",e)}s(void 0)}))}}(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",(0,cy.WU)(t.statements,{uppercase:!0,linesBetweenQueries:2,indentQuerySeparator:!0}));case 4:if(e.prev=4,e.t0=e.catch(0),t.silenceErrors){e.next=8;break}throw e.t0;case 8:return e.abrupt("return",t.statements);case 9:case"end":return e.stop()}}),e,null,[[0,4]])})));return function(t){return e.apply(this,arguments)}}();function hy(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function dy(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){hy(o,r,i,s,a,"next",e)}function a(e){hy(o,r,i,s,a,"throw",e)}s(void 0)}))}}const py=mn({name:"SqlText",props:{dialect:{type:String,default:"hive"},value:{type:String,default:""},format:{type:Boolean,default:!1},enableOverflow:{type:Boolean,default:!1},splitLines:{type:Boolean,default:!1}},watch:{value:function(){var e=this;return dy(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.renderAce();case 1:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.renderAce()},methods:{renderAce:function(){var e=this;return dy(regeneratorRuntime.mark((function t(){var n,r,i,o,s,a,c,l,u,h,d,p,f,g,m;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.value){t.next=2;break}return t.abrupt("return");case 2:n=window.ace,r=n.require("ace/tokenizer"),i=n.require("ace/layer/text"),o=n.require("ace/config"),s=r.Tokenizer;try{a=n.require("".concat(wu(e.dialect),"_highlight_rules"))}catch(e){}if(c=a&&1===Object.keys(a).length?a[Object.keys(a)[0]]:n.require("sql_highlight_rules").SqlHighlightRules,l=[],o.loadModule(["theme",(E="hue.ace.theme",void 0,sh(E)||"ace/theme/hue")]),u=i.Text,h=new s((new c).getRules()),d=e.value,!e.format){t.next=18;break}return t.next=17,uy({statements:e.value,silenceErrors:!0});case 17:d=t.sent;case 18:p=d.split("\n"),f=function(e,t,n){var r=0,i=n[0],o=i.value;if(o)try{r=e.$renderToken(t,r,i,o)}catch(e){console.warn(o,"Failed to get screen column due to some parsing errors, skip rendering.")}for(var s=1;s<n.length;s++){o=(i=n[s]).value;try{r=e.$renderToken(t,r,i,o)}catch(e){console&&console.warn&&console.warn(o,"This token has some parsing errors and it has been rendered without highlighting."),t.push(o),r+=o.length}}},g="pull-left",e.splitLines||e.format?e.format&&(g="ace-highlight-pre"):g="pull-left",p.forEach((function(e){var t=[],n=h.getLineTokens(e);n&&n.tokens.length&&f(new u(document.createElement("div")),t,n.tokens),l.push('<div class="ace_line '+g+'">'+t.join("")+"&nbsp;</div>")})),m=e.enableOverflow?" overflow: auto;":"",e.$el.innerHTML='\n <div class="ace_editor ace-hue" style="background-color: transparent; '.concat(m,'">\n <div class="ace_layer" style="position: static; ').concat(m,'">').concat(l.join(""),"</div>\n </div>\n "),e.enableOverflow&&(e.$el.style.overflow="auto"),e.$el.querySelectorAll(".ace_invisible_space").forEach((function(e){return e.remove()}));case 27:case"end":return t.stop()}var E}),t)})))()}}});py.render=function(e,t,n,r,i,o){return Hr(),qr("div",ay)};const fy=py,gy=mn({name:"PopularAggregateUdfPanel",components:{SqlText:fy},props:{suggestion:{type:Object,required:!0},connector:{type:Object,default:void 0}},computed:{details:function(){return this.suggestion.details},description:function(){return this.details.function&&this.details.function.description||""},dialect:function(){return this.connector&&this.connector.dialect},popularityTitle:function(){return"".concat((0,oh.Z)("Relative popularity"),": ").concat(this.details.relativePopularity||"?","%")}},methods:{I18n:oh.Z}});gy.render=function(e,t,n,r,i,o){var s=Ir("sql-text");return Hr(),qr("div",null,[Zr("div",ey,[ty,Zr("span",null,m(e.I18n("Popular aggregate")),1),Zr("i",{class:"popular fa fa-fw fa-star-o",title:e.popularityTitle},null,8,ny)]),Zr("div",ry,[Zr("div",iy,[Zr("div",oy,[ei(s,{value:e.suggestion.value,dialect:e.dialect},null,8,["value","dialect"])]),Zr("div",sy,m(e.description),1)])])])};const my=gy;var Ey={class:"autocompleter-header"},yy=Zr("i",{class:"fa fa-fw fa-superscript"},null,-1),vy=["title"],by={class:"autocompleter-details-contents"},Ay={class:"autocompleter-details-contents-inner"};const Ty=mn({name:"PopularDetailsPanel",components:{SqlText:fy},props:{suggestion:{type:Object,required:!0},connector:{type:Object,default:void 0}},computed:{details:function(){return this.suggestion.details},dialect:function(){return this.connector&&this.connector.dialect},popularityTitle:function(){return this.suggestion.category.categoryId===Dh.PopularGroupBy||this.suggestion.category.categoryId===Dh.PopularOrderBy?"".concat((0,oh.Z)("Workload percent"),": ").concat(this.details.workloadPercent||"?","%"):"".concat((0,oh.Z)("Relative popularity"),": ").concat(this.details.relativePopularity||"?","%")},title:function(){switch(this.suggestion.category.categoryId){case Dh.PopularFilter:return(0,oh.Z)("Popular filter");case Dh.PopularGroupBy:return(0,oh.Z)("Popular group by");case Dh.PopularOrderBy:return(0,oh.Z)("Popular order by");case Dh.PopularActiveJoin:case Dh.PopularJoin:return(0,oh.Z)("Popular join");case Dh.PopularJoinCondition:return(0,oh.Z)("Popular join condition")}return(0,oh.Z)("Popular")}}});Ty.render=function(e,t,n,r,i,o){var s=Ir("sql-text");return Hr(),qr("div",null,[Zr("div",Ey,[yy,Zr("span",null,m(e.title),1),Zr("i",{class:"popular fa fa-fw fa-star-o",title:e.popularityTitle},null,8,vy)]),Zr("div",by,[Zr("div",Ay,[ei(s,{value:e.suggestion.value,dialect:e.dialect},null,8,["value","dialect"])])])])};const Cy=Ty;var Ry={class:"autocompleter-header"},Sy=Zr("i",{class:"fa fa-fw fa-superscript"},null,-1),_y={class:"autocompleter-details-contents"},xy={class:"autocompleter-details-contents-inner"},wy={class:"details-code"},Iy={class:"details-description"};const Ny=mn({name:"UdfDetailsPanel",props:{suggestion:{type:Object,required:!0}},computed:{details:function(){return this.suggestion.details},udfName:function(){return this.details.signature.substring(0,this.details.signature.indexOf("("))}}});Ny.render=function(e,t,n,r,i,o){return Hr(),qr("div",null,[Zr("div",Ry,[Sy,Zr("span",null,m(e.udfName),1)]),Zr("div",_y,[Zr("div",xy,[Zr("div",wy,m(e.details.signature),1),Zr("div",Iy,m(e.details.description),1)])])])};const Ly=Ny;function Oy(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}var ky=_u.require("ace/autocomplete/util"),Dy=_u.require("ace/keyboard/hash_handler").HashHandler;const Fy=mn({name:"AceAutocomplete",components:{CatalogEntryDetailsPanel:jE,MatchedText:vg,OptionDetailsPanel:ZE,PopularAggregateUdfPanel:my,PopularDetailsPanel:Cy,Spinner:UE,UdfDetailsPanel:Ly},directives:{"click-outside":Wu},props:{autocompleteParser:{type:Object,required:!0},sqlReferenceProvider:{type:Object,required:!0},sqlAnalyzerProvider:{type:Object,default:void 0},editor:{type:Object,required:!0},editorId:{type:String,required:!0},executor:{type:Object,required:!0},temporaryOnly:{type:Boolean,required:!1,default:!1}},setup:function(e){var t=Ot(e),n=t.autocompleteParser,r=t.editor,i=t.editorId,o=t.executor,s=t.sqlAnalyzerProvider,a=t.sqlReferenceProvider,c=t.temporaryOnly,l=new ih,u=new mE({autocompleteParser:n.value,editor:r.value,editorId:i.value,executor:o.value,sqlAnalyzerProvider:s.value||{getSqlAnalyzer:function(){return new Fh}},sqlReferenceProvider:a.value,temporaryOnly:c.value}),h=u.autocompleteResults;return l.addDisposable(u),{subTracker:l,autocompleter:u,autocompleteResults:h}},data:function(e){return{startLayout:null,startPixelRatio:window.devicePixelRatio,left:0,top:0,loading:!1,active:!1,filter:"",activeCategory:Ph.All,selectedIndex:null,hoveredIndex:null,base:null,sortOverride:null,suggestions:[],reTriggerTimeout:-1,changeTimeout:-1,positionInterval:-1,keyboardHandler:null,changeListener:null,mousedownListener:e.detach.bind(e),mousewheelListener:e.closeOnScroll.bind(e)}},computed:{connector:function(){if(this.executor)return this.executor.connector()},detailsComponent:function(){if(this.focusedEntry&&this.focusedEntry.details)return this.focusedEntry.hasCatalogEntry?"CatalogEntryDetailsPanel":this.focusedEntry.category.detailsComponent},availableCategories:function(){return function(e){var t=new Set;e.forEach((function(e){e.popular?t.add(Ph.Popular):e.category.categoryId!==Dh.Table&&e.category.categoryId!==Dh.Column&&e.category.categoryId!==Dh.UDF||t.add(Ph[e.category.categoryId])}));var n,r=function(e){if(Array.isArray(e))return Mh(e)}(n=t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Mh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mh(e,t):void 0}}(n)||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.")}();return r.sort((function(e,t){return e.label.localeCompare(t.label)})),r.unshift(Ph.All),r}(this.suggestions)},filtered:function(){if(!this.autocompleteResults)return[];var e=this.suggestions;this.filter&&(e=gg.autocompleteFilter(this.filter,e),eh("hue.ace.autocompleter.match.updated"));var t=this.activeCategory,n=new Map;return e=e.filter((function(e){return n.set(e.category.categoryId,(n.get(e.category.categoryId)||0)+1),!(t!==Ph.Popular&&(n.get(e.category.categoryId)||0)>=10&&e.category.popular)&&(t.categoryId===Ph.All.categoryId||t.categoryId===e.category.categoryId||t.categoryId===Ph.Popular.categoryId&&e.popular)})),gg.sortSuggestions(e,this.filter,this.sortOverride),this.sortOverride=null,e},focusedEntry:function(){if(this.filtered.length){if(null!==this.hoveredIndex)return this.filtered[this.hoveredIndex];if(null!==this.selectedIndex)return this.filtered[this.selectedIndex]}},visible:function(){return this.active&&(this.loading||!!this.filtered.length)}},watch:{filter:function(){if(null!==this.selectedIndex){this.selectedIndex=0;var e=this.$refs.entriesScrollDiv;e&&(e.scrollTop=0)}},availableCategories:function(e){-1===e.indexOf(this.activeCategory)&&(this.activeCategory=e[0])}},created:function(){var e=this;this.keyboardHandler=new Dy,this.registerKeybindings(this.keyboardHandler),this.changeListener=function(){if(e.autocompleteResults){window.clearTimeout(e.changeTimeout);var t=e.editor.selection.lead;e.base&&(t.row!==e.base.row||t.column<e.base.column)?e.detach():e.changeTimeout=window.setTimeout((function(){if(e.autocompleteResults&&e.base){var t=e.editor.getCursorPosition();e.active&&e.autocompleter&&e.autocompleter.onPartial&&e.autocompleter.onPartial(ky.retrievePrecedingIdentifier(e.editor.session.getLine(t.row),t.column)),e.updateFilter(),e.positionAutocompleteDropdown(),e.filtered.length||e.detach()}}),200)}}},mounted:function(){var e=this,t=function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Oy(o,r,i,s,a,"next",e)}function a(e){Oy(o,r,i,s,a,"throw",e)}s(void 0)}))}}(regeneratorRuntime.mark((function t(){var n,r,i,o,s,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.active&&e.autocompleter){t.next=2;break}return t.abrupt("return");case 2:if(n=e.editor.getSession(),r=e.editor.getCursorPosition(),i=n.getLine(r.row),o=ky.retrievePrecedingIdentifier(i,r.column),s=n.doc.createAnchor(r.row,r.column-o.length),e.base&&s.column===e.base.column&&s.row===e.base.row){t.next=22;break}return e.positionAutocompleteDropdown(),t.prev=9,e.loading=!0,t.next=13,e.autocompleter.autocomplete();case 13:a=t.sent,Lg.showParseResult&&console.log(a),a&&e.autocompleteResults&&(e.suggestions=[],e.autocompleteResults.update(a,e.suggestions).finally((function(){e.loading=!1})),e.selectedIndex=0,s.$insertRight=!0,e.base=s,e.autocompleteResults&&(e.filter=o),e.active=!0,e.attach()),t.next=22;break;case 18:t.prev=18,t.t0=t.catch(9),void 0!==console.warn&&console.warn(t.t0),e.detach();case 22:case"end":return t.stop()}}),t,null,[[9,18]])})));return function(){return t.apply(this,arguments)}}();this.editor.on("showAutocomplete",t);var n=this.detach.bind(this);this.editor.on("hideAutocomplete",n),this.subTracker.subscribe("hue.ace.autocompleter.hide",n),this.subTracker.addDisposable({dispose:function(){e.editor.off("showAutocomplete",t),e.editor.off("hideAutocomplete",n)}}),this.subTracker.subscribe("editor.autocomplete.temporary.sort.override",(function(t){e.sortOverride=t}))},unmounted:function(){this.disposeEventHandlers(),this.subTracker.dispose()},methods:{I18n:oh.Z,clickCategory:function(e,t){this.autocompleteResults&&(this.activeCategory=e,t.stopPropagation(),this.editor.focus())},clickOutside:function(){this.active&&this.detach()},clickSuggestion:function(e){this.selectedIndex=e,this.insertSuggestion(),this.editor.focus()},updateFilter:function(){if(this.base){var e=this.editor.getCursorPosition();this.filter=this.editor.session.getTextRange({start:this.base,end:e})}},registerKeybindings:function(e){var t=this;e.bindKeys({Up:function(){t.filtered.length<=1?(t.detach(),t.editor.execCommand("golineup")):t.selectedIndex?(t.selectedIndex=t.selectedIndex-1,t.hoveredIndex=null,t.scrollSelectionIntoView()):(t.selectedIndex=t.filtered.length-1,t.hoveredIndex=null,t.scrollSelectionIntoView())},Down:function(){t.filtered.length<=1?(t.detach(),t.editor.execCommand("golinedown")):null!==t.selectedIndex&&t.selectedIndex<t.filtered.length-1?(t.selectedIndex=t.selectedIndex+1,t.hoveredIndex=null,t.scrollSelectionIntoView()):(t.selectedIndex=0,t.hoveredIndex=null,t.scrollSelectionIntoView())},"Ctrl-Up|Ctrl-Home":function(){t.filtered.length<=1?(t.detach(),t.editor.execCommand("gotostart")):(t.selectedIndex=0,t.hoveredIndex=null,t.scrollSelectionIntoView())},"Ctrl-Down|Ctrl-End":function(){t.filtered.length<=1?(t.detach(),t.editor.execCommand("gotoend")):t.filtered.length>0&&(t.selectedIndex=t.filtered.length-1,t.hoveredIndex=null,t.scrollSelectionIntoView())},Esc:function(){t.detach()},Return:function(){t.insertSuggestion((function(){t.editor.execCommand("insertstring","\n")}))},"Shift-Return":function(){t.insertSuggestion()},Tab:function(){t.insertSuggestion((function(){t.editor.execCommand("indent")}))}})},insertSuggestion:function(e){var t=this;if(null===this.selectedIndex||!this.filtered.length)return this.detach(),void(e&&e());var n=this.filtered[this.selectedIndex].value;if(n.toLowerCase()!==this.filter.toLowerCase()){if(this.filter&&this.editor.selection.getAllRanges().forEach((function(e){e.start.column-=t.filter.length,t.editor.session.remove(e)})),this.editor.execCommand("insertstring",n),this.editor.renderer.scrollCursorIntoView(),this.detach(),this.editor.getOption("enableLiveAutocompletion")){if(/\S+\(\)$/.test(n))return void this.editor.moveCursorTo(this.editor.getCursorPosition().row,this.editor.getCursorPosition().column-1);window.clearTimeout(this.reTriggerTimeout),this.reTriggerTimeout=window.setTimeout((function(){var e;t.active||(/(\? from \S+[^.]\s*$)/i.test(n)?(t.editor.moveCursorTo(t.editor.getCursorPosition().row,t.editor.getCursorPosition().column-(n.length-1)),t.editor.removeTextBeforeCursor(1),e=!0):e=/\.$/.test(n),e&&(eh("editor.refresh.statement.locations",t.editorId),window.setTimeout((function(){t.editor.execCommand("startAutocomplete")}),1)))}),400)}}else this.detach()},positionAutocompleteDropdown:function(){var e=this.editor.renderer,t=e.$cursorLayer.getPixelPosition(void 0,!0),n=this.editor.container.getBoundingClientRect(),r=e.layerConfig.lineHeight;this.top=t.top+n.top-e.layerConfig.offset+r+3,this.left=t.left+n.left-e.scrollLeft+e.gutterWidth},scrollSelectionIntoView:function(){var e=this.$refs.entriesScrollDiv,t=this.$refs.entriesDiv;if(e&&t&&null!==this.selectedIndex&&!(t.clientHeight<e.clientHeight)){var n=t.clientHeight/t.childElementCount,r=Math.ceil(e.scrollTop/n),i=e.clientHeight/n,o=r+i-1;r<=this.selectedIndex&&this.selectedIndex<=o||(this.selectedIndex<r?e.scrollTop=this.selectedIndex*n:e.scrollTop=Math.round((this.selectedIndex-(i-1))*n))}},suggestionSelected:function(e){this.selectedIndex=e,this.insertSuggestion(),this.editor.focus()},closeOnScroll:function(){if(this.active&&this.startLayout){var e=this.editor.container.getBoundingClientRect(),t=e.top-this.startLayout.top,n=e.left-this.startLayout.left;this.startPixelRatio!==window.devicePixelRatio?this.startLayout=e:(Math.abs(t)>10||Math.abs(n)>10)&&this.detach()}},attach:function(){this.updateFilter(),this.disposeEventHandlers(),this.startLayout=this.editor.container.getBoundingClientRect(),this.startPixelRatio=window.devicePixelRatio,this.keyboardHandler&&this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.changeListener&&this.editor.on("changeSelection",this.changeListener),this.editor.on("mousedown",this.mousedownListener),this.editor.on("mousewheel",this.mousewheelListener),this.positionInterval=window.setInterval(this.closeOnScroll.bind(this),300)},detach:function(){this.autocompleteResults&&(this.autocompleteResults.cancelRequests(),this.disposeEventHandlers(),this.active&&(this.active=!1,this.base&&(this.base.detach(),this.base=null)))},disposeEventHandlers:function(){window.clearTimeout(this.changeTimeout),window.clearInterval(this.positionInterval),this.keyboardHandler&&this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.changeListener&&this.editor.off("changeSelection",this.changeListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)}}});Fy.render=function(e,t,n,i,o,s){var a=Ir("spinner"),c=Ir("matched-text"),u=Or("click-outside");return e.visible?cr((Hr(),qr("div",{key:0,class:"hue-ace-autocompleter",style:r({top:e.top+"px",left:e.left+"px"})},[Zr("div",uh,[e.availableCategories.length>1||e.loading?(Hr(),qr("div",hh,[ii(" ko if: suggestions.availableCategories().length > 1 "),e.availableCategories.length>1?(Hr(),qr("div",dh,[(Hr(!0),qr(Fr,null,li(e.availableCategories,(function(t){return Hr(),qr("div",{key:t.label,style:r({"border-color":e.activeCategory.categoryId===t.categoryId?t.color:"transparent"}),class:l({active:e.activeCategory.categoryId===t.categoryId}),onClick:function(n){return e.clickCategory(t,n)}},m(t.label),15,ph)})),128))])):ii("v-if",!0),Zr("div",fh,[ei(a,{spin:e.loading,size:"small"},null,8,["spin"])])])):ii("v-if",!0),Zr("div",gh,[Zr("div",mh,[(Hr(!0),qr(Fr,null,li(e.filtered,(function(n,i){return Hr(),qr("div",{key:e.filter+e.activeCategory.categoryId+n.category.categoryId+n.value,class:l(["autocompleter-suggestion",{selected:i===e.selectedIndex}]),onClick:function(t){return e.clickSuggestion(i)},onMouseover:function(t){return e.hoveredIndex=i},onMouseout:t[0]||(t[0]=function(t){return e.hoveredIndex=null})},[Zr("div",yh,[Zr("div",{class:"autocompleter-dot",style:r({"background-color":n.category.color})},null,4),ei(c,{suggestion:n,filter:e.filter},null,8,["suggestion","filter"]),n.details&&n.details.hasOwnProperty("primary_key")?(Hr(),qr("i",vh)):ii("v-if",!0)]),Zr("div",bh,[n.popular?(Hr(),qr("i",Ah)):ii("v-if",!0),Zr("span",null,m(n.meta),1)])],42,Eh)})),128))],512)],512)]),e.detailsComponent?(Hr(),qr("div",Th,[(Hr(),zr(Lr(e.detailsComponent),{suggestion:e.focusedEntry,connector:e.connector},null,8,["suggestion","connector"]))])):ii("v-if",!0)],4)),[[u,e.clickOutside]]):ii("v-if",!0)};const My=Fy;function Py(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var By=function(e,t,n,r){for(var i=n;i<=r;i++)t.removeGutterDecoration(i,e)},Uy=function(e,t,n,r){for(var i=n;i<=r;i++)t.addGutterDecoration(i,e)},$y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=void 0,this.gutterStart=void 0,this.gutterEnd=void 0,this.rowStart=void 0,this.rowEnd=void 0,this.changed=!1,this.rowMarkerSpec=void 0,this.gutterSpec=void 0,this.refreshThrottle=-1,this.editor=t;var n=this.editor.getSession().doc;this.gutterStart=n.createAnchor(0,0),this.gutterEnd=n.createAnchor(0,0),this.rowStart=n.createAnchor(0,0),this.rowEnd=n.createAnchor(0,0),this.attachChangeHandler()}var t,n;return t=e,(n=[{key:"attachChangeHandler",value:function(){var e=this,t=function(){window.clearTimeout(e.refreshThrottle),e.refreshThrottle=window.setTimeout(e.refresh.bind(e),10)};this.gutterStart.on("change",t),this.gutterEnd.on("change",t),this.rowStart.on("change",t),this.rowEnd.on("change",t)}},{key:"refresh",value:function(){var e=this.editor.getSession(),t=this.gutterStart.getPosition(),n=this.gutterEnd.getPosition();if(this.gutterSpec){var r=this.gutterSpec.span;By(this.gutterSpec.cssClass,e,r.start,r.end),r.start=t.row,r.end=n.row,Uy(this.gutterSpec.cssClass,e,r.start,r.end)}if(this.rowMarkerSpec){var i=this.rowMarkerSpec.rowOffset,o=this.rowMarkerSpec.cssClass;this.removeMarkerRowCss(),this.setMarkerRowCss(o,i)}}},{key:"move",value:function(e,t){var n=e.last_line-1,r=Math.min(n,e.first_line-1+(t||0)),i=t?0:e.first_column;this.gutterStart.setPosition(r,i),this.gutterEnd.setPosition(n,e.last_column),this.rowMarkerSpec&&this.refreshRowAnchors(this.rowMarkerSpec.rowOffset)}},{key:"setGutterCss",value:function(e){this.gutterSpec&&this.removeGutterCss();var t=this.editor.getSession(),n=this.gutterStart.getPosition().row,r=this.gutterEnd.getPosition().row;this.gutterSpec={cssClass:e,span:{start:n,end:r}},Uy(e,t,n,r)}},{key:"refreshRowAnchors",value:function(e){var t=this.gutterStart.row+e;this.rowStart.setPosition(t,0),this.rowEnd.setPosition(t,this.editor.getSession().getLine(t).length)}},{key:"setMarkerRowCss",value:function(e,t){this.rowMarkerSpec&&this.removeMarkerRowCss(),this.refreshRowAnchors(t);var n=new(0,_u.require("ace/range").Range)(0,0,0,0);n.start=this.rowStart,n.end=this.rowEnd;var r=this.editor.getSession().addMarker(n,e);this.rowMarkerSpec={cssClass:e,rowOffset:t,marker:r},this.rowMarkerSpec.marker=r}},{key:"removeMarkerRowCss",value:function(){this.rowMarkerSpec&&(this.editor.getSession().removeMarker(this.rowMarkerSpec.marker),this.rowMarkerSpec=void 0)}},{key:"removeGutterCss",value:function(){if(this.gutterSpec){var e=this.editor.getSession(),t=this.gutterSpec.span;By(this.gutterSpec.cssClass,e,t.start,t.end),this.gutterSpec=void 0}}},{key:"dispose",value:function(){window.clearTimeout(this.refreshThrottle),this.gutterStart.detach(),this.gutterEnd.detach(),this.rowStart.detach(),this.rowEnd.detach(),this.removeGutterCss(),this.removeMarkerRowCss()}}])&&Py(t.prototype,n),e}();function Hy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Gy=/(\r\n)|(\n)|(\r)/g,Wy=/^\s+/,Vy=function(e){var t=0,n=e.statement.match(Wy);if(n){var r=n[0].match(Gy);r&&(t=r.length)}return t},jy=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=void 0,this.editorId=void 0,this.executor=void 0,this.trackedAnchors=new Map,this.subTracker=new ih,this.editor=t.editor,this.editorId=t.editorId,this.executor=t.executor;var r=new $y(this.editor);r.setGutterCss("ace-active-gutter-decoration"),this.subTracker.subscribe(Kg,(function(e){if(e.id===n.editorId&&e.activeStatement){var t=Vy(e.activeStatement);r.move(e.activeStatement.location,t)}})),this.subTracker.addDisposable(r),this.executor&&this.subTracker.subscribe(Au,(function(e){if(e.executor===n.executor){var t=n.trackedAnchors.get(e.id);if(t||(t=new $y(n.editor),n.trackedAnchors.set(e.id,t)),e.lost)return t.dispose(),void n.trackedAnchors.delete(e.id);t.removeGutterCss(),t.removeMarkerRowCss();var r=e.parsedStatement,i=Vy(r);if(t.move(r.location,i),e.isRunning())t.setGutterCss("ace-executing-gutter-decoration");else if(!e.edited&&e.isSuccess())t.setGutterCss("ace-completed-gutter-decoration");else if(!e.edited&&e.isFailed()&&(t.setGutterCss("ace-failed-gutter-decoration"),e.logs&&e.logs.errors.length)){var o=e.logs.errors[0];t.setMarkerRowCss("ace-failed-marker",o.row-i-1)}}}))}var t,n;return t=e,(n=[{key:"dispose",value:function(){this.subTracker.dispose()}}])&&Hy(t.prototype,n),e}(),qy="execute.active.executable";function zy(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Ky(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){zy(o,r,i,s,a,"next",e)}function a(e){zy(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jy=/[\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u202F\u205F\u3000\uFEFF]/gi,Qy=function(e){return e.replace(Jy," ")};const Zy=mn({name:"AceEditor",components:{AceSyntaxDropdown:lh,AceAutocomplete:My},props:{initialValue:{type:String,required:!1,default:""},initialCursorPosition:{type:Object,default:void 0},id:{type:String,required:!0},executor:{type:Object,required:!0},activeLocationHighlighting:{type:String,required:!1,default:function(){return"all"}},aceOptions:{type:Object,required:!1,default:function(){return{}}},sqlAnalyzerProvider:{type:Object,default:void 0},sqlParserProvider:{type:Object,default:void 0},sqlReferenceProvider:{type:Object,default:void 0}},emits:["active-statement-changed","value-changed","create-new-doc","save-doc","toggle-presentation-mode","ace-created","cursor-changed"],setup:function(e,t){var n=t.emit,r=Ot(e),i=r.id,o=r.sqlAnalyzerProvider,s=r.sqlReferenceProvider,a=r.executor,c=r.initialCursorPosition,l=r.activeLocationHighlighting,u=r.sqlParserProvider,h=r.initialValue,d=r.aceOptions,p=new ih,f=St(null),g=St(null),m=!1,E=St(null);return u.value&&u.value.getAutocompleteParser(a.value.connector().dialect||"generic").then((function(e){E.value=e})),Ln((function(){var e=f.value;if(e){e.textContent=h.value;var t=_u.edit(e);(function(e){var t=sh("hue.ace.enableBasicAutocompletion",!0),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(n),!0).forEach((function(t){Xy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({enableBasicAutocompletion:t,enableLiveAutocompletion:t&&sh("hue.ace.enableLiveAutocompletion",!0),fontSize:sh("hue.ace.fontSize",navigator.platform&&navigator.platform.toLowerCase().indexOf("linux")>-1?"14px":"12px"),enableSnippets:!0,showGutter:!0,showLineNumbers:!0,showPrintMargin:!1,scrollPastEnd:.1,minLines:3,maxLines:25,tabSize:2,useSoftTabs:!0},d.value);e.setOptions(n)})(t),function(e){var t=sh("ace.dark.theme.enabled",!1);e.setTheme(t?"ace/theme/hue_dark":"ace/theme/hue"),e.enabledMenuOptions={setShowInvisibles:!0,setTabSize:!0,setShowGutter:!0},e.customMenuOptions={setEnableDarkTheme:function(n){ah("ace.dark.theme.enabled",t=n),e.setTheme(t?"ace/theme/hue_dark":"ace/theme/hue")},getEnableDarkTheme:function(){return t},setEnableAutocompleter:function(t){e.setOption("enableBasicAutocompletion",t),ah("hue.ace.enableBasicAutocompletion",t);var n=document.getElementById("setEnableLiveAutocompletion");n&&(t&&!n.checked||!t&&n.checked)&&n.click()},getEnableAutocompleter:function(){return e.getOption("enableBasicAutocompletion")},setEnableLiveAutocompletion:function(t){e.setOption("enableLiveAutocompletion",t),ah("hue.ace.enableLiveAutocompletion",t);var n=document.getElementById("setEnableAutocompleter");n&&t&&!n.checked&&n.click()},getEnableLiveAutocompletion:function(){return e.getOption("enableLiveAutocompletion")},setFontSize:function(t){-1===t.toLowerCase().indexOf("px")&&-1===t.toLowerCase().indexOf("em")&&(t+="px"),e.setOption("fontSize",t),ah("hue.ace.fontSize",t)},getFontSize:function(){var t=e.getOption("fontSize");return-1===t.toLowerCase().indexOf("px")&&-1===t.toLowerCase().indexOf("em")&&(t+="px"),t}}}(t);var r=new im({editor:t,editorId:i.value,executor:a.value,activeLocationHighlighting:l.value,sqlReferenceProvider:s.value});p.addDisposable(r),t.$blockScrolling=1/0;var u=new jy({editor:t,editorId:i.value,executor:a.value});if(p.addDisposable(u),t.session.setMode(wu(a.value.connector().dialect)),window.ENABLE_SQL_SYNTAX_CHECK&&window.Worker){var E=sh("hue.ace.errorHighlightingEnabled",!0);E&&r.attachSqlSyntaxWorker(),t.customMenuOptions.setErrorHighlighting=function(e){E=e,ah("hue.ace.errorHighlightingEnabled",e),e?r.attachSqlSyntaxWorker():r.detachSqlSyntaxWorker()},t.customMenuOptions.getErrorHighlighting=function(){return E},t.customMenuOptions.setClearIgnoredSyntaxChecks=function(){ah("hue.syntax.checker.suppressedRules",{});var e=document.getElementById("setClearIgnoredSyntaxChecks");if(e&&e.parentNode){e.style.display="none";var t=document.createElement("div");t.style.marginTop="5px",t.style.float="right",t.innerText="done",e.insertAdjacentElement("beforebegin",t)}},t.customMenuOptions.getClearIgnoredSyntaxChecks=function(){return!1}}var y=_u.require("ace/autocomplete").Autocomplete;t.completer||(t.completer=new y);var v=a.value.connector().is_sql;t.completer.exactMatch=!v;var b=_u.require("ace/ext/language_tools");b.textCompleter.setSqlMode(v),t.completers&&(t.completers.length=0,v?t.useHueAutocompleter=!0:(t.completers.push(b.snippetCompleter),t.completers.push(b.textCompleter),t.completers.push(b.keyWordCompleter)));var A=function(){if(eh("ace.editor.focused",t),t.session.$backMarkers)for(var e in t.session.$backMarkers)"highlighted"===t.session.$backMarkers[e].clazz&&t.session.removeMarker(t.session.$backMarkers[e].id)},T=function(e){e.text=Qy(e.text)},C=a.value.connector();if(o.value&&"api"===C.optimizer)try{Du(t,C,o.value)}catch(e){console.warn("Failed attaching predict typeahead..."),console.error(e)}var R=!1,S=function(){var e=document.createElement("div");return"hplsql"===C.dialect?e.innerText=(0,oh.Z)("Example: CREATE PROCEDURE name AS SELECT * FROM tablename limit 10 GO"):e.innerText=(0,oh.Z)("Example: SELECT * FROM tablename, or press CTRL + space"),e.style.marginLeft="6px",e.classList.add("ace_invisible"),e.classList.add("ace_emptyMessage"),e}(),_=function(){R||t.getValue().length?R&&(S.remove(),R=!1):(t.renderer.scroller.append(S),R=!0)};_();var x=function(e){if(1===e.domEvent.button){var n=e.$pos;if(!n)return;var r=t.getSelectedText();t.session.insert(n,r),Ou((function(){t.moveCursorTo(n.row,n.column+r.length)}))}},w=function(){n("value-changed",Qy(t.getValue()))};t.on("change",w),t.on("blur",w),t.on("focus",A),t.on("paste",T),t.on("input",_),t.on("mousedown",x),p.addDisposable({dispose:function(){t.off("change",w),t.off("blur",w),t.off("focus",A),t.off("paster",T),t.off("input",_),t.off("mousedown",x)}});var I=function(){Ou((function(){try{t.resize(!0)}catch(e){}}))};p.subscribe("ace.editor.focused",(function(e){m=t===e})),p.subscribe("assist.set.manual.visibility",I),p.subscribe("split.panel.resized",I),p.subscribe("ace.replace",(function(e){var n=new(0,_u.require("ace/range").Range)(e.location.first_line-1,e.location.first_column-1,e.location.last_line-1,e.location.last_column-1);t.getSession().getDocument().replace(n,e.text)})),c.value&&(t.moveCursorToPosition(c.value),t.renderer.scrollCursorIntoView()),function(e,t,r){var i,o;e.commands.addCommand({name:"execute",bindKey:{win:"Ctrl-Enter",mac:"Command-Enter|Ctrl-Enter"},exec:(i=Ky(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.refreshStatementLocations(),e&&a.value.activeExecutable&&(r(),eh(qy,a.value.activeExecutable));case 2:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)})}),e.commands.addCommand({name:"switchTheme",bindKey:{win:"Ctrl-Alt-t",mac:"Command-Alt-t"},exec:function(){if(e.customMenuOptions&&e.customMenuOptions.getEnableDarkTheme&&e.customMenuOptions.setEnableDarkTheme){var t=e.customMenuOptions.getEnableDarkTheme();e.customMenuOptions.setEnableDarkTheme(!t)}}}),e.commands.addCommand({name:"new",bindKey:{win:"Ctrl-e",mac:"Command-e"},exec:function(){n("create-new-doc")}}),e.commands.addCommand({name:"save",bindKey:{win:"Ctrl-s",mac:"Command-s|Ctrl-s"},exec:function(){n("save-doc")}}),e.commands.addCommand({name:"togglePresentationMode",bindKey:{win:"Ctrl-Shift-p",mac:"Ctrl-Shift-p|Command-Shift-p"},exec:function(){n("toggle-presentation-mode")}}),e.commands.addCommand({name:"format",bindKey:{win:"Ctrl-i|Ctrl-Shift-f|Ctrl-Alt-l",mac:"Command-i|Ctrl-i|Ctrl-Shift-f|Command-Shift-f|Ctrl-Shift-l|Cmd-Shift-l"},exec:(o=Ky(regeneratorRuntime.mark((function t(){var n,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.setReadOnly(!0),t.prev=1,!e.getSelectedText()){t.next=10;break}return n=e.getSelectionRange(),t.next=6,uy({statements:e.getSelectedText(),silenceErrors:!0});case 6:i=t.sent,e.getSession().replace(n,i),t.next=14;break;case 10:return t.next=12,uy({statements:e.getValue(),silenceErrors:!0});case 12:o=t.sent,e.setValue(o,1);case 14:r(),t.next=19;break;case 17:t.prev=17,t.t0=t.catch(1);case 19:e.setReadOnly(!1);case 20:case"end":return t.stop()}}),t,null,[[1,17]])}))),function(){return o.apply(this,arguments)})}),e.commands.bindKey("Ctrl-P","golineup"),e.commands.bindKey({win:"Ctrl-j",mac:"Command-j|Ctrl-j"},"gotoline")}(t,r,w),function(e){var t=function(){return/^\s*$/.test(e.getValue())||/^.*;\s*$/.test(e.getTextBeforeCursor())},n=function(t,n){var r=e.getTextBeforeCursor(),i=/\S+$/.test(r)?" "+t:t;if(e.session.insert(e.getCursorPosition(),i),n){var o=e.getCursorPosition();e.moveCursorToPosition({row:o.row,column:o.column+n})}e.clearSelection(),e.focus()};p.subscribe("editor.insert.at.cursor",(function(t){(t.targetEditor===e||m)&&n(t.text,t.cursorEndAdjust)})),p.subscribe("editor.insert.table.at.cursor",(function(e){if(m){var r=a.value.database()===e.database?e.name:"".concat(e.database,".").concat(e.name);t()?n("SELECT * FROM ".concat(r," LIMIT 100;"),-1):n("".concat(r," "))}})),p.subscribe("editor.insert.column.at.cursor",(function(e){if(m&&t()){var r=a.value.database()===e.database?e.table:e.database+"."+e.table;n("SELECT ".concat(e.name," FROM ").concat(r," LIMIT 100;"),-1)}})),p.subscribe("sample.error.insert.click",(function(e){if(m&&e.identifierChain.length){var t=e.identifierChain[e.identifierChain.length-1].name;n("SELECT * FROM ".concat(t," LIMIT 100;"),-1)}}))}(t),g.value=t,n("ace-created",t)}})),p.subscribe("editor.cursor.position.changed",(function(e){e.editorId===i.value&&n("cursor-changed",e.position)})),p.subscribe(Kg,(function(e){i.value===e.id&&n("active-statement-changed",e)})),{autocompleteParser:E,editorElement:f,subTracker:p,editor:g,I18n:oh.Z}}});var ev=i(1795);yu()(ev.Z,{insert:"head",singleton:!1}),ev.Z.locals,Zy.render=function(e,t,n,r,i,o){var s=Ir("ace-autocomplete"),a=Ir("ace-syntax-dropdown");return Hr(),qr("div",Ru,[Zr("div",{id:e.id,ref:"editorElement",class:"ace-editor"},null,8,Su),e.editor&&e.autocompleteParser?(Hr(),zr(s,{key:0,"autocomplete-parser":e.autocompleteParser,"sql-reference-provider":e.sqlReferenceProvider,"sql-analyzer-provider":e.sqlAnalyzerProvider,editor:e.editor,"editor-id":e.id,executor:e.executor},null,8,["autocomplete-parser","sql-reference-provider","sql-analyzer-provider","editor","editor-id","executor"])):ii("v-if",!0),e.editor?(Hr(),zr(a,{key:1,editor:e.editor,"editor-id":e.id},null,8,["editor","editor-id"])):ii("v-if",!0)])};const tv=Zy;Vt("data-v-5ccb4105");var nv={class:"executable-progress-container"},rv={key:0,class:"executable-progress"};jt();const iv=mn({name:"ExecutableProgressBar",props:{executable:{type:Object,default:void 0}},setup:function(e){var t=new ih,n=Ot(e).executable,r=St(0),i=St(ip.ready),o=St("100%"),s=-1,a=function(e){window.clearTimeout(s),r.value=e&&e.progress||0,i.value=e&&e.status||ip.ready,100===r.value?s=window.setTimeout((function(){o.value="0"}),2e3):o.value="100%"};return ho(n,(function(e){a(e)}),{immediate:!0}),t.subscribe(Au,(function(e){n.value&&n.value.id===e.id&&a(e)})),{subTracker:t,progress:r,status:i,progressBarHeight:o}},computed:{visible:function(){return this.status!==ip.canceled},progressBarWidth:function(){return this.status===ip.failed?"100%":"".concat(Math.max(2,this.progress),"%")},progressClass:function(){return this.status===ip.failed?"progress-failed":0!==this.progress||this.status!==ip.running&&this.status!==ip.streaming&&this.status!==ip.starting?0<this.progress&&this.progress<100?"progress-running":100===this.progress?"progress-success":"":"progress-starting"}}});var ov=i(172);yu()(ov.Z,{insert:"head",singleton:!1}),ov.Z.locals,iv.render=function(e,t,n,i,o,s){return Hr(),qr("div",nv,[e.visible?(Hr(),qr("div",rv,[Zr("div",{class:l(["executable-progress-bar",e.progressClass]),style:r({width:e.progressBarWidth,height:e.progressBarHeight})},null,6)])):ii("v-if",!0)])},iv.__scopeId="data-v-5ccb4105";const sv=iv;var av=Zr("i",{class:"fa fa-fw fa-spinner fa-spin"},null,-1),cv=Zr("i",{class:"fa fa-play fa-fw"},null,-1),lv=Zr("i",{class:"fa fa-stop fa-fw"},null,-1),uv={key:0},hv={key:1},dv=Zr("i",{class:"fa fa-fw fa-spinner fa-spin"},null,-1),pv=["disabled"],fv=i(2281);yu()(fv.Z,{insert:"head",singleton:!1}),fv.Z.locals;const gv=mn({name:"HueButton",props:{primary:{type:Boolean,required:!1},alert:{type:Boolean,required:!1},borderless:{type:Boolean,required:!1},small:{type:Boolean,required:!1},large:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1}},emits:["click"]});gv.render=function(e,t,n,r,i,o){return Hr(),qr("button",ci(e.$attrs,{class:["hue-btn",{"hue-btn-primary":e.primary,"hue-btn-alert":e.alert,"hue-btn-borderless":e.borderless,"hue-btn-small":e.small,"hue-btn-large":e.large}],type:"button",disabled:e.disabled,onClick:t[0]||(t[0]=function(t){return e.$emit("click")})}),[ui(e.$slots,"default")],16,pv)};const mv=gv;function Ev(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function yv(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Ev(o,r,i,s,a,"next",e)}function a(e){Ev(o,r,i,s,a,"throw",e)}s(void 0)}))}}var vv=/^\s*$/;const bv=mn({name:"ExecuteButton",components:{HueButton:mv},props:{executable:{type:Object,default:void 0},beforeExecute:{type:Function,default:void 0}},emits:["execute-failed","execute-started","execute-successful","executable-updated","execute-stopping"],setup:function(e,t){var n=t.emit,r=Ot(e),i=r.executable,o=r.beforeExecute,s=new ih,a=null,c=St(!1),l=St(!0),u=St(!1),h=St(ip.ready),d=St(!1),p=function(){var e=yv(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(eh("hue.ace.autocompleter.hide"),i.value){e.next=3;break}return e.abrupt("return");case 3:if(!o.value){e.next=6;break}return e.next=6,o.value(i.value);case 6:return e.next=8,i.value.reset();case 8:n("execute-started",i.value),i.value.execute();case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=yv(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.value&&i.value){e.next=2;break}return e.abrupt("return");case 2:return n("execute-stopping",i.value),c.value=!0,e.next=6,i.value.cancelBatchChain(!0);case 6:c.value=!1;case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(e){var t=!a||a.type!==e.executor.connector().type;h.value=e.status,d.value=!e.parsedStatement||!vv.test(e.parsedStatement.statement),u.value=e.isPartOfRunningExecution(),t&&(l.value=!0,a=null,_d.getSession({type:e.executor.connector().id}).then((function(e){a=e,l.value=!1})))};return ho(i,(function(e){e&&g(e)}),{immediate:!0}),s.subscribe(Au,(function(e){var t=i.value&&i.value.id===e.id;t&&g(e),n("executable-updated",{executable:e,active:t})})),s.subscribe(bu,(function(e){var t;e.executable.id===(null===(t=i.value)||void 0===t?void 0:t.id)&&(e.newStatus===ip.available||e.newStatus===ip.streaming||e.newStatus===ip.success?n("execute-successful",i.value):e.newStatus===ip.failed&&n("execute-failed",i.value))})),s.subscribe(qy,function(){var e=yv(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.value||i.value.id!==t.id){e.next=3;break}return e.next=3,p();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),{execute:p,subTracker:s,stop:f,stopping:c,loadingSession:l,partOfRunningExecution:u,status:h,hasStatement:d,I18n:oh.Z}},computed:{waiting:function(){return!!(this.executable&&this.executable.isReady()&&this.partOfRunningExecution)},disabled:function(){return this.loadingSession||!this.executable||!this.hasStatement},showExecute:function(){return!!this.executable&&!this.waiting&&!this.loadingSession&&this.status!==ip.running&&this.status!==ip.streaming},showStop:function(){return this.status===ip.running||this.status===ip.streaming||this.waiting}}});bv.render=function(e,t,n,r,i,o){var s=Ir("HueButton");return Hr(),qr(Fr,null,[e.loadingSession?(Hr(),zr(s,{key:"loading-button",small:!0,disabled:e.disabled,title:e.I18n("Creating session")},{default:qt((function(){return[av,ri(" "+m(e.I18n("Loading")),1)]})),_:1},8,["disabled","title"])):ii("v-if",!0),e.showExecute?(Hr(),zr(s,{key:"execute-button",small:!0,primary:!0,disabled:e.disabled,onClick:e.execute},{default:qt((function(){return[cv,ri(" "+m(e.I18n("Execute")),1)]})),_:1},8,["disabled","onClick"])):ii("v-if",!0),e.showStop&&!e.stopping?(Hr(),zr(s,{key:"stop-button",small:!0,alert:!0,onClick:e.stop},{default:qt((function(){return[lv,e.waiting?(Hr(),qr("span",uv,m(e.I18n("Stop batch")),1)):(Hr(),qr("span",hv,m(e.I18n("Stop")),1))]})),_:1},8,["onClick"])):ii("v-if",!0),e.showStop&&e.stopping?(Hr(),zr(s,{key:"stopping-button",small:!0,alert:!0},{default:qt((function(){return[dv,ri(" "+m(e.I18n("Stopping")),1)]})),_:1})):ii("v-if",!0)],64)};const Av=bv;Vt("data-v-0a455a57");var Tv={autocomplete:"off",class:"inline-block margin-left-10"},Cv=["placeholder"];jt();const Rv=mn({name:"ExecuteLimitInput",props:{executable:{type:Object,default:void 0}},emits:["limit-changed"],setup:function(e){var t=Ot(e).executable,n=St(null),r=new ih,i=function(e){n.value=e.executor.defaultLimit&&e.executor.defaultLimit()||null};return r.subscribe(Au,(function(e){t.value&&t.value.id===e.id&&i(e)})),ho(t,(function(e){e&&i(e)}),{immediate:!0}),{limit:n,I18n:oh.Z}}});var Sv=i(9824);yu()(Sv.Z,{insert:"head",singleton:!1}),Sv.Z.locals,Rv.render=function(e,t,n,r,i,o){return Hr(),qr("form",Tv,[cr(Zr("input",{"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.limit=t}),class:"input-small limit-input",type:"number",autocorrect:"off",autocomplete:"do-not-autocomplete",autocapitalize:"off",spellcheck:"false",placeholder:e.I18n("Limit"),onChange:t[1]||(t[1]=function(t){return e.$emit("limit-changed",e.limit)})},null,40,Cv),[[fs,e.limit]])])},Rv.__scopeId="data-v-0a455a57";const _v=Rv;var xv={class:"execution-analysis-panel"},wv={key:0},Iv={class:"empty"},Nv={key:1,class:"execution-analysis-errors"},Lv={key:2,class:"execution-analysis-jobs"},Ov={class:"execution-analysis-jobs-panel"},kv={key:3,class:"execution-analysis-logs"},Dv=i(3059);const Fv=mn({name:"HueLink",props:{url:{type:String,required:!1,default:""}},emits:["click"],methods:{clicked:function(e){this.url&&this.$attrs.target?function(e,t,n){if(0===t.indexOf("http"))window.open(t,n);else{var r=window.HUE_BASE_URL+"/hue"+(0===t.indexOf("/")?"":"/");n?window.open(r+t,n):e.ctrlKey||e.metaKey||2===e.which?window.open(r+t,"_blank"):eh("open.link",t)}}(e,this.url,this.$attrs.target):this.$emit("click")}}});Fv.render=function(e,t,n,r,i,o){return Hr(),qr("a",{href:"javascript:void(0);",onClick:t[0]||(t[0]=function(){return e.clicked&&e.clicked.apply(e,arguments)})},[ui(e.$slots,"default")])};const Mv=Fv;Vt("data-v-5859490b");var Pv={key:0},Bv={key:1};jt();const Uv=mn({name:"LogsPanel",props:{logs:{type:String,default:void 0},autoScroll:{type:Boolean,default:!0}},data:function(){return{ignoreNextScrollEvent:!1,userScrolled:!1}},watch:{logs:function(){if(this.autoScroll){var e=this.$refs.logsContainer;!this.userScrolled&&e&&e.scrollHeight>e.clientHeight&&(this.ignoreNextScrollEvent=!0,e.scrollTop=e.scrollHeight-e.clientHeight)}}},methods:{I18n:oh.Z,onScroll:function(){if(this.autoScroll){var e=this.$refs.logsContainer;!this.ignoreNextScrollEvent&&e&&(this.userScrolled=e&&e.scrollHeight-e.clientHeight-e.scrollTop>10),this.ignoreNextScrollEvent=!1}}}});var $v=i(2887);function Hv(e){return function(e){if(Array.isArray(e))return Gv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Gv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gv(e,t):void 0}}(e)||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 Gv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}yu()($v.Z,{insert:"head",singleton:!1}),$v.Z.locals,Uv.render=function(e,t,n,r,i,o){return Hr(),qr("div",{ref:"logsContainer",class:"logs-panel",onScroll:t[0]||(t[0]=function(){return e.onScroll&&e.onScroll.apply(e,arguments)})},[e.logs?(Hr(),qr("span",Pv,m(e.logs),1)):(Hr(),qr("span",Bv,m(e.I18n("There are currently no logs available.")),1))],544)},Uv.__scopeId="data-v-5859490b";const Wv=mn({name:"ExecutionAnalysisPanel",components:{HueLink:Mv,LogsPanel:Uv},props:{executable:{type:up,default:void 0}},setup:function(e){var t=new ih;Dn(t.dispose.bind(t));var n=St(!1),r=St(""),i=dt([]),o=dt([]),s=Mt((function(){return!!i.length})),a=Mt((function(){return i.filter((function(e){return e.url}))})),c=(0,Dv.debounce)((function(e){var t=e.status,s=e.logs;r.value=s.fullLog,i.splice.apply(i,[0,i.length].concat(Hv(s.jobs))),o.splice.apply(o,[0,o.length].concat(Hv(s.errors))),n.value=t!==ip.ready||!!o.length}),5),l=function(t){e.executable&&e.executable.id===t.id&&(c.cancel(),c(t))};return l(e.executable),t.subscribe(Au,l),t.subscribe(Tu,(function(e){l(e.executable)})),{analysisAvailable:n,executionLogs:r,jobs:i,jobsAvailable:s,jobsWithUrls:a,errors:o,I18n:oh.Z}}});var Vv=i(5927);yu()(Vv.Z,{insert:"head",singleton:!1}),Vv.Z.locals,Wv.render=function(e,t,n,r,i,o){var s=Ir("hue-link"),a=Ir("LogsPanel");return Hr(),qr("div",xv,[e.analysisAvailable?ii("v-if",!0):(Hr(),qr("div",wv,[Zr("h1",Iv,m(e.I18n("Select and execute a query to see the analysis.")),1)])),e.analysisAvailable&&e.errors.length?(Hr(),qr("div",Nv,[Zr("h4",null,m(e.I18n("Errors")),1),Zr("ul",null,[(Hr(!0),qr(Fr,null,li(e.errors,(function(e){return Hr(),qr("li",{key:e.message},m(e.message),1)})),128))])])):ii("v-if",!0),e.analysisAvailable&&e.jobsAvailable?(Hr(),qr("div",Lv,[Zr("h4",null,m(e.I18n("Jobs")),1),Zr("div",Ov,[(Hr(!0),qr(Fr,null,li(e.jobsWithUrls,(function(e){return Hr(),zr(s,{key:e.url,url:e.url,target:"_blank"},{default:qt((function(){return[ri(m(e.name),1)]})),_:2},1032,["url"])})),128))])])):ii("v-if",!0),e.analysisAvailable?(Hr(),qr("div",kv,[Zr("h4",null,m(e.I18n("Logs")),1),ei(a,{class:"execution-analysis-logs-panel",logs:e.executionLogs},null,8,["logs"])])):ii("v-if",!0)])};const jv=Wv;var qv={key:1},zv={class:"empty"},Kv=Zr("i",{class:"fa fa-spinner fa-spin"},null,-1),Yv={key:2},Xv={class:"empty"},Jv={key:3},Qv={class:"empty"},Zv={key:4},eb={class:"empty"},tb={key:5},nb={class:"empty"},rb={key:6},ib={class:"empty"},ob={key:7},sb={class:"empty"},ab=i(6696);yu()(ab.Z,{insert:"head",singleton:!1}),ab.Z.locals;var cb={key:0},lb={class:"header-row"},ub=Zr("th",{class:"column-flush",scope:"col"},null,-1),hb=["onClick"],db=["innerHTML"],pb=Zr("td",{class:"column-flush"},null,-1),fb=i(5301);yu()(fb.Z,{insert:"head",singleton:!1}),fb.Z.locals;const gb=mn({name:"HueTable",props:{rows:{type:Array,required:!1,default:function(){return[]}},columns:{type:Array,required:!1,default:function(){return[]}},caption:{type:String,default:void 0},showHeader:{type:Boolean,required:!1,default:!0},stickyHeader:{type:Boolean,required:!1,default:!1},stickyFirstColumn:{type:Boolean,required:!1,default:!1},clickableRows:{type:Boolean,default:!1}},emits:["scroll-to-end","row-clicked"],methods:{hasCellSlot:function(e){return!!this.$slots[this.cellSlotName(e)]},cellSlotName:function(e){return"cell-"+e.key},onContainerScroll:function(){var e=this.$refs.tableContainer;e.scrollHeight===e.scrollTop+e.clientHeight&&this.$emit("scroll-to-end")},cellClass:function(e,t){return e&&this.stickyFirstColumn&&0===t?"".concat(e," sticky-first-col"):this.stickyFirstColumn&&0===t?"sticky-first-col":e||null},onRowClick:function(e){this.clickableRows&&this.$emit("row-clicked",e)}}});function mb(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}gb.render=function(e,t,n,r,i,o){return Hr(),qr("div",{ref:"tableContainer",class:"hue-table-container",onScroll:t[0]||(t[0]=function(){return e.onContainerScroll&&e.onContainerScroll.apply(e,arguments)})},[Zr("table",{class:l(["hue-table",{"sticky-header":e.stickyHeader&&e.showHeader,"header-less":!e.showHeader}])},[Zr("caption",null,[ii(" Because of Web:TableWithoutCaptionCheck "),ri(m(e.caption),1)]),e.showHeader?(Hr(),qr("thead",cb,[Zr("tr",lb,[(Hr(!0),qr(Fr,null,li(e.columns,(function(t,n){return Hr(),qr("th",{key:n,class:l(e.cellClass(t.headerCssClass,n)),scope:"col"},m(void 0!==t.label?t.label:t.key),3)})),128)),ii(" To fill the blank space to the right when table width is smaller than available horizontal space "),ub])])):ii("v-if",!0),Zr("tbody",{class:l({"clickable-rows":e.clickableRows})},[(Hr(!0),qr(Fr,null,li(e.rows,(function(t,n){return Hr(),qr("tr",{key:n,onClick:function(n){return e.onRowClick(t)}},[(Hr(!0),qr(Fr,null,li(e.columns,(function(n,r){return Hr(),qr("td",{key:r,class:l(e.cellClass(n.cssClass,r))},[e.hasCellSlot(n)?ui(e.$slots,e.cellSlotName(n),u(ci({key:0},t))):n.htmlValue?(Hr(),qr("div",{key:1,innerHTML:t[n.key]},null,8,db)):(Hr(),qr(Fr,{key:2},[ri(m(n.adapter?n.adapter(n.key,t):t[n.key]),1)],2112))],2)})),128)),pb],8,hb)})),128))],2)],2)],544)};const Eb=mn({name:"ResultTable",components:{HueTable:gb},props:{executable:{type:Object,default:void 0}},setup:function(e){var t=Ot(e).executable,n=new ih,r=St(!1),i=St(!1),o=St(!1),s=St(!1),a=St(!1),c=St([]),l=St([]),u=St(null),h=St(null),d=St(dd.Table),p=Mt((function(){return!c.value.length&&o.value&&h.value===ip.available&&i.value})),f=Mt((function(){return!c.value.length&&!o.value&&h.value===ip.available&&i.value})),g=Mt((function(){return h.value===ip.running})),m=Mt((function(){return!c.value.length&&h.value===ip.expired})),E=Mt((function(){return!c.value.length&&h.value===ip.failed})),y=Mt((function(){return!c.value.length&&s.value&&h.value!==ip.running})),v=function(){d.value=dd.Table,i.value=!1,s.value=!1,a.value=!1,c.value=[],l.value=[]},b=function(){var e,n=null===(e=t.value)||void 0===e?void 0:e.result;n?(function(e,t){if(t&&v(),e){i.value=e.fetchedOnce,a.value=e.hasMore,d.value=e.type||dd.Table,s.value=e.streaming,!l.value.length&&e.meta.length&&(l.value=e.meta.map((function(e,t){return{label:e.name,key:t,htmlValue:!0}})));var n=function(e,t){t.forEach((function(t){s.value?e.unshift(t):e.push(t)}))};if(t){var r=[];n(r,e.rows),c.value=r}else e.lastRows.length&&c.value.length!==e.rows.length&&n(c.value,e.lastRows)}}(n,u.value!==t.value.result),u.value=n):v()},A=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){mb(o,r,i,s,a,"next",e)}function a(e){mb(o,r,i,s,a,"throw",e)}s(void 0)}))}}(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s.value){e.next=2;break}return e.abrupt("return");case 2:if(!a.value||r.value||null===(n=t.value)||void 0===n||!n.result){e.next=12;break}return r.value=!0,e.prev=4,e.next=7,t.value.result.fetchRows({rows:100});case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(4);case 11:Ou((function(){r.value=!1}));case 12:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(){return e.apply(this,arguments)}}();return ho(t,b),n.subscribe(Au,(function(e){var n;(null===(n=t.value)||void 0===n?void 0:n.id)===e.id&&function(e){h.value=e.status,o.value=!(!e.handle||!e.handle.has_result_set),o.value||v()}(e)})),n.subscribe(Cu,(function(e){var n;(null===(n=t.value)||void 0===n?void 0:n.id)===e.executable.id&&b()})),{I18n:oh.Z,columns:l,grayedOut:r,hasEmptyResult:p,hasEmptySuccessResult:f,isExecuting:g,isExpired:m,isFailed:E,isWaitingForStream:y,onScrollToEnd:A,rows:c,subTracker:n}}});Eb.render=function(e,t,n,r,i,o){var s=Ir("HueTable");return Hr(),qr("div",{class:l(["result-grid",{"grayed-out":e.grayedOut}])},[e.rows.length?(Hr(),zr(s,{key:0,columns:e.columns,rows:e.rows,"sticky-header":!0,"sticky-first-column":!0,onScrollToEnd:e.onScrollToEnd},null,8,["columns","rows","onScrollToEnd"])):e.isExecuting?(Hr(),qr("div",qv,[Zr("h1",zv,[Kv,ri(" "+m(e.I18n("Executing...")),1)])])):e.hasEmptySuccessResult?(Hr(),qr("div",Yv,[Zr("h1",Xv,m(e.I18n("Success.")),1)])):e.isExpired?(Hr(),qr("div",Jv,[Zr("h1",Qv,m(e.I18n("Results have expired, rerun the query if needed.")),1)])):e.isFailed?(Hr(),qr("div",Zv,[Zr("h1",eb,m(e.I18n("Execution failed!")),1)])):e.hasEmptyResult?(Hr(),qr("div",tb,[Zr("h1",nb,m(e.I18n("Empty result.")),1)])):e.isWaitingForStream?(Hr(),qr("div",rb,[Zr("h1",ib,m(e.I18n("Waiting for streaming data...")),1)])):e.rows.length||e.executable&&e.executable.result?ii("v-if",!0):(Hr(),qr("div",ob,[Zr("h1",sb,m(e.I18n("Select and execute a query to see the result.")),1)]))],2)};const yb=Eb;function vb(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}var bb,Ab="api/token/auth/",Tb=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){vb(o,r,i,s,a,"next",e)}function a(e){vb(o,r,i,s,a,"throw",e)}s(void 0)}))}}(regeneratorRuntime.mark((function e(t,n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===n){e.next=4;break}return e.abrupt("return",sd(Ab,{email:n,password:r}));case 4:return e.abrupt("return",sd(Ab,{username:t,password:r}));case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Cb="context.catalog.namespaces.refreshed";function Rb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sb(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function _b(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){Sb(o,r,i,s,a,"next",e)}function a(e){Sb(o,r,i,s,a,"throw",e)}s(void 0)}))}}!function(e){e.Namespace="namespace",e.Compute="compute",e.Cluster="cluster"}(bb||(bb={}));var xb=window.LOGGED_USERNAME,wb=Uh().createInstance({name:"HueContextCatalog_".concat(xb)}),Ib=new Map,Nb=new Map,Lb=new Map;th("context.catalog.refresh",_b(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Ib.keys(),t=function(e){if(Array.isArray(e))return Rb(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return Rb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rb(e,t):void 0}}(n)||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.")}(),Ib.clear(),Nb.clear(),Lb.clear(),e.prev=4,e.next=7,wb.clear();case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(4);case 11:eh("context.catalog.refreshed"),t.forEach((function(e){eh(Cb,e)}));case 13:case"end":return e.stop()}var n}),e,null,[[4,9]])}))));var Ob=function(e,t,n){n&&window.setTimeout(_b(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,wb.setItem("".concat(e,"_").concat(t.id),{version:4,entry:n});case 3:r.next=7;break;case 5:r.prev=5,r.t0=r.catch(0);case 7:case"end":return r.stop()}}),r,null,[[0,5]])}))),1e3)},kb=function(){var e=_b(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,wb.removeItem("".concat(t,"_").concat(n.id));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Db=function(){var e=_b(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=12;break;case 4:if(!(r=e.sent)||4!==r.version){e.next=7;break}return e.abrupt("return",r.entry);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.warn(e.t0);case 12:return e.abrupt("return",void 0);case 13:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t,n){return e.apply(this,arguments)}}(),Fb=function(){var e=_b(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.connector,r=t.clearCache,i=t.silenceErrors,o=Ib.has(n.id)&&r,!r){e.next=6;break}return Ib.delete(n.id),e.next=6,kb(bb.Namespace,n);case 6:return Ib.has(n.id)||Ib.set(n.id,new Promise(function(){var e=_b(regeneratorRuntime.mark((function e(t,r){var s,a,c,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Db(bb.Namespace,n);case 3:if(!(s=e.sent)){e.next=7;break}return t(s),e.abrupt("return");case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:return e.next=13,jp(n,i);case 13:a=e.sent,(c=a[n.id])?(l=a.dynamicClusters,c.forEach((function(e){e.computes.forEach((function(e){!e.id&&e.crn&&(e.id=e.crn),!e.name&&e.clusterName&&(e.name=e.clusterName)}))})),u={namespaces:c.filter((function(e){return e.name})),dynamic:l,hueTimestamp:Date.now()},t(u),o&&eh(Cb,n.id),u.namespaces.length?Ob(bb.Namespace,n,u):kb(bb.Namespace,n).catch(ku)):r();case 16:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}())),e.abrupt("return",Ib.get(n.id));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Mb=function(){var e=_b(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.connector,r=t.clearCache,i=t.silenceErrors,!r){e.next=5;break}return Nb.delete(n.id),e.next=5,kb(bb.Compute,n);case 5:return Nb.has(n.id)||Nb.set(n.id,new Promise(function(){var e=_b(regeneratorRuntime.mark((function e(t,r){var o,s,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Db(bb.Compute,n);case 3:if(!(o=e.sent)){e.next=7;break}return t(o),e.abrupt("return");case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:return e.next=13,Vp(n,i);case 13:s=e.sent,(a=s[n.id])?(t(a),a.length?Ob(bb.Compute,n,a):kb(bb.Compute,n).catch(ku)):r();case 16:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}())),e.abrupt("return",Nb.get(n.id));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Pb=function(){var e=_b(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.connector,r=t.clearCache,i=t.silenceErrors,!r){e.next=5;break}return Lb.delete(n.id),e.next=5,kb(bb.Cluster,n);case 5:return Lb.has(n.id)||Lb.set(n.id,new Promise(function(){var e=_b(regeneratorRuntime.mark((function e(t,r){var o,s,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Db(bb.Cluster,n);case 3:if(!(o=e.sent)){e.next=7;break}return t(o),e.abrupt("return");case 7:e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:return e.next=13,Wp(n,i);case 13:s=e.sent,(a=s[n.id])?(t(a),a.length?Ob(bb.Cluster,n,a):kb(bb.Cluster,n).catch(ku)):r();case 16:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}())),e.abrupt("return",Lb.get(n.id));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const Bb={getNamespaces:Fb,getComputes:Mb,getClusters:Pb};function Ub(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ub(Object(n),!0).forEach((function(t){Hb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ub(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Vb=function(e,t){var n=e.silenceErrors,r=e.paths,i=e.connector,o=new Set;r.forEach((function(e){o.add(e.join("."))}));var s,a={connector:JSON.stringify(i),dbTables:JSON.stringify((s=o.values(),function(e){if(Array.isArray(e))return Wb(e)}(s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return Wb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wb(e,t):void 0}}(s)||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.")}()))};return sd(t,a,{silenceErrors:n,handleSuccess:function(e,t,n){Zh(e)?n(td(e)):(e.hueTimestamp=Date.now(),t(e))}})},jb="/api/optimizer/top_columns",qb=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.connector=void 0,this.connector=t}var t,n;return t=e,n=[{key:"analyzeCompatibility",value:function(e){var t=e.notebookJson,n=e.snippetJson,r=e.sourcePlatform,i=e.targetPlatform,o=e.silenceErrors;return sd("/api/optimizer/query_compatibility",{connector:JSON.stringify(this.connector),notebook:t,snippet:n,sourcePlatform:r,targetPlatform:i},{silenceErrors:o})}},{key:"analyzeRisk",value:function(e){var t=e.notebookJson,n=e.snippetJson,r=e.silenceErrors;return sd("/api/optimizer/query_risk/",{connector:JSON.stringify(this.connector),notebook:t,snippet:n},{silenceErrors:r})}},{key:"analyzeSimilarity",value:function(e){var t=e.notebookJson,n=e.snippetJson,r=e.sourcePlatform,i=e.silenceErrors;return sd("/api/optimizer/similar_queries",{connector:JSON.stringify(this.connector),notebook:t,snippet:n,sourcePlatform:r},{silenceErrors:i})}},{key:"fetchPopularity",value:function(e){var t,n,r=e.paths,i=e.silenceErrors;return 1===r.length&&1===r[0].length?(t="/api/optimizer/top_tables",n={connector:JSON.stringify(this.connector),database:r[0][0]}):(t=jb,n={connector:JSON.stringify(this.connector),dbTables:JSON.stringify(r.map((function(e){return e.join(".")})))}),sd(t,n,{silenceErrors:i,handleSuccess:function(e,t,n){Zh(e)?n(td(e)):(e.hueTimestamp=Date.now(),t(e))}})}},{key:"fetchTopAggs",value:function(e){return Vb($b($b({},e),{},{connector:this.connector}),"/api/optimizer/top_aggs")}},{key:"fetchTopColumns",value:function(e){return Vb($b($b({},e),{},{connector:this.connector}),jb)}},{key:"fetchTopFilters",value:function(e){return Vb($b($b({},e),{},{connector:this.connector}),"/api/optimizer/top_filters")}},{key:"fetchTopJoins",value:function(e){return Vb($b($b({},e),{},{connector:this.connector}),"/api/optimizer/top_joins")}},{key:"fetchSqlAnalyzerMeta",value:function(e){var t=e.path,n=e.silenceErrors;return sd("/api/optimizer/table_details",{connector:JSON.stringify(this.connector),databaseName:t[0],tableName:t[1]},{silenceErrors:n,handleSuccess:function(e,t,n){0===e.status&&e.details&&(e.details.hueTimestamp=Date.now(),t(e.details)),n(td(e))}})}},{key:"predict",value:function(e){var t=e.beforeCursor,n=e.afterCursor;return sd("/api/optimizer/predict",{connector:JSON.stringify(this.connector),beforeCursor:t,afterCursor:n},{silenceErrors:!0,handleSuccess:function(e,t){t(e)}})}}],n&&Gb(t.prototype,n),e}();function zb(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function Kb(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){zb(o,r,i,s,a,"next",e)}function a(e){zb(o,r,i,s,a,"throw",e)}s(void 0)}))}}function Yb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Xb={calcite:function(){return i.e(284).then(i.bind(i,4233))},dasksql:function(){return i.e(389).then(i.bind(i,7886))},flink:function(){return i.e(805).then(i.bind(i,7971))},generic:function(){return i.e(932).then(i.bind(i,7759))},hive:function(){return i.e(902).then(i.bind(i,8448))},impala:function(){return i.e(294).then(i.bind(i,1355))},ksql:function(){return i.e(551).then(i.bind(i,5729))},phoenix:function(){return i.e(235).then(i.bind(i,6997))},presto:function(){return i.e(336).then(i.bind(i,3119))},sparksql:function(){return i.e(480).then(i.bind(i,2129))}},Jb={calcite:function(){return i.e(284).then(i.bind(i,4063))},dasksql:function(){return i.e(389).then(i.bind(i,9650))},flink:function(){return i.e(805).then(i.bind(i,2623))},generic:function(){return i.e(932).then(i.bind(i,4034))},hive:function(){return i.e(902).then(i.bind(i,2046))},impala:function(){return i.e(294).then(i.bind(i,8940))},ksql:function(){return i.e(551).then(i.bind(i,9343))},phoenix:function(){return i.e(235).then(i.bind(i,3847))},presto:function(){return i.e(336).then(i.bind(i,6680))},sparksql:function(){return i.e(480).then(i.bind(i,7590))}},Qb=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modulePromises={}}var t,n,r,i,o;return t=e,n=[{key:"getParser",value:(o=Kb(regeneratorRuntime.mark((function e(t,n){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.modulePromises[t+n]||(i=(r="Autocomplete"===n?Xb:Jb)[t]||r.generic,this.modulePromises[t+n]=new Promise((function(e,t){i().then((function(t){return e(t.default)})).catch(t)}))),e.abrupt("return",this.modulePromises[t+n]);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"getAutocompleteParser",value:(i=Kb(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getParser(t,"Autocomplete");case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"getSyntaxParser",value:(r=Kb(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getParser(t,"Syntax");case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}],n&&Yb(t.prototype,n),e}();const Zb=new Qb;function eA(e){return function(e){if(Array.isArray(e))return tA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return tA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tA(e,t):void 0}}(e)||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 tA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nA(Object(n),!0).forEach((function(t){iA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oA(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function sA(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){oA(o,r,i,s,a,"next",e)}function a(e){oA(o,r,i,s,a,"throw",e)}s(void 0)}))}}function aA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var cA=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiAnalyzer=void 0,this.connector=void 0,this.apiAnalyzer=new qb(t),this.connector=t}var t,n,r,i;return t=e,n=[{key:"analyzeRisk",value:function(e){var t=this;return new Lh(function(){var n=sA(regeneratorRuntime.mark((function n(r,i,o){var s,a,c,l,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.connector.dialect){n.next=3;break}return i(),n.abrupt("return");case 3:return s=t.apiAnalyzer.analyzeRisk(rA(rA({},e),{},{silenceErrors:!0})),o((function(){s.cancel()})),a=JSON.parse(e.snippetJson),n.next=8,t.checkMissingLimit(a.statement,t.connector.dialect);case 8:return c=n.sent,l=c?[{riskTables:[],riskAnalysis:(0,oh.Z)("Query has no limit"),riskId:17,risk:"low",riskRecommendation:(0,oh.Z)("Append a limit clause to reduce the size of the result set")}]:[],n.next=12,t.checkSelectStar(a.statement,t.connector.dialect);case 12:return n.sent&&l.push({riskTables:[],riskAnalysis:(0,oh.Z)("Query doing a SELECT *"),riskId:18,risk:"low",riskRecommendation:(0,oh.Z)("Select only a subset of columns instead of all of them")}),n.prev=14,n.next=17,s;case 17:(u=n.sent).query_complexity&&u.query_complexity.hints&&l.push.apply(l,eA(u.query_complexity.hints)),n.next=23;break;case 21:n.prev=21,n.t0=n.catch(14);case 23:r({status:0,message:"",query_complexity:{hints:l,noStats:!0,noDDL:!1}});case 24:case"end":return n.stop()}}),n,null,[[14,21]])})));return function(e,t,r){return n.apply(this,arguments)}}())}},{key:"checkMissingLimit",value:(i=sA(regeneratorRuntime.mark((function e(t,n){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zb.getAutocompleteParser(n);case 2:r=e.sent,e.prev=3,i=r.parseSql(t+" ",""),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return",!1);case 10:return e.abrupt("return",i.locations.some((function(e){return"statementType"===e.type&&"SELECT"===e.identifier}))&&i.locations.some((function(e){return"table"===e.type}))&&i.locations.some((function(e){return"limitClause"===e.type&&e.missing})));case 11:case"end":return e.stop()}}),e,null,[[3,7]])}))),function(e,t){return i.apply(this,arguments)})},{key:"checkSelectStar",value:(r=sA(regeneratorRuntime.mark((function e(t,n){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zb.getAutocompleteParser(n);case 2:r=e.sent,e.prev=3,i=r.parseSql(t+" ",""),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return",!1);case 10:return e.abrupt("return",i.locations.some((function(e){return"statementType"===e.type&&"SELECT"===e.identifier}))&&i.locations.some((function(e){return"selectList"===e.type&&!e.missing}))&&i.locations.some((function(e){return"asterisk"===e.type})));case 11:case"end":return e.stop()}}),e,null,[[3,7]])}))),function(e,t){return r.apply(this,arguments)})},{key:"fetchTopJoins",value:function(e){var t=this,n=this.apiAnalyzer.fetchTopJoins(e),r=e.paths[0].join(".");return new Lh((function(i,o,s){Fb(rA({connector:t.connector},e)).then(function(){var a=sA(regeneratorRuntime.mark((function a(c){var l,u,h,d,p;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(c.namespaces.length&&c.namespaces[0].computes.length){a.next=4;break}return o("No namespace or compute found"),console.warn(c),a.abrupt("return");case 4:return a.next=6,Wf.getEntry({connector:t.connector,path:r,namespace:c.namespaces[0],compute:c.namespaces[0].computes[0]});case 6:return l=a.sent,u=l.getSourceMeta(e),s((function(){n.cancel(),u.cancel()})),a.prev=9,a.next=12,u;case 12:return h=a.sent,d=(h.foreign_keys||[]).map((function(e){return{totalTableCount:22,totalQueryCount:3,joinCols:[{columns:[r+"."+e.name,e.to]}],tables:[r].concat(e.to.split(".",2).join(".")),joinType:"join"}})),a.prev=14,a.next=17,n;case 17:p=a.sent,d.push.apply(d,eA(p.values)),a.next=23;break;case 21:a.prev=21,a.t0=a.catch(14);case 23:i({values:d}),a.next=29;break;case 26:a.prev=26,a.t1=a.catch(9),o(a.t1);case 29:case"end":return a.stop()}}),a,null,[[9,26],[14,21]])})));return function(e){return a.apply(this,arguments)}}()).catch(o)}))}},{key:"analyzeCompatibility",value:function(e){return window.SQL_ANALYZER_MODE===Rf.api?this.apiAnalyzer.analyzeCompatibility(e):Lh.reject("analyzeCompatibility is not Implemented")}},{key:"analyzeSimilarity",value:function(e){return window.SQL_ANALYZER_MODE===Rf.api?this.apiAnalyzer.analyzeSimilarity(e):Lh.reject("analyzeSimilarity is not Implemented")}},{key:"fetchSqlAnalyzerMeta",value:function(e){return window.SQL_ANALYZER_MODE===Rf.api?this.apiAnalyzer.fetchSqlAnalyzerMeta(e):Lh.reject("fetchSqlAnalyzerMeta is not Implemented")}},{key:"fetchPopularity",value:function(e){return window.SQL_ANALYZER_MODE===Rf.api?this.apiAnalyzer.fetchPopularity(e):Lh.reject("fetchPopularity is not Implemented")}},{key:"fetchTopAggs",value:function(e){return window.SQL_ANALYZER_MODE===Rf.api?this.apiAnalyzer.fetchTopAggs(e):Lh.reject("fetchTopAggs is not Implemented")}},{key:"fetchTopColumns",value:function(e){return window.SQL_ANALYZER_MODE===Rf.api?this.apiAnalyzer.fetchTopColumns(e):Lh.reject("fetchTopColumns is not Implemented")}},{key:"fetchTopFilters",value:function(e){return window.SQL_ANALYZER_MODE===Rf.api?this.apiAnalyzer.fetchTopFilters(e):Lh.reject("fetchTopFilters is not Implemented")}},{key:"predict",value:function(e){return this.apiAnalyzer.predict(e)}}],n&&aA(t.prototype,n),e}(),lA={};const uA={getSqlAnalyzer:function(e){var t=lA[e.id];return t||(t=function(e){return"api"===e.optimizer?new cA(e):new Fh}(e),lA[e.id]=t),t}};var hA=Zr("div",{id:"hueIconSprites"},[Zr("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",style:{display:"none"}},[Zr("defs",null,[Zr("symbol",{id:"hueChevronLeftSymbol",viewBox:"0 0 24 24"},[Zr("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})]),Zr("symbol",{id:"hueChevronLeftLimitSymbol",viewBox:"0 0 24 24"},[Zr("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})]),Zr("symbol",{id:"hueChevronRightSymbol",viewBox:"0 0 24 24"},[Zr("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})]),Zr("symbol",{id:"hueChevronRightLimitSymbol",viewBox:"0 0 24 24"},[Zr("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})]),Zr("symbol",{id:"hueColumnSymbol",viewBox:"0 0 24 24"},[ii(' "View Column" from Google Fonts, Apache 2.0 license '),Zr("path",{d:"M0 0h24v24H0V0z",fill:"none"}),Zr("path",{d:"M4 5v13h17V5H4zm10 2v9h-3V7h3zM6 7h3v9H6V7zm13 9h-3V7h3v9z"})]),Zr("symbol",{id:"hueConnectorSymbol",viewBox:"0 0 24 24"},[ii(' "Storage" from Google Fonts, Apache 2.0 license '),Zr("path",{d:"M0 0h24v24H0V0z",fill:"none"}),Zr("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"})]),Zr("symbol",{id:"hueDatabaseSymbol",viewBox:"0 0 24 24"},[Zr("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[Zr("g",{id:"system-icons/database",fill:"#000000"},[Zr("path",{id:"database",d:"M18.2129,9.4307 C15.2589,10.8937 8.7409,10.8937 5.7869,9.4307 L5.7869,6.3377 C7.4619,6.9907 9.7359,7.3067 11.9999,7.3067 C14.2639,7.3067 16.5379,6.9907 18.2129,6.3377 L18.2129,9.4307 Z M18.2129,14.3707 C15.2589,15.8337 8.7409,15.8337 5.7869,14.3707 L5.7869,11.0407 C7.4619,11.6837 9.7359,11.9997 11.9999,11.9997 C14.2639,11.9997 16.5379,11.6837 18.2129,11.0407 L18.2129,14.3707 Z M18.2129,18.9167 C18.2129,19.3227 16.1019,20.2807 11.9999,20.2807 C7.8989,20.2807 5.7869,19.3227 5.7869,18.9167 L5.7869,15.9827 C7.4619,16.6237 9.7359,16.9407 11.9999,16.9407 C14.2639,16.9407 16.5379,16.6237 18.2129,15.9827 L18.2129,18.9167 Z M11.9999,3.7197 C14.4439,3.7197 17.0759,4.0947 17.9999,4.8357 C15.0249,6.1697 8.9539,6.1697 5.9899,4.8267 C6.9239,4.0947 8.6399,3.7197 11.9999,3.7197 L11.9999,3.7197 Z M11.9999,1.9997 C10.6599,1.9997 3.9999,2.1487 3.9999,5.0827 L3.9999,18.9167 C3.9999,19.6977 4.4969,20.7547 6.8729,21.4167 C8.2339,21.7917 10.0609,21.9997 11.9999,21.9997 C13.3399,21.9997 19.9999,21.8517 19.9999,18.9167 L19.9999,5.0827 C19.9999,2.1487 13.3399,1.9997 11.9999,1.9997 L11.9999,1.9997 Z"})])])]),Zr("symbol",{id:"hueDropDownSymbol",viewBox:"0 0 24 24"},[Zr("polygon",{points:"6 9 12 15 18 9"})]),Zr("symbol",{id:"hueDropLeftSymbol",viewBox:"0 0 24 24"},[Zr("polygon",{points:"15 6 9 11.9988 15 18"})]),Zr("symbol",{id:"hueDropRightSymbol",viewBox:"0 0 24 24"},[Zr("polygon",{points:"9 6 9 18 15 11.9988"})]),Zr("symbol",{id:"hueDropUpSymbol",viewBox:"0 0 24 24"},[Zr("polygon",{points:"12.0001 9 6 15.0001 17.999 15.0001"})]),Zr("symbol",{id:"hueSpinnerLargeSymbol",viewBox:"0 0 64 64"},[Zr("path",{"stroke-width":"4",fill:"none",stroke:"currentColor","fill-rule":"evenodd",d:"M56,32 C56,45.256 45.256,56 32,56 C18.744,56 8,45.256 8,32 C8,18.744 18.744,8 32,8"})]),Zr("symbol",{id:"hueSpinnerSmallSymbol",viewBox:"0 0 24 24"},[Zr("path",{"stroke-width":"1",fill:"none",stroke:"currentColor","fill-rule":"evenodd",d:"M21,12 C21,16.971 16.971,21 12,21 C7.029,21 3,16.971 3,12 C3,7.029 7.029,3 12,3"})]),Zr("symbol",{id:"hueTableSymbol",viewBox:"0 0 16 16"},[Zr("g",{transform:"scale(0.875) translate(1,1)"},[Zr("path",{d:"M18.349 2H5.634C4.728 2 4 2.728 4 3.634v12.732C4 17.272 4.728 18 5.634 18h12.732c.906 0 1.634-.728 1.634-1.634V3.634C19.982 2.728 19.254 2 18.349 2zm-12.715.941h12.732c.373 0 .693.302.693.693V5.25H4.94V3.634c0-.39.302-.693.693-.693zM9.86 13.134v-3.036h4.12v3.036H9.86zm4.12.941v2.984H9.86v-2.984h4.12zm0-7.902v3.001H9.86v-3h4.12zM8.919 9.174H4.941v-3H8.92v3zm0 .924v3.036H4.941v-3.036H8.92zm5.984 0h4.138v3.036h-4.138v-3.036zm0-.924v-3h4.138v3h-4.138zM4.941 16.35v-2.274H8.92v2.984H5.634c-.39-.018-.693-.32-.693-.71zm13.408.692h-3.446v-2.966h4.138v2.291c0 .373-.302.675-.692.675z",transform:"translate(-57 -261) translate(0 31) translate(53 228)"})])]),Zr("symbol",{id:"hueViewSymbol",viewBox:"0 0 24 24"},[Zr("path",{d:"M12,5 C18,5 22,12.5 22,12.5 C22,12.5 17,20 12,20 C7,20 2,12.5 2,12.5 C2,12.5 6,5 12,5 Z M12,7 C8.496,7 5.633,10.59 4.408,12.41 C6.055,14.53 9.313,18 12,18 C14.688,18 17.948,14.526 19.596,12.406 C18.378,10.585 15.532,7 12,7 Z M12,8 C14.209,8 16,9.791 16,12 C16,14.209 14.209,16 12,16 C9.791,16 8,14.209 8,12 C8,10.984 8.391,10.068 9.014,9.363 C9.01,9.408 9,9.453 9,9.5 C9,10.328 9.671,11 10.5,11 C11.329,11 12,10.328 12,9.5 C12,8.877 11.62,8.344 11.08,8.116 C11.376,8.047 11.682,8 12,8 Z"})])])])],-1),dA=i(8345);yu()(dA.Z,{insert:"head",singleton:!1}),dA.Z.locals;const pA=mn({name:"HueIcons",setup:function(){return{alreadyPresentInDom:!!document.getElementById("hueIconSprites")}}});function fA(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function gA(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){fA(o,r,i,s,a,"next",e)}function a(e){fA(o,r,i,s,a,"throw",e)}s(void 0)}))}}pA.render=function(e,t,n,r,i,o){return e.alreadyPresentInDom?ii("v-if",!0):(Hr(),zr(wr,{key:0,to:"body"},[hA]))};const mA=mn({name:"SqlScratchpad",components:{ExecutionAnalysisPanel:jv,HueButton:mv,Spinner:UE,HueIcons:pA,ResultTable:yb,ExecuteLimitInput:_v,ExecuteButton:Av,ExecutableProgressBar:sv,AceEditor:tv},props:{apiUrl:{type:String,default:null},dialect:{type:String,default:null},username:{type:String,default:null},email:{type:String,default:null},password:{type:String,default:null}},setup:function(e){var t=Ot(e),n=t.apiUrl,r=t.dialect,i=t.username,o=t.email,s=t.password,a=new ih,c=St(null),l=St(null),u=St(!0),h=St(void 0),d=St(!1),p=St(null),f=ep(),g={getAutocompleteParser:function(){return Promise.resolve(mu.default)},getSyntaxParser:function(){return Promise.reject()}},m={getReservedKeywords:function(){return Promise.resolve(new Set)},getSetOptions:function(){return Promise.resolve({})},getUdfCategories:function(){return Promise.resolve([])},hasUdfCategories:function(){return!1}},E=function(){var e=gA(regeneratorRuntime.mark((function e(){var t,a,c,u,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.value&&(d=n.value,Qh=d),null===s.value){e.next=12;break}return e.prev=2,e.next=5,Tb(i.value?i.value:"",o.value?o.value:"",s.value);case 5:e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(2),p.value="Login failed: "+e.t0,console.error(e.t0),e.abrupt("return");case 12:return e.prev=12,e.next=15,jd();case 15:e.next=22;break;case 17:return e.prev=17,e.t1=e.catch(12),p.value="Failed loading the Hue config!",console.error(e.t1),e.abrupt("return");case 22:if(t=Kd((function(e){return!r.value||e.dialect===r.value}))){e.next=26;break}return p.value="No connector found!",e.abrupt("return");case 26:return e.prev=26,e.next=29,Bb.getNamespaces({connector:t});case 29:if(a=e.sent,(c=a.namespaces).length&&c[0].computes.length){e.next=34;break}return p.value="No namespaces or computes found!",e.abrupt("return");case 34:u=c[0],h=u.computes[0],l.value=new Ep({connector:function(){return t},namespace:function(){return u},compute:function(){return h},database:function(){return"default"}}),e.next=41;break;case 39:e.prev=39,e.t2=e.catch(26);case 41:case"end":return e.stop()}var d}),e,null,[[2,7],[12,17],[26,39]])})));return function(){return e.apply(this,arguments)}}();return a.subscribe(Tu,(function(e){var t;(null===(t=c.value)||void 0===t?void 0:t.id)===e.executable.id&&(h.value=e)})),a.subscribe(bu,(function(e){var t;e.executable.id===(null===(t=c.value)||void 0===t?void 0:t.id)&&e.newStatus===ip.failed&&(d.value=!0)})),Ln(gA(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u.value=!0,e.prev=1,e.next=4,E();case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.error(e.t0);case 9:u.value=!1;case 10:case"end":return e.stop()}}),e,null,[[1,6]])})))),{aceOptions:{showLineNumbers:!0,showGutter:!0,maxLines:null,minLines:null},activeExecutable:c,errorMessage:p,executor:l,id:f,logs:h,logsVisible:d,onActiveStatementChanged:function(e){l.value&&(l.value.update(e,!1),c.value=l.value.activeExecutable,h.value=c.value.logs)},sqlAnalyzerRepository:uA,sqlParserProvider:g,sqlReferenceProvider:m}}});mA.render=function(e,t,n,r,i,o){var s=Ir("HueIcons"),a=Ir("Spinner"),c=Ir("AceEditor"),l=Ir("ExecutableProgressBar"),u=Ir("ExecuteButton"),h=Ir("ExecuteLimitInput"),d=Ir("HueButton"),p=Ir("ResultTable"),f=Ir("ExecutionAnalysisPanel");return Hr(),qr("div",cu,[ei(s),e.loading?(Hr(),zr(a,{key:0,spin:!0})):ii("v-if",!0),!e.loading&&e.executor?(Hr(),qr("div",lu,[Zr("div",uu,[ei(c,{id:e.id,"ace-options":e.aceOptions,executor:e.executor,"sql-analyzer-provider":e.sqlAnalyzerRepository,"sql-parser-provider":e.sqlParserProvider,"sql-reference-provider":e.sqlReferenceProvider,onActiveStatementChanged:e.onActiveStatementChanged},null,8,["id","ace-options","executor","sql-analyzer-provider","sql-parser-provider","sql-reference-provider","onActiveStatementChanged"])]),Zr("div",hu,[ei(l,{executable:e.activeExecutable},null,8,["executable"])]),Zr("div",du,[ei(u,{executable:e.activeExecutable},null,8,["executable"]),ei(h,{executable:e.activeExecutable},null,8,["executable"]),ei(d,{style:{float:"right"},small:!0,onClick:t[0]||(t[0]=function(){e.logsVisible=!e.logsVisible})},{default:qt((function(){return[ri(m(e.logsVisible?"Result":"Logs"),1)]})),_:1})]),cr(Zr("div",pu,[ei(p,{executable:e.activeExecutable},null,8,["executable"])],512),[[ws,!e.logsVisible]]),cr(Zr("div",fu,[ei(f,{executable:e.activeExecutable},null,8,["executable"])],512),[[ws,e.logsVisible]])])):e.loading||e.executor||!e.errorMessage?ii("v-if",!0):(Hr(),qr("div",gu,m(e.errorMessage),1))])};const EA=mA;Object.assign,Object.prototype.hasOwnProperty,Array.isArray,Object.prototype.toString;const yA=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vA=/-(\w)/g,bA=(yA((e=>e.replace(vA,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),AA=(yA((e=>e.replace(bA,"-$1").toLowerCase())),yA((e=>e.charAt(0).toUpperCase()+e.slice(1)))),TA=yA((e=>e?`on${AA(e)}`:""));var CA=/-(\w)/g,RA=function(e){return e.replace(CA,(function(e,t){return t?t.toUpperCase():""}))},SA=/\B([A-Z])/g,_A=function(e){return e.replace(SA,"-$1").toLowerCase()};function xA(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:1===t.length?t[0]:t})}var wA=function(e){return/function Boolean/.test(String(e))},IA=function(e){return/function Number/.test(String(e))};function NA(e,t){if(3===e.nodeType)return e.data.trim()?e.data:null;if(1===e.nodeType){var n={attrs:LA(e),domProps:{innerHTML:e.innerHTML}};return n.attrs.slot&&(n.slot=n.attrs.slot,delete n.attrs.slot),t(e.tagName,n)}return null}function LA(e){for(var t={},n=0,r=e.attributes.length;n<r;n++){var i=e.attributes[n];t[i.nodeName]=i.nodeValue}return t}function OA(e){return OA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OA(e)}function kA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function DA(e,t){return!t||"object"!==OA(t)&&"function"!=typeof t?FA(e):t}function FA(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MA(e){var t="function"==typeof Map?new Map:void 0;return MA=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return PA(e,arguments,$A(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),UA(n,e)},MA(e)}function PA(e,t,n){return PA=BA()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&UA(i,n.prototype),i},PA.apply(null,arguments)}function BA(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function UA(e,t){return UA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},UA(e,t)}function $A(e){return $A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$A(e)}function HA(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}function GA(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){HA(o,r,i,s,a,"next",e)}function a(e){HA(o,r,i,s,a,"throw",e)}s(void 0)}))}}var WA=function(){var e=GA(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:new Promise(function(){var e=GA(regeneratorRuntime.mark((function e(n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.customElements||r("Web components are not supported!"),e.prev=1,e.next=4,window.customElements.whenDefined(t);case 4:e.next=10;break;case 6:return e.prev=6,e.t0=e.catch(1),r(e.t0),e.abrupt("return");case 10:n();case 11:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function VA(e,t,n,r,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void n(e)}a.done?t(c):Promise.resolve(c).then(r,i)}var jA="sql-scratchpad";!function(e,t,n){if((null===(i=window.customElements)||void 0===i||!i.get("sql-scratchpad"))&&window.customElements){var r=function(e,t,n,r){var i,o,s,a=e,c=!1,l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&UA(e,t)}(p,e);var l,u,h,d=(l=p,u=BA(),function(){var e,t=$A(l);if(u){var n=$A(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return DA(this,e)});function p(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(e=d.call(this))._wrapper=void 0,e._component=void 0,e._props=void 0,e._slotChildren=void 0,e._mounted=!1,e._props={},e._slotChildren=[];var t=new MutationObserver((function(t){for(var n=0;n<t.length;n++){var r=t[n];!c||"attributes"!==r.type||r.target!==FA(e)||r.attributeName&&e.syncAttribute(r.attributeName)}}));return t.observe(FA(e),{childList:!0,subtree:!0,characterData:!0,attributes:!0}),e}return h=[{key:"createEventProxies",value:function(e){var t=this,n={};return e&&e.forEach((function(e){var r=TA(RA(e));n[r]=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.dispatchEvent(xA(e,r))}})),n}},{key:"syncAttribute",value:function(e){var t,n=RA(e),r=void 0;this.hasOwnProperty(e)?r=this[e]:this.hasAttribute(e)&&(r=this.getAttribute(e)),this._props[n]=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).type;if(wA(n))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e;if(IA(n)){var r=parseFloat(e);return isNaN(r)?e:r}return e}(r,e,s[n]),null===(t=this._component)||void 0===t||t.$forceUpdate()}},{key:"syncSlots",value:function(){var e;this._slotChildren=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(NA(e[r],t));return n}(this.childNodes,n),null===(e=this._component)||void 0===e||e.$forceUpdate()}},{key:"syncInitialAttributes",value:function(){var e,t=this;this._props=(e={},o.forEach((function(t){e[t]=void 0})),e),i.forEach((function(e){t.syncAttribute(e)}))}},{key:"connectedCallback",value:function(){c&&this.syncInitialAttributes();var e=this.createEventProxies(a.emits),i=this;this._wrapper=t({render:function(){var t=Object.assign({},i._props,e);return delete t.dataVApp,n(a,t,(function(){return i._slotChildren}))},mounted:function(){i._mounted=!0},unmounted:function(){i._mounted=!1}}),this.syncSlots(),this._component=this._wrapper.mount(this),null!=r&&r.connectedCallback&&r.connectedCallback.bind(this)()}},{key:"disconnectedCallback",value:function(){var e;null===(e=this._wrapper)||void 0===e||e.unmount()}}],h&&kA(p.prototype,h),p}(MA(HTMLElement));return function(){if(!c){var e=Array.isArray(a.props)?a.props:Object.keys(a.props||{});i=e.map(_A),o=e.map(RA);var t=Array.isArray(a.props)?{}:a.props||{};s=o.reduce((function(n,r,i){return n[r]=t[e[i]],n}),{}),c=!0}}(),l}(t,Ps,yo,void 0);window.customElements.define(e,r)}var i}(jA,EA);var qA=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(e){VA(o,r,i,s,a,"next",e)}function a(e){VA(o,r,i,s,a,"throw",e)}s(void 0)}))}}(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,WA(jA);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const zA=qA})(),o.default})()}));
  3. //# sourceMappingURL=SqlScratchpadWebComponent.js.map