diff --git a/build/asset-manifest.json b/build/asset-manifest.json index 5ebc45bde7..86434ba70e 100644 --- a/build/asset-manifest.json +++ b/build/asset-manifest.json @@ -66,7 +66,7 @@ "System.js": "/static/js/System.caa4a5a9.chunk.js", "TRONRating.js": "/static/js/TRONRating.0d9eb084.chunk.js", "Token20Detail.css": "/static/css/Token20Detail.887b6bb3.chunk.css", - "Token20Detail.js": "/static/js/Token20Detail.57fc82ca.chunk.js", + "Token20Detail.js": "/static/js/Token20Detail.390b829b.chunk.js", "TokenDetail.js": "/static/js/TokenDetail.836bd328.chunk.js", "TokenList.js": "/static/js/TokenList.cb8ae07c.chunk.js", "TokenListAll.js": "/static/js/TokenListAll.e41d6e75.chunk.js", @@ -84,7 +84,7 @@ "WalletWizard.js": "/static/js/WalletWizard.06d833ea.chunk.js", "main.css": "/static/css/main.ffff4d54.chunk.css", "main.js": "/static/js/main.16964524.chunk.js", - "runtime~main.js": "/static/js/runtime~main.0590e9c9.js", + "runtime~main.js": "/static/js/runtime~main.30aa3fe6.js", "static/css/75.b903dd66.chunk.css": "/static/css/75.b903dd66.chunk.css", "static/js/75.bec9639f.chunk.js": "/static/js/75.bec9639f.chunk.js", "static/js/76.f9522da2.chunk.js": "/static/js/76.f9522da2.chunk.js", @@ -105,8 +105,8 @@ "editor.worker.js.gz": "/editor.worker.js.gz", "index.html": "/index.html", "index.html.gz": "/index.html.gz", - "precache-manifest.90619031b1feefbc7d76dcdc7dee4ee5.js": "/precache-manifest.90619031b1feefbc7d76dcdc7dee4ee5.js", - "precache-manifest.a3b0ad59749fe83e3ff6201bbd5a0a54.js": "/precache-manifest.a3b0ad59749fe83e3ff6201bbd5a0a54.js", + "precache-manifest.cf3fed8c56cf85f733ceb5e73f83fb63.js": "/precache-manifest.cf3fed8c56cf85f733ceb5e73f83fb63.js", + "precache-manifest.f29570e9253dffcddfeba3e47c8029f1.js": "/precache-manifest.f29570e9253dffcddfeba3e47c8029f1.js", "service-worker.js": "/service-worker.js", "static/css/75.b903dd66.chunk.css.gz": "/static/css/75.b903dd66.chunk.css.gz", "static/css/80.bd022918.chunk.css.gz": "/static/css/80.bd022918.chunk.css.gz", @@ -204,8 +204,8 @@ "static/js/Stats.9cf9e0f4.chunk.js.gz": "/static/js/Stats.9cf9e0f4.chunk.js.gz", "static/js/System.caa4a5a9.chunk.js.gz": "/static/js/System.caa4a5a9.chunk.js.gz", "static/js/TRONRating.0d9eb084.chunk.js.gz": "/static/js/TRONRating.0d9eb084.chunk.js.gz", - "static/js/Token20Detail.57fc82ca.chunk.js.LICENSE": "/static/js/Token20Detail.57fc82ca.chunk.js.LICENSE", - "static/js/Token20Detail.57fc82ca.chunk.js.gz": "/static/js/Token20Detail.57fc82ca.chunk.js.gz", + "static/js/Token20Detail.390b829b.chunk.js.LICENSE": "/static/js/Token20Detail.390b829b.chunk.js.LICENSE", + "static/js/Token20Detail.390b829b.chunk.js.gz": "/static/js/Token20Detail.390b829b.chunk.js.gz", "static/js/TokenDetail.836bd328.chunk.js.LICENSE": "/static/js/TokenDetail.836bd328.chunk.js.LICENSE", "static/js/TokenDetail.836bd328.chunk.js.gz": "/static/js/TokenDetail.836bd328.chunk.js.gz", "static/js/TokenList.cb8ae07c.chunk.js.gz": "/static/js/TokenList.cb8ae07c.chunk.js.gz", @@ -227,7 +227,7 @@ "static/js/domloadsh.86ffdadd.chunk.js.LICENSE": "/static/js/domloadsh.86ffdadd.chunk.js.LICENSE", "static/js/domloadsh.86ffdadd.chunk.js.gz": "/static/js/domloadsh.86ffdadd.chunk.js.gz", "static/js/main.16964524.chunk.js.gz": "/static/js/main.16964524.chunk.js.gz", - "static/js/runtime~main.0590e9c9.js.gz": "/static/js/runtime~main.0590e9c9.js.gz", + "static/js/runtime~main.30aa3fe6.js.gz": "/static/js/runtime~main.30aa3fe6.js.gz", "static/media/Binance.svg": "/static/media/Binance.8ad2ef29.svg", "static/media/Bitfinex.svg": "/static/media/Bitfinex.855e320a.svg", "static/media/Bittrex.svg": "/static/media/Bittrex.e077d3ec.svg", diff --git a/build/index.html b/build/index.html index 51fb2604da..6cb7f052a8 100644 --- a/build/index.html +++ b/build/index.html @@ -1 +1 @@ -TRONSCAN | TRON BlockChain Explorer | 波场区块链浏览器
\ No newline at end of file +TRONSCAN | TRON BlockChain Explorer | 波场区块链浏览器
\ No newline at end of file diff --git a/build/index.html.gz b/build/index.html.gz index 5838a7b694..8cb039834b 100644 Binary files a/build/index.html.gz and b/build/index.html.gz differ diff --git a/build/precache-manifest.a3b0ad59749fe83e3ff6201bbd5a0a54.js b/build/precache-manifest.cf3fed8c56cf85f733ceb5e73f83fb63.js similarity index 97% rename from build/precache-manifest.a3b0ad59749fe83e3ff6201bbd5a0a54.js rename to build/precache-manifest.cf3fed8c56cf85f733ceb5e73f83fb63.js index 12722da2ba..14ad784bce 100644 --- a/build/precache-manifest.a3b0ad59749fe83e3ff6201bbd5a0a54.js +++ b/build/precache-manifest.cf3fed8c56cf85f733ceb5e73f83fb63.js @@ -20,18 +20,18 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/editor.worker.js.gz" }, { - "revision": "01be2d5643cc66e5af175a511b390ed0", + "revision": "4e230182506c9ce800c65d1c5c8894ef", "url": "/index.html" }, { - "revision": "6cc6720cd71f68b045b1abbb362a73b2", + "revision": "9536681e861bbd5506b4f395684cfb67", "url": "/index.html.gz" }, { - "url": "/precache-manifest.90619031b1feefbc7d76dcdc7dee4ee5.js" + "url": "/precache-manifest.f29570e9253dffcddfeba3e47c8029f1.js" }, { - "revision": "da8b254def8e261f4084586d179390b0", + "revision": "16a0940968510031fb68c54c3f428a2f", "url": "/service-worker.js" }, { @@ -115,7 +115,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/css/SmartContract.b5b01fe6.chunk.css.gz" }, { - "revision": "19c47796a84d5d8a7151", + "revision": "85ed955fab57671c2231", "url": "/static/css/Token20Detail.887b6bb3.chunk.css" }, { @@ -735,16 +735,16 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/js/TRONRating.0d9eb084.chunk.js.gz" }, { - "revision": "19c47796a84d5d8a7151", - "url": "/static/js/Token20Detail.57fc82ca.chunk.js" + "revision": "85ed955fab57671c2231", + "url": "/static/js/Token20Detail.390b829b.chunk.js" }, { "revision": "c6d5829aef944feb1adbdcf4cf464ab3", - "url": "/static/js/Token20Detail.57fc82ca.chunk.js.LICENSE" + "url": "/static/js/Token20Detail.390b829b.chunk.js.LICENSE" }, { - "revision": "b734fb0daf734f85718fe5f8194852b9", - "url": "/static/js/Token20Detail.57fc82ca.chunk.js.gz" + "revision": "5576c3ca061f12141d9f3801987eaadd", + "url": "/static/js/Token20Detail.390b829b.chunk.js.gz" }, { "revision": "49a437a8e2cd0d33a148", @@ -899,12 +899,12 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/js/main.16964524.chunk.js.gz" }, { - "revision": "82fbb92d7dfaf2f24ded", - "url": "/static/js/runtime~main.0590e9c9.js" + "revision": "f9de561aef484bc72881", + "url": "/static/js/runtime~main.30aa3fe6.js" }, { - "revision": "8c1f2929393706330a12d5a3b99c14e5", - "url": "/static/js/runtime~main.0590e9c9.js.gz" + "revision": "f9f1ae13200e34fa178215423e3e68fe", + "url": "/static/js/runtime~main.30aa3fe6.js.gz" }, { "revision": "8ad2ef29191592ceb7b4bafbeac0e4cc", diff --git a/build/precache-manifest.90619031b1feefbc7d76dcdc7dee4ee5.js b/build/precache-manifest.f29570e9253dffcddfeba3e47c8029f1.js similarity index 98% rename from build/precache-manifest.90619031b1feefbc7d76dcdc7dee4ee5.js rename to build/precache-manifest.f29570e9253dffcddfeba3e47c8029f1.js index 638e2a895b..b93151d02e 100644 --- a/build/precache-manifest.90619031b1feefbc7d76dcdc7dee4ee5.js +++ b/build/precache-manifest.f29570e9253dffcddfeba3e47c8029f1.js @@ -20,11 +20,11 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/editor.worker.js.gz" }, { - "revision": "01be2d5643cc66e5af175a511b390ed0", + "revision": "4e230182506c9ce800c65d1c5c8894ef", "url": "/index.html" }, { - "revision": "6cc6720cd71f68b045b1abbb362a73b2", + "revision": "9536681e861bbd5506b4f395684cfb67", "url": "/index.html.gz" }, { @@ -108,7 +108,7 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/css/SmartContract.b5b01fe6.chunk.css.gz" }, { - "revision": "19c47796a84d5d8a7151", + "revision": "85ed955fab57671c2231", "url": "/static/css/Token20Detail.887b6bb3.chunk.css" }, { @@ -728,16 +728,16 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/js/TRONRating.0d9eb084.chunk.js.gz" }, { - "revision": "19c47796a84d5d8a7151", - "url": "/static/js/Token20Detail.57fc82ca.chunk.js" + "revision": "85ed955fab57671c2231", + "url": "/static/js/Token20Detail.390b829b.chunk.js" }, { "revision": "c6d5829aef944feb1adbdcf4cf464ab3", - "url": "/static/js/Token20Detail.57fc82ca.chunk.js.LICENSE" + "url": "/static/js/Token20Detail.390b829b.chunk.js.LICENSE" }, { - "revision": "b734fb0daf734f85718fe5f8194852b9", - "url": "/static/js/Token20Detail.57fc82ca.chunk.js.gz" + "revision": "5576c3ca061f12141d9f3801987eaadd", + "url": "/static/js/Token20Detail.390b829b.chunk.js.gz" }, { "revision": "49a437a8e2cd0d33a148", @@ -892,12 +892,12 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ "url": "/static/js/main.16964524.chunk.js.gz" }, { - "revision": "82fbb92d7dfaf2f24ded", - "url": "/static/js/runtime~main.0590e9c9.js" + "revision": "f9de561aef484bc72881", + "url": "/static/js/runtime~main.30aa3fe6.js" }, { - "revision": "8c1f2929393706330a12d5a3b99c14e5", - "url": "/static/js/runtime~main.0590e9c9.js.gz" + "revision": "f9f1ae13200e34fa178215423e3e68fe", + "url": "/static/js/runtime~main.30aa3fe6.js.gz" }, { "revision": "8ad2ef29191592ceb7b4bafbeac0e4cc", diff --git a/build/service-worker.js b/build/service-worker.js index 2cf2c14dfb..f036271970 100644 --- a/build/service-worker.js +++ b/build/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/precache-manifest.a3b0ad59749fe83e3ff6201bbd5a0a54.js" + "/precache-manifest.cf3fed8c56cf85f733ceb5e73f83fb63.js" ); self.addEventListener('message', (event) => { diff --git a/build/static/js/Token20Detail.57fc82ca.chunk.js b/build/static/js/Token20Detail.390b829b.chunk.js similarity index 98% rename from build/static/js/Token20Detail.57fc82ca.chunk.js rename to build/static/js/Token20Detail.390b829b.chunk.js index 74e4e3145f..f29c2c094c 100644 --- a/build/static/js/Token20Detail.57fc82ca.chunk.js +++ b/build/static/js/Token20Detail.390b829b.chunk.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[57,4,5,6,7,8,10,81],Array(1374).concat([function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n(281),o=n.n(i),r=n(15),s=n(14),a=n(21),l=n(19),u=n(20),c=n(170),d=n(0),h=n.n(d),p=n(206),f=(n(12),n(10)),g=function(e){function t(){var e;return Object(r.a)(this,t),(e=Object(a.a)(this,Object(l.a)(t).call(this))).setCopied=function(){var t=e.props.intl;e.setState({copied:!0}),o.a.success(t.formatMessage({id:"contract_copy_success"}),2),setTimeout(function(){return e.setState({copied:!1})},1200)},e.state={copied:!1,id:Object(p.a)(24)},e}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.text,n=e.className,i=(e.intl,this.state),o=(i.copied,i.id);return h.a.createElement(c.CopyToClipboard,{text:t,className:n,onCopy:this.setCopied},h.a.createElement("span",{id:o,style:{cursor:"pointer"}},h.a.createElement("i",{className:"fa fa-paste"})))}}]),t}(h.a.Component),m=Object(f.h)(g)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function i(e){return"function"==typeof e.dispose&&0===e.dispose.length}function o(e){for(var t=[],n=1;ne.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)},r.prototype.containsRange=function(e){return r.containsRange(this,e)},r.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)},r.prototype.plusRange=function(e){return r.plusRange(this,e)},r.plusRange=function(e,t){var n,i,o,s;return i=t.startLineNumbere.endLineNumber?(o=t.endLineNumber,t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,e.endColumn),new r(n,i,o,s)},r.prototype.intersectRanges=function(e){return r.intersectRanges(this,e)},r.intersectRanges=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,s=e.endColumn,a=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,c=t.endColumn;return n "+this.endLineNumber+","+this.endColumn+"]"},r.prototype.setEndPosition=function(e,t){return new r(this.startLineNumber,this.startColumn,e,t)},r.prototype.setStartPosition=function(e,t){return new r(e,t,this.endLineNumber,this.endColumn)},r.prototype.collapseToStart=function(){return r.collapseToStart(this)},r.collapseToStart=function(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)},r.fromPositions=function(e,t){return void 0===t&&(t=e),new r(e.lineNumber,e.column,t.lineNumber,t.column)},r.lift=function(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null},r.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},r.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},r);function r(e,t,n,i){n=t.length?e:t[i]})}function l(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function u(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function c(e,t){return void 0===t&&(t=" "),h(d(e,t),t)}function d(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function h(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;for(var o=i,r=-1;-1!==(r=e.lastIndexOf(t,o-1))&&r+n===o;){if(0===r)return"";o=r}return e.substring(0,o)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(e,t){if(e.lengthe.length)&&L(e,t,n)}function E(e,t){var n,i=Math.min(e.length,t.length);for(n=0;nt._score?-1:e._timet._time?-1:0},p);function p(){this._clock=0,this._entries=[],this._onDidChange=new s.a}var f=n(1477),g=(m.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},m.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),Object(a.f)(function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))})},m.prototype.registerPromise=function(e,t){var n=this,i=null,o=!1;return this._promises.set(e,t.then(function(t){n._promises.delete(e),!o&&t&&(i=n.register(e,t))})),Object(a.f)(function(){o=!0,i&&i.dispose()})},m.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var i=this._promises.get(e);return i?i.then(function(n){return t.get(e)}):null},m.prototype.get=function(e){return Object(i.m)(this._map.get(e))},m.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object(f.d)(this._map),changedColorMap:!0})},m.prototype.getColorMap=function(){return this._colorMap},m.prototype.getDefaultBackground=function(){return this._colorMap&&2>>0},b.getTokenType=function(e){return(1792&e)>>>8},b.getFontStyle=function(e){return(14336&e)>>>11},b.getForeground=function(e){return(8372224&e)>>>14},b.getBackground=function(e){return(4286578688&e)>>>23},b.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},b.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[n]+";";return 1&i&&(o+="font-style: italic;"),2&i&&(o+="font-weight: bold;"),4&i&&(o+="text-decoration: underline;"),o},b);function b(){}var _,w,C,x,S,O,k=((_=Object.create(null))[0]="method",_[1]="function",_[2]="constructor",_[3]="field",_[4]="variable",_[5]="class",_[6]="struct",_[7]="interface",_[8]="module",_[9]="property",_[10]="event",_[11]="operator",_[12]="unit",_[13]="value",_[14]="constant",_[15]="enum",_[16]="enum-member",_[17]="keyword",_[25]="snippet",_[18]="text",_[19]="color",_[20]="file",_[21]="reference",_[22]="customcolor",_[23]="folder",_[24]="type-parameter",function(e){return _[e]||"property"}),L=((w=Object.create(null)).method=0,w.function=1,w.constructor=2,w.field=3,w.variable=4,w.class=5,w.struct=6,w.interface=7,w.module=8,w.property=9,w.event=10,w.operator=11,w.unit=12,w.value=13,w.constant=14,w.enum=15,w["enum-member"]=16,w.enumMember=16,w.keyword=17,w.snippet=25,w.text=18,w.color=19,w.file=20,w.reference=21,w.customcolor=22,w.folder=23,w["type-parameter"]=24,w.typeParameter=24,function(e,t){var n=w[e];return void 0!==n||t||(n=9),n});function M(e){return e&&o.a.isUri(e.uri)&&r.a.isIRange(e.range)&&(r.a.isIRange(e.originSelectionRange)||r.a.isIRange(e.targetSelectionRange))}(x=C=C||{})[x.Invoke=1]="Invoke",x[x.TriggerCharacter=2]="TriggerCharacter",x[x.ContentChange=3]="ContentChange",(O=S=S||{})[O.Text=0]="Text",O[O.Read=1]="Read",O[O.Write=2]="Write";var E,D=((E=Object.create(null))[0]="file",E[1]="module",E[2]="namespace",E[3]="package",E[4]="class",E[5]="method",E[6]="property",E[7]="field",E[8]="constructor",E[9]="enum",E[10]="interface",E[11]="function",E[12]="variable",E[13]="constant",E[14]="string",E[15]="number",E[16]="boolean",E[17]="array",E[18]="object",E[19]="key",E[20]="null",E[21]="enum-member",E[22]="struct",E[23]="event",E[24]="operator",E[25]="type-parameter",function(e,t){return"symbol-icon "+(t?"inline":"block")+" "+(E[e]||"property")}),N=(I.Comment=new I("comment"),I.Imports=new I("imports"),I.Region=new I("region"),I);function I(e){this.value=e}function T(e){return Object(i.g)(e)&&e.resource&&Array.isArray(e.edits)}var P=new h,A=new h,R=new h,F=new h,j=new h,W=new h,B=new h,V=new h,z=new h,H=new h,U=new h,K=new h,G=new h,q=new h,Y=new h,X=new h,Z=new h,J=new h,Q=new h,$=new h,ee=new g},,function(e,t,n){"use strict";(function(e,i){n.d(t,"g",function(){return p}),n.d(t,"d",function(){return f}),n.d(t,"c",function(){return g}),n.d(t,"e",function(){return m}),n.d(t,"f",function(){return v}),n.d(t,"b",function(){return y}),n.d(t,"h",function(){return _}),n.d(t,"a",function(){return w});var o=!1,r=!1,s=!1,a=!1,l=!1,u=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||u){if("object"==typeof e){o="win32"===e.platform,r="darwin"===e.platform,s="linux"===e.platform;var c=Object({NODE_ENV:"production",PUBLIC_URL:"",API_URL:"https://apilist.tronscan.org",NET:"mainnet",DESKTOP:"false"}).VSCODE_NLS_CONFIG;if(c)try{var d=JSON.parse(c);d.availableLanguages["*"];d.locale,d._translationsConfigFile}catch(i){}a=!0}}else{var h=navigator.userAgent;o=0<=h.indexOf("Windows"),r=0<=h.indexOf("Macintosh"),s=0<=h.indexOf("Linux"),l=!0,navigator.language}var p=o,f=r,g=s,m=a,v=l,y="object"==typeof self?self:"object"==typeof i?i:{},b=null;function _(t){return null===b&&(b=y.setImmediate?y.setImmediate.bind(y):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):y.setTimeout.bind(y)),b(t)}var w=r?2:o?1:3}).call(this,n(44),n(28))},,function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return h}),n.d(t,"a",function(){return _}),n.d(t,"f",function(){return x}),n.d(t,"e",function(){return O}),n.d(t,"g",function(){return k});var i,o=n(1413),r=n(1421),s=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=(l.has=function(e){return new c(e)},l.equals=function(e,t){return new h(e,t)},l.regex=function(e,t){return new y(e,t)},l.not=function(e){return new m(e)},l.and=function(){for(var e=[],t=0;te.key?1:0},d.prototype.equals=function(e){return e instanceof d&&this.key===e.key},d.prototype.evaluate=function(e){return!!e.getValue(this.key)},d.prototype.normalize=function(){return this},d.prototype.keys=function(){return[this.key]},d);function d(e){this.key=e}var h=(p.prototype.getType=function(){return 3},p.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},p.prototype.equals=function(e){return e instanceof p&&this.key===e.key&&this.value===e.value},p.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},p.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new c(this.key):new m(this.key):this},p.prototype.keys=function(){return[this.key]},p);function p(e,t){this.key=e,this.value=t}var f=(g.prototype.getType=function(){return 4},g.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},g.prototype.equals=function(e){return e instanceof g&&this.key===e.key&&this.value===e.value},g.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},g.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new m(this.key):new c(this.key):this},g.prototype.keys=function(){return[this.key]},g);function g(e,t){this.key=e,this.value=t}var m=(v.prototype.getType=function(){return 2},v.prototype.cmp=function(e){return this.keye.key?1:0},v.prototype.equals=function(e){return e instanceof v&&this.key===e.key},v.prototype.evaluate=function(e){return!e.getValue(this.key)},v.prototype.normalize=function(){return this},v.prototype.keys=function(){return[this.key]},v);function v(e){this.key=e}var y=(b.prototype.getType=function(){return 6},b.prototype.cmp=function(e){if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t "+this.positionLineNumber+","+this.positionColumn+"]"},l.prototype.equalsSelection=function(e){return l.selectionsEqual(this,e)},l.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},l.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},l.prototype.setEndPosition=function(e,t){return 0===this.getDirection()?new l(this.startLineNumber,this.startColumn,e,t):new l(e,t,this.startLineNumber,this.startColumn)},l.prototype.getPosition=function(){return new r.a(this.positionLineNumber,this.positionColumn)},l.prototype.setStartPosition=function(e,t){return 0===this.getDirection()?new l(e,t,this.endLineNumber,this.endColumn):new l(this.endLineNumber,this.endColumn,e,t)},l.fromPositions=function(e,t){return void 0===t&&(t=e),new l(e.lineNumber,e.column,t.lineNumber,t.column)},l.liftSelection=function(e){return new l(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},l.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n=l[4]/2&&(O=2),{insertSpaces:S,tabSize:O}}function S(e){return(1&e.metadata)>>>0}function O(e,t){e.metadata=254&e.metadata|t<<0}function k(e){return(2&e.metadata)>>>1==1}function L(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function M(e){return(4&e.metadata)>>>2==1}function E(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function D(e){return(8&e.metadata)>>>3==1}function N(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function I(e,t){e.metadata=207&e.metadata|t<<4}function T(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var P=(A.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i},A.prototype.setOptions=function(e){this.options=e;var t=this.options.className;E(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),I(this,this.options.stickiness),N(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),T(this,this.options.collapseOnReplaceEdit)},A.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},A.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},A);function A(e,t,n){this.metadata=0,O(((this.parent=this).left=this).right=this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,E(this,!1),I(this,1),N(this,!1),T(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,L(this,!1)}var R=new P(null,0,0);O(((R.parent=R).left=R).right=R,0);var F=(j.prototype.intervalSearch=function(e,t,n,i,o){return this.root===R?[]:function(e,t,n,i,o,r){for(var s=e.root,a=0,l=0,u=0,c=[],d=0;s!==R;)if(k(s))L(s.left,!1),L(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!k(s.left)){if(a+s.maxEnd>>4}(e),s=0===r||2===r,a=1===r||2===r,l=n-t,u=i,c=Math.min(l,u),d=e.start,h=!1,p=e.end,f=!1;t<=d&&p<=n&&function(e){return(64&e.metadata)>>>6==1}(e)&&(e.start=t,h=!0,e.end=t,f=!0);var g=o?1:0e.end&&(e.end=e.start)}function V(e,t){if(e.root===R)return t.parent=R,t.left=R,t.right=R,O(t,0),e.root=t,e.root;!function(e,t){for(var n=0,i=e.root,o=t.start,r=t.end;;)if(X(o,r,i.start+n,i.end+n)<0){if(i.left===R){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===R){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}t.parent=i,t.left=R,t.right=R,O(t,1)}(e,t),Y(t.parent);for(var n=t;n!==e.root&&1===S(n.parent);){var i;n.parent===n.parent.parent.left?1===S(i=n.parent.parent.right)?(O(n.parent,0),O(i,0),O(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&U(e,n=n.parent),O(n.parent,0),O(n.parent.parent,1),K(e,n.parent.parent)):1===S(i=n.parent.parent.left)?(O(n.parent,0),O(i,0),O(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&K(e,n=n.parent),O(n.parent,0),O(n.parent.parent,1),U(e,n.parent.parent))}return O(e.root,0),t}function z(e,t){var n,i;if(t.left===R?((n=(i=t).right).delta+=t.delta,(n.delta<-1073741824||1073741824=e)return n}return null},ye.prototype.get2=function(e){for(var t=this._cache.length-1;0<=t;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber=e)return n}return null},ye.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},ye.prototype.valdiate=function(e){for(var t=!1,n=this._cache,i=0;i=e)&&(t=!(n[i]=null))}if(t){for(var r=[],s=0,a=n;s=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e)return(n+=i.size_left)+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1);e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},_e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,i=e;t!==Q;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0!==o.index)return new c.a(n+1,o.remainder+1);var r=i-this.getOffsetAt(n+1,1);return new c.a(n+1,r+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Q)return r=i-e-this.getOffsetAt(n+1,1),new c.a(n+1,r+1);t=t.right}return new c.a(1,1)},_e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o},_e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(o+e.remainder,o+t.remainder)}var r=e.node,s=this._buffers[r.piece.bufferIndex].buffer,a=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start),l=s.substring(a+e.remainder,a+r.piece.length);for(r=r.next();r!==Q;){var u=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){l+=u.substring(c,c+t.remainder);break}l+=u.substr(c,r.piece.length),r=r.next()}return l},_e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},_e.prototype.getLength=function(){return this._length},_e.prototype.getLineCount=function(){return this._lineCnt},_e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e||((this._lastVisitedLine.lineNumber=e)===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value},_e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var i=n.node.next();if(!i)return 0;var o=this._buffers[i.piece.bufferIndex],r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o.buffer.charCodeAt(r)}o=this._buffers[n.node.piece.bufferIndex];var s=(r=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return o.buffer.charCodeAt(s)},_e.prototype.getLineLength=function(e){if(e!==this.getLineCount())return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength;var t=this.getOffsetAt(e,1);return this.getLength()-t},_e.prototype.findMatchesInNode=function(e,t,n,i,o,r,s,a,l,u,c){var h,p=this._buffers[e.piece.bufferIndex],f=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,o),m=this.offsetInBuffer(e.piece.bufferIndex,r);t.reset(g);var v={line:0,column:0};do{if(h=t.next(p.buffer)){if(h.index>=m)return u;this.positionInBuffer(e,h.index-f,v);var y=this.getLineFeedCnt(e.piece.bufferIndex,o,v),b=v.line===o.line?v.column-o.column+i:v.column+1,_=b+h[0].length;if(c[u++]=Object(ce.d)(new d.a(n+y,b,n+y,_),h,a),h.index+h[0].length>=m)return u;if(l<=u)return u}}while(h);return u},_e.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],r=0,s=new ce.b(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];var u=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,u,c,t,n,i,r,o),o;for(var d=e.startLineNumber,h=a.node;h!==l.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,u,h.piece.end);if(1<=p){var f=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=f[u.line+p],v=d===e.startLineNumber?e.startColumn:1;if(i<=(r=this.findMatchesInNode(h,s,d,v,u,this.positionInBuffer(h,m-g),t,n,i,r,o)))return o;d+=p}var y=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var b=this.getLineContent(d).substring(y,e.endColumn-1);return r=this._findMatchesInLine(t,s,b,e.endLineNumber,y,r,o,n,i),o}if(i<=(r=this._findMatchesInLine(t,s,this.getLineContent(d).substr(y),d,y,r,o,n,i)))return o;d++,h=(a=this.nodeAt2(d,1)).node,u=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var _=d===e.startLineNumber?e.startColumn-1:0;return b=this.getLineContent(d).substring(_,e.endColumn-1),r=this._findMatchesInLine(t,s,b,e.endLineNumber,_,r,o,n,i),o}var w=d===e.startLineNumber?e.startColumn:1;return r=this.findMatchesInNode(l.node,s,d,w,u,c,t,n,i,r,o),o},_e.prototype._findMatchesInLine=function(e,t,n,i,o,r,s,a,l){var u,c=e.wordSeparators;if(!a&&e.simpleSearch){for(var h=e.simpleSearch,f=h.length,g=n.length,m=-f;-1!==(m=n.indexOf(h,m+f));)if((!c||Object(ce.e)(c,n,g,m,f))&&(s[r++]=new p.b(new d.a(i,m+1+o,i,m+1+f+o),null),l<=r))return r;return r}t.reset(0);do{if((u=t.next(n))&&(s[r++]=Object(ce.d)(new d.a(i,u.index+1+o,i,u.index+1+u[0].length+o),u,a),l<=r))return r}while(u);return r},_e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Q){var i=this.nodeAt(e),o=i.node,r=i.remainder,s=i.nodeStartOffset,a=o.piece,l=a.bufferIndex,u=this.positionInBuffer(o,r);if(0===o.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&s+a.length===e&&t.lengthe){var c=[],d=new ge(a.bufferIndex,u,a.end,this.getLineFeedCnt(a.bufferIndex,u,a.end),this.offsetInBuffer(l,a.end)-this.offsetInBuffer(l,u));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(o,r)){var h={line:d.start.line+1,column:0};d=new ge(d.bufferIndex,h,d.end,this.getLineFeedCnt(d.bufferIndex,h,d.end),d.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(o,r-1)){var p=this.positionInBuffer(o,r-1);this.deleteNodeTail(o,p),t="\r"+t,0===o.piece.length&&c.push(o)}else this.deleteNodeTail(o,u);else this.deleteNodeTail(o,u);var f=this.createNewPieces(t);0de){for(var t=[];e.length>de;){var n=e.charCodeAt(de-1),i=void 0;e=13===n||55296<=n&&n<=56319?(i=e.substring(0,de-1),e.substring(de-1)):(i=e.substring(0,de),e.substring(de));var o=fe(i);t.push(new ge(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new me(i,o))}var r=fe(e);return t.push(new ge(this._buffers.length,{line:0,column:0},{line:r.length-1,column:e.length-r[r.length-1]},r.length-1,e.length)),this._buffers.push(new me(e,r)),t}var s=this._buffers[0].buffer.length,a=fe(e,!1),l=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},l=this._lastChangeBufferPos;for(var u=0;u=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1)return r=this.getAccumulatedValue(n,e-n.lf_left-2),l=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),u+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:u,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+r,a+l-t);if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i=s.substring(a+r,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,u+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Q;){if(s=this._buffers[n.piece.bufferIndex].buffer,0n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[o]-i[n.start.line]-n.start.column},_e.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),r=t,s=this.offsetInBuffer(n.bufferIndex,r),a=this.getLineFeedCnt(n.bufferIndex,n.start,r),l=a-i,u=s-o,c=n.length+u;e.piece=new ge(n.bufferIndex,n.start,r,a,c),le(this,e,u,l)},_e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),r=t,s=this.getLineFeedCnt(n.bufferIndex,r,n.end),a=s-i,l=o-this.offsetInBuffer(n.bufferIndex,r),u=n.length+l;e.piece=new ge(n.bufferIndex,r,n.end,s,u),le(this,e,l,a)},_e.prototype.shrinkNode=function(e,t,n){var i=e.piece,o=i.start,r=i.end,s=i.length,a=i.lineFeedCnt,l=t,u=this.getLineFeedCnt(i.bufferIndex,i.start,l),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new ge(i.bufferIndex,i.start,l,u,c),le(this,e,c-s,u-a);var d=new ge(i.bufferIndex,n,r,this.getLineFeedCnt(i.bufferIndex,n,r),this.offsetInBuffer(i.bufferIndex,r)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},_e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=fe(t,!1),r=0;re)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var o={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(o),o}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},_e.prototype.nodeAt2=function(e,t){for(var n=this.root,i=0;n!==Q;)if(n.left!==Q&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2),r=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(o+t-1,r),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((o=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:i};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Q;){if(0=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next()}return null},_e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},_e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},_e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},_e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===Q||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,o=n[i]+t.start.column;return i!==n.length-1&&!(o+1>>0}var Ve=new Uint32Array(0).buffer,ze=(He.prototype.deleteBeginning=function(e){null!==this._lineTokens&&this._lineTokens!==Ve&&this.delete(0,e)},He.prototype.deleteEnding=function(e){if(null!==this._lineTokens&&this._lineTokens!==Ve){var t=new Uint32Array(this._lineTokens),n=t[t.length-2];this.delete(e,n)}},He.prototype.delete=function(e,t){if(null!==this._lineTokens&&this._lineTokens!==Ve&&e!==t){var n=new Uint32Array(this._lineTokens),i=n.length>>>1;if(0!==e||n[n.length-2]!==t){var o=Fe.a.findIndexInTokensArray(n,e),r=0>>1,o=new Uint32Array(t.length+n.length);o.set(t,0);for(var r=t.length,s=t[t.length-2],a=0;a>>1,o=Fe.a.findIndexInTokensArray(n,e);0=this._tokens.length))if(e.startLineNumber!==e.endLineNumber){var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var i=e.endLineNumber-1,o=null;if(i=this._tokens.length))if(0!==t){var o=this._tokens[i];o.deleteEnding(e.column-1),o.insert(e.column-1,n);for(var r=new Array(t),s=t-1;0<=s;s--)r[s]=new ze(null);this._tokens=Re.a(this._tokens,e.lineNumber,r)}else this._tokens[i].insert(e.column-1,n)}},Ke.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,n),n},Ke.prototype._tokenizeText=function(e,t,n){var o=null;if(this.tokenizationSupport)try{o=this.tokenizationSupport.tokenize2(t,n,0)}catch(e){Object(i.e)(e)}return o||Object(We.e)(this.languageIdentifier.id,t,n,0)},Ke.prototype._updateTokensUntilLine=function(e,t,n){if(this.tokenizationSupport){for(var o=e.getLineCount(),r=n-1,s=this._invalidLineStartIndex;s<=r;s++){var a=s+1,l=e.getLineContent(s+1),u=this._getState(s),c=null;try{var d=u.clone();c=this.tokenizationSupport.tokenize2(l,d,0)}catch(e){Object(i.e)(e)}if(c=c||Object(We.e)(this.languageIdentifier.id,l,u,0),this._setTokens(this.languageIdentifier.id,s,l.length,c.tokens),t.registerChangedTokens(s+1),this._setIsInvalid(s,!1),athis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},st.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},st.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},st.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},st.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},st.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},st.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},st.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},st.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;n=o<1?t=1:il.endLineNumber,f=l.startLineNumber>y.endLineNumber;if(!p&&!f){u=!0;break}}if(!u){r=!1;break}}if(r)for(s=0,a=this._trimAutoWhitespaceLines.length;sy.endLineNumber||g===y.startLineNumber&&y.startColumn===m&&y.isEmpty()&&b&&0this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},st.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new d.a(r,1,s,a),n,i)},st.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},st.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},st.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)},st.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s)},st.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;tthis.getLineCount())throw new Error("Illegal value for lineNumber");var t=new Ge;this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n)},st.prototype.isCheapToTokenize=function(e){return!!this._tokens.isCheapToTokenize(e)&&(ethis.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},st.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},st.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},st.prototype.getModeId=function(){return this._languageIdentifier.language},st.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},st.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),i=n.lineNumber,o=n.column,r=this._getLineTokens(i);return r.getLanguageId(r.findTokenIndexAtOffset(o-1))},st.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()},0))},st.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount());this._revalidateTokensNow(e),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},st.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._buffer.getLineCount());for(var t=new Ge,n=s.a.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(20n[e]?1:t[e]>>0)>>>0}function p(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new v(0!=i?[f(n,t),f(i,t)]:[f(n,t)])}function f(e,t){var n=!!(2048&e),i=!!(256&e);return new g(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}d(0,"unknown"),d(1,"Backspace"),d(2,"Tab"),d(3,"Enter"),d(4,"Shift"),d(5,"Ctrl"),d(6,"Alt"),d(7,"PauseBreak"),d(8,"CapsLock"),d(9,"Escape"),d(10,"Space"),d(11,"PageUp"),d(12,"PageDown"),d(13,"End"),d(14,"Home"),d(15,"LeftArrow","Left"),d(16,"UpArrow","Up"),d(17,"RightArrow","Right"),d(18,"DownArrow","Down"),d(19,"Insert"),d(20,"Delete"),d(21,"0"),d(22,"1"),d(23,"2"),d(24,"3"),d(25,"4"),d(26,"5"),d(27,"6"),d(28,"7"),d(29,"8"),d(30,"9"),d(31,"A"),d(32,"B"),d(33,"C"),d(34,"D"),d(35,"E"),d(36,"F"),d(37,"G"),d(38,"H"),d(39,"I"),d(40,"J"),d(41,"K"),d(42,"L"),d(43,"M"),d(44,"N"),d(45,"O"),d(46,"P"),d(47,"Q"),d(48,"R"),d(49,"S"),d(50,"T"),d(51,"U"),d(52,"V"),d(53,"W"),d(54,"X"),d(55,"Y"),d(56,"Z"),d(57,"Meta"),d(58,"ContextMenu"),d(59,"F1"),d(60,"F2"),d(61,"F3"),d(62,"F4"),d(63,"F5"),d(64,"F6"),d(65,"F7"),d(66,"F8"),d(67,"F9"),d(68,"F10"),d(69,"F11"),d(70,"F12"),d(71,"F13"),d(72,"F14"),d(73,"F15"),d(74,"F16"),d(75,"F17"),d(76,"F18"),d(77,"F19"),d(78,"NumLock"),d(79,"ScrollLock"),d(80,";",";","OEM_1"),d(81,"=","=","OEM_PLUS"),d(82,",",",","OEM_COMMA"),d(83,"-","-","OEM_MINUS"),d(84,".",".","OEM_PERIOD"),d(85,"/","/","OEM_2"),d(86,"`","`","OEM_3"),d(110,"ABNT_C1"),d(111,"ABNT_C2"),d(87,"[","[","OEM_4"),d(88,"\\","\\","OEM_5"),d(89,"]","]","OEM_6"),d(90,"'","'","OEM_7"),d(91,"OEM_8"),d(92,"OEM_102"),d(93,"NumPad0"),d(94,"NumPad1"),d(95,"NumPad2"),d(96,"NumPad3"),d(97,"NumPad4"),d(98,"NumPad5"),d(99,"NumPad6"),d(100,"NumPad7"),d(101,"NumPad8"),d(102,"NumPad9"),d(103,"NumPad_Multiply"),d(104,"NumPad_Add"),d(105,"NumPad_Separator"),d(106,"NumPad_Subtract"),d(107,"NumPad_Decimal"),d(108,"NumPad_Divide"),(a=s=s||{}).toString=function(e){return l.keyCodeToStr(e)},a.fromString=function(e){return l.strToKeyCode(e)},a.toUserSettingsUS=function(e){return u.keyCodeToStr(e)},a.toUserSettingsGeneral=function(e){return c.keyCodeToStr(e)},a.fromUserSettings=function(e){return u.strToKeyCode(e)||c.strToKeyCode(e)};var g=(m.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},m.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},m.prototype.toChord=function(){return new v([this])},m.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},m);function m(e,t,n,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=o}var v=(y.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t=i.length)&&a.v(i.charCodeAt(n))},O.isHighSurrogate=function(e,t,n){var i=e.getLineContent(t);return!(n<0||n>=i.length)&&a.u(i.charCodeAt(n))},O.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2)},O.visibleColumnFromColumn=function(e,t,n){var i=e.length;t-1e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},C.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},C.prototype.getRawEnterActionAtPosition=function(e,t,n){var i=this.getEnterAction(e,new a.a(t,n,t,n));return i?i.enterAction:null},C.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),r=this._getOnEnterSupport(o.languageId);if(!r)return null;var s,a=o.getLineContent(),l=a.substr(0,t.startColumn-1-o.firstCharOffset);s=t.isEmpty()?a.substr(t.startColumn-1-o.firstCharOffset):this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-o.firstCharOffset);var c=t.startLineNumber,d="";if(1n-1&&(o=o.substring(0,n-1)),o},C.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var i=e.getLineTokens(t),o=void 0===n?e.getLineMaxColumn(t)-1:n-1;return Object(c.a)(i,o)},C.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},C)},,,,,function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return d}),n.d(t,"c",function(){return p});var i,o=n(1442),r=n(1853),s=n(1426),a=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=(u.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},u.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},u);function u(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);var t=r.a.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}var c,d=(a(h,c=l),h);function h(e){var t=c.call(this,e)||this;return t.dataTransfer=e.dataTransfer,t}var p=(f.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},f.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},f);function f(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){var i=e,r=e;void 0!==i.wheelDeltaY?this.deltaY=i.wheelDeltaY/120:void 0!==r.VERTICAL_AXIS&&r.axis===r.VERTICAL_AXIS&&(this.deltaY=-r.detail/3),void 0!==i.wheelDeltaX?o.l&&s.g?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120:void 0!==r.HORIZONTAL_AXIS&&r.axis===r.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n(1421),o=Object(i.c)("modelService");function r(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(1431),o=n(1758);function r(){this.data={}}var s=new(r.prototype.add=function(e,t){o.a(i.h(e)),o.a(i.g(t)),o.a(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},r.prototype.as=function(e){return this.data[e]||null},r)},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"i",function(){return a}),n.d(t,"b",function(){return l}),n.d(t,"h",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"c",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return f});var i=n(1467),o=n(1421),r=n(1603),s=Object(o.c)("configurationService");function a(e,t){var n=Object.create(null);for(var i in e)l(n,i,e[i],t);return n}function l(e,t,n,i){for(var o=t.split("."),r=o.pop(),s=e,a=0;a=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&ethis._limit&&this.trimOld(Math.round(this._limit*this._ratio))},_);function _(e,t){void 0===t&&(t=1);var n=y.call(this)||this;return n._limit=e,n._ratio=Math.min(Math.max(0,t),1),n}},function(e,t){function n(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:0a&&(t[1-r]=t[r]+p.sign*a),t}},,,function(e,t,n){"use strict";n.d(t,"h",function(){return h}),n.d(t,"g",function(){return i}),n.d(t,"i",function(){return p}),n.d(t,"e",function(){return f}),n.d(t,"d",function(){return C}),n.d(t,"f",function(){return S}),n.d(t,"b",function(){return M}),n.d(t,"c",function(){return E}),n.d(t,"a",function(){return D});var i,o,r=n(1415),s=n(1430),a=n(1443),l=n(1426),u=n(1672),c=n(1431),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n{b} : {c} %"},series:[{name:"",type:"pie",radius:["45%","70%"],center:["50%","60%"],data:[],label:{normal:{show:!0,formatter:"{c}%"},emphasis:{show:!0}},labelLine:{normal:{show:!0,smooth:!1,length:20,length2:10},emphasis:{show:!0}}}]},representPieChart:{color:["#424246","#96EE80","#F4A45D","#8085ED","#F25C81","#E5D355","#348188","#F25C81","#8FCACE","#7CB5EC"],title:{text:"",subtext:"",x:"center",link:"",target:"self"},tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},toolbox:{x2:5,y:-5,feature:{restore:{title:"restore"},saveAsImage:{show:!0,title:"save"}}},legend:{type:"scroll",show:!1,orient:"vertical",left:"right",top:35,selectedMode:"false",data:[]},series:[{name:"",type:"pie",radius:"55%",center:["50%","60%"],data:[],label:{normal:{show:!0,formatter:"{b}"},emphasis:{show:!0}},labelLine:{normal:{show:!0,smooth:!1,length:20,length2:10},emphasis:{show:!0}}}]},supplyTypesTRXPieChart:{color:["#c84a45","#e7afad","#e19b98","#da8683"],title:{text:"",subtext:"",x:"center",link:"",target:"self"},tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},toolbox:{x2:5,y:-5,feature:{restore:{title:"restore"},saveAsImage:{show:!0,title:"save"}}},legend:{type:"plain",show:!1,orient:"horizontal",bottom:0,left:"center",selectedMode:"false",itemGap:20,data:[]},series:[{name:"",type:"pie",radius:"55%",center:["50%","50%"],data:[],label:{normal:{show:!0,formatter:"{b}"},emphasis:{show:!0}},labelLine:{normal:{show:!0,smooth:!1,length:10,length2:5},emphasis:{show:!0}}}]},lineChart:{title:{text:"",x:"center",link:"",target:"self"},grid:{left:"5%",right:"7%",bottom:"5%",containLabel:!0},tooltip:{trigger:"axis"},xAxis:{type:"category",data:[],axisTick:{alignWithLabel:!0}},yAxis:{type:"value"},series:[{data:[],type:"line"}]},ringPieChart:{title:{text:"",x:"center"},color:["#F25C81","#7CB5EC","#F4A45D","#8085ED","#8FCACE","#424246","#348188","#F25C81","#E5D355","#96EE80"],legend:{type:"scroll",orient:"vertical",x:"right",selected:{"Bancor Network":!1,Gatecoin:!1,BitFlip:!1,Braziliex:!1,Cobinhood:!1,CoinExchange:!1,CoinFalcon:!1,Cryptomate:!1,IDEX:!1,"LiteBit.eu":!1,"Stocks.Exchange":!1,Tidex:!1}},tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},series:[{name:"",type:"pie",selectedMode:"single",radius:[0,"30%"],center:["50%","50%"],label:{normal:{position:"inner",show:!1}},labelLine:{normal:{show:!1}},data:[]},{name:"",type:"pie",radius:["40%","55%"],center:["50%","50%"],data:[]}]},multiLineChart:{title:{text:"",x:"center"},legend:{type:"scroll",data:[]},grid:{left:"3%",right:"3%",bottom:"5%",containLabel:!0},tooltip:{trigger:"axis"},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value"},series:[]},mapChart:{color:["gold"],series:[{name:"",type:"map",roam:!0,hoverable:!1,mapType:"none",itemStyle:{normal:{borderColor:"rgba(100,149,237,1)",borderWidth:.5,areaStyle:{color:"#1b1b1b"}}},data:[],geoCoord:{}},{name:"",type:"map",mapType:"none",data:[],markPoint:{symbol:"emptyCircle",symbolSize:function(e){return 1+e/10},effect:{show:!0,shadowBlur:0},itemStyle:{normal:{label:{show:!1}},emphasis:{label:{position:"top"}}},data:[]}}]},barChart:{title:{text:"Ranking"},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:150},xAxis:{type:"value",name:"",axisLabel:{formatter:"{value}"}},yAxis:{type:"category",inverse:!0,data:[]},series:[{name:"",type:"bar",data:[],label:{normal:{show:!0,textBorderWidth:0}},itemStyle:{}}]},overviewChart:{title:{text:"",x:"center",link:"",target:"self",padding:[0,0,10,0]},tooltip:{trigger:"axis",axisPointer:{animation:!1}},toolbox:{x2:5,y:-5,feature:{restore:{title:"restore"},saveAsImage:{show:!0,title:"save"}}},axisPointer:{link:{xAxisIndex:"all"}},dataZoom:[{start:0,end:100},{type:"inside"}],grid:[{top:80,left:"10%",right:80,containLabel:!0}],xAxis:[{type:"category",boundaryGap:!1,axisLine:{onZero:!0},data:[]}],yAxis:[{name:"",nameGap:20,type:"value"}],series:[{name:"",type:"line",markPoint:{data:[{type:"max",name:"max"},{type:"min",name:"min"}]},data:[]}]},overviewHighChart:{chart:{zoomType:"",spacingTop:5,spacingBottom:0,spacingLeft:0,spacingRight:0,resetZoomButton:{position:{align:"right",verticalAlign:"top",x:-55,y:0},relativeTo:"chart",theme:{fill:"white",stroke:"silver",r:0,states:{hover:{fill:"#eeeeee",style:{color:"red"}}}}}},title:{text:"",style:{color:"#c23631",fontSize:"16px"}},credits:{enabled:!1},colors:["#c84a45","#e7afad"],exporting:{enabled:!0,sourceWidth:1072,sourceHeight:500,filename:""},subtitle:{text:""},xAxis:{type:"datetime",ordinal:!1,dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"},gridLineColor:"#eeeeee",labels:{style:{color:"#999999"},autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90]}},tooltip:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%Y-%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:{title:{text:""},tickPixelInterval:30,labels:{style:{color:"#999999"}}},legend:{enabled:!1},plotOptions:{area:{fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ECC2C1"],[1,"#ffffff"]]},marker:{radius:2},lineWidth:1,states:{hover:{lineWidth:2}},threshold:null,column:{pointPadding:.1,borderWidth:0}}},series:[{type:"area",name:"",data:[],marker:{enabled:!0}}]},HomeHighChart:{chart:{zoomType:"",spacingTop:5,spacingBottom:0,spacingLeft:0,spacingRight:0,resetZoomButton:{position:{align:"right",verticalAlign:"top",x:-55,y:0},relativeTo:"chart",theme:{fill:"white",stroke:"silver",r:0,states:{hover:{fill:"#eeeeee",style:{color:"red"}}}}}},title:{text:"",style:{color:"#c23631",fontSize:"16px"}},credits:{enabled:!1},colors:["#c84a45","#e7afad"],exporting:{enabled:!0,sourceWidth:1072,sourceHeight:500,filename:""},subtitle:{text:""},xAxis:{type:"datetime",ordinal:!1,dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"},gridLineColor:"#eeeeee",labels:{style:{color:"#999999"},autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90]}},tooltip:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%Y-%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},yAxis:[{title:{text:""},tickPixelInterval:30,labels:{style:{color:"#c23631"}},gridLineWidth:0},{title:{text:""},tickPixelInterval:30,labels:{style:{color:"#333333"}},opposite:!0,gridLineWidth:0}],legend:{align:"center",verticalAlign:"bottom",floating:!1,backgroundColor:"#FFFFFF"},plotOptions:{area:{fillColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ECC2C1"],[1,"#ffffff"]]},marker:{radius:2},lineWidth:1,states:{hover:{lineWidth:2}},threshold:null,column:{pointPadding:.1,borderWidth:0}}},series:[{type:"spline",name:"",data:[],color:"#c23631",marker:{enabled:!1,radius:1}},{type:"spline",name:"",data:[],color:"#FFAA38",marker:{enabled:!1,radius:1},visible:!1},{type:"spline",name:"",data:[],color:"#FF8A84",yAxis:1,marker:{enabled:!1,radius:1},visible:!1}]},ringPieHighChart3D:{chart:{type:"pie",options3d:{enabled:!0,alpha:45},spacingTop:5,spacingBottom:0,spacingLeft:0,spacingRight:0},title:{text:""},subtitle:{text:""},exporting:{enabled:!0,sourceWidth:1072,sourceHeight:500,filename:""},credits:{enabled:!1},colors:["#424246","#96EE80","#F4A45D","#8085ED","#F25C81","#E5D355","#348188","#F25C81","#8FCACE","#7CB5EC"],plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",showInLegend:!0,innerSize:100,depth:60}},legend:{itemStyle:{fontWeight:"normal",color:"#666666"}},tooltip:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%Y-%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"}},series:[{name:"",data:[]}]},supplyPieHighChart:{chart:{plotBackgroundColor:null,plotBorderWidth:null,plotShadow:!1,type:"pie"},title:{text:""},credits:{enabled:!1},exporting:{enabled:!0,sourceWidth:562,sourceHeight:400,filename:""},tooltip:{pointFormat:"{series.name}: {point.percentage:.1f}%"},colors:["#c84a45","#e7afad"],plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0},showInLegend:!0}},series:[{name:"",colorByPoint:!0,data:[]}]},supplyAreaHighChart:{chart:{type:"area"},title:{text:""},subtitle:{text:""},credits:{enabled:!1},xAxis:{type:"datetime",ordinal:!1,dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"},gridLineColor:"#eeeeee",labels:{style:{color:"#999999"},autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90]},tickmarkPlacement:"on",title:{enabled:!1}},yAxis:{title:{text:""},labels:{style:{color:"#999999"}}},tooltip:{shared:!0,valueSuffix:"%"},exporting:{enabled:!0,sourceWidth:1072,sourceHeight:500,filename:""},plotOptions:{area:{stacking:"normal",lineColor:"#666666",lineWidth:1,marker:{lineWidth:1,lineColor:"#666666",radius:1}}},series:[]},OverallFreezingRateChart:{chart:{type:"",zoomType:"xy"},title:{text:""},subtitle:{text:""},credits:{enabled:!1},legend:{enabled:!0,align:"center"},xAxis:{type:"datetime",ordinal:!1,dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%Y-%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"},gridLineColor:"#eeeeee",labels:{style:{color:"#999999"},autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90]},title:{enabled:!1}},yAxis:[],tooltip:{},exporting:{enabled:!0,sourceWidth:1072,sourceHeight:500,filename:""},plotOptions:{},series:[]},HoldTrxAccountChart:{chart:{type:"",zoomType:"xy"},title:{text:""},subtitle:{text:""},credits:{enabled:!1},legend:{enabled:!0,align:"center"},xAxis:{type:"datetime",ordinal:!1,dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%Y-%m-%d",week:"%m-%d",month:"%Y-%m",year:"%Y"},gridLineColor:"#eeeeee",labels:{style:{color:"#999999"},autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90]},title:{enabled:!1}},yAxis:[],tooltip:{},exporting:{enabled:!0,sourceWidth:1072,sourceHeight:500,filename:""},plotOptions:{},series:[]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=u(n(0)),o=u(n(1510)),r=a(n(1597)),s=a(n(56));function a(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){if(e&&e.__esModule)return e;var t=l();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=e[o]}}return n.default=e,t&&t.set(e,n),n}function c(){return(c=Object.assign||function(e){for(var t=1;t>>0,new i.c(r,null===n?s:n)}},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return r});var i=n(1421),o=Object(i.c)("contextViewService"),r=Object(i.c)("contextMenuService")},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return d}),n.d(t,"d",function(){return f}),n.d(t,"c",function(){return m});var i,o=n(1413),r=n(1436),s=n(1410),a=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=(u.prototype._equals=function(e){if(!(e instanceof u))return!1;var t=e;return this.modelVersionId===t.modelVersionId&&this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))},u.prototype.validate=function(e){return this._equals(new u(e,this.flags))},u);function u(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?o.p("{0}#{1}",n.uri.toString(),n.getVersionId()):null}0!=(4&this.flags)&&(this.position=e.getPosition()),0!=(2&this.flags)&&(this.selection=e.getSelection()),0!=(8&this.flags)&&(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop())}var c,d=(a(h,c=r.b),h.prototype.dispose=function(){Object(s.d)(this._listener),c.prototype.dispose.call(this)},h);function h(e,t,n){var i=c.call(this,n)||this;return i.editor=e,i._listener=[],4&t&&i._listener.push(e.onDidChangeCursorPosition(function(e){return i.cancel()})),2&t&&i._listener.push(e.onDidChangeCursorSelection(function(e){return i.cancel()})),8&t&&i._listener.push(e.onDidScrollChange(function(e){return i.cancel()})),1&t&&(i._listener.push(e.onDidChangeModel(function(e){return i.cancel()})),i._listener.push(e.onDidChangeModelContent(function(e){return i.cancel()}))),i}var p,f=(a(g,p=r.b),g.prototype.dispose=function(){this._listener.dispose(),p.prototype.dispose.call(this)},g);function g(e,t){var n=p.call(this,t)||this;return n._listener=e.onDidChangeContent(function(){return n.cancel()}),n}var m=(v.capture=function(e){var t=null,n=0;if(0!==e.getScrollTop()){var i=e.getVisibleRanges();if(0/?".split("").forEach(function(e){return c.add(e.charCodeAt(0))});var m=r(s,g,function(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}),v=r(s,g,function(e,t){return function e(t,n,i,o){if(i===t.length)return[];if(o===n.length)return null;if(t[i]!==n[o])return e(t,n,i,o+1);var r;return(r=e(t,n,i+1,o+1))?h({start:o,end:o+1},r):null}(e.toLowerCase(),t.toLowerCase(),0,0)}),y=new i.a(1e4);function b(e,t,n){if(void 0===n&&(n=!1),"string"!=typeof e||"string"!=typeof t)return null;var i=y.get(e);i||(i=new RegExp(o.h(e),"i"),y.set(e,i));var r=i.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:n?v(e,t):m(e,t)}function _(e,t,n,i,o,r){var s=P(e,t,0,i,o,0,!0);if(s)return s;for(var a=0,l=0,u=r,c=0;c=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function I(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function T(e,t,n){return t[e]!==n[e]}function P(e,t,n,i,o,r,s){var a=e.length>C?C:e.length,l=i.length>C?C:i.length;if(!(a<=n||l<=r||ll[0])&&(l=h))}}return l}(e,t,n,i,o,r,0,s)}function V(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}},function(e,t,n){"use strict";n.d(t,"b",function(){return w}),n.d(t,"a",function(){return k});var i=n(1442),o=n(1412),r=n(1410),s=n(1426),a=(l.prototype.fulfill=function(e){this.width=e},l);function l(e,t){this.chr=e,this.type=t,this.width=0}var u=(c.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},c.prototype._createDomElements=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";var t=document.createElement("div");t.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),t.style.fontWeight=this._bareFontInfo.fontWeight,t.style.fontSize=this._bareFontInfo.fontSize+"px",t.style.lineHeight=this._bareFontInfo.lineHeight+"px",t.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(t);var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight="bold",n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight=this._bareFontInfo.fontWeight,i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",i.style.fontStyle="italic",e.appendChild(i);for(var o=[],r=0,s=this._requests.length;rb.width&&(L=!1);var M=2e3 '+f()(t[0].point.date).format("YYYY-MM-DD")+"
",e+=''+i.formatMessage({id:"daily_increment"})+''+i.formatMessage({id:"total_addresses"})+"";for(var o=0;o\u25a0 '+i.formatMessage({id:t[o].series.name})+''+C.a.numberFormat(t[o].point.increment,0,".",",")+''+C.a.numberFormat(t[o].y,0,".",",")+"
";return e+""}}),C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),j=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"lineAdd"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data,s=n.source;o&&0===o.length&&(t.title.text="No data"),"home"==s?(t.title.text=i.formatMessage({id:"14_day_address_growth"}),o&&0 '+f()(t[0].point.date).format("YYYY-MM-DD")+"
",e+=''+i.formatMessage({id:"daily_increment"})+''+i.formatMessage({id:"total_addresses"})+"";for(var o=0;o\u25a0 '+i.formatMessage({id:t[o].series.name})+''+C.a.numberFormat(t[o].point.increment,0,".",",")+''+C.a.numberFormat(t[o].y,0,".",",")+"
";return e+""}}):(o&&0===o.length&&(t.title.text="No data"),o&&0"+i.formatMessage({id:"daily_increment"})+" : "+this.point.increment+"
"+i.formatMessage({id:"total_addresses"})+" : "+this.point.total}),C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),W=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"lineTx"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.HomeHighChart),n=this.props,i=n.intl,o=n.data,s=n.sun,a=n.total;"home"==n.source&&(a&&0 '+f()(t[0].point.date).format("YYYY-MM-DD")+"
",e+=''+i.formatMessage({id:"total_transactions"})+"";for(var o=0;o\u25a0 '+i.formatMessage({id:t[o].series.name})+''+C.a.numberFormat(t[o].y,0,".",",")+"
";return e+""}}),C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),B=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"lineTx"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data;"home"==n.source?(o&&0 '+f()(t[0].point.date).format("YYYY-MM-DD")+"
",e+=''+i.formatMessage({id:"total_transactions"})+"";for(var o=0;o\u25a0 '+i.formatMessage({id:t[o].series.name})+''+C.a.numberFormat(t[o].y,0,".",",")+"
";return e+""}}):(o&&0===o.length&&(t.title.text="No data"),o&&0"+i.formatMessage({id:"total_transactions"})+" : "+this.point.y+"
"+i.formatMessage({id:"avg_blockSize"})+" : "+this.point.avgBlockSize+"
"+i.formatMessage({id:"new_address_seen"})+" : "+this.point.newAddressSeen}),C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),V=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"lineTx"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data;"home"==n.source?(o&&0"+i.formatMessage({id:"total_transactions"})+" : "+this.point.y}):(o&&0===o.length&&(t.title.text="No data"),o&&0"+i.formatMessage({id:"date"})+" : "+e+"
"+i.formatMessage({id:"total_transactions"})+" : "+this.point.y}),C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),z=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"lineBlockchainSize"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data;n.source,o&&0===o.length&&(t.title.text="No data"),o&&0"+i.formatMessage({id:"charts_total_average_blocksize"})+" : "+this.point.blockchainSize/1e6},C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),H=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"barBlockSize"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data;n.source,o&&0===o.length&&(t.title.text="No data"),o&&0"+i.formatMessage({id:"average_blocksize"})+" : "+this.point.avgBlockSize},C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),U=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"linePrice"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data,s=n.source;o&&0===o.length&&(t.title.text="No data"),"markets"==s?(o&&0"+i.formatMessage({id:"charts_average_price"})+" : "+this.point.y}):(o&&0"+i.formatMessage({id:"charts_average_price"})+" : "+this.point.y}),C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),K=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"lineReactVolumeUsd"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data,s=n.source;o&&0===o.length&&(t.title.text="No data"),"markets"==s?(o&&0"+i.formatMessage({id:"volume_24"})+" : "+this.point.y+"
"}):(o&&0"+i.formatMessage({id:"volume"})+" : "+this.point.y+"
"}),C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),G=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"lineReactVolumeUsd"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data,s=n.source;o&&0===o.length&&(t.title.text="No data"),"markets"==s?(o&&0"+i.formatMessage({id:"volume_24"})+" : "+this.point.y+"
"}):(o&&0"+i.formatMessage({id:"TRX_historical_data_tip"})+" : "+this.point.y+"
"}),C.a.chart(document.getElementById(e),t)}},{key:"shouldComponentUpdate",value:function(e){return e.intl.locale!==this.props.intl.locale}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),q=(h.a.Component,h.a.Component,h.a.Component,h.a.Component,h.a.Component,h.a.Component,function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"EnergyConsumeChart"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data;if(n.type,o&&0"+i.formatMessage({id:"total_energy_used"})+": "+i.formatNumber(this.points[0].total)+"
"+this.points.map(function(e){return'').concat(e.series.name,": ").concat(i.formatNumber(e.y),"
")}).join("")},shared:!0},plotOptions:{column:{stacking:"normal"}},series:s})}o&&0===o.length&&(t.title.text="No data"),C.a.chart(e,t)}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component)),Y=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"ContractInvocationChart"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data;o&&te(t,{chart:{zoomType:"x"},colors:["#f7a35c","#f15c80"],title:{text:i.formatMessage({id:"charts_contract_calling"})},subtitle:{text:i.formatMessage({id:"HighChart_tip"})},exporting:{enabled:!0,sourceWidth:1072,sourceHeight:500,filename:i.formatMessage({id:"charts_contract_calling"})},xAxis:{tickPixelInterval:100},yAxis:{title:{text:i.formatMessage({id:"contract_call_per_day"})},type:"logarithmic",minorTickInterval:.1},legend:{align:"center",verticalAlign:"bottom",enabled:!0},tooltip:{formatter:function(){return i.formatMessage({id:"date"})+": "+i.formatDate(this.x)+"
"+this.series.name+": "+this.y}},plotOptions:{series:{marker:{enabled:!1}}},series:[{name:i.formatMessage({id:"call_time"}),data:o.trigger_amount},{name:i.formatMessage({id:"call_address_number"}),data:o.address_amount}]}),o&&0===o.length&&(t.title.text="No data"),C.a.chart(e,t)}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),X=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"ContractInvocationChart"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data,s=r()(o),a=s.slice(0).map(function(e){return e.y=e.trigger_amount,e.name=e.contract_address,e});if(s&&0\u25cf {point.name}
'+i.formatMessage({id:"call_address_time"})+": {point.caller_amount}
"+i.formatMessage({id:"call_address_scale"})+": {point.caller_percent}
"+i.formatMessage({id:"call_time"})+": {point.y}
"+i.formatMessage({id:"call_scale"})+": {point.trigger_percent}
"},series:[{minPointSize:70,innerSize:"30%",zMin:0,name:"countries",data:a}]};Object.keys(l).map(function(e){t[e]=l[e]})}s&&0===s.length&&(t.title.text="No data"),C.a.chart(e,t)}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),Z=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"ContractInvocationChart"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.overviewHighChart),n=this.props,i=n.intl,o=n.data,s=o.slice(0).map(function(e){return Number(e.total_energy),Number(e.energy),Number(e.trx),Number(e.contract_supplied),{name:e.contract_address,y:Number(e.total_energy),real_name:e.name,percent:e.percent}});if(o&&0\u25cf {point.name}
'+i.formatMessage({id:"total_energy_used"})+": {point.y}
"+i.formatMessage({id:"energy_scale"})+": {point.percent}
"},series:[{minPointSize:70,innerSize:"30%",zMin:0,name:"countries",data:s}]};Object.keys(a).map(function(e){t[e]=a[e]})}o&&0===o.length&&(t.title.text="No data"),C.a.chart(e,t)}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),J=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"OverallFreezingRateChart"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.OverallFreezingRateChart),n=this.props,i=n.intl,o=n.data,s=r()(o),a=[],l=[],u=[],c=[];if(s.map(function(e){a.push(e.freezing_rate_percent),l.push(e.total_freeze_weight),u.push(e.total_turn_over_num),c.push(e.timestamp)}),s&&0 '+f()(t[0].x).format("YYYY-MM-DD")+"
";for(var o=0;o\u25a0 '+i.formatMessage({id:t[o].series.name})+''+(t[o].series.name==i.formatMessage({id:"freezing_column_freezing_rate"})?C.a.numberFormat(t[o].y,2,".",",")+" %":t[o].series.name==i.formatMessage({id:"freezing_column_total_circulation"})?Object(b.f)(new y.a(t[o].y).decimalPlaces(6))+"
":C.a.numberFormat(t[o].y,0,".",",")+"
")+"
";return e+""}},series:[{name:i.formatMessage({id:"freezing_column_total_circulation"}),type:"column",yAxis:1,color:"#DA8885",data:u,pointStart:Date.UTC(2019,11,20),pointInterval:864e5,tooltip:{valueSuffix:" "},showInNavigator:!1,dataGrouping:{enabled:!1}},{name:i.formatMessage({id:"freezing_column_total_frozen"}),type:"column",yAxis:1,color:"#C64844",data:l,pointStart:Date.UTC(2019,11,20),pointInterval:864e5,tooltip:{valueSuffix:" "},showInNavigator:!1,dataGrouping:{enabled:!1}},{name:i.formatMessage({id:"freezing_column_freezing_rate"}),type:"spline",color:"#5A5A5A",data:a,pointStart:Date.UTC(2019,11,20),pointInterval:864e5,marker:{enabled:!0},tooltip:{valueSuffix:" %"},showInNavigator:!0,dataGrouping:{enabled:!1}}]};Object.keys(d).map(function(e){t[e]=d[e]})}s&&0===s.length&&(t.title.text="No data"),C.a.StockChart(e,t)}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),Q=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"OverallFreezingRateChart"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t,n=r()(g.a.OverallFreezingRateChart),i=this.props,o=i.intl,s=i.data,a=r()(s),l=[],u=[],c=[],d=[],h=T.a?[{visible:!0},{visible:!1},{visible:!1},{visible:!1}]:[{visible:!0},{visible:!0},{visible:!0},{visible:!0}];if(a.map(function(e){l.push(e.total_turn_over_num),u.push(e.total_burn_num),c.push(e.worth_num),d.push(e.timestamp)}),t=a.map(function(e){return{y:Number(e.total_produce_num),node:e.total_block_pay,vote:e.total_node_pay}}),a&&0 '+f()(t[0].x).format("YYYY-MM-DD")+"
";for(var i=0;i\u25a0 '+o.formatMessage({id:t[i].series.name})+''+(t[i].series.name==o.formatMessage({id:"Supply_TRX_total"})||t[i].series.name==o.formatMessage({id:"Supply_amount_net_new"})?Object(b.f)(new y.a(t[i].y).decimalPlaces(6))+"":t[i].series.name==o.formatMessage({id:"Supply_amount_TRX_burned"})?"-"+Object(b.f)(new y.a(Math.abs(t[i].y)).decimalPlaces(6))+"
":C.a.numberFormat(t[i].y,0,".",",")+"
")+""+(t[i].series.name==o.formatMessage({id:"Supply_amount_TRX_produced"})?"
"+o.formatMessage({id:"Supply_block_rewards"})+"\uff08"+Object(b.f)(t[i].point.node)+"\uff09 + "+o.formatMessage({id:"Supply_voting_rewards"})+"\uff08"+Object(b.f)(t[i].point.vote)+"\uff09":"")+(t[i].series.name==o.formatMessage({id:"Supply_amount_net_new"})?"
"+o.formatMessage({id:"Supply_amount_net_new_tip"})+"":"")+"";return e+""}},series:[{name:o.formatMessage({id:"Supply_TRX_total"}),type:"spline",color:"#DA8885",data:l,pointStart:Date.UTC(2019,11,28),pointInterval:864e5,marker:{enabled:!0},showInNavigator:!0,dataGrouping:{enabled:!1},softThreshold:!0},{name:o.formatMessage({id:"Supply_amount_TRX_produced"}),type:"spline",yAxis:1,color:"#EDB92B",data:t,pointStart:Date.UTC(2019,11,28),pointInterval:864e5,marker:{enabled:!0},showInNavigator:!1,dataGrouping:{enabled:!1},softThreshold:!0,visible:!T.a},{name:o.formatMessage({id:"Supply_amount_TRX_burned"}),type:"spline",yAxis:2,color:"#999999",data:u,pointStart:Date.UTC(2019,11,28),pointInterval:864e5,marker:{enabled:!0},showInNavigator:!1,dataGrouping:{enabled:!1},softThreshold:!0,visible:!T.a},{name:o.formatMessage({id:"Supply_amount_net_new"}),type:"column",yAxis:1,color:"rgba(74,144,226,0.4)",negativeColor:"rgba(198,72,68.0.4)",data:c,pointStart:Date.UTC(2019,11,28),pointInterval:864e5,showInNavigator:!1,dataGrouping:{enabled:!1},softThreshold:!0,visible:!T.a}]};Object.keys(p).map(function(e){n[e]=p[e]})}a&&0===a.length&&(n.title.text="No data"),C.a.StockChart(e,n)}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),$=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"OverallFreezingRateChart"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.OverallFreezingRateChart),n=this.props,i=n.intl,o=n.data,s=r()(o),a=[],l=[],u=[],c=[],d=[],h=[],p=[],m=[];s.map(function(e){a.push(e.newTransactionSeen_num),l.push(e.triggers_num),u.push(e.trx_transfer_num),c.push(e.trc10_transfer_num),d.push(e.freeze_transaction_num),h.push(e.vote_transaction_num),p.push(e.other_transaction_num),m.push(e.shielded_transaction_num)});var v=s[0].date||Date.UTC(2018,5,25),_=864e5,w=["#C64844","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#8d4653","#91e8e1"];if(s&&0 '+f()(t[0].x).format("YYYY-MM-DD")+"
";for(var o=0;o\u25a0 '+i.formatMessage({id:t[o].series.name})+''+(t[o].series.name==i.formatMessage({id:"Supply_TRX_total"})||t[o].series.name==i.formatMessage({id:"Supply_amount_net_new"})?Object(b.f)(new y.a(t[o].y).decimalPlaces(6))+"":t[o].series.name==i.formatMessage({id:"Supply_amount_TRX_burned"})?"-"+Object(b.f)(new y.a(Math.abs(t[o].y)).decimalPlaces(6))+"":C.a.numberFormat(t[o].y,0,".",",")+"")+""+(t[o].series.name==i.formatMessage({id:"Supply_amount_TRX_produced"})?"
"+i.formatMessage({id:"Supply_block_rewards"})+"\uff08"+Object(b.f)(t[o].point.node)+"\uff09 + "+i.formatMessage({id:"Supply_voting_rewards"})+"\uff08"+Object(b.f)(t[o].point.vote)+"\uff09":"")+(t[o].series.name==i.formatMessage({id:"Supply_amount_net_new"})?"
"+i.formatMessage({id:"Supply_amount_net_new_tip"})+"":"")+"";return e+""}},series:[{name:i.formatMessage({id:"total_transactions"}),type:"spline",color:w[0],data:a,pointStart:v,pointInterval:_},{name:i.formatMessage({id:"txns_contract_calls"}),type:"spline",color:w[1],data:l,pointStart:v,pointInterval:_,visible:!1},{name:i.formatMessage({id:"txns_TRX_transfers"}),type:"spline",yAxis:1,color:w[2],data:u,pointStart:v,pointInterval:_,visible:!1},{name:i.formatMessage({id:"txns_TRC10_transfers"}),type:"spline",yAxis:1,color:w[3],data:c,pointStart:v,pointInterval:_,visible:!1},{name:i.formatMessage({id:"txns_frozen_transactions"}),type:"spline",yAxis:1,color:w[4],data:d,pointStart:v,pointInterval:_,visible:!1},{name:i.formatMessage({id:"txns_votes_transactions"}),type:"spline",yAxis:1,color:w[5],data:h,pointStart:v,pointInterval:_,visible:!1},{name:i.formatMessage({id:"txns_other_transactions"}),type:"spline",yAxis:1,color:w[6],data:p,pointStart:v,pointInterval:_,visible:!1}]};Object.keys(x).map(function(e){t[e]=x[e]})}s&&0===s.length&&(t.title.text="No data"),C.a.chart(document.getElementById(e),t)}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component),ee=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).myChart=null;var i=("_"+Math.random()).replace(".","_");return n.state={lineId:"HoldTrxAccountChart"+i},n}return Object(c.a)(t,e),Object(a.a)(t,[{key:"initLine",value:function(e){var t=r()(g.a.HoldTrxAccountChart),n=this.props,i=n.intl,o=n.data,s=r()(o),a=[],l=[],u=[],c=[];s.map(function(e){a.push(e.hold_trx_rate),l.push(e.hold_total),u.push(e.account_total),c.push(e.timestamp)});var d=s[0].timestamp||Date.UTC(2020,2,4);if(s&&0 '+f()(t[0].x).format("YYYY-MM-DD")+"
";for(var o=0;o\n \u25a0').concat(i.formatMessage({id:t[o].series.name}),'\n \n \n ').concat(2==o?C.a.numberFormat(t[o].y,2,".",",")+" %":t[o].series.name==i.formatMessage({id:"chart_hold_account_sum"})?Object(b.f)(new y.a(t[o].y).decimalPlaces(6)):C.a.numberFormat(t[o].y,0,".",","),"\n \n ");return e+""}},series:[{name:i.formatMessage({id:"chart_hold_account_sum"}),type:"column",yAxis:1,color:"#DA8885",data:u,pointStart:d,pointInterval:864e5,tooltip:{valueSuffix:" "},showInNavigator:!1,dataGrouping:{enabled:!1}},{name:i.formatMessage({id:"chart_hold_trx"}),type:"column",yAxis:1,color:"#C64844",data:l,pointStart:d,pointInterval:864e5,tooltip:{valueSuffix:" "},showInNavigator:!1,dataGrouping:{enabled:!1}},{name:i.formatMessage({id:"chart_hold_trx_account_per"}),type:"spline",color:"#5A5A5A",data:a,pointStart:d,pointInterval:864e5,marker:{enabled:!0},tooltip:{valueSuffix:" %"},showInNavigator:!0,dataGrouping:{enabled:!1}}]};Object.keys(h).map(function(e){t[e]=h[e]})}s&&0===s.length&&(t.title.text="No data"),C.a.StockChart(e,t)}},{key:"componentDidMount",value:function(){this.initLine(this.state.lineId)}},{key:"componentDidUpdate",value:function(){this.initLine(this.state.lineId)}},{key:"render",value:function(){return h.a.createElement("div",null,h.a.createElement("div",{id:this.state.lineId,style:this.props.style}))}}]),t}(h.a.Component);function te(e,t){Object.keys(t).map(function(n){t[n]&&"[object Object]"===t[n].toString()?(e[n]=e[n]||{},te(e[n],t[n])):e[n]=t[n]})}},function(e,t,n){var i=n(1416);n(1584),n(1585);var o=n(1588),r=n(1589),s=n(1590);n(1525),i.registerVisual(o("line","circle","line")),i.registerLayout(r("line")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,s("line"))},function(e,t,n){var i=n(1416),o="\0_ec_interaction_mutex";function r(e){return e[o]||(e[o]={})}i.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),t.take=function(e,t,n){r(e)[t]=n},t.release=function(e,t,n){var i=r(e);i[t]===n&&(i[t]=null)},t.isTaken=function(e,t){return!!r(e)[t]}},function(e,t,n){var i=n(1409).each,o="\0_ec_hist_store";function r(e){var t=e[o];return t||(e[o]=[{}])}t.push=function(e,t){var n=r(e);i(t,function(t,i){for(var o=n.length-1;0<=o&&!n[o][i];o--);if(o<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(r){var s=r.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),n.push(t)},t.pop=function(e){var t=r(e),n=t[t.length-1];1=n.actionsList.children.length?(n.actionsList.appendChild(r),n.items.push(i)):(n.actionsList.insertBefore(r,n.actionsList.children[o]),n.items.splice(o,0,i),o++)})},L.prototype.clear=function(){this.items=Object(a.d)(this.items),u.n(this.actionsList)},L.prototype.isEmpty=function(){return 0===this.items.length},L.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"==typeof e?n=e:"boolean"==typeof e&&(t=e),t&&void 0===this.focusedItem?(this.focusedItem=this.items.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},L.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.items.length-1);for(var e,t=this.focusedItem;this.focusedItem=(this.focusedItem+1)%this.items.length,e=this.items[this.focusedItem],this.focusedItem!==t&&!e.isEnabled(););this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},L.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);for(var e,t=this.focusedItem;this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.items.length-1),e=this.items[this.focusedItem],this.focusedItem!==t&&!e.isEnabled(););this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},L.prototype.updateFocus=function(e){void 0===this.focusedItem&&this.actionsList.focus();for(var t=0;tn.len*n.tickInterval/(n.max-n.min)&&(s=0),s\u25cf {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:["low","high"],toYData:function(e){return[e.low,e.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(e){var t=this.chart,n=this.xAxis.postTranslate(e.rectPlotX,this.yAxis.len-e.plotHigh);e.plotHighX=n.x-t.plotLeft,e.plotHigh=n.y-t.plotTop,e.plotLowX=e.plotX},translate:function(){var e=this,t=e.yAxis,n=!!e.modifyValue;I.area.prototype.translate.apply(e),k(e.points,function(i){var o=i.low,r=i.high,s=i.plotY;null===r||null===o?(i.isNull=!0,i.plotY=null):(i.plotLow=s,i.plotHigh=t.translate(n?e.modifyValue(r,i):r,0,1,0,1),n&&(i.yBottom=i.plotHigh))}),this.chart.polar&&k(this.points,function(t){e.highToXY(t),t.tooltipPos=[(t.plotHighX+t.plotLowX)/2,(t.plotHigh+t.plotLow)/2]})},getGraphPath:function(e){var t,n,i,o,r=[],s=[],a=I.area.prototype.getGraphPath;o=this.options;var l=this.chart.polar&&!1!==o.connectEnds,u=o.connectNulls,c=o.step;for(t=(e=e||this.points).length;t--;)(n=e[t]).isNull||l||u||e[t+1]&&!e[t+1].isNull||s.push({plotX:n.plotX,plotY:n.plotY,doCurve:!1}),i={polarPlotY:n.polarPlotY,rectPlotX:n.rectPlotX,yBottom:n.yBottom,plotX:L(n.plotHighX,n.plotX),plotY:n.plotHigh,isNull:n.isNull},s.push(i),r.push(i),n.isNull||l||u||e[t-1]&&!e[t-1].isNull||s.push({plotX:n.plotX,plotY:n.plotY,doCurve:!1});return e=a.call(this,e),c&&(!0===c&&(c="left"),o.step={left:"right",center:"center",right:"left"}[c]),r=a.call(this,r),s=a.call(this,s),o.step=c,o=[].concat(e,r),this.chart.polar||"M"!==s[0]||(s[0]="L"),this.graphPath=o,this.areaPath=e.concat(s),o.isArea=!0,o.xMap=e.xMap,this.areaPath.xMap=e.xMap,o},drawDataLabels:function(){var e,t,n,i,o,r=this.points,s=r.length,a=[],l=this.options.dataLabels,u=this.chart.inverted;if(E(l)?o=1t.plotLow,t.y=t.high,t._plotY=t.plotY,t.plotY=t.plotHigh,a[e]=t.dataLabel,t.dataLabel=t.dataLabelUpper,t.below=n,u?i.align||(i.align=n?"right":"left"):i.verticalAlign||(i.verticalAlign=n?"top":"bottom"));for(this.options.dataLabels=i,T.drawDataLabels&&T.drawDataLabels.apply(this,arguments),e=s;e--;)(t=r[e])&&(t.dataLabelUpper=t.dataLabel,t.dataLabel=a[e],delete t.dataLabels,t.y=t.low,t.plotY=t._plotY)}if(o.enabled||this._hasPointLabels){for(e=s;e--;)(t=r[e])&&(n=o.inside?t.plotHight.plotLow,t.below=!n,u?o.align||(o.align=n?"left":"right"):o.verticalAlign||(o.verticalAlign=n?"bottom":"top"));this.options.dataLabels=o,T.drawDataLabels&&T.drawDataLabels.apply(this,arguments)}if(i.enabled)for(e=s;e--;)(t=r[e])&&t.dataLabelUpper&&(t.dataLabels=[t.dataLabelUpper,t.dataLabel]);this.options.dataLabels=l},alignDataLabel:function(){I.column.prototype.alignDataLabel.apply(this,arguments)},drawPoints:function(){var e,t,n=this.points.length;for(T.drawPoints.apply(this,arguments),t=0;t\u25cf {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(e){return[e.low,e.q1,e.median,e.q3,e.high]},pointValKey:"high",pointAttribs:function(){return{}},drawDataLabels:te,translate:function(){var e=this.yAxis,t=this.pointArrayMap;oe.column.prototype.translate.apply(this),ee(this.points,function(n){ee(t,function(t){null!==n[t]&&(n[t+"Plot"]=e.translate(n[t],0,1,0,1))})})},drawPoints:function(){var e,t,n,i,o,r,s,a,l,u,c,d=this,h=d.options,p=d.chart.renderer,f=0,g=!1!==d.doQuartiles,m=d.options.whiskerLength;ee(d.points,function(v){var y=v.graphic,b=y?"animate":"attr",_=v.shapeArgs,w={},C={},x={},S={},O=v.color||d.color;void 0!==v.plotY&&(s=_.width,a=Math.floor(_.x),l=a+s,u=Math.round(s/2),e=Math.floor(g?v.q1Plot:v.lowPlot),t=Math.floor(g?v.q3Plot:v.lowPlot),n=Math.floor(v.highPlot),i=Math.floor(v.lowPlot),y||(v.graphic=y=p.g("point").add(d.group),v.stem=p.path().addClass("highcharts-boxplot-stem").add(y),m&&(v.whiskers=p.path().addClass("highcharts-boxplot-whisker").add(y)),g&&(v.box=p.path(void 0).addClass("highcharts-boxplot-box").add(y)),v.medianShape=p.path(void 0).addClass("highcharts-boxplot-median").add(y)),C.stroke=v.stemColor||h.stemColor||O,C["stroke-width"]=ne(v.stemWidth,h.stemWidth,h.lineWidth),C.dashstyle=v.stemDashStyle||h.stemDashStyle,v.stem.attr(C),m&&(x.stroke=v.whiskerColor||h.whiskerColor||O,x["stroke-width"]=ne(v.whiskerWidth,h.whiskerWidth,h.lineWidth),v.whiskers.attr(x)),g&&(w.fill=v.fillColor||h.fillColor||O,w.stroke=h.lineColor||O,w["stroke-width"]=h.lineWidth||0,v.box.attr(w)),S.stroke=v.medianColor||h.medianColor||O,S["stroke-width"]=ne(v.medianWidth,h.medianWidth,h.lineWidth),v.medianShape.attr(S),r=v.stem.strokeWidth()%2/2,f=a+u+r,v.stem[b]({d:["M",f,t,"L",f,n,"M",f,e,"L",f,i]}),g&&(r=v.box.strokeWidth()%2/2,e=Math.floor(e)+r,t=Math.floor(t)+r,a+=r,l+=r,v.box[b]({d:["M",a,t,"L",a,e,"L",l,e,"L",l,t,"L",a,t,"z"]})),m&&(r=v.whiskers.strokeWidth()%2/2,n+=r,i+=r,c=/%$/.test(m)?u*parseFloat(m)/100:m/2,v.whiskers[b]({d:["M",f-c,n,"L",f+c,n,"M",f-c,i,"L",f+c,i]})),o=Math.round(v.medianPlot),r=v.medianShape.strokeWidth()%2/2,o+=r,v.medianShape[b]({d:["M",a,o,"L",l,o]}))})},setStackedPoints:te}),se=(re=e).each,ae=re.noop,(0,re.seriesType)("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\u25cf {series.name}: {point.low} - {point.high}
'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(e){return[e.low,e.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:(le=re.seriesTypes).arearange?function(){var e=this.pointValKey;le.arearange.prototype.drawDataLabels.call(this),se(this.data,function(t){t.y=t[e]})}:ae,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||le.column.prototype.getColumnMetrics.call(this)}}),ce=(ue=e).correctFloat,de=ue.isNumber,he=ue.pick,pe=ue.Point,fe=ue.Series,ge=ue.seriesType,me=ue.seriesTypes,ge("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",showLine:!0,generatePoints:function(){var e,t,n,i,o=this.options.threshold;for(me.column.prototype.generatePoints.apply(this),n=0,t=this.points.length;n=this.minPxSize/2?(t.marker=we.extend(t.marker,{radius:n,width:2*n,height:2*n}),t.dlBox={x:t.plotX-n,y:t.plotY-n,width:2*n,height:2*n}):t.shapeArgs=t.plotY=t.dlBox=void 0},alignDataLabel:(Te=we.seriesTypes).column.prototype.alignDataLabel,buildKDTree:Me,applyZones:Me},{haloPath:function(e){return Ne.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},ttBelow:!1}),Se.prototype.beforePadding=function(){var e=this,t=this.len,n=this.chart,i=0,o=t,r=this.isXAxis,s=r?"xData":"yData",a=this.min,l={},u=Math.min(n.plotWidth,n.plotHeight),c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=this.max-a,p=t/h,f=[];ke(this.series,function(t){var i=t.options;!t.bubblePadding||!t.visible&&n.options.chart.ignoreHiddenSeries||(e.allowZoomOutside=!0,f.push(t),r&&(ke(["minSize","maxSize"],function(e){var t=i[e],n=/%$/.test(t);t=De(t),l[e]=n?u*t/100:t}),t.minPxSize=l.minSize,t.maxPxSize=Math.max(l.maxSize,l.minSize),(t=we.grep(t.zData,we.isNumber)).length&&(c=Ee(i.zMin,Math.min(c,Math.max(xe(t),!1===i.displayNegative?i.zThreshold:-Number.MAX_VALUE))),d=Ee(i.zMax,Math.max(d,Ce(t))))))}),ke(f,function(t){var n,l=t[s],u=l.length;if(r&&t.getRadii(c,d,t.minPxSize,t.maxPxSize),0e.length-1?r:o+1,s=e[t],r=e[r],a=s.plotX,s=s.plotY,l=r.plotX,u=r.plotY,a=(1.5*(r=e[o].plotX)+a)/2.5,s=(1.5*(o=e[o].plotY)+s)/2.5,l=(1.5*r+l)/2.5,c=(1.5*o+u)/2.5,u=Math.sqrt(Math.pow(a-r,2)+Math.pow(s-o,2)),d=Math.sqrt(Math.pow(l-r,2)+Math.pow(c-o,2)),a=Math.atan2(s-o,a-r),c=Math.PI/2+(a+Math.atan2(c-o,l-r))/2,Math.abs(a-c)>Math.PI/2&&(c-=Math.PI),a=r+Math.cos(c)*u,s=o+Math.sin(c)*u,r={rightContX:l=r+Math.cos(Math.PI+c)*d,rightContY:c=o+Math.sin(Math.PI+c)*d,leftContX:a,leftContY:s,plotX:r,plotY:o},n&&(r.prevPointCont=this.getConnectors(e,t,!1,i)),r},We(Be,"buildKDTree",function(e){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy"),e.apply(this)}),Be.toXY=function(e){var t,n=this.chart,i=e.plotX;t=e.plotY,e.rectPlotX=i,e.rectPlotY=t,t=this.xAxis.postTranslate(e.plotX,this.yAxis.len-t),e.plotX=e.polarPlotX=t.x-n.plotLeft,e.plotY=e.polarPlotY=t.y-n.plotTop,this.kdByAngle?((n=(i/Math.PI*180+this.xAxis.pane.options.startAngle)%360)<0&&(n+=360),e.clientX=n):e.clientX=e.plotX},je.spline&&(We(je.spline.prototype,"getPointSpline",function(e,t,n,i){return this.chart.polar?i?["C",(e=this.getConnectors(t,i,!0,this.connectEnds)).prevPointCont.rightContX,e.prevPointCont.rightContY,e.leftContX,e.leftContY,e.plotX,e.plotY]:["M",n.plotX,n.plotY]:e.call(this,t,n,i)}),je.areasplinerange&&(je.areasplinerange.prototype.getPointSpline=je.spline.prototype.getPointSpline)),Pe.addEvent(Fe,"afterTranslate",function(){var e,t,n=this.chart;if(n.polar){if(this.kdByAngle=n.tooltip&&n.tooltip.shared,!this.preventPostTranslate)for(t=(e=this.points).length;t--;)this.toXY(e[t]);this.hasClipCircleSetter||(this.hasClipCircleSetter=!!Pe.addEvent(this,"afterRender",function(){var e;n.polar&&(e=this.yAxis.center,this.group.clip(n.renderer.clipCircle(e[0],e[1],e[2]/2)),this.setClip=Pe.noop)}))}},{order:2}),We(Be,"getGraphPath",function(e,t){var n,i,o,r=this;if(this.chart.polar){for(t=t||this.points,n=0;no.center[1]}),We(je,"alignDataLabel",function(e,t,n,i,o,r){this.chart.polar?(e=t.rectPlotX/Math.PI*180,null===i.align&&(i.align=20Math.PI/2+1e-4?l=(l=l.concat(xe(e,t,n,i,o,o+Math.PI/2,s,a))).concat(xe(e,t,n,i,o+Math.PI/2,r,s,a)):rMath.PI/2+1e-4?l=(l=l.concat(xe(e,t,n,i,o,o-Math.PI/2,s,a))).concat(xe(e,t,n,i,o-Math.PI/2,r,s,a)):["C",e+n*Math.cos(o)-n*x*u*Math.sin(o)+s,t+i*Math.sin(o)+i*x*u*Math.cos(o)+a,e+n*Math.cos(r)+n*x*u*Math.sin(r)+s,t+i*Math.sin(r)-i*x*u*Math.cos(r)+a,e+n*Math.cos(r)+s,t+i*Math.sin(r)+a]}function Se(e,t,n){if(!e.chart.is3d()||"colorAxis"===e.coll)return t;var i=e.chart,o=F*i.options.chart.options3d.alpha,r=F*i.options.chart.options3d.beta,s=H(n&&e.options.title.position3d,e.options.labels.position3d);n=H(n&&e.options.title.skew3d,e.options.labels.skew3d);var a=i.frame3d,l=i.plotLeft,u=i.plotWidth+l,c=i.plotTop,d=i.plotHeight+c,h=(i=!1,0),p=0,f={x:0,y:1,z:0};if(t=e.swapZ({x:t.x,y:t.y,z:0}),e.isZAxis)if(e.opposite){if(null===a.axes.z.top)return{};p=t.y-c,t.x=a.axes.z.top.x,t.y=a.axes.z.top.y,l=a.axes.z.top.xDir,i=!a.top.frontFacing}else{if(null===a.axes.z.bottom)return{};p=t.y-d,t.x=a.axes.z.bottom.x,t.y=a.axes.z.bottom.y,l=a.axes.z.bottom.xDir,i=!a.bottom.frontFacing}else if(e.horiz)if(e.opposite){if(null===a.axes.x.top)return{};p=t.y-c,t.y=a.axes.x.top.y,t.z=a.axes.x.top.z,l=a.axes.x.top.xDir,i=!a.top.frontFacing}else{if(null===a.axes.x.bottom)return{};p=t.y-d,t.y=a.axes.x.bottom.y,t.z=a.axes.x.bottom.z,l=a.axes.x.bottom.xDir,i=!a.bottom.frontFacing}else if(e.opposite){if(null===a.axes.y.right)return{};h=t.x-u,t.x=a.axes.y.right.x,t.z=a.axes.y.right.z,l={x:(l=a.axes.y.right.xDir).z,y:l.y,z:-l.x}}else{if(null===a.axes.y.left)return{};h=t.x-l,t.x=a.axes.y.left.x,t.z=a.axes.y.left.z,l=a.axes.y.left.xDir}return"chart"!==s&&("flap"===s?e.horiz?(r=Math.sin(o),o=Math.cos(o),e.opposite&&(r=-r),i&&(r=-r),f={x:l.z*r,y:o,z:-l.x*r}):l={x:Math.cos(r),y:0,z:Math.sin(r)}:"ortho"===s?e.horiz?(f=Math.cos(o),s=Math.sin(r)*f,o=-Math.sin(o),r=-f*Math.cos(r),f={x:l.y*r-l.z*o,y:l.z*s-l.x*r,z:l.x*o-l.y*s},o=1/Math.sqrt(f.x*f.x+f.y*f.y+f.z*f.z),i&&(o=-o),f={x:o*f.x,y:o*f.y,z:o*f.z}):l={x:Math.cos(r),y:0,z:Math.sin(r)}:e.horiz?f={x:Math.sin(r)*Math.sin(o),y:Math.cos(o),z:-Math.cos(r)*Math.sin(o)}:l={x:Math.cos(r),y:0,z:Math.sin(r)}),t.x+=h*l.x+p*f.x,t.y+=h*l.y+p*f.y,t.z+=h*l.z+p*f.z,i=V([t],e.chart)[0],n&&(U(V([t,{x:t.x+l.x,y:t.y+l.y,z:t.z+l.z},{x:t.x+f.x,y:t.y+f.y,z:t.z+f.z}],e.chart))<0&&(l={x:-l.x,y:-l.y,z:-l.z}),e=V([{x:t.x,y:t.y,z:t.z},{x:t.x+l.x,y:t.y+l.y,z:t.z+l.z},{x:t.x+f.x,y:t.y+f.y,z:t.z+f.z}],e.chart),i.matrix=[e[1].x-e[0].x,e[1].y-e[0].y,e[2].x-e[0].x,e[2].y-e[0].y,i.x,i.y],i.matrix[4]-=i.x*i.matrix[0]+i.y*i.matrix[2],i.matrix[5]-=i.x*i.matrix[1]+i.y*i.matrix[3]),i}function Oe(e){var t=e.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(t.stroke=this.options.edgeColor||t.fill,t["stroke-width"]=ne(this.options.edgeWidth,1)),t}n=(t=e).deg2rad,i=t.pick,t.perspective3D=function(e,t,n){return t=0i.faces.length;)n.faces.pop().destroy();for(;n.faces.lengthi.faces.length;)n.faces.pop().destroy();for(;n.faces.lengthMath.PI&&(e=2*Math.PI-e),e}var n=e.x,i=e.y,o=e.start,l=e.end-1e-5,u=e.r,c=e.innerR||0,d=e.depth||0,h=e.alpha,p=e.beta,f=Math.cos(o),g=Math.sin(o);e=Math.cos(l);var m=Math.sin(l),v=u*Math.cos(p),y=(u*=Math.cos(h),c*Math.cos(p)),b=c*Math.cos(h),_=(c=d*Math.sin(p),d*Math.sin(h)),w=(d=(d=(d=(d=(d=["M",n+v*f,i+u*g]).concat(xe(n,i,v,u,o,l,0,0))).concat(["L",n+y*e,i+b*m])).concat(xe(n,i,y,b,l,o,0,0))).concat(["Z"]),0i*r[o][n]?o=s:i*r[s][n]==i*r[o][n]&&r[s].z=o.min&&t<=o.max):e.plotZ=0,e.axisXpos=e.plotX,e.axisYpos=e.plotY,e.axisZpos=e.plotZ,r.push({x:e.plotX,y:e.plotY,z:e.plotZ});for(i=Z(r,i,!0),n=0;ne[t[0]+"Axis"].len&&0!==a[t[1]]&&(a[t[1]]=e[t[0]+"Axis"].len-a[t[0]]),0!==a[t[1]]&&(a[t[0]]>=e[t[0]+"Axis"].len||a[t[0]]+a[t[1]]<=r)){for(var i in a)a[i]=0;n.outside3dPlot=!0}}),n.shapeType="cuboid",a.z=o,a.depth=i,a.insidePlotArea=!0,l=te([{x:l[0],y:l[1],z:o}],t,!0)[0],n.tooltipPos=[l.x,l.y]}}),e.z=o},ae(oe.column.prototype,"animate",function(e){if(this.chart.is3d()){var t=arguments[1],n=this.yAxis,i=this,o=this.yAxis.reversed;se&&(t?ee(i.data,function(e){null!==e.y&&(e.height=e.shapeArgs.height,e.shapey=e.shapeArgs.y,e.shapeArgs.height=1,o||(e.shapeArgs.y=e.stackY?e.plotY+n.translate(e.stackY):e.plotY+(e.negative?-e.height:e.height)))}):(ee(i.data,function(e){null!==e.y&&(e.shapeArgs.height=e.height,e.shapeArgs.y=e.shapey,e.graphic&&e.graphic.animate(e.shapeArgs,i.options.animation))}),this.drawDataLabels(),i.animate=null))}else e.apply(this,[].slice.call(arguments,1))}),ae(oe.column.prototype,"plotGroup",function(e,t,n,i,o,r){return this.chart.is3d()&&r&&!this[t]&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(r)),this[t]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[t].survive=!0),e.apply(this,Array.prototype.slice.call(arguments,1))}),ae(oe.column.prototype,"setVisible",function(e,t){var n,i=this;i.chart.is3d()&&ee(i.data,function(e){n=(e.visible=e.options.visible=t=void 0===t?!e.visible:t)?"visible":"hidden",i.options.data[re(e,i.data)]=e.options,e.graphic&&e.graphic.attr({visibility:n})}),e.apply(this,Array.prototype.slice.call(arguments,1))}),oe.column.prototype.handle3dGrouping=!0,$(ie,"afterInit",function(){if(this.chart.is3d()&&this.handle3dGrouping){var e=this.options,t=e.grouping,n=e.stacking,i=ne(this.yAxis.options.reversedStacks,!0),o=0;if(void 0===t||t){for(t=this.chart.retrieveStacks(n),o=e.stack||0,n=0;n{point.x}
y: {point.y}
z: {point.z}
"}},{pointAttribs:function(e){var t=ve.scatter.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&e&&(t.zIndex=fe.pointCameraDistance(e,this.chart)),t},axisTypes:["xAxis","yAxis","zAxis"],pointArrayMap:["x","y","z"],parallelArrays:["x","y","z"],directTouch:!0},{applyOptions:function(){return ge.prototype.applyOptions.apply(this,arguments),void 0===this.z&&(this.z=0),this}}),be=(ye=e).addEvent,_e=ye.Axis,we=ye.SVGRenderer,(Ce=ye.VMLRenderer)&&(ye.setOptions({animate:!1}),Ce.prototype.face3d=we.prototype.face3d,Ce.prototype.polyhedron=we.prototype.polyhedron,Ce.prototype.cuboid=we.prototype.cuboid,Ce.prototype.cuboidPath=we.prototype.cuboidPath,Ce.prototype.toLinePath=we.prototype.toLinePath,Ce.prototype.toLineSegments=we.prototype.toLineSegments,Ce.prototype.createElement3D=we.prototype.createElement3D,Ce.prototype.arc3d=function(e){return(e=we.prototype.arc3d.call(this,e)).css({zIndex:e.zIndex}),e},ye.VMLRenderer.prototype.arc3dPath=ye.SVGRenderer.prototype.arc3dPath,be(_e,"render",function(){this.sideFrame&&(this.sideFrame.css({zIndex:0}),this.sideFrame.front.attr({fill:this.sideFrame.color})),this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color})),this.backFrame&&(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))}))},e.exports?e.exports=o:void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)},function(e,t,n){var i,o;o=function(e){var t,n,i,o,r,s,a,l,u,c,d,h,p,f,g,m,v,y,b;n=(t=e).defaultOptions,i=t.doc,o=t.Chart,r=t.addEvent,s=t.removeEvent,a=t.fireEvent,l=t.createElement,u=t.discardElement,c=t.css,d=t.merge,h=t.pick,p=t.each,f=t.objectEach,g=t.extend,m=t.isTouchDevice,y=(v=t.win).navigator.userAgent,b=t.Renderer.prototype.symbols,/Edge\/|Trident\/|MSIE /.test(y),/firefox/i.test(y),g(n.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"}),n.navigation={buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}},d(!0,n.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",background:"none",color:"#333333",fontSize:m?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"},buttonOptions:{symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",stroke:"none",padding:5}}}),n.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:"printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},t.post=function(e,t,n){var o=l("form",d({method:"post",action:e,enctype:"multipart/form-data"},n),{display:"none"},i.body);f(t,function(e,t){l("input",{type:"hidden",name:t,value:e},null,o)}),o.submit(),u(o)},g(o.prototype,{sanitizeSVG:function(e,t){if(t&&t.exporting&&t.exporting.allowHTML){var n=e.match(/<\/svg>(.*?$)/);n&&n[1]&&(n=''+n[1]+"",e=e.replace("",n+""))}return e=e.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(\S+)("|")\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/.*?$/,"").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/ /g,"\xa0").replace(/­/g,"\xad"),this.ieSanitizeSVG&&(e=this.ieSanitizeSVG(e)),e},getChartHTML:function(){return this.container.innerHTML},getSVG:function(e){var n,o,r,s,c,h=d(this.options,e);return o=l("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},i.body),r=this.renderTo.style.width,c=this.renderTo.style.height,r=h.exporting.sourceWidth||h.chart.width||/px$/.test(r)&&parseInt(r,10)||600,c=h.exporting.sourceHeight||h.chart.height||/px$/.test(c)&&parseInt(c,10)||400,g(h.chart,{animation:!1,renderTo:o,forExport:!0,renderer:"SVGRenderer",width:r,height:c}),h.exporting.enabled=!1,delete h.data,h.series=[],p(this.series,function(e){(s=d(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||h.series.push(s)}),p(this.axes,function(e){e.userOptions.internalKey||(e.userOptions.internalKey=t.uniqueKey())}),n=new t.Chart(h,this.callback),e&&p(["xAxis","yAxis","series"],function(t){var i={};e[t]&&(i[t]=e[t],n.update(i))}),p(this.axes,function(e){var i=t.find(n.axes,function(t){return t.options.internalKey===e.userOptions.internalKey}),o=(r=e.getExtremes()).userMin,r=r.userMax;i&&(void 0!==o&&o!==i.min||void 0!==r&&r!==i.max)&&i.setExtremes(o,r,!0,!1)}),r=n.getChartHTML(),a(this,"getSVG",{chartCopy:n}),r=this.sanitizeSVG(r,h),h=null,n.destroy(),u(o),r},getSVGForExport:function(e,t){var n=this.options.exporting;return this.getSVG(d({chart:{borderRadius:0}},n.chartOptions,t,{exporting:{sourceWidth:e&&e.sourceWidth||n.sourceWidth,sourceHeight:e&&e.sourceHeight||n.sourceHeight}}))},exportChart:function(e,n){n=this.getSVGForExport(e,n),e=d(this.options.exporting,e),t.post(e.url,{filename:e.filename||"chart",type:e.type,width:e.width||0,scale:e.scale,svg:n},e.formAttributes)},print:function(){var e,t,n=this,o=n.container,r=[],s=o.parentNode,l=i.body,u=l.childNodes,c=n.options.exporting.printMaxWidth;n.isPrinting||(n.isPrinting=!0,n.pointer.reset(null,0),a(n,"beforePrint"),(t=c&&n.chartWidth>c)&&(e=[n.options.chart.width,void 0,!1],n.setSize(c,void 0,!1)),p(u,function(e,t){1===e.nodeType&&(r[t]=e.style.display,e.style.display="none")}),l.appendChild(o),setTimeout(function(){v.focus(),v.print(),setTimeout(function(){s.appendChild(o),p(u,function(e,t){1===e.nodeType&&(e.style.display=r[t])}),n.isPrinting=!1,t&&n.setSize.apply(n,e),a(n,"afterPrint")},1e3)},1))},contextMenu:function(e,n,o,s,a,u,d){var h,f=this,m=f.options.navigation,v=f.chartWidth,y=f.chartHeight,b="cache-"+e,_=f[b],w=Math.max(a,u);_||(f.exportContextMenu=f[b]=_=l("div",{className:e},{position:"absolute",zIndex:1e3,padding:w+"px",pointerEvents:"auto"},f.fixedDiv||f.container),h=l("div",{className:"highcharts-menu"},null,_),c(h,g({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},m.menuStyle)),_.hideMenu=function(){c(_,{display:"none"}),d&&d.setState(0),f.openMenu=!1,t.clearTimeout(_.hideTimer)},f.exportEvents.push(r(_,"mouseleave",function(){_.hideTimer=setTimeout(_.hideMenu,500)}),r(_,"mouseenter",function(){t.clearTimeout(_.hideTimer)}),r(i,"mouseup",function(t){f.pointer.inClass(t.target,e)||_.hideMenu()}),r(_,"click",function(){f.openMenu&&_.hideMenu()})),p(n,function(e){var n;"string"==typeof e&&(e=f.options.exporting.menuItemDefinitions[e]),t.isObject(e,!0)&&(e.separator?n=l("hr",null,null,h):((n=l("div",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),_.hideMenu(),e.onclick&&e.onclick.apply(f,arguments)},innerHTML:e.text||f.options.lang[e.textKey]},null,h)).onmouseover=function(){c(this,m.menuItemHoverStyle)},n.onmouseout=function(){c(this,m.menuItemStyle)},c(n,g({cursor:"pointer"},m.menuItemStyle))),f.exportDivElements.push(n))}),f.exportDivElements.push(h,_),f.exportMenuWidth=_.offsetWidth,f.exportMenuHeight=_.offsetHeight),n={display:"block"},o+f.exportMenuWidth>v?n.right=v-o-a-w+"px":n.left=o-w+"px",s+u+f.exportMenuHeight>y&&"top"!==d.alignOptions.verticalAlign?n.bottom=y-s-w+"px":n.top=s+u-w+"px",c(_,n),f.openMenu=!0},addButton:function(e){var t,n,i=this,o=i.renderer,r=d(i.options.navigation.buttonOptions,e),s=r.onclick,a=r.menuItems,l=r.symbolSize||12;if(i.btnCount||(i.btnCount=0),i.exportDivElements||(i.exportDivElements=[],i.exportSVGElements=[]),!1!==r.enabled){var u,c=r.theme,p=(f=c.states)&&f.hover,f=f&&f.select;delete c.states,s?u=function(e){e&&e.stopPropagation(),s.call(i,e)}:a&&(u=function(e){e&&e.stopPropagation(),i.contextMenu(n.menuClassName,a,n.translateX,n.translateY,n.width,n.height,n),n.setState(2)}),r.text&&r.symbol?c.paddingLeft=h(c.paddingLeft,25):r.text||g(c,{width:r.width,height:r.height,padding:0}),(n=o.button(r.text,0,0,u,c,p,f).addClass(e.className).attr({"stroke-linecap":"round",title:h(i.options.lang[r._titleKey||r.titleKey],"")})).menuClassName=e.menuClassName||"highcharts-menu-"+i.btnCount++,r.symbol&&(t=o.symbol(r.symbol,r.symbolX-l/2,r.symbolY-l/2,l,l,{width:l,height:l}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(n)).attr({stroke:r.symbolStroke,fill:r.symbolFill,"stroke-width":r.symbolStrokeWidth||1}),n.add(i.exportingGroup).align(g(r,{width:n.width,x:h(r.x,i.buttonOffset)}),!0,"spacingBox"),i.buttonOffset+=(n.width+r.buttonSpacing)*("right"===r.align?-1:1),i.exportSVGElements.push(n,t)}},destroyExport:function(e){var n=e?e.target:this;e=n.exportSVGElements;var i,o=n.exportDivElements,r=n.exportEvents;e&&(p(e,function(e,t){e&&(e.onclick=e.ontouchstart=null,i="cache-"+e.menuClassName,n[i]&&delete n[i],n.exportSVGElements[t]=e.destroy())}),e.length=0),n.exportingGroup&&(n.exportingGroup.destroy(),delete n.exportingGroup),o&&(p(o,function(e,i){t.clearTimeout(e.hideTimer),s(e,"mouseleave"),n.exportDivElements[i]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,u(e)}),o.length=0),r&&(p(r,function(e){e()}),r.length=0)}}),b.menu=function(e,t,n,i){return["M",e,t+2.5,"L",e+n,t+2.5,"M",e,t+i/2+.5,"L",e+n,t+i/2+.5,"M",e,t+i-1.5,"L",e+n,t+i-1.5]},o.prototype.renderExporting=function(){var e=this,t=e.options.exporting,n=t.buttons,i=e.isDirtyExporting||!e.exportSVGElements;e.buttonOffset=0,e.isDirtyExporting&&e.destroyExport(),i&&!1!==t.enabled&&(e.exportEvents=[],e.exportingGroup=e.exportingGroup||e.renderer.g("exporting-group").attr({zIndex:3}).add(),f(n,function(t){e.addButton(t)}),e.isDirtyExporting=!1),r(e,"destroy",e.destroyExport)},r(o,"init",function(){var e=this;p(["exporting","navigation"],function(t){e[t]={update:function(n,i){e.isDirtyExporting=!0,d(!0,e.options[t],n),h(i,!0)&&e.redraw()}}})}),o.prototype.callbacks.push(function(e){e.renderExporting(),r(e,"redraw",e.renderExporting)})},e.exports?e.exports=o:void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=e[o]}}return n.default=e,t&&t.set(e,n),n}(n(0)),o=a(n(114)),r=n(57),s=a(n(136));function a(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="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)}function u(){return(u=Object.assign||function(e){for(var t=1;ti)return!1;return!0}(a,t))){var l=t.mapDimension(a.dim),u={};return i.each(a.getViewLabels(),function(e){u[e.tickValue]=1}),function(e){return!u.hasOwnProperty(t.get(l,e))}}}}function x(e,t,n){if("cartesian2d"!==e.type)return y(e,t,n);var i=e.getBaseAxis().isHorizontal(),o=v(e,t,n);if(!n.get("clip",!0)){var r=o.shape,s=Math.max(r.width,r.height);i?(r.y-=s,r.height+=2*s):(r.x-=s,r.width+=2*s)}return o}var S=h.extend({type:"line",init:function(){var e=new a.Group,t=new o;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var o=e.coordinateSystem,r=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=s.mapArray(s.getItemLayout),d="polar"===o.type,h=this._coordSys,p=this._symbolDraw,m=this._polyline,v=this._polygon,y=this._lineGroup,S=e.get("animation"),O=!u.isEmpty(),k=u.get("origin"),L=function(e,t,n){if(!n.valueDim)return[];for(var i=[],o=0,r=t.count();oh[p-1].coord&&(h.reverse(),f.reverse());var g=h[0].coord-10,m=h[p-1].coord+10,v=m-g;if(v<.001)return"transparent";i.each(h,function(e){e.offset=(e.coord-g)/v}),h.push({offset:p?h[p-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:f[0]||"transparent"});var y=new a.LinearGradient(0,0,0,0,h,!0);return y[o]=g,y[o+"2"]=m,y}}}(s,o)||s.getVisual("color");m.useStyle(i.defaults(l.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"}));var P=e.get("smooth");if(P=_(e.get("smooth")),m.setShape({smooth:P,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),v){var A=s.getCalculationInfo("stackedOnSeries"),R=0;v.useStyle(i.defaults(u.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel"})),A&&(R=_(A.get("smooth"))),v.setShape({smooth:P,stackedOnSmooth:R,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=s,this._coordSys=o,this._stackedOnPoints=L,this._points=c,this._step=I,this._valueOrigin=k},dispose:function(){},highlight:function(e,t,n,i){var o=e.getData(),s=l.queryDataIndex(o,i);if(!(s instanceof Array)&&null!=s&&0<=s){var a=o.getItemGraphicEl(s);if(!a){var u=o.getItemLayout(s);if(!u)return;(a=new r(o,s)).position=u,a.setZ(e.get("zlevel"),e.get("z")),a.ignore=isNaN(u[0])||isNaN(u[1]),a.__temp=!0,o.setItemGraphicEl(s,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else h.prototype.highlight.call(this,e,t,n,i)},downplay:function(e,t,n,i){var o=e.getData(),r=l.queryDataIndex(o,i);if(null!=r&&0<=r){var s=o.getItemGraphicEl(r);s&&(s.__temp?(o.setItemGraphicEl(r,null),this.group.remove(s)):s.downplay())}else h.prototype.downplay.call(this,e,t,n,i)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new c({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new d({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n},_updateAnimation:function(e,t,n,i,o,r){var l=this._polyline,u=this._polygon,c=e.hostModel,d=s(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,r),h=d.current,p=d.stackedOnCurrent,f=d.next,g=d.stackedOnNext;o&&(h=w(d.current,n,o),p=w(d.stackedOnCurrent,n,o),f=w(d.next,n,o),g=w(d.stackedOnNext,n,o)),l.shape.__points=d.current,l.shape.points=h,a.updateProps(l,{shape:{points:f}},c),u&&(u.setShape({points:h,stackedOnPoints:p}),a.updateProps(u,{shape:{points:f,stackedOnPoints:g}},c));for(var m=[],v=d.status,y=0;yi[0]&&(i[0]=r[0]),r[1]>i[1]&&(i[1]=r[1])}return{min:t?n:i,max:t?i:n}}var m=i.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(i.prototype.brush),buildPath:function(e,t){var n=t.points,i=0,o=n.length,r=g(n,t.smoothConstraint);if(t.connectNulls){for(;0t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;nt[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},o.inherits(i,r);var s=i;e.exports=s},function(e,t,n){n(1535);var i=n(1461).extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=i},function(e,t,n){var i=n(1409),o=n(1619),r=n(1461),s=n(1447),a=s.getLayoutParams,l=s.mergeLayoutParam,u=n(1813),c=["value","category","time","log"];e.exports=function(e,t,n,s){i.each(c,function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(t,o){var s=this.layoutMode,u=s?a(t):{},c=o.getTheme();i.merge(t,c.get(r+"Axis")),i.merge(t,this.getDefaultOption()),t.type=n(e,t),s&&l(t,u,s)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.mergeAll([{},o[r+"Axis"],s],!0)})}),r.registerSubTypeDefaulter(e+"Axis",i.curry(n,e))}},function(e,t,n){var i=n(1409),o={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},r={};r.categoryAxis=i.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},o),r.valueAxis=i.merge({boundaryGap:[0,0],splitNumber:5},o),r.timeAxis=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},r.valueAxis),r.logAxis=i.defaults({scale:!0,logBase:10},r.valueAxis);var s=r;e.exports=s},function(e,t,n){n(1535),n(1621)},function(e,t,n){var i=n(1409),o=n(1425),r=n(1816),s=n(1817),a=n(1818),l=["axisLine","axisTickLabel","axisName"],u=["splitArea","splitLine"],c=s.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,s){this.group.removeAll();var d=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),e.get("show")){var h=e.getCoordSysModel(),p=a.layout(h,e),f=new r(e,p);i.each(l,f.add,f),this._axisGroup.add(f.getGroup()),i.each(u,function(t){e.get(t+".show")&&this["_"+t](e,h)},this),o.groupTransition(d,this._axisGroup,e),c.superCall(this,"render",e,t,n,s)}},remove:function(){this._splitAreaColors=null},_splitLine:function(e,t){var n=e.axis;if(!n.scale.isBlank()){var r=e.getModel("splitLine"),s=r.getModel("lineStyle"),a=s.get("color");a=i.isArray(a)?a:[a];for(var l=t.coordinateSystem.getRect(),u=n.isHorizontal(),c=0,d=n.getTicksCoords({tickModel:r}),h=[],p=[],f=s.getLineStyle(),g=0;g=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),n=l[this.prop]=!0,e.objectEach(l,function(e){!0!==e&&(n=!1)}),n&&s&&s.call(r),!1):(this.pos=o.easing((i-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),!0))},initPath:function(t,n,i){function o(e){var t,n;for(c=e.length;c--;)t="M"===e[c]||"L"===e[c],n=/[a-zA-Z]/.test(e[c+3]),t&&n&&e.splice(c+1,0,e[c+1],e[c+2],e[c+1],e[c+2])}function r(e,t){for(;e.lengthn&&(n=e[t]);return n},e.destroyObjectProperties=function(t,n){e.objectEach(t,function(e,i){e&&e!==n&&e.destroy&&e.destroy(),delete t[i]})},e.discardElement=function(t){var n=e.garbageBin;n=n||e.createElement("div"),t&&n.appendChild(t),n.innerHTML=""},e.correctFloat=function(e,t){return parseFloat(e.toPrecision(t||14))},e.setAnimation=function(t,n){n.renderer.globalAnimation=e.pick(t,n.options.chart.animation,!0)},e.animObject=function(t){return e.isObject(t)?e.merge(t):{duration:t?500:0}},e.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},e.numberFormat=function(t,n,i,o){t=+t||0,n=+n;var r,s,a=e.defaultOptions.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,u=t.toString().split("e");return-1===n?n=Math.min(l,20):e.isNumber(n)?n&&u[1]&&u[1]<0&&(0<=(r=n+ +u[1])?(u[0]=(+u[0]).toExponential(r).split("e")[0],n=r):(u[0]=u[0].split(".")[0]||0,t=n<20?(u[0]*Math.pow(10,u[1])).toFixed(n):0,u[1]=0)):n=2,s=(Math.abs(u[1]?u[0]:t)+Math.pow(10,-Math.max(n,l)-1)).toFixed(n),r=3<(l=String(e.pInt(s))).length?l.length%3:0,i=e.pick(i,a.decimalPoint),o=e.pick(o,a.thousandsSep),t=(t<0?"-":"")+(r?l.substr(0,r)+o:""),t+=l.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+o),n&&(t+=i+s.slice(-n)),u[1]&&0!=+t&&(t+="e"+u[1]),t},Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)},e.getStyle=function(t,n,i){return"width"===n?Math.max(0,Math.min(t.offsetWidth,t.scrollWidth)-e.getStyle(t,"padding-left")-e.getStyle(t,"padding-right")):"height"===n?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-e.getStyle(t,"padding-top")-e.getStyle(t,"padding-bottom")):(r.getComputedStyle||e.error(27,!0),(t=r.getComputedStyle(t,void 0))&&(t=t.getPropertyValue(n),e.pick(i,"opacity"!==n)&&(t=e.pInt(t))),t)},e.inArray=function(t,n,i){return(e.indexOfPolyfill||Array.prototype.indexOf).call(n,t,i)},e.grep=function(t,n){return(e.filterPolyfill||Array.prototype.filter).call(t,n)},e.find=Array.prototype.find?function(e,t){return e.find(t)}:function(e,t){var n,i=e.length;for(n=0;n>16,(65280&e)>>8,255&e,1]:4===t&&(n=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!n)for(i=this.parsers.length;i--&&!n;)(t=(o=this.parsers[i]).regex.exec(e))&&(n=o.parse(t));this.rgba=n||[]},get:function(e){var t,n=this.input,i=this.rgba;return this.stops?((t=p(n)).stops=[].concat(t.stops),c(this.stops,function(n,i){t.stops[i]=[t.stops[i][0],n.get(e)]})):t=i&&d(i[0])?"rgb"===e||!e&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===e?i[3]:"rgba("+i.join(",")+")":n,t},brighten:function(e){var t,n=this.rgba;if(this.stops)c(this.stops,function(t){t.brighten(e)});else if(d(e)&&0!==e)for(t=0;t<3;t++)n[t]+=f(255*e),n[t]<0&&(n[t]=0),255]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},textSetter:function(e){e!==this.textStr&&(delete this.bBox,this.textStr=e,this.added&&this.renderer.buildText(this))},fillSetter:function(e,t,n){"string"==typeof e?n.setAttribute(t,e):e&&this.complexColor(e,t,n)},visibilitySetter:function(e,t,n){"inherit"===e?n.removeAttribute(t):this[t]!==e&&n.setAttribute(t,e),this[t]=e},zIndexSetter:function(e,t){var n,i,o,r,s=this.renderer,a=this.parentGroup,l=(a||s).element||s.box,u=this.element;if(s=l===s.box,n=this.added,O(e)?(u.setAttribute("data-z-index",e),e=+e,this[t]===e&&(n=!1)):O(this[t])&&u.removeAttribute("data-z-index"),this[t]=e,n){for((e=this.zIndex)&&a&&(a.handleZ=!0),r=(t=l.childNodes).length-1;0<=r&&!i;r--)n=(a=t[r]).getAttribute("data-z-index"),o=!O(n),a!==u&&(e<0&&o&&!s&&!r?(l.insertBefore(u,t[r]),i=!0):(K(n)<=e||o&&(!O(e)||0<=e))&&(l.insertBefore(u,t[r+1]||null),i=!0));i||(l.insertBefore(u,t[s?3:0]||null),i=!0)}return i},_defaultSetter:function(e,t,n){n.setAttribute(t,e)}}),m.prototype.yGetter=m.prototype.xGetter,m.prototype.translateXSetter=m.prototype.translateYSetter=m.prototype.rotationSetter=m.prototype.verticalAlignSetter=m.prototype.rotationOriginXSetter=m.prototype.rotationOriginYSetter=m.prototype.scaleXSetter=m.prototype.scaleYSetter=m.prototype.matrixSetter=function(e,t){this[t]=e,this.doTransform=!0},m.prototype["stroke-widthSetter"]=m.prototype.strokeSetter=function(e,t,n){this[t]=e,this.stroke&&this["stroke-width"]?(m.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===t&&0===e&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)},v=g.SVGRenderer=function(){this.init.apply(this,arguments)},D(v.prototype,{Element:m,SVG_NS:X,init:function(e,t,n,i,o,r){var s,a;s=(i=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(i))).element,e.appendChild(s),_(e,"dir","ltr"),-1===e.innerHTML.indexOf("xmlns")&&_(s,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=s,this.boxWrapper=i,this.alignedObjects=[],this.url=(R||B)&&M.getElementsByTagName("base").length?J.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(M.createTextNode("Created with Highstock 6.2.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(t,n,!1),R&&e.getBoundingClientRect&&((t=function(){x(e,{left:0,top:0}),a=e.getBoundingClientRect(),x(e,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=y(J,"resize",t))},getStyle:function(e){return this.style=D({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},e)},setStyle:function(e){this.boxWrapper.css(this.getStyle(e))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var e=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),L(this.gradients||{}),this.gradients=null,e&&(this.defs=e.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(e){var t=new this.Element;return t.init(this,e),t},draw:z,getRadialAttr:function(e,t){return{cx:e[0]-e[2]/2+t.cx*e[2],cy:e[1]-e[2]/2+t.cy*e[2],r:t.r*e[2]}},truncate:function(e,t,n,i,o,r,s){function a(e){t.firstChild&&t.removeChild(t.firstChild),e&&t.appendChild(M.createTextNode(e))}function l(r,l){if(void 0===v[l=l||r])if(t.getSubStringLength)try{v[l]=o+t.getSubStringLength(0,i?l+1:l)}catch(r){}else h.getSpanWidth&&(a(s(n||i,r)),v[l]=o+h.getSpanWidth(e,t));return v[l]}var u,c,d,h=this,p=e.rotation,f=i?1:0,g=(n||i).length,m=g,v=[];if(e.rotation=0,c=l(t.textContent.length),d=r":">","'":"'",'"':"""},buildText:function(e){function t(e){var t;return t=/(px|em)$/.test(e&&e.style.fontSize)?e.style.fontSize:w||l.style.fontSize||12,m?K(m):l.fontMetrics(t,e.getAttribute("style")?e:a).h}function n(e,t){return H(l.escapes,function(n,i){t&&-1!==P(n,t)||(e=e.toString().replace(new RegExp(n,"g"),i))}),e}function i(e,t){var n;if(n=e.indexOf("<"),-1!==(n=(e=e.substring(n,e.indexOf(">")-n)).indexOf(t+"="))&&(n=n+t.length+1,'"'===(t=e.charAt(n))||"'"===t))return(e=e.substring(n+1)).substring(0,e.indexOf(t))}var o,r,s,a=e.element,l=this,u=l.forExport,c=U(e.textStr,"").toString(),d=-1!==c.indexOf("<"),h=a.childNodes,p=_(a,"x"),f=e.styles,g=e.textWidth,m=f&&f.lineHeight,v=f&&f.textOutline,y=f&&"ellipsis"===f.textOverflow,b=f&&"nowrap"===f.whiteSpace,w=f&&f.fontSize,C=h.length;if(f=g&&!e.added&&this.box,(r=[c,y,b,m,v,w,g].join())!==e.textCache){for(e.textCache=r;C--;)a.removeChild(h[C]);d||v||y||g||-1!==c.indexOf(" ")?(f&&f.appendChild(a),c=d?c.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[c],c=I(c,function(e){return""!==e}),E(c,function(r,c){var d,h=0,f=0;r=r.replace(/^\s+|\s+$/g,"").replace(//g,"|||"),d=r.split("|||"),E(d,function(r){if(""!==r||1===d.length){var m,v,C={},S=M.createElementNS(l.SVG_NS,"tspan");if((m=i(r,"class"))&&_(S,"class",m),(m=i(r,"style"))&&(m=m.replace(/(;| |^)color([ :])/,"$1fill$2"),_(S,"style",m)),(v=i(r,"href"))&&!u&&(_(S,"onclick",'location.href="'+v+'"'),_(S,"class","highcharts-anchor"),x(S,{cursor:"pointer"}))," "!==(r=n(r.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(S.appendChild(M.createTextNode(r)),h?C.dx=0:c&&null!==p&&(C.x=p),_(S,C),a.appendChild(S),!h&&s&&(!Y&&u&&x(S,{display:"block"}),_(S,"dy",t(S))),g){var O=r.replace(/([^\^])-/g,"$1- ").split(" ");C=!b&&(1this.oldTextWidth)&&((u=this.textPxLength)||(te(t,{width:"",whiteSpace:l||"nowrap"}),u=t.offsetWidth),u=d=be.second?0:d*Math.floor(s.get("Milliseconds",o)/d)),c>=be.second&&s.set("Seconds",o,c>=be.minute?0:d*Math.floor(s.get("Seconds",o)/d)),c>=be.minute&&s.set("Minutes",o,c>=be.hour?0:d*Math.floor(s.get("Minutes",o)/d)),c>=be.hour&&s.set("Hours",o,c>=be.day?0:d*Math.floor(s.get("Hours",o)/d)),c>=be.day&&s.set("Date",o,c>=be.month?1:d*Math.floor(s.get("Date",o)/d)),c>=be.month&&(s.set("Month",o,c>=be.year?0:d*Math.floor(s.get("Month",o)/d)),r=s.get("FullYear",o)),c>=be.year&&s.set("FullYear",o,r-r%d),c===be.week&&(r=s.get("Day",o),s.set("Date",o,s.get("Date",o)-r+i+(r4*be.month||s.getTimezoneOffset(t)!==s.getTimezoneOffset(n)),t=o.getTime(),o=1;t{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},we.setOptions=function(e){return we.defaultOptions=xe(!0,we.defaultOptions,e),we.time.update(xe(we.defaultOptions.global,we.defaultOptions.time),!1),we.defaultOptions},we.getOptions=function(){return we.defaultOptions},we.defaultPlotOptions=we.defaultOptions.plotOptions,we.time=new we.Time(xe(we.defaultOptions.global,we.defaultOptions.time)),we.dateFormat=function(e,t,n){return we.time.dateFormat(e,t,n)},Oe=(Se=Te).correctFloat,ke=Se.defined,Le=Se.destroyObjectProperties,Me=Se.fireEvent,Ee=Se.isNumber,De=Se.merge,Ne=Se.pick,Ie=Se.deg2rad,Se.Tick=function(e,t,n,i,o){this.axis=e,this.pos=t,this.type=n||"",this.isNewLabel=this.isNew=!0,this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,n||i||this.addLabel()},Se.Tick.prototype={addLabel:function(){var e,t,n,i,o=this,r=o.axis,s=r.options,a=r.chart,l=r.categories,u=r.names,c=o.pos,d=Ne(o.options&&o.options.labels,s.labels),h=c===(g=r.tickPositions)[0],p=c===g[g.length-1],f=(l=this.parameters.category||(l?Ne(l[c],u[c],c):c),o.label),g=g.info;r.isDatetimeAxis&&g&&(e=(t=a.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid&&g.higherRanks[c]||g.unitName])).main),o.isFirst=h,o.isLast=p,o.formatCtx={axis:r,chart:a,isFirst:h,isLast:p,dateTimeLabelFormat:e,tickPositionInfo:g,value:r.isLog?Oe(r.lin2log(l)):l,pos:c},s=r.labelFormatter.call(o.formatCtx,this.formatCtx),(i=t&&t.list)&&(o.shortenLabel=function(){for(n=0;n=this.minRange,e=[l-(e=((s=this.minRange)-u+l)/2),ot(a.min,l-e)],t&&(e[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),u=[(l=Fe(e))+s,ot(a.max,l+s)],t&&(u[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(u=je(u))-l=v?(t=v,p=0):r.dataMax<=v&&(n=v,h=0)),r.min=ot(i,t,r.dataMin),r.max=ot(o,n,r.dataMax)),l&&(r.positiveValuesOnly&&!e&&Math.min(r.min,ot(r.dataMin,r.min))<=0&&Pe.error(10,1),r.min=Be(r.log2lin(r.min),15),r.max=Be(r.log2lin(r.max),15)),r.range&&ze(r.max)&&(r.userMin=r.min=i=Math.max(r.dataMin,r.minFromRange()),r.userMax=o=r.max,r.range=null),qe(r,"foundExtremes"),r.beforePadding&&r.beforePadding(),r.adjustForMinRange(),!(m||r.axisPointRange||r.usePercentage||d)&&ze(r.min)&&ze(r.max)&&(s=r.max-r.min)&&(!ze(i)&&p&&(r.min-=s*p),!ze(o)&&h&&(r.max+=s*h)),$e(a.softMin)&&!$e(r.userMin)&&(r.min=Math.min(r.min,a.softMin)),$e(a.softMax)&&!$e(r.userMax)&&(r.max=Math.max(r.max,a.softMax)),$e(a.floor)&&(r.min=Math.max(r.min,a.floor)),$e(a.ceiling)&&(r.max=Math.min(r.max,a.ceiling)),y&&ze(r.dataMin)&&(v=v||0,!ze(i)&&r.min=v?r.min=v:!ze(o)&&r.max>v&&r.dataMax<=v&&(r.max=v)),r.tickInterval=r.min===r.max||void 0===r.min||void 0===r.max?1:d&&!f&&g===r.linkedParent.options.tickPixelInterval?f=r.linkedParent.tickInterval:ot(f,this.tickAmount?(r.max-r.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(r.max-r.min)*g/Math.max(r.len,g)),c&&!e&&Ke(r.series,function(e){e.processData(r.min!==r.oldMin||r.max!==r.oldMax)}),r.setAxisTranslation(!0),r.beforeSetTickPositions&&r.beforeSetTickPositions(),r.postProcessTickInterval&&(r.tickInterval=r.postProcessTickInterval(r.tickInterval)),r.pointRange&&!f&&(r.tickInterval=Math.max(r.pointRange,r.tickInterval)),e=ot(a.minTickInterval,r.isDatetimeAxis&&r.closestPointRange),!f&&r.tickIntervalMath.max(2*this.len,200)?(e=[this.min,this.max],Pe.error(19)):e=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),e.length>this.len&&(e=[e[0],e.pop()])[0]===e[1]&&(e.length=1),this.tickPositions=e,i=i&&i.apply(this,[this.min,this.max]))&&(this.tickPositions=e=i),this.paddedTicks=e.slice(0),this.trimTicks(e,o,r),this.isLinked||(this.single&&e.length<2&&(this.min-=.5,this.max+=.5),n||i||this.adjustTickAmount()),qe(this,"afterSetTickPositions")},trimTicks:function(e,t,n){var i=e[0],o=e[e.length-1],r=this.minPointOffset||0;if(!this.isLinked){if(t&&-1/0!==i)this.min=i;else for(;this.min-r>e[0];)e.shift();if(n)this.max=o;else for(;this.max+rg&&(g=e.label.textPxLength)}),this.maxLabelLength=g,this.autoRotation)dp.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(c&&(e=d,!f))for(t="clip",d=r.length;!u&&d--;)n=r[d],(n=s[n].label)&&(n.styles&&"ellipsis"===n.styles.textOverflow?n.css({textOverflow:"clip"}):n.textPxLength>c&&n.css({width:c+"px"}),n.getBBox().height>this.len/r.length-(p.h-p.f)&&(n.specificTextOverflow="ellipsis"));h.rotation&&(e=g>.5*i.chartHeight?.33*i.chartHeight:g,f||(t="ellipsis")),(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))&&(h.align=this.labelAlign),Ke(r,function(n){var i=(n=s[n])&&n.label,o=l.width,r={};i&&(i.attr(h),n.shortenLabel?n.shortenLabel():e&&!o&&"nowrap"!==l.whiteSpace&&(e=this.min&&e<=this.max)&&(i[e]||(i[e]=new lt(this,e)),o&&i[e].isNew&&i[e].render(t,!0,-1),i[e].render(t))},render:function(){var e,t,n=this,i=n.chart,o=n.options,r=n.isLog,s=n.isLinked,a=n.tickPositions,l=n.axisTitle,u=n.ticks,c=n.minorTicks,d=n.alternateBands,h=o.stackLabels,p=o.alternateGridColor,f=n.tickmarkOffset,g=n.axisLine,m=n.showAxis,v=Re(i.renderer.globalAnimation);n.labelEdge.length=0,n.overlap=!1,Ke([u,c,d],function(e){it(e,function(e){e.isActive=!1})}),(n.hasData()||s)&&(n.minorTickInterval&&!n.categories&&Ke(n.getMinorTickPositions(),function(e){n.renderMinorTick(e)}),a.length&&(Ke(a,function(e,t){n.renderTick(e,t)}),f&&(0===n.min||n.single)&&(u[-1]||(u[-1]=new lt(n,-1,null,!0)),u[-1].render(-1))),p&&Ke(a,function(o,s){t=void 0!==a[s+1]?a[s+1]+f:n.max-f,0==s%2&&othis.max&&t>this.max,o&&i)for(e&&(n=o.toString()===i.toString(),a=0),e=0;ee){r=u;break}if(l[r]&&a.substr(l[r])!=="01-01 00:00:00.000".substr(l[r]))break;"week"!==r&&(u=r)}return r&&(o=s.resolveDTLFormat(i[r]).main),o},getXDateFormat:function(e,t,n){t=t.dateTimeLabelFormats;var i=n&&n.closestPointRange;return(i?this.getDateFormat(i,e.x,n.options.startOfWeek,t):t.day)||t.year},tooltipFooterHeaderFormatter:function(e,t){t=t?"footer":"header";var n=e.series,i=n.tooltipOptions,o=i.xDateFormat,r=n.xAxis,s=r&&"datetime"===r.options.type&&At(e.key),a=i[t+"Format"];return s&&!o&&(o=this.getXDateFormat(e,i,r)),s&&o&&It(e.point&&e.point.tooltipDateKeys||["key"],function(e){a=a.replace("{point."+e+"}","{point."+e+":"+o+"}")}),Pt(a,{point:e,series:n},this.chart.time)},bodyFormatter:function(e){return Rt(e,function(e){var t=e.series.tooltipOptions;return(t[(e.point.formatPrefix||"point")+"Formatter"]||e.point.tooltipFormatter).call(e.point,t[(e.point.formatPrefix||"point")+"Format"])})}},Ht=(zt=Te).addEvent,Ut=zt.attr,Kt=zt.charts,Gt=zt.color,qt=zt.css,Yt=zt.defined,Xt=zt.each,Zt=zt.extend,Jt=zt.find,Qt=zt.fireEvent,$t=zt.isNumber,en=zt.isObject,tn=zt.offset,nn=zt.pick,on=zt.splat,rn=zt.Tooltip,zt.Pointer=function(e,t){this.init(e,t)},zt.Pointer.prototype={init:function(e,t){this.options=t,this.chart=e,this.runChartClick=t.chart.events&&!!t.chart.events.click,this.pinchDown=[],this.lastValidTouch={},rn&&(e.tooltip=new rn(e,t.tooltip),this.followTouchMove=nn(t.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(e){var t=(i=this.chart).options.chart,n=t.zoomType||"",i=i.inverted;/touch/.test(e.type)&&(n=nn(t.pinchType,n)),this.zoomX=e=/x/.test(n),this.zoomY=n=/y/.test(n),this.zoomHor=e&&!i||n&&i,this.zoomVert=n&&!i||e&&i,this.hasZoom=e||n},normalize:function(e,t){var n;return n=e.touches?e.touches.length?e.touches.item(0):e.changedTouches[0]:e,t||(this.chartPosition=t=tn(this.chart.container)),Zt(e,{chartX:Math.round(n.pageX-t.left),chartY:Math.round(n.pageY-t.top)})},getCoordinates:function(e){var t={xAxis:[],yAxis:[]};return Xt(this.chart.axes,function(n){t[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(e[n.horiz?"chartX":"chartY"])})}),t},findNearestKDPoint:function(e,t,n){var i;return Xt(e,function(e){var o=!(e.noSharedTooltip&&t)&&e.options.findNearestPointBy.indexOf("y")<0;if(e=e.searchPoint(n,o),(o=en(e,!0))&&!(o=!en(i,!0))){o=i.distX-e.distX;var r=i.dist-e.dist,s=(e.series.group&&e.series.group.zIndex)-(i.series.group&&i.series.group.zIndex);o=0<(0!==o&&t?o:0!=r?r:0!=s?s:i.series.index>e.series.index?-1:1)}o&&(i=e)}),i},getPointFromEvent:function(e){e=e.target;for(var t;e&&!t;)t=e.point,e=e.parentNode;return t},getChartCoordinatesFromPoint:function(e,t){var n=(i=e.series).xAxis,i=i.yAxis,o=nn(e.clientX,e.plotX),r=e.shapeArgs;return n&&i?t?{chartX:n.len+n.pos-o,chartY:i.len+i.pos-e.plotY}:{chartX:o+n.pos,chartY:e.plotY+i.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},getHoverData:function(e,t,n,i,o,r,s){var a,l=[],u=s&&s.isBoosting;return i=!(!i||!e),s=t&&!t.stickyTracking?[t]:zt.grep(n,function(e){return e.visible&&!(!o&&e.directTouch)&&nn(e.options.enableMouseTracking,!0)&&e.stickyTracking}),t=(a=i?e:this.findNearestKDPoint(s,o,r))&&a.series,a&&(o&&!t.noSharedTooltip?(s=zt.grep(n,function(e){return e.visible&&!(!o&&e.directTouch)&&nn(e.options.enableMouseTracking,!0)&&!e.noSharedTooltip}),Xt(s,function(e){var t=Jt(e.points,function(e){return e.x===a.x&&!e.isNull});en(t)&&(u&&(t=e.getPoint(t)),l.push(t))})):l.push(a)),{hoverPoint:a,hoverSeries:t,hoverPoints:l}},runPointActions:function(e,t){var n,i=this.chart,o=i.tooltip&&i.tooltip.options.enabled?i.tooltip:void 0,r=!!o&&o.shared,s=(a=t||i.hoverPoint)&&a.series||i.hoverSeries,a=(s=this.getHoverData(a,s,i.series,"touchmove"!==e.type&&(!!t||s&&s.directTouch&&this.isDirectTouch),r,e,{isBoosting:i.isBoosting})).hoverPoint;if(n=s.hoverPoints,t=(s=s.hoverSeries)&&s.tooltipOptions.followPointer,r=r&&s&&!s.noSharedTooltip,a&&(a!==i.hoverPoint||o&&o.isHidden)){if(Xt(i.hoverPoints||[],function(e){-1===zt.inArray(e,n)&&e.setState()}),Xt(n||[],function(e){e.setState("hover")}),i.hoverSeries!==s&&s.onMouseOver(),i.hoverPoint&&i.hoverPoint.firePointEvent("mouseOut"),!a.series)return;a.firePointEvent("mouseOver"),i.hoverPoints=n,i.hoverPoint=a,o&&o.refresh(r?n:a,e)}else t&&o&&!o.isHidden&&(a=o.getAnchor([{}],e),o.updatePosition({plotX:a[0],plotY:a[1]}));this.unDocMouseMove||(this.unDocMouseMove=Ht(i.container.ownerDocument,"mousemove",function(e){var t=Kt[zt.hoverChartIndex];t&&t.pointer.onDocumentMouseMove(e)})),Xt(i.axes,function(t){var i=nn(t.crosshair.snap,!0),o=i?zt.find(n,function(e){return e.series[t.coll]===t}):void 0;o||!i?t.drawCrosshair(e,o):t.hideCrosshair()})},reset:function(e,t){var n=this.chart,i=n.hoverSeries,o=n.hoverPoint,r=n.hoverPoints,s=n.tooltip,a=s&&s.shared?r:o;e&&a&&Xt(on(a),function(t){t.series.isCartesian&&void 0===t.plotX&&(e=!1)}),e?s&&a&&(s.refresh(a),s.shared&&r?Xt(r,function(e){e.setState(e.state,!0),e.series.isCartesian&&(e.series.xAxis.crosshair&&e.series.xAxis.drawCrosshair(null,e),e.series.yAxis.crosshair&&e.series.yAxis.drawCrosshair(null,e))}):o&&(o.setState(o.state,!0),Xt(n.axes,function(e){e.crosshair&&e.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&Xt(r,function(e){e.setState()}),i&&i.onMouseOut(),s&&s.hide(t),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),Xt(n.axes,function(e){e.hideCrosshair()}),this.hoverX=n.hoverPoints=n.hoverPoint=null)},scaleGroups:function(e,t){var n,i=this.chart;Xt(i.series,function(o){n=e||o.getPlotBox(),o.xAxis&&o.xAxis.zoomEnabled&&o.group&&(o.group.attr(n),o.markerGroup&&(o.markerGroup.attr(n),o.markerGroup.clip(t?i.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(n))}),i.clipRect.attr(t||i.clipBox)},dragStart:function(e){var t=this.chart;t.mouseIsDown=e.type,t.cancelClick=!1,t.mouseDownX=this.mouseDownX=e.chartX,t.mouseDownY=this.mouseDownY=e.chartY},drag:function(e){var t,n=this.chart,i=n.options.chart,o=e.chartX,r=e.chartY,s=this.zoomHor,a=this.zoomVert,l=n.plotLeft,u=n.plotTop,c=n.plotWidth,d=n.plotHeight,h=this.selectionMarker,p=this.mouseDownX,f=this.mouseDownY,g=i.panKey&&e[i.panKey+"Key"];h&&h.touch||(ob.max&&(t=b.max-l,c=!0),c?(C-=.8*(C-s[h][0]),_||(S-=.8*(S-s[h][1])),n()):s[h]=[C,S],y||(r[h]=u-m,r[g]=l),r=y?1/v:v,o[g]=l,o[h]=t,i[y?e?"scaleY":"scaleX":"scale"+p]=v,i["translate"+p]=r*m+(C-r*w)},pinch:function(e){var t=this,n=t.chart,i=t.pinchDown,o=e.touches,r=o.length,s=t.lastValidTouch,a=t.hasZoom,l=t.selectionMarker,u={},c=1===r&&(t.inClass(e.target,"highcharts-tracker")&&n.runTrackerClick||t.runChartClick),d={};1u?this.maxItemWidth:e.itemWidth,i&&this.itemX-n+t>u&&(this.itemX=n,this.itemY+=s+this.lastLineHeight+r,this.lastLineHeight=0),this.lastItemY=s+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],i?this.itemX+=t:(this.itemY+=s+o+r,this.lastLineHeight=o),this.offsetWidth=l||Math.max((i?this.itemX-n-(e.checkbox?0:a):t)+n,this.offsetWidth)},getAllItems:function(){var e=[];return yn(this.chart.series,function(t){var n=t&&t.options;t&&xn(n.showInLegend,!vn(n.linkedTo)&&void 0,!0)&&(e=e.concat(t.legendItems||("point"===n.legendType?t.data:t)))}),bn(this,"afterGetAllItems",{allItems:e}),e},getAlignment:function(){var e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},adjustMargins:function(e,t){var n=this.chart,i=this.options,o=this.getAlignment();o&&yn([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(r,s){r.test(o)&&!vn(e[s])&&(n[wn[s]]=Math.max(n[wn[s]],n.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*i[s%2?"x":"y"]+xn(i.margin,12)+t[s]+(0===s&&void 0!==n.options.title.margin?n.titleOffset+n.options.title.margin:0)))})},proximatePositions:function(){var e=this.chart,t=[],n="left"===this.options.align;yn(this.allItems,function(i){var o,r;o=n,i.xAxis&&i.points&&(i.xAxis.options.reversed&&(o=!o),o=pn.find(o?i.points:i.points.slice(0).reverse(),function(e){return pn.isNumber(e.plotY)}),r=i.legendGroup.getBBox().height,t.push({target:i.visible?(o?o.plotY:i.xAxis.height)-.3*r:e.plotHeight,size:r,item:i}))},this),pn.distribute(t,e.plotHeight),yn(t,function(t){t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos})},render:function(){var e,t,n,i=this.chart,o=i.renderer,r=this.group,s=this.box,a=this.options,l=this.padding;this.itemX=l,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,r||(this.group=r=o.g("legend").attr({zIndex:7}).add(),this.contentGroup=o.g().attr({zIndex:1}).add(r),this.scrollGroup=o.g().add(this.contentGroup)),this.renderTitle(),e=this.getAllItems(),On(e,function(e,t){return(e.options&&e.options.legendIndex||0)-(t.options&&t.options.legendIndex||0)}),a.reversed&&e.reverse(),this.allItems=e,this.display=t=!!e.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,yn(e,this.renderItem,this),yn(e,this.layoutItem,this),e=(a.width||this.offsetWidth)+l,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n),n+=l,s||(this.box=s=o.rect().addClass("highcharts-legend-box").attr({r:a.borderRadius}).add(r),s.isNew=!0),s.attr({stroke:a.borderColor,"stroke-width":a.borderWidth||0,fill:a.backgroundColor||"none"}).shadow(a.shadow),0n&&(i||o)!==g[s-1])&&(g.push(i||o),s++),e.pageIx=s-1,i&&(m[t-1].pageIx=s-1),t===m.length-1&&o+r-g[s-1]>n&&(g.push(o),e.pageIx=s),o!==i&&(i=o)}),c||(c=o.clipRect=r.clipRect(0,l,9999,0),o.contentGroup.clip(c)),t(n),f||(this.nav=f=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,p,p).on("click",function(){o.scroll(-1,h)}).add(f),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation").css(d.style).add(f),this.down=r.symbol("triangle-down",0,0,p,p).on("click",function(){o.scroll(1,h)}).add(f)),o.scroll(0),e=u):f&&(t(),this.nav=f.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},scroll:function(e,t){var n=this.pages,i=n.length;e=this.currentPage+e;var o=this.clipHeight,r=this.options.navigation,s=this.pager,a=this.padding;ir&&("string"===(n=typeof e[0])?t.name=e[0]:"number"===n&&(t.x=e[0]),s++);a=e.value;)e=t[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=e&&e.color&&!this.options.color?e.color:this.nonZonedColor,e},destroy:function(){var e,t=this.series.chart,n=t.hoverPoints;for(e in t.pointCount--,n&&(this.setState(),mi(n,this),n.length||(t.hoverPoints=null)),this===t.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel||this.dataLabels)&&(Si(this),this.destroyElements()),this.legendItem&&t.legend.destroyItem(this),this)this[e]=null},destroyElements:function(){for(var e,t=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],n=6;n--;)this[e=t[n]]&&(this[e]=this[e].destroy());this.dataLabels&&(fi(this.dataLabels,function(e){e.element&&e.destroy()}),delete this.dataLabels),this.connectors&&(fi(this.connectors,function(e){e.element&&e.destroy()}),delete this.connectors)},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(e){var t=this.series,n=t.tooltipOptions,i=wi(n.valueDecimals,""),o=n.valuePrefix||"",r=n.valueSuffix||"";return fi(t.pointArrayMap||["y"],function(t){t="{point."+t,(o||r)&&(e=e.replace(RegExp(t+"}","g"),o+t+"}"+r)),e=e.replace(RegExp(t+"}","g"),t+":,."+i+"f}")}),yi(e,{point:this,series:this.series},t.chart.time)},firePointEvent:function(e,t,n){var i=this,o=this.series.options;(o.point.events[e]||i.options&&i.options.events&&i.options.events[e])&&this.importEvents(),"click"===e&&o.allowPointSelect&&(n=function(e){i.select&&i.select(null,e.ctrlKey||e.metaKey||e.shiftKey)}),vi(this,e,t,n)},visible:!0},ki=(Oi=Te).addEvent,Li=Oi.animObject,Mi=Oi.arrayMax,Ei=Oi.arrayMin,Di=Oi.correctFloat,Ni=Oi.defaultOptions,Ii=Oi.defaultPlotOptions,Ti=Oi.defined,Pi=Oi.each,Ai=Oi.erase,Ri=Oi.extend,Fi=Oi.fireEvent,ji=Oi.grep,Wi=Oi.isArray,Bi=Oi.isNumber,Vi=Oi.isString,zi=Oi.merge,Hi=Oi.objectEach,Ui=Oi.pick,Ki=Oi.removeEvent,Gi=Oi.splat,qi=Oi.SVGElement,Yi=Oi.syncTimeout,Xi=Oi.win,Oi.Series=Oi.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":Oi.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:Oi.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(e,t){var n,i,o=this,r=e.series;o.chart=e,o.options=t=o.setOptions(t),o.linkedSeries=[],o.bindAxes(),Ri(o,{name:t.name,state:"",visible:!1!==t.visible,selected:!0===t.selected}),n=t.events,Hi(n,function(e,t){ki(o,t,e)}),(n&&n.click||t.point&&t.point.events&&t.point.events.click||t.allowPointSelect)&&(e.runTrackerClick=!0),o.getColor(),o.getSymbol(),Pi(o.parallelArrays,function(e){o[e+"Data"]=[]}),o.setData(t.data,!1),o.isCartesian&&(e.hasCartesianSeries=!0),r.length&&(i=r[r.length-1]),o._i=Ui(i&&i._i,-1)+1,e.orderSeries(this.insert(r)),Fi(this,"afterInit")},insert:function(e){var t,n=this.options.index;if(Bi(n)){for(t=e.length;t--;)if(n>=Ui(e[t].options.index,e[t]._i)){e.splice(t+1,0,this);break}-1===t&&e.unshift(this),t+=1}else e.push(this);return Ui(t,e.length-1)},bindAxes:function(){var e,t=this,n=t.options,i=t.chart;Pi(t.axisTypes||[],function(o){Pi(i[o],function(i){e=i.options,(n[o]===e.index||void 0!==n[o]&&n[o]===e.id||void 0===n[o]&&0===e.index)&&(t.insert(i.series),(t[o]=i).isDirty=!0)}),t[o]||t.optionalAxis===o||Oi.error(18,!0)})},updateParallelArrays:function(e,t){var n=e.series,i=arguments,o=Bi(t)?function(i){var o="y"===i&&n.toYData?n.toYData(e):e[i];n[i+"Data"][t]=o}:function(e){Array.prototype[t].apply(n[e+"Data"],Array.prototype.slice.call(i,2))};Pi(n.parallelArrays,o)},autoIncrement:function(){var e,t=this.options,n=this.xIncrement,i=t.pointIntervalUnit,o=this.chart.time;return n=Ui(n,t.pointStart,0),this.pointInterval=e=Ui(this.pointInterval,t.pointInterval,1),i&&(t=new o.Date(n),"day"===i?o.set("Date",t,o.get("Date",t)+e):"month"===i?o.set("Month",t,o.get("Month",t)+e):"year"===i&&o.set("FullYear",t,o.get("FullYear",t)+e),e=t.getTime()-n),this.xIncrement=n+e,n},setOptions:function(e){var t=this.chart,n=t.options,i=n.plotOptions,o=(t.userOptions||{}).plotOptions||{},r=i[this.type];return this.userOptions=e,t=zi(r,i.series,e),this.tooltipOptions=zi(Ni.tooltip,Ni.plotOptions.series&&Ni.plotOptions.series.tooltip,Ni.plotOptions[this.type].tooltip,n.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,e.tooltip),this.stickyTracking=Ui(e.stickyTracking,o[this.type]&&o[this.type].stickyTracking,o.series&&o.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||t.stickyTracking),null===r.marker&&delete t.marker,this.zoneAxis=t.zoneAxis,e=this.zones=(t.zones||[]).slice(),!t.negativeColor&&!t.negativeFillColor||t.zones||e.push({value:t[this.zoneAxis+"Threshold"]||t.threshold||0,className:"highcharts-negative",color:t.negativeColor,fillColor:t.negativeFillColor}),e.length&&Ti(e[e.length-1].value)&&e.push({color:this.color,fillColor:this.fillColor}),Fi(this,"afterSetOptions",{options:t}),t},getName:function(){return this.name||"Series "+(this.index+1)},getCyclic:function(e,t,n){var i,o=this.chart,r=this.userOptions,s=e+"Index",a=e+"Counter",l=n?n.length:Ui(o.options.chart[e+"Count"],o[e+"Count"]);t||(i=Ui(r[s],r["_"+s]),Ti(i)||(o.series.length||(o[a]=0),r["_"+s]=i=o[a]%l,o[a]+=1),n&&(t=n[i])),void 0!==i&&(this[s]=i),this[e]=t},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||Ii[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:Oi.LegendSymbolMixin.drawLineMarker,updateData:function(e){var t,n,i,o=this.options,r=this.points,s=[],a=this.requireSorting;if(Pi(e,function(e){var n;n=Oi.defined(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e).x,Bi(n)&&(-1===(n=Oi.inArray(n,this.xData,i))||r[n].touched?s.push(e):e!==o.data[n]?(r[n].update(e,!1,null,!1),r[n].touched=!0,a&&(i=n+1)):r[n]&&(r[n].touched=!0),t=!0)},this),t)for(e=r.length;e--;)(n=r[e]).touched||n.remove(!1),n.touched=!1;else{if(e.length!==r.length)return!1;Pi(e,function(e,t){r[t].update&&e!==o.data[t]&&r[t].update(e,!1,null,!1)})}return Pi(s,function(e){this.addPoint(e,!1)},this),!0},setData:function(e,t,n,i){var o,r,s=this,a=s.points,l=a&&a.length||0,u=s.options,c=s.chart,d=null,h=s.xAxis,p=u.turboThreshold,f=this.xData,g=this.yData,m=(o=s.pointArrayMap)&&o.length;if(o=(e=e||[]).length,t=Ui(t,!0),!1!==i&&o&&l&&!s.cropped&&!s.hasGroupedData&&s.visible&&!s.isSeriesBoosting&&(r=this.updateData(e)),!r){if(s.xIncrement=null,s.colorCounter=0,Pi(this.parallelArrays,function(e){s[e+"Data"].length=0}),p&&pc?(n=[],i=[]):this.yData&&(n[0]c)&&(n=(t=this.cropData(this.xData,this.yData,u,c)).xData,i=t.yData,t=t.start,r=!0)),a=n.length||1;--a;)0<(o=f?p(n[a])-p(n[a-1]):n[a]-n[a-1])&&(void 0===s||o=n){a=Math.max(0,r-o);break}for(n=r;ni){l=n+o;break}return{xData:e.slice(a,l),yData:t.slice(a,l),start:a,end:l}},generatePoints:function(){var e,t,n,i,o=(h=this.options).data,r=this.data,s=this.processedXData,a=this.processedYData,l=this.pointClass,u=s.length,c=this.cropStart||0,d=this.hasGroupedData,h=h.keys,p=[];for(r||d||((r=[]).length=o.length,r=this.data=r),h&&d&&(this.options.keys=!1),i=0;i=c&&(a[r-h]||i)<=d,n&&i)if(n=o.length)for(;n--;)"number"==typeof o[n]&&(l[u++]=o[n]);else l[u++]=o;this.dataMin=Ei(l),this.dataMax=Mi(l)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var e,t,n,i,o=this.options,r=o.stacking,s=this.xAxis,a=s.categories,l=this.yAxis,u=this.points,c=u.length,d=!!this.modifyValue,h=o.pointPlacement,p="between"===h||Bi(h),f=o.threshold,g=o.startFromThreshold?f:0,m=Number.MAX_VALUE;for("between"===h&&(h=.5),Bi(h)&&(h*=Ui(o.pointRange||s.pointRange)),o=0;o=c.enabledThreshold*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;ei.max,u.resetZones&&0===t&&(t=void 0)}),this.clips=p)},invertGroups:function(e){function t(){Pi(["group","markerGroup"],function(t){i[t]&&(o.renderer.isVML&&i[t].attr({width:i.yAxis.len,height:i.xAxis.len}),i[t].width=i.yAxis.len,i[t].height=i.xAxis.len,i[t].invert(e))})}var n,i=this,o=i.chart;i.xAxis&&(n=ki(o,"resize",t),ki(i,"destroy",n),t(),i.invertGroups=t)},plotGroup:function(e,t,n,i,o){var r=this[e],s=!r;return s&&(this[e]=r=this.chart.renderer.g().attr({zIndex:i||.1}).add(o)),r.addClass("highcharts-"+t+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(Ti(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr({visibility:n})[s?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var e=this.chart,t=this.xAxis,n=this.yAxis;return e.inverted&&(t=n,n=this.xAxis),{translateX:t?t.left:e.plotLeft,translateY:n?n.top:e.plotTop,scaleX:1,scaleY:1}},render:function(){var e,t=this,n=t.chart,i=t.options,o=!!t.animate&&n.renderer.isSVG&&Li(i.animation).duration,r=t.visible?"inherit":"hidden",s=i.zIndex,a=t.hasRendered,l=n.seriesGroup,u=n.inverted;e=t.plotGroup("group","series",r,s,l),t.markerGroup=t.plotGroup("markerGroup","markers",r,s,l),o&&t.animate(!0),e.inverted=!!t.isCartesian&&u,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.drawDataLabels&&t.drawDataLabels(),t.visible&&t.drawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(u),!1===i.clip||t.sharedClipKey||a||e.clip(n.clipRect),o&&t.animate(),a||(t.animationTimeout=Yi(function(){t.afterAnimate()},o)),t.isDirty=!1,t.hasRendered=!0,Fi(t,"afterRender")},redraw:function(){var e=this.chart,t=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,o=this.yAxis;n&&(e.inverted&&n.attr({width:e.plotWidth,height:e.plotHeight}),n.animate({translateX:Ui(i&&i.left,e.plotLeft),translateY:Ui(o&&o.top,e.plotTop)})),this.translate(),this.render(),t&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(e,t){var n=this.xAxis,i=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?n.len-e.chartY+n.pos:e.chartX-n.pos,plotY:o?i.len-e.chartX+i.pos:e.chartY-i.pos},t)},buildKDTree:function(){this.buildingKdTree=!0;var e=this,t=-1a;)s--;this.updateParallelArrays(o,"splice",s,0,0),this.updateParallelArrays(o,s),d&&o.name&&(d[a]=o.name),h.splice(s,0,e),r&&(this.data.splice(s,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),n&&(u[0]&&u[0].remove?u[0].remove(!1):(u.shift(),this.updateParallelArrays(o,"shift"),h.shift())),this.isDirtyData=this.isDirty=!0,t&&c.redraw(i)},removePoint:function(e,t,n){function i(){a&&a.length===r.length&&a.splice(e,1),r.splice(e,1),o.options.data.splice(e,1),o.updateParallelArrays(s||{series:o},"splice",e,1),s&&s.destroy(),o.isDirty=!0,o.isDirtyData=!0,t&&l.redraw()}var o=this,r=o.data,s=r[e],a=o.points,l=o.chart;Eo(n,l),t=Oo(t,!0),s?s.firePointEvent("remove",null,i):i()},remove:function(e,t,n){function i(){o.destroy(),o.remove=null,r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(),Oo(e,!0)&&r.redraw(t)}var o=this,r=o.chart;!1!==n?yo(o,"remove",null,i):i()},update:function(e,t){var n,i=this,o=i.chart,r=i.userOptions,s=i.oldType||i.type,a=e.type||r.type||o.options.chart.type,l=Mo[s].prototype,u=["group","markerGroup","dataLabelsGroup"],c=["navigatorSeries","baseSeries"],d=i.finishedAnimating&&{animation:!1},h=["data","name","turboThreshold"],p=ao.keys(e),f=0a?l-a:s-(i?a:0)),Go(n.options.pointWidth)&&(p=g=Math.ceil(n.options.pointWidth),f-=Math.round((p-u)/2)),n.barX=f,n.pointWidth=p,n.tooltipPos=t.inverted?[o.len+o.pos-t.plotLeft-h,e.xAxis.len-f-g/2,v]:[f+g/2,h+o.pos-t.plotTop,v],n.shapeType="rect",n.shapeArgs=e.crispCol.apply(e,n.isNull?[f,s,g,0]:[f,m,g,v])})},getSymbol:Vo.noop,drawLegendSymbol:Vo.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(e,t){var n,i=this.options;n=(l=this.pointAttrToOptions||{}).stroke||"borderColor";var o=l["stroke-width"]||"borderWidth",r=e&&e.color||this.color,s=e&&e[n]||i[n]||this.color||r,a=e&&e[o]||i[o]||this[o]||0,l=i.dashStyle;return e&&this.zones.length&&(r=e.getZone(),r=e.options.color||r&&r.color||this.color),t&&(t=(e=Yo(i.states[t],e.options.states&&e.options.states[t]||{})).brightness,r=e.color||void 0!==t&&Ho(r).brighten(e.brightness).get()||r,s=e[n]||s,a=e[o]||a,l=e.dashStyle||l),n={fill:r,stroke:s,"stroke-width":a},l&&(n.dashstyle=l),n},drawPoints:function(){var e,t=this,n=this.chart,i=t.options,o=n.renderer,r=i.animationLimit||250;Uo(t.points,function(s){var a=s.graphic,l=a&&n.pointCount\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&er.prototype.drawGraph.call(this)}}),nr=(tr=Te).deg2rad,ir=tr.isNumber,or=tr.pick,rr=tr.relativeLength,tr.CenteredSeriesMixin={getCenter:function(){var e,t,n=this.options,i=this.chart,o=2*(n.slicedOffset||0),r=i.plotWidth-2*o,s=(i=i.plotHeight-2*o,n.center),a=(s=[or(s[0],"50%"),or(s[1],"50%"),n.size||"100%",n.innerSize||0],Math.min(r,i));for(e=0;e<4;++e)t=s[e],n=e<2||2===e&&/%$/.test(t),s[e]=rr(t,[r,i,a,s[2]][e])+(n?o:0);return s[3]>s[2]&&(s[3]=s[2]),s},getStartAndEndRadians:function(e,t){return e=ir(e)?e:0,t=ir(t)&&e1.5*Math.PI?i-=2*Math.PI:i<-Math.PI/2&&(i+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(i)*l),translateY:Math.round(Math.sin(i)*l)},n=Math.cos(i)*e[2]/2,o=Math.sin(i)*e[2]/2,s.tooltipPos=[e[0]+.7*n,e[1]+.7*o],s.half=i<-Math.PI/2||i>Math.PI/2?1:0,s.angle=i,t=Math.min(u,s.labelDistance/5),s.labelPos=[e[0]+n+Math.cos(i)*s.labelDistance,e[1]+o+Math.sin(i)*s.labelDistance,e[0]+n+Math.cos(i)*t,e[1]+o+Math.sin(i)*t,e[0]+n,e[1]+o,s.labelDistance<0?"center":s.half?"right":"left",i]},drawGraph:null,drawPoints:function(){var e,t,n,i,o=this,r=o.chart.renderer,s=o.options.shadow;s&&!o.shadowGroup&&(o.shadowGroup=r.g("shadow").add(o.group)),cr(o.points,function(a){if(t=a.graphic,a.isNull)t&&(a.graphic=t.destroy());else{i=a.shapeArgs,e=a.getTranslate();var l=a.shadowGroup;s&&!l&&(l=a.shadowGroup=r.g("shadow").add(o.shadowGroup)),l&&l.attr(e),n=o.pointAttribs(a,a.selected&&"select"),t?t.setRadialReference(o.center).attr(n).animate(dr(i,e)):(a.graphic=t=r[a.shapeType](i).setRadialReference(o.center).attr(e).add(o.group),t.attr(n).attr({"stroke-linejoin":"round"}).shadow(s,l)),t.attr({visibility:a.visible?"inherit":"hidden"}),t.addClass(a.getClassName())}})},searchPoint:fr,sortByAngle:function(e,t){e.sort(function(e,n){return void 0!==e.angle&&(n.angle-e.angle)*t})},drawLegendSymbol:sr.LegendSymbolMixin.drawRectangle,getCenter:lr.getCenter,getSymbol:fr},{init:function(){mr.prototype.init.apply(this,arguments);var e,t=this;return t.name=gr(t.name,"Slice"),e=function(e){t.slice("select"===e.type)},ar(t,"select",e),ar(t,"unselect",e),t},isValid:function(){return sr.isNumber(this.y,!0)&&0<=this.y},setVisible:function(e,t){var n=this,i=n.series,o=i.chart,r=i.options.ignoreHiddenPoint;t=gr(t,r),e!==n.visible&&(n.visible=n.options.visible=e=void 0===e?!n.visible:e,i.options.data[pr(n,i.data)]=n.options,cr(["graphic","dataLabel","connector","shadowGroup"],function(t){n[t]&&n[t][e?"show":"hide"](!0)}),n.legendItem&&o.legend.colorizeItem(n,e),e||"hover"!==n.state||n.setState(""),r&&(i.isDirty=!0),t&&o.redraw())},slice:function(e,t,n){var i=this.series;br(n,i.chart),gr(t,!0),this.sliced=this.options.sliced=ur(e)?e:!this.sliced,i.options.data[pr(this,i.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(e){var t=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(t.x,t.y,t.r+e,t.r+e,{innerR:this.shapeArgs.r-1,start:t.start,end:t.end})}}),wr=(_r=Te).addEvent,Cr=_r.arrayMax,xr=_r.defined,Sr=_r.each,Or=_r.extend,kr=_r.format,Lr=_r.map,Mr=_r.merge,Er=_r.noop,Dr=_r.pick,Nr=_r.relativeLength,Ir=_r.Series,Tr=_r.seriesTypes,Pr=_r.some,Ar=_r.stableSort,Rr=_r.isArray,Fr=_r.splat,_r.distribute=function(e,t,n){function i(e,t){return e.target-t.target}var o,r,s=!0,a=e,l=[];r=0;var u=a.reducedLen||t;for(o=e.length;o--;)r+=e[o].size;if(ue[o].pos&&(e[o-1].size+=e[o].size,e[o-1].targets=e[o-1].targets.concat(e[o].targets),e[o-1].align=.5,e[o-1].pos+e[o-1].size>t&&(e[o-1].pos=t-e[o-1].size),e.splice(o,1),s=!0)}a.push.apply(a,l),o=0,Pr(e,function(e){var i=0;if(Pr(e.targets,function(){if(a[o].pos=e.pos+i,Math.abs(a[o].pos-a[o].target)>n)return Sr(a.slice(0,o+1),function(e){delete e.pos}),a.reducedLen=(a.reducedLen||t)-.1*t,a.reducedLen>.1*t&&_r.distribute(a,t,n),!0;i+=a[o].size,o++}))return!0}),Ar(a,i)},Ir.prototype.drawDataLabels=function(){function e(e,t){var n,i=[];if(Rr(e)&&!Rr(t))i=Lr(e,function(e){return Mr(e,t)});else if(Rr(t)&&!Rr(e))i=Lr(t,function(t){return Mr(e,t)});else if(Rr(e)||Rr(t))for(n=Math.max(e.length,t.length);n--;)i[n]=Mr(e[n],t[n]);else i=Mr(e,t);return i}var t,n,i=this,o=i.chart,r=i.options,s=r.dataLabels,a=i.points,l=i.hasRendered||0,u=Dr(s.defer,!!r.animation),c=o.renderer;s=e(e(o.options.plotOptions&&o.options.plotOptions.series&&o.options.plotOptions.series.dataLabels,o.options.plotOptions&&o.options.plotOptions[i.type]&&o.options.plotOptions[i.type].dataLabels),s),(Rr(s)||s.enabled||i._hasPointLabels)&&(n=i.plotGroup("dataLabelsGroup","data-labels",u&&!l?"hidden":"visible",s.zIndex||6),u&&(n.attr({opacity:+l}),l||wr(i,"afterAnimate",function(){i.visible&&n.show(!0),n[r.animation?"animate":"attr"]({opacity:1},{duration:200})})),Sr(a,function(a){t=Fr(e(s,a.dlOptions||a.options&&a.options.dataLabels)),Sr(t,function(e,t){var s,l,u,d,h=e.enabled&&!a.isNull&&function(e,t){var n=t.filter;return!n||(t=n.operator,e=e[n.property],n=n.value,">"===t&&n="===t&&n<=e||"<="===t&&e<=n||"=="===t&&e==n||"==="===t&&e===n)}(a,e),p=a.dataLabels?a.dataLabels[t]:a.dataLabel,f=a.connectors?a.connectors[t]:a.connector,g=!p;h&&(s=a.getLabelConfig(),l=e[a.formatPrefix+"Format"]||e.format,s=xr(l)?kr(l,s,o.time):(e[a.formatPrefix+"Formatter"]||e.formatter).call(s,e),l=e.style,u=e.rotation,l.color=Dr(e.color,l.color,i.color,"#000000"),"contrast"===l.color&&(a.contrastColor=c.getContrast(a.color||i.color),l.color=e.inside||Dr(e.distance,a.labelDistance)<0||r.stacking?a.contrastColor:"#000000"),r.cursor&&(l.cursor=r.cursor),d={fill:e.backgroundColor,stroke:e.borderColor,"stroke-width":e.borderWidth,r:e.borderRadius||0,rotation:u,padding:e.padding,zIndex:1},_r.objectEach(d,function(e,t){void 0===e&&delete d[t]})),!p||h&&xr(s)?h&&xr(s)&&(p?d.text=s:(a.dataLabels=a.dataLabels||[],p=a.dataLabels[t]=u?c.text(s,0,-9999).addClass("highcharts-data-label"):c.label(s,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),t||(a.dataLabel=p),p.addClass(" highcharts-data-label-color-"+a.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),p.options=e,p.attr(d),p.css(l).shadow(e.shadow),p.added||p.add(n),i.alignDataLabel(a,p,e,null,g)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&(1===a.dataLabels.length?delete a.dataLabels:delete a.dataLabels[t]),t||delete a.dataLabel,f&&(a.connector=a.connector.destroy(),a.connectors&&(1===a.connectors.length?delete a.connectors:delete a.connectors[t])))})})),_r.fireEvent(this,"afterDrawDataLabels")},Ir.prototype.alignDataLabel=function(e,t,n,i,o){var r,s=this.chart,a=s.inverted,l=Dr(e.dlBox&&e.dlBox.centerX,e.plotX,-9999),u=Dr(e.plotY,-9999),c=t.getBBox(),d=n.rotation,h=n.align,p=this.visible&&(e.series.forceDL||s.isInsidePlot(l,Math.round(u),a)||i&&s.isInsidePlot(l,a?i.x+1:i.y+i.height-1,a)),f="justify"===Dr(n.overflow,"justify");p&&(r=n.style.fontSize,r=s.renderer.fontMetrics(r,t).b,i=Or({x:a?this.yAxis.len-u:l,y:Math.round(a?this.xAxis.len-l:u),width:0,height:0},i),Or(n,{width:c.width,height:c.height}),d?(f=!1,l=s.renderer.rotCorr(r,d),l={x:i.x+n.x+i.width/2+l.x,y:i.y+n.y+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height},t[o?"attr":"animate"](l).attr({align:h}),u=180<(u=(d+720)%360)&&u<360,"left"===h?l.y-=u?c.height:0:"center"===h?(l.x-=c.width/2,l.y-=c.height/2):"right"===h&&(l.x-=c.width,l.y-=u?0:c.height),t.placed=!0,t.alignAttr=l):(t.align(n,null,i),l=t.alignAttr),f&&0<=i.height?e.isLabelJustified=this.justifyDataLabel(t,n,l,c,i,o):Dr(n.crop,!0)&&(p=s.isInsidePlot(l.x,l.y)&&s.isInsidePlot(l.x+c.width,l.y+c.height)),n.shape&&!d)&&t[o?"attr":"animate"]({anchorX:a?s.plotWidth-e.plotY:e.plotX,anchorY:a?s.plotHeight-e.plotX:e.plotY}),p||(t.attr({y:-9999}),t.placed=!1)},Ir.prototype.justifyDataLabel=function(e,t,n,i,o,r){var s,a,l=this.chart,u=t.align,c=t.verticalAlign,d=e.box?0:e.padding||0;return(s=n.x+d)<0&&("right"===u?t.align="left":t.x=-s,a=!0),(s=n.x+i.width-d)>l.plotWidth&&("left"===u?t.align="right":t.x=l.plotWidth-s,a=!0),(s=n.y+d)<0&&("bottom"===c?t.verticalAlign="top":t.y=-s,a=!0),(s=n.y+i.height-d)>l.plotHeight&&("top"===c?t.verticalAlign="bottom":t.y=l.plotHeight-s,a=!0),a&&(e.placed=!r,e.align(t,null,o)),a},Tr.pie&&(Tr.pie.prototype.drawDataLabels=function(){var e,t,n,i,o,r,s,a,l,u,c=this,d=c.data,h=c.chart,p=c.options.dataLabels,f=Dr(p.connectorPadding,10),g=Dr(p.connectorWidth,1),m=h.plotWidth,v=h.plotHeight,y=Math.round(h.chartWidth/3),b=c.center,_=b[2]/2,w=b[1],C=[[],[]],x=[0,0,0,0];c.visible&&(p.enabled||c._hasPointLabels)&&(Sr(d,function(e){e.dataLabel&&e.visible&&e.dataLabel.shortened&&(e.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),e.dataLabel.shortened=!1)}),Ir.prototype.drawDataLabels.apply(c),Sr(d,function(e){e.dataLabel&&(e.visible?(C[e.half].push(e),e.dataLabel._pos=null,!xr(p.style.width)&&!xr(e.options.dataLabels&&e.options.dataLabels.style&&e.options.dataLabels.style.width)&&e.dataLabel.getBBox().width>y&&(e.dataLabel.css({width:.7*y}),e.dataLabel.shortened=!0)):(e.dataLabel=e.dataLabel.destroy(),e.dataLabels&&1===e.dataLabels.length&&delete e.dataLabels))}),Sr(C,function(t,d){var g,y,C,S=t.length,O=[];if(S)for(c.sortByAngle(t,d-.5),0e.bottom-2?g:a,d,e),n._attr={visibility:l,align:o[6]},n._pos={x:s+p.x+({left:f,right:-f}[o[6]]||0),y:a+p.y-10},o.x=s,o.y=a,Dr(p.crop,!0)&&(i=n.getBBox().width,g=null,s-iDr(this.translatedThreshold,s.yAxis.len)),u=Dr(n.inside,!!this.options.stacking);a&&((i=Mr(a)).y<0&&(i.height+=i.y,i.y=0),0<(a=i.y+i.height-s.yAxis.len)&&(i.height-=a),r&&(i={x:s.yAxis.len-i.y-i.height,y:s.xAxis.len-i.x-i.width,width:i.height,height:i.width}),u||(r?(i.x+=l?0:i.width,i.width=0):(i.y+=l?i.height:0,i.height=0))),n.align=Dr(n.align,!r||u?"center":l?"right":"left"),n.verticalAlign=Dr(n.verticalAlign,r||u?"middle":l?"top":"bottom"),Ir.prototype.alignDataLabel.call(this,e,t,n,i,o),e.isLabelJustified&&e.contrastColor&&t.css({color:e.contrastColor})}),Wr=(jr=Te).Chart,Br=jr.each,Vr=jr.isArray,zr=jr.objectEach,Hr=jr.pick,(jr=jr.addEvent)(Wr,"render",function(){var e=[];Br(this.labelCollectors||[],function(t){e=e.concat(t())}),Br(this.yAxis||[],function(t){t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&zr(t.stacks,function(t){zr(t,function(t){e.push(t.label)})})}),Br(this.series||[],function(t){var n=t.options.dataLabels;t.visible&&(!1!==n.enabled||t._hasPointLabels)&&Br(t.points,function(t){if(t.visible){var n=Vr(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[];Br(n,function(n){var i=n.options;n.labelrank=Hr(i.labelrank,t.labelrank,t.shapeArgs&&t.shapeArgs.height),i.allowOverlap||e.push(n)})}})}),this.hideOverlappingLabels(e)}),Wr.prototype.hideOverlappingLabels=function(e){var t,n,i,o,r,s,a,l,u,c,d,h,p,f,g=e.length,m=this.renderer;for(i=function(e){var t,n,i,o=e.box?0:e.padding||0;if(i=0,e&&(!e.alignAttr||e.placed))return t=e.alignAttr||{x:e.attr("x"),y:e.attr("y")},n=e.parentGroup,e.width||(i=e.getBBox(),e.width=i.width,e.height=i.height,i=m.fontMetrics(null,e.element).h),{x:t.x+(n.translateX||0)+o,y:t.y+(n.translateY||0)+o-i,width:e.width-2*o,height:e.height-2*o}},n=0;n=vs(n.minWidth,0)&&this.chartHeight>=vs(n.minHeight,0)}).call(this)&&t.push(e._id)},hs.prototype.currentOptions=function(e){var t={};return function e(t,n,i,o){var r;ds.objectEach(t,function(t,s){if(!o&&-1i,r[l]5*s||h){if(r[l]>m){for(u=e.call(this,t,r[p],r[l],o);u.length&&u[0]<=m;)u.shift();u.length&&(m=u[u.length-1]),g=g.concat(u)}p=l+1}if(h)break}if(e=u.info,a&&e.unitRange<=Es.hour){for(l=g.length-1,p=1;pi?y-1:y,b=void 0;a--;)p=l[a],i=Math.abs(b-p),b&&i<.8*v&&(null===c||i<.8*c)?(f[g[a]]&&!f[g[a+1]]?(i=a+1,b=p):i=a,g.splice(i,1)):b=p}return g}),ks(ws.prototype,{beforeSetTickPositions:function(){var e,t,n,i,o,r=[],s=!1,a=(c=this.getExtremes()).min,l=c.max,u=this.isXAxis&&!!this.options.breaks,c=this.options.ordinal,d=Number.MAX_VALUE,h=this.chart.options.chart.ignoreHiddenSeries;if(n="highcharts-navigator-xaxis"===this.options.className,!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!n||this.eventArgs&&(!this.eventArgs||"navigator"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!n&&Ss(this.userMin)&&(this.min+=this.options.overscroll)),c||u){if(Os(this.series,function(n,i){if(t=[],!(h&&!1===n.visible||!1===n.takeOrdinalPosition&&!u)&&(r=r.concat(n.processedXData),e=r.length,r.sort(function(e,t){return e-t}),d=Math.min(d,Ms(n.closestPointRange,d)),e)){for(i=0;in||l-r[r.length-1]>n)&&(s=!0)}else this.options.overscroll&&(2===e?d=r[1]-r[0]:1===e?(d=this.options.overscroll,r=[r[0],r[0]+d]):d=this.overscrollPointsRange);s?(this.options.overscroll&&(this.overscrollPointsRange=d,r=r.concat(this.getOverscrollPositions())),this.ordinalPositions=r,n=this.ordinal2lin(Math.max(a,r[0]),!0),i=Math.max(this.ordinal2lin(Math.min(l,r[r.length-1]),!0),1),this.ordinalSlope=l=(l-a)/(i-n),this.ordinalOffset=a-n*l):(this.overscrollPointsRange=Ms(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=c&&s,this.groupIntervalFactor=null},val2lin:function(e,t){var n=this.ordinalPositions;if(n){var i,o,r=n.length;for(i=r;i--;)if(n[i]===e){o=i;break}for(i=r-1;i--;)if(e>n[i]||0===i){o=i+(e=(e-n[i])/(n[i+1]-n[i]));break}t=t?o:this.ordinalSlope*(o||0)+this.ordinalOffset}else t=e;return t},lin2val:function(e,t){var n=this.ordinalPositions;if(n){var i,o=this.ordinalSlope,r=this.ordinalOffset,s=n.length-1;if(t)e<0?e=n[0]:s(f=(s=a<0?(h=f,n.ordinalPositions?n:f):(h=n.ordinalPositions?n:f,f)).ordinalPositions)[f.length-1]&&f.push(u),this.fixedRange=d-c,(a=n.toFixedRange(null,null,p.apply(h,[g.apply(h,[c,!0])+a,!0]),p.apply(s,[g.apply(s,[d,!0])+a,!0]))).min>=Math.min(l.dataMin,c)&&a.max<=Math.max(u,d)+i&&n.setExtremes(a.min,a.max,!0,!1,{trigger:"pan"}),this.mouseDownX=o,xs(this.container,{cursor:"move"})):r=!0}else r=!0;r&&(i&&(n.max=n.dataMax+i),e.apply(this,Array.prototype.slice.call(arguments,1)))}),Is=(Ns=Te).addEvent,Ts=Ns.pick,Ps=Ns.wrap,As=Ns.each,Rs=Ns.extend,Fs=Ns.isArray,js=Ns.fireEvent,Ws=Ns.Axis,Bs=Ns.Series,Rs(Ws.prototype,{isInBreak:function(e,t){var n=e.repeat||1/0,i=e.from,o=e.to-e.from;return t=i<=t?(t-i)%n:n-(i-t)%n,e.inclusive?t<=o:t=e)break;if(i.isInBreak(t,e)){o-=e-t.from;break}}return o}var i=this,o=Fs(e)&&!!e.length;i.isDirty=i.isBroken!==o,i.isBroken=o,i.options.breaks=i.userOptions.breaks=e,i.forceRedraw=!0,o||i.val2lin!==n||(delete i.val2lin,delete i.lin2val),o&&(i.userOptions.ordinal=!1,i.val2lin=n,i.lin2val=function(e){var t,n;for(n=0;n=e);n++)t.tot.to||i>t.from&&rt.from&&rt.from&&r>t.to&&rt&&(e=(n[i].x+n[i+1].x)/2,n.splice(i+1,0,{isNull:!0,x:e}),this.options.stacking&&((e=o.stacks[this.stackKey][e]=new Ns.StackItem(o,o.options.stackLabels,!1,e,this.stack)).total=0));return this.getGraphPath(n)},Ps(Ns.seriesTypes.column.prototype,"drawPoints",wu),Ps(Ns.Series.prototype,"drawPoints",wu),zs=(Vs=Te).addEvent,Hs=Vs.arrayMax,Us=Vs.arrayMin,Ks=Vs.Axis,Gs=Vs.defaultPlotOptions,qs=Vs.defined,Ys=Vs.each,Xs=Vs.extend,Zs=Vs.format,Js=Vs.isNumber,Qs=Vs.merge,$s=Vs.pick,ea=Vs.Point,ta=Vs.Series,na=Vs.Tooltip,ia=Vs.wrap,oa=ta.prototype,ra=oa.processData,sa=oa.generatePoints,aa={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},la={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"},columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},ua=Vs.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]],ca=Vs.approximations={sum:function(e){var t,n=e.length;if(!n&&e.hasNulls)t=null;else if(n)for(t=0;n--;)t+=e[n];return t},average:function(e){var t=e.length;return e=ca.sum(e),Js(e)&&t&&(e/=t),e},averages:function(){var e=[];return Ys(arguments,function(t){e.push(ca.average(t))}),void 0===e[0]?void 0:e},open:function(e){return e.length?e[0]:e.hasNulls?null:void 0},high:function(e){return e.length?Hs(e):e.hasNulls?null:void 0},low:function(e){return e.length?Us(e):e.hasNulls?null:void 0},close:function(e){return e.length?e[e.length-1]:e.hasNulls?null:void 0},ohlc:function(e,t,n,i){if(e=ca.open(e),t=ca.high(t),n=ca.low(n),i=ca.close(i),Js(e)||Js(t)||Js(n)||Js(i))return[e,t,n,i]},range:function(e,t){return e=ca.low(e),t=ca.high(t),Js(e)||Js(t)?[e,t]:null===e&&null===t?null:void 0}},oa.groupData=function(e,t,n,i){var o,r,s=this,a=s.data,l=s.options.data,u=[],c=[],d=[],h=e.length,p=!!t,f=[];i="function"==typeof i?i:ca[i]||la[s.type]&&ca[la[s.type].approximation]||ca[aa.approximation];var g,m,v=s.pointArrayMap,y=v&&v.length,b=["x"].concat(v||["y"]),_=0,w=0;for(y?Ys(v,function(){f.push([])}):f.push([]),g=y||1,m=0;m<=h&&!(e[m]>=n[0]);m++);for(;m<=h;m++){for(;void 0!==n[_+1]&&e[m]>=n[_+1]||m===h;){for(o=n[_],s.dataGroupInfo={start:w,length:f[0].length},r=i.apply(s,f),qs(s.dataGroupInfo.options)||(s.dataGroupInfo.options=Qs(s.pointClass.prototype.optionsToObject.call({series:s},s.options.data[w])),Ys(b,function(e){delete s.dataGroupInfo.options[e]})),void 0!==r&&(u.push(o),c.push(r),d.push(s.dataGroupInfo)),w=m,o=0;othis.chart.plotSizeX/o||i&&t.forced)&&(r=!0);return r?o:0},Ks.prototype.setDataGrouping=function(e,t){var n;if(t=$s(t,!0),e=e||{forced:!1,units:null},this instanceof Ks)for(n=this.series.length;n--;)this.series[n].update({dataGrouping:e},!1);else Ys(this.chart.options.series,function(t){t.dataGrouping=e},!1);this.ordinalSlope=null,t&&this.chart.redraw()},ha=(da=Te).each,pa=da.Point,fa=da.seriesType,ga=da.seriesTypes,fa("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(e){return[e.open,e.high,e.low,e.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},init:function(){ga.column.prototype.init.apply(this,arguments),this.options.stacking=!1},pointAttribs:function(e,t){t=ga.column.prototype.pointAttribs.call(this,e,t);var n=this.options;return delete t.fill,!e.options.color&&n.upColor&&e.open"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:Pa.prototype.init,pointAttribs:function(e,t){var n=this.options,i=e&&e.color||this.color,o=n.lineColor,r=e&&e.lineWidth;return e=e&&e.fillColor||n.fillColor,t&&(e=n.states[t].fillColor,o=n.states[t].lineColor,r=n.states[t].lineWidth),{fill:e||i,stroke:o||i,"stroke-width":r||n.lineWidth||0}},translate:Ma.translate,getPlotBox:Ma.getPlotBox,drawPoints:function(){var e,t,n,i,o,r,s,a,l=this.points,u=this.chart,c=u.renderer,d=u.inverted,h=this.options,p=h.y,f=this.yAxis,g={},m=[];for(i=l.length;i--;)o=l[i],a=(d?o.plotY:o.plotX)>this.xAxis.len,e=o.plotX,r=o.stackIndex,n=o.options.shape||h.shape,void 0!==(t=o.plotY)&&(t=o.plotY+p-(void 0!==r&&r*h.stackDistance)),o.anchorX=r?void 0:o.plotX,s=r?void 0:o.plotY,r=o.graphic,void 0!==t&&0<=e&&!a?(r||(r=o.graphic=c.label("",null,null,n,null,null,h.useHTML).attr(this.pointAttribs(o)).css(Na(h.style,o.style)).attr({align:"flag"===n?"left":"center",width:h.width,height:h.height,"text-align":h.textAlign}).addClass("highcharts-point").add(this.markerGroup),o.graphic.div&&(o.graphic.div.point=o),r.shadow(h.shadow),r.isNew=!0),0o||!e.options.vertical&&n.chartX>r?e.updatePosition(e.from+i,e.to+i):e.updatePosition(e.from-i,e.to-i),Ya(e,"changed",{from:e.from,to:e.to,trigger:"scrollbar",DOMEvent:t})}},cursorToScrollbarPosition:function(e){var t=(t=this.options).minWidth>this.calculatedWidth?t.minWidth:0;return{chartX:(e.chartX-this.x-this.xOffset)/(this.barWidth-t),chartY:(e.chartY-this.y-this.yOffset)/(this.barWidth-t)}},updatePosition:function(e,t){1=Math.round(e.size),e.stickToMin=gl(this.xAxis.min)&&this.xAxis.min<=n&&(!this.chart.fixedRange||!e.stickToMax),t&&!e.hasNavigatorData&&(t.options.pointStart=this.xData[0],t.setData(this.options.data,!1,null,!1))},addChartEvents:function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(tl(this.chart,"redraw",function(){var e=this.navigator,t=e&&(e.baseSeries&&e.baseSeries[0]&&e.baseSeries[0].xAxis||e.scrollbar&&this.xAxis[0]);t&&e.render(t.min,t.max)}),tl(this.chart,"getMargins",function(){var e=this.navigator,t=e.opposite?"plotTop":"marginBottom";this.inverted&&(t=e.opposite?"marginRight":"plotLeft"),this[t]=(this[t]||0)+(e.navigatorEnabled||!this.inverted?e.outlineHeight:0)+e.navigatorOptions.margin}))},destroy:function(){this.removeEvents(),this.xAxis&&(ul(this.chart.xAxis,this.xAxis),ul(this.chart.axes,this.xAxis)),this.yAxis&&(ul(this.chart.yAxis,this.yAxis),ul(this.chart.axes,this.yAxis)),ll(this.series||[],function(e){e.destroy&&e.destroy()}),ll("series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" "),function(e){this[e]&&this[e].destroy&&this[e].destroy(),this[e]=null},this),ll([this.handles],function(e){al(e)},this)}},el.Navigator=Su,Sl(nl.prototype,"zoom",function(e,t,n){var i,o=this.chart,r=(l=o.options).chart.zoomType,s=l.chart.pinchType,a=l.navigator,l=l.rangeSelector;return this.isXAxis&&(a&&a.enabled||l&&l.enabled)&&(!vl&&"x"===r||vl&&"x"===s?o.resetZoomButton="blocked":"y"===r?i=!1:(!vl&&"xy"===r||vl&&"xy"===s)&&this.options.range&&(o=this.previousZoom,sl(t)?this.previousZoom=[this.min,this.max]:o&&(t=o[0],n=o[1],delete this.previousZoom))),void 0!==i?i:e.call(this,t,n)}),tl(il,"beforeRender",function(){var e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new Su(this))}),tl(il,"afterSetChartSize",function(){var e,t,n,i,o=this.legend,r=this.navigator;r&&(t=o&&o.options,n=r.xAxis,i=r.yAxis,e=r.scrollbarHeight,this.inverted?(r.left=r.opposite?this.chartWidth-e-r.height:this.spacing[3]+e,r.top=this.plotTop+e):(r.left=this.plotLeft+e,r.top=r.navigatorOptions.top||this.chartHeight-r.height-e-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(t&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?o.legendHeight+bl(t.margin,10):0)),n&&i&&(this.inverted?n.options.left=i.options.left=r.left:n.options.top=i.options.top=r.top,n.setAxisSize(),i.setAxisSize()))}),tl(il,"update",function(e){var t=e.options.navigator||{},n=e.options.scrollbar||{};this.navigator||this.scroller||!t.enabled&&!n.enabled||(yl(!0,this.options.navigator,t),yl(!0,this.options.scrollbar,n),delete e.options.navigator,delete e.options.scrollbar)}),tl(il,"afterUpdate",function(){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new Su(this))}),Sl(Cl.prototype,"addPoint",function(e,t,n,i,o){var r=this.options.turboThreshold;r&&this.xData.length>r&&ml(t,!0)&&this.chart.navigator&&cl(20,!0),e.call(this,t,n,i,o)}),tl(il,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),tl(Cl,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),il.prototype.callbacks.push(function(e){var t=e.navigator;t&&e.xAxis[0]&&(e=e.xAxis[0].getExtremes(),t.render(e.min,e.max))}),Ll=(kl=Te).addEvent,Ml=kl.Axis,El=kl.Chart,Dl=kl.css,Nl=kl.createElement,Il=kl.defaultOptions,Tl=kl.defined,Pl=kl.destroyObjectProperties,Al=kl.discardElement,Rl=kl.each,Fl=kl.extend,jl=kl.fireEvent,Wl=kl.isNumber,Bl=kl.merge,Vl=kl.pick,zl=kl.pInt,Hl=kl.splat,Ul=kl.wrap,Fl(Il,{rangeSelector:{verticalAlign:"top",buttonTheme:{"stroke-width":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:"right",x:0,y:0},buttonPosition:{align:"left",x:0,y:0},labelStyle:{color:"#666666"}}}),Il.lang=Bl(Il.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"}),ku.prototype={clickButton:function(e,t){var n,i,o,r,s,a=this,l=a.chart,u=a.buttonOptions[e],c=l.xAxis[0],d=(g=l.scroller&&l.scroller.getUnionExtremes()||c||{}).dataMin,h=g.dataMax,p=c&&Math.round(Math.min(c.max,Vl(h,c.max))),f=u.type,g=u._range,m=u.dataGrouping;if(null!==d&&null!==h){if(l.fixedRange=g,m&&(this.forcedDataGrouping=!0,Ml.prototype.setDataGrouping.call(c||{chart:this.chart},m,!1),this.frozenStates=u.preserveDataGrouping),"month"===f||"year"===f)c?(f={range:u,max:p,chart:l,dataMin:d,dataMax:h},n=c.minFromRange.call(f),Wl(f.newMax)&&(p=f.newMax)):g=u;else if(g)n=Math.max(p-g,d),p=Math.min(n+g,h);else if("ytd"===f){if(!c)return void Ll(l,"beforeRender",function(){a.clickButton(e)});void 0===h&&(d=Number.MAX_VALUE,h=Number.MIN_VALUE,Rl(l.series,function(e){e=e.xData,d=Math.min(e[0],d),h=Math.max(e[e.length-1],h)}),t=!1),n=o=(p=a.getYTDExtremes(h,d,l.time.useUTC)).min,p=p.max}else"all"===f&&c&&(n=d,p=h);n+=u._offsetMin,p+=u._offsetMax,a.setSelected(e),c?c.setExtremes(n,p,Vl(t,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:u}):(i=Hl(l.options.xAxis)[0],s=i.range,i.range=g,r=i.min,i.min=o,Ll(l,"load",function(){i.range=s,i.min=r}))}},setSelected:function(e){this.selected=this.options.selected=e},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(e){function t(){var e=n.minInput,t=n.maxInput;e&&e.blur&&jl(e,"blur"),t&&t.blur&&jl(t,"blur")}var n=this,i=e.options.rangeSelector,o=i.buttons||[].concat(n.defaultButtons),r=i.selected;n.chart=e,n.options=i,n.buttons=[],e.extraTopMargin=i.height,n.buttonOptions=o,this.unMouseDown=Ll(e.container,"mousedown",t),this.unResize=Ll(e,"resize",t),Rl(o,n.computeButtonRange),void 0!==r&&o[r]&&this.clickButton(r,!1),Ll(e,"load",function(){e.xAxis&&e.xAxis[0]&&Ll(e.xAxis[0],"setExtremes",function(t){this.max-this.min!==e.fixedRange&&"rangeSelectorButton"!==t.trigger&&"updatedData"!==t.trigger&&n.forcedDataGrouping&&!n.frozenStates&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var e,t=this,n=(e=this.chart).xAxis[0],i=Math.round(n.max-n.min),o=!n.hasVisibleSeries,r=e.scroller&&e.scroller.getUnionExtremes()||n,s=r.dataMin,a=r.dataMax,l=(e=t.getYTDExtremes(a,s,e.time.useUTC)).min,u=e.max,c=t.selected,d=Wl(c),h=t.options.allButtonsEnabled,p=t.buttons;Rl(t.buttonOptions,function(e,r){var f=e._range,g=e.type,m=e.count||1,v=p[r],y=0;e=e._offsetMax-e._offsetMin,r=r===c;var b=a-s=a-s,C=!r&&d&&f),g=!h&&(b||_||C||o),m=r&&f||f&&!d&&!w||r&&t.frozenStates,g?y=3:m&&(d=!0,y=2),v.state!==y&&v.setState(y)})},computeButtonRange:function(e){var t=e.type,n=e.count||1,i={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};i[t]?e._range=i[t]*n:"month"!==t&&"year"!==t||(e._range=864e5*{month:30,year:365}[t]*n),e._offsetMin=Vl(e.offsetMin,0),e._offsetMax=Vl(e.offsetMax,0),e._range+=e._offsetMax-e._offsetMin},setInputValue:function(e,t){var n=this.chart.options.rangeSelector,i=this.chart.time,o=this[e+"Input"];Tl(t)&&(o.previousValue=o.HCTime,o.HCTime=t),o.value=i.dateFormat(n.inputEditDateFormat||"%Y-%m-%d",o.HCTime),this[e+"DateBox"].attr({text:i.dateFormat(n.inputDateFormat||"%b %e, %Y",o.HCTime)})},showInput:function(e){var t=this.inputGroup,n=this[e+"DateBox"];Dl(this[e+"Input"],{left:t.translateX+n.x+"px",top:t.translateY+"px",width:n.width-2+"px",height:n.height-2+"px",border:"2px solid silver"})},hideInput:function(e){Dl(this[e+"Input"],{border:0,width:"1px",height:"1px"}),this.setInputValue(e)},drawInput:function(e){function t(){var e=n.value,t=(l.inputDateParser||Date.parse)(e),i=r.xAxis[0],s=(a=r.scroller&&r.scroller.xAxis?r.scroller.xAxis:i).dataMin,a=a.dataMax;t!==n.previousValue&&(n.previousValue=t,Wl(t)||(t=e.split("-"),t=Date.UTC(zl(t[0]),zl(t[1])-1,zl(t[2]))),Wl(t)&&(r.time.useUTC||(t+=6e4*(new Date).getTimezoneOffset()),c?t>o.maxInput.HCTime?t=void 0:t=-D?0:-D),translateY:c.alignAttr.translateY+w.getBBox().height+10}),o.setInputValue("min",e),o.setInputValue("max",t),o.inputGroup.placed=M),o.group.align({verticalAlign:x},!0,r.spacingBox),e=o.group.getBBox().height+20,t=o.group.alignAttr.translateY,"bottom"===x&&(N=t-(e=e+(S=O&&"bottom"===O.verticalAlign&&O.enabled&&!O.floating?S.legendHeight+Vl(O.margin,10):0)-20)-(p?0:d.y)-10),"top"===x?(p&&(N=0),r.titleOffset&&(N=r.titleOffset+r.options.title.margin),N+=r.margin[0]-r.spacing[0]||0):"middle"===x&&(L===k?N=L<0?t+void 0:t:(L||k)&&(N=L<0||k<0?N-Math.min(L,k):t-e+NaN)),o.group.translate(d.x,d.y+Math.floor(N)),!1!==y&&(o.minInput.style.marginTop=o.group.translateY+"px",o.maxInput.style.marginTop=o.group.translateY+"px"),o.rendered=!0)},getHeight:function(){var e=this.options,t=this.group,n=e.y,i=e.buttonPosition.y;return e=e.inputPosition.y,t=t?t.getBBox(!0).height+13+n:0,n=Math.min(e,i),(e<0&&i<0||0y+f.width)&&(o?s=l=Math.min(Math.max(y,s),y+f.width):t=!0),t||_.push("M",s,a,"L",l,u)}):Ql(c,function(e){var t;s=e.pos,l=s+e.len,a=u=Math.round(b+f.height-d),"pass"!==o&&(ab+f.height)&&(o?a=u=Math.min(Math.max(b,a),f.top+f.height):t=!0),t||_.push("M",s,a,"L",l,u)})),0<_.length?v.crispPolyLine(_,n||1):null)}),hu.prototype.crispPolyLine=function(e,t){var n;for(n=0;n=n&&(f=-(u.translateX+o.width-n)),u.attr({x:e+f,y:l,anchorX:r?e:this.opposite?0:i.chartWidth,anchorY:r?this.opposite?i.chartHeight:0:l+o.height/2})}}),gu.init=function(){mu.apply(this,arguments),this.setCompare(this.options.compare)},gu.setCompare=function(e){this.modifyValue="value"===e||"percent"===e?function(t,n){var i=this.compareValue;if(void 0!==t&&void 0!==i)return t="value"===e?t-i:t/i*100-(100===this.options.compareBase?0:100),n&&(n.change=t),t}:null,this.userOptions.compare=e,this.chart.hasRendered&&(this.isDirty=!0)},gu.processData=function(){var e,t,n,i,o,r=-1,s=!0===this.options.compareStart?0:1;if(vu.apply(this,arguments),this.xAxis&&this.processedYData)for(t=this.processedXData,i=(n=this.processedYData).length,this.pointArrayMap&&-1===(r=nu("close",this.pointArrayMap))&&(r=nu(this.pointValKey||"y",this.pointArrayMap)),e=0;e=this.xAxis.min&&0!==o){this.compareValue=o;break}},fu(gu,"getExtremes",function(e){var t;e.apply(this,[].slice.call(arguments,1)),this.modifyValue&&(t=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=Yl(t),this.dataMax=ql(t))}),Xl.prototype.setCompare=function(e,t){this.isXAxis||(Ql(this.series,function(t){t.setCompare(e)}),au(t,!0)&&this.chart.redraw())},lu.prototype.tooltipFormatter=function(e){return e=e.replace("{point.change}",(0\u25cf {series.name}
Value: {point.y}
Size: {point.z}
'}},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],redraw:function(){this.center=null,l.redraw.call(this,arguments)},zValEval:function(e){return"number"==typeof e&&!isNaN(e)||null},calculateExtremes:function(){var e,t=this.chart,a=this.options;e=this.zData;var l=Math.min(t.plotWidth,t.plotHeight)-2*(a.slicedOffset||0),u={};t=this.center||this.getCenter(),i(["minPointSize","maxPointSize"],function(e){var t=a[e],n=/%$/.test(t);t=parseInt(t,10),u[e]=n?l*t/100:2*t}),this.minPxSize=t[3]+u.minPointSize,this.maxPxSize=Math.max(Math.min(t[2],u.maxPointSize),t[3]+u.minPointSize),e.length&&(t=n(a.zMin,r(o(e,this.zValEval))),e=n(a.zMax,s(o(e,this.zValEval))),this.getRadii(t,e,this.minPxSize,this.maxPxSize))},getRadii:function(e,t,n,i){for(var o,r=0,s=this.zData,a=s.length,l=[],u="radius"!==this.options.sizeBy,c=t-e;r1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(o)*u),translateY:Math.round(Math.sin(o)*u)},t=Math.cos(o)*e[2]/2,r=Math.sin(o)*e[2]/2,i=Math.cos(o)*a,a*=Math.sin(o),s.tooltipPos=[e[0]+.7*t,e[1]+.7*r],s.half=o<-Math.PI/2||o>Math.PI/2?1:0,s.angle=o,t=Math.min(c,s.labelDistance/5),s.labelPos=[e[0]+i+Math.cos(o)*s.labelDistance,e[1]+a+Math.sin(o)*s.labelDistance,e[0]+i+Math.cos(o)*t,e[1]+a+Math.sin(o)*t,e[0]+i,e[1]+a,s.labelDistance<0?"center":s.half?"right":"left",o]}})},e.exports?e.exports=o:void 0===(i=function(){return o}.call(t,n,t,e))||(e.exports=i)},function(e,t,n){var i,o,r;r=function(){var e,t,n=document,i=n.getElementsByTagName("head")[0],o=!1,r="push",s="readyState",a="onreadystatechange",l={},u={},c={},d={};function h(e,t){for(var n=0,i=e.length;nt.clientHeight)return t;t=t.parentNode}return"body"===n?t.ownerDocument:t}(l);(0,r.default)(l,c,(0,i.default)({onlyScrollIfNeeded:!0},p.scroll))}}"function"==typeof h&&h(e,t)})}};t.default=function(e){return(0,a.default)((0,i.default)({},e),[h])},e.exports=t.default},function(e,t,n){n(642),n(1632),e.exports=n(103).Array.from},function(e,t,n){"use strict";var i=n(387),o=n(141),r=n(275),s=n(1633),a=n(1634),l=n(646),u=n(1635),c=n(1581);o(o.S+o.F*!n(1636)(function(e){Array.from(e)}),"Array",{from:function(e,t,n){var o,d,h,p,f=r(e),g="function"==typeof this?this:Array,m=arguments.length,v=1()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},l={integer:function(e){return l.number(e)&&parseInt(e,10)===e},float:function(e){return l.number(e)&&!l.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o(e))&&!l.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(a.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(a.url)},hex:function(e){return"string"==typeof e&&!!e.match(a.hex)}};t.default=function(e,t,n,i,a){if(e.required&&void 0===t)(0,s.default)(e,t,n,i,a);else{var u=e.type;-1<["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(u)?l[u](t)||i.push(r.format(a.messages.types[u],e.fullField,e.type)):u&&(void 0===t?"undefined":o(t))!==e.type&&i.push(r.format(a.messages.types[u],e.fullField,e.type))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1419));t.default=function(e,t,n,o,r){var s="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,u=t,c=null,d="number"==typeof t,h="string"==typeof t,p=Array.isArray(t);if(d?c="number":h?c="string":p&&(c="array"),!c)return!1;p&&(u=t.length),h&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),s?u!==e.len&&o.push(i.format(r.messages[c].len,e.fullField,e.len)):a&&!l&&ue.max?o.push(i.format(r.messages[c].max,e.fullField,e.max)):a&&l&&(ue.max)&&o.push(i.format(r.messages[c].range,e.fullField,e.min,e.max))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1419));t.default=function(e,t,n,o,r){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&o.push(i.format(r.messages.enum,e.fullField,e.enum.join(", ")))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1419));t.default=function(e,t,n,o,r){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(i.format(r.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(i.format(r.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&o.default.type(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(""===t&&(t=void 0),(0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(1419),r=(i=n(1429))&&i.__esModule?i:{default:i};t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,o.isEmptyValue)(t)&&!e.required)return n();r.default.required(e,t,i,a,s),void 0!==t&&r.default.type(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),(0,r.isEmptyValue)(t)||o.default.type(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,"array")&&!e.required)return n();o.default.required(e,t,i,a,s,"array"),(0,r.isEmptyValue)(t,"array")||(o.default.type(e,t,i,a,s),o.default.range(e,t,i,a,s))}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),void 0!==t&&o.default.type(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,i,a,s),t&&o.default.enum(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,"string")&&!e.required)return n();o.default.required(e,t,i,a,s),(0,r.isEmptyValue)(t,"string")||o.default.pattern(e,t,i,a,s)}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t)&&!e.required)return n();if(o.default.required(e,t,i,a,s),!(0,r.isEmptyValue)(t)){var l=void 0;l="number"==typeof t?new Date(t):t,o.default.type(e,l,i,a,s),l&&o.default.range(e,l.getTime(),i,a,s)}}n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o="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=(i=n(1429))&&i.__esModule?i:{default:i};t.default=function(e,t,n,i,s){var a=[],l=Array.isArray(t)?"array":void 0===t?"undefined":o(t);r.default.required(e,t,i,a,s,l),n(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=(i=n(1429))&&i.__esModule?i:{default:i},r=n(1419);t.default=function(e,t,n,i,s){var a=e.type,l=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if((0,r.isEmptyValue)(t,a)&&!e.required)return n();o.default.required(e,t,i,l,s,a),(0,r.isEmptyValue)(t,a)||o.default.type(e,t,i,l,s)}n(l)}},function(e,t,n){"use strict";function i(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=i,t.messages=i()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=d(n(46)),o=d(n(26)),r=d(n(35)),s=d(n(60));t.default=function(e){return new f(e)};var a=d(n(1373)),l=n(1540),u=d(l),c=n(1485);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){return 0===t.indexOf(e)&&-1!==[".","["].indexOf(t[e.length])}function p(e){return(0,c.flattenFields)(e,function(e,t){return(0,l.isFormField)(t)},"You must wrap field data with `createFormField`.")}var f=((0,s.default)(g,[{key:"updateFields",value:function(e){this.fields=p(e)}},{key:"flattenRegisteredFields",value:function(e){var t=this.getAllFieldsName();return(0,c.flattenFields)(e,function(e){return 0<=t.indexOf(e)},"You cannot set a form field before rendering a field associated with the value.")}},{key:"setFields",value:function(e){var t=this,n=this.fieldsMeta,i=(0,o.default)({},this.fields,e),r={};Object.keys(n).forEach(function(e){r[e]=t.getValueFromFields(e,i)}),Object.keys(r).forEach(function(e){var n=r[e],s=t.getFieldMeta(e);if(s&&s.normalize){var a=s.normalize(n,t.getValueFromFields(e,t.fields),r);a!==n&&(i[e]=(0,o.default)({},i[e],{value:a}))}}),this.fields=i}},{key:"resetFields",value:function(e){var t=this.fields;return(e?this.getValidFieldsFullName(e):this.getAllFieldsName()).reduce(function(e,n){var i=t[n];return i&&"value"in i&&(e[n]={}),e},{})}},{key:"setFieldMeta",value:function(e,t){this.fieldsMeta[e]=t}},{key:"setFieldsAsDirty",value:function(){var e=this;Object.keys(this.fields).forEach(function(t){var n=e.fields[t],i=e.fieldsMeta[t];n&&i&&(0,c.hasRules)(i.validate)&&(e.fields[t]=(0,o.default)({},n,{dirty:!0}))})}},{key:"getFieldMeta",value:function(e){return this.fieldsMeta[e]=this.fieldsMeta[e]||{},this.fieldsMeta[e]}},{key:"getValueFromFields",value:function(e,t){var n=t[e];if(n&&"value"in n)return n.value;var i=this.getFieldMeta(e);return i&&i.initialValue}},{key:"getValidFieldsName",value:function(){var e=this,t=this.fieldsMeta;return t?Object.keys(t).filter(function(t){return!e.getFieldMeta(t).hidden}):[]}},{key:"getAllFieldsName",value:function(){var e=this.fieldsMeta;return e?Object.keys(e):[]}},{key:"getValidFieldsFullName",value:function(e){var t=Array.isArray(e)?e:[e];return this.getValidFieldsName().filter(function(e){return t.some(function(t){return e===t||(0,c.startsWith)(e,t)&&0<=[".","["].indexOf(e[t.length])})})}},{key:"getFieldValuePropValue",value:function(e){var t=e.name,n=e.getValueProps,o=e.valuePropName,r=this.getField(t),s="value"in r?r.value:e.initialValue;return n?n(s):(0,i.default)({},o,s)}},{key:"getField",value:function(e){return(0,o.default)({},this.fields[e],{name:e})}},{key:"getNotCollectedFields",value:function(){var e=this;return this.getValidFieldsName().filter(function(t){return!e.fields[t]}).map(function(t){return{name:t,dirty:!1,value:e.getFieldMeta(t).initialValue}}).reduce(function(e,t){return(0,a.default)(e,t.name,(0,u.default)(t))},{})}},{key:"getNestedAllFields",value:function(){var e=this;return Object.keys(this.fields).reduce(function(t,n){return(0,a.default)(t,n,(0,u.default)(e.fields[n]))},this.getNotCollectedFields())}},{key:"getFieldMember",value:function(e,t){return this.getField(e)[t]}},{key:"getNestedFields",value:function(e,t){return(e||this.getValidFieldsName()).reduce(function(e,n){return(0,a.default)(e,n,t(n))},{})}},{key:"getNestedField",value:function(e,t){var n=this.getValidFieldsFullName(e);if(0===n.length||1===n.length&&n[0]===e)return t(e);var i="["===n[0][e.length],o=i?e.length:e.length+1;return n.reduce(function(e,n){return(0,a.default)(e,n.slice(o),t(n))},i?[]:{})}},{key:"isValidNestedFieldName",value:function(e){return this.getAllFieldsName().every(function(t){return!h(t,e)&&!h(e,t)})}},{key:"clearField",value:function(e){delete this.fields[e],delete this.fieldsMeta[e]}}]),g);function g(e){(0,r.default)(this,g),m.call(this),this.fields=p(e),this.fieldsMeta={}}var m=function(){var e=this;this.setFieldsInitialValue=function(t){var n=e.flattenRegisteredFields(t),i=e.fieldsMeta;Object.keys(n).forEach(function(t){i[t]&&e.setFieldMeta(t,(0,o.default)({},e.getFieldMeta(t),{initialValue:n[t]}))})},this.getAllValues=function(){var t=e.fieldsMeta,n=e.fields;return Object.keys(t).reduce(function(t,i){return(0,a.default)(t,i,e.getValueFromFields(i,n))},{})},this.getFieldsValue=function(t){return e.getNestedFields(t,e.getFieldValue)},this.getFieldValue=function(t){var n=e.fields;return e.getNestedField(t,function(t){return e.getValueFromFields(t,n)})},this.getFieldsError=function(t){return e.getNestedFields(t,e.getFieldError)},this.getFieldError=function(t){return e.getNestedField(t,function(t){return(0,c.getErrorStrs)(e.getFieldMember(t,"errors"))})},this.isFieldValidating=function(t){return e.getFieldMember(t,"validating")},this.isFieldsValidating=function(t){return(t||e.getValidFieldsName()).some(function(t){return e.isFieldValidating(t)})},this.isFieldTouched=function(t){return e.getFieldMember(t,"touched")},this.isFieldsTouched=function(t){return(t||e.getValidFieldsName()).some(function(t){return e.isFieldTouched(t)})}};e.exports=t.default},function(e,t,n){"use strict";var i=n(116),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?s:a[e.$$typeof]||o}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,i){if("string"==typeof n)return t;if(f){var o=p(n);o&&o!==f&&e(t,o,i)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),g=l(n),m=0;mt.command?1:e.weight2-t.weight2}s.a.add("platform.keybindingsRegistry",l)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(1421),o=Object(i.c)("telemetryService")},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"c",function(){return r}),n.d(t,"d",function(){return s});var i="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",o=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,o=i;n=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i):function(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1;for(t.lastIndex=s;o=t.exec(n);){var a=o.index||0;if(a<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i);return t.lastIndex=0,r}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(1412),o=(r.prototype.getZoomLevel=function(){return this._zoomLevel},r.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},new r);function r(){this._zoomLevel=0,this._onDidChangeZoomLevel=new i.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"d",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return a});var i=(o.prototype.get=function(e,t){return this._data[e*this.cols+t]},o.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},o);function o(e,t,n){for(var i=new Uint8Array(e*t),o=0,r=e*t;o>>1)-1,i=0;i>>1)-1;n>>1,this._text=t}var s=(a.prototype.equals=function(e){return e instanceof a&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)},a.prototype.getCount=function(){return this._tokensCount},a.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},a.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},a.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},a.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},a.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},a);function a(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,r=e.getCount();o=this.el.clientHeight-4&&(i=this.orthogonalEndSash):e.offsetX<=4?i=this.orthogonalStartSash:e.offsetX>=this.el.clientWidth-4&&(i=this.orthogonalEndSash),i&&(n=!0,e.__orthogonalSashEvent=!0,i.onMouseDown(e))}if(this.state){for(var o=0,s=Object(h.w)("iframe");o>>16},c.getCharIndex=function(e){return(65535&e)>>>0},c.prototype.setPartData=function(e,t,n,i){var o=(t<<16|n<<0)>>>0;this._data[e]=o,this._absoluteOffsets[e]=i+n},c.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},c.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},c.prototype.partDataToCharOffset=function(e,t,n){if(0===this.length)return 0;for(var i=(e<<16|n<<0)>>>0,o=0,r=this.length-1;o+1>>1,a=this._data[s];if(a===i)return s;i");for(var x=0,S=c.length;x")}return v.setPartData(a,c.length-1,_,C),l&&t.appendASCIIString(""),t.appendASCIIString(""),new d(v,p,r)}(function(e){var t,n,o=e.useMonospaceOptimizations,a=e.lineContent;n=-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfterd&&(d=v.startOffset,u[c++]=new s(d,m)),!(v.endOffset+1<=g)){d=g,u[c++]=new s(d,m+" "+v.className);break}d=v.endOffset+1,u[c++]=new s(d,m+" "+v.className),l++}d\xa0";if(0')}return t.appendASCIIString(o),new d(new u(0,0),!1,n)}var p=function(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i};function f(e){var t=Object(o.a)(1e4),n=h(e,t);return new p(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var g=function(e,t,n,i,o,r,s,a,l,u,c,d){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=o,this.parts=r,this.containsForeignElements=s,this.tabSize=a,this.containsRTL=l,this.spaceWidth=u,this.renderWhitespace=c,this.renderControlCharacters=d}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=(o.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},o.prototype.has=function(e){return this._entries.has(e)},o.prototype.get=function(e){return this._entries.get(e)},o);function o(){for(var e=[],t=0;tt.prefixLen?-1:e.prefixLent.offsetDist?1:0})[0];if(n)return this.references[n.idx]},v.prototype.firstReference=function(){for(var e=0,t=this.references;e'+e+""})},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){var n;try{n=s.a.parse(e)}catch(e){}n&&t._openerService&&t._openerService.open(n).catch(a.e)},disposeables:e}}},g.prototype.render=function(e){var t=[];return{element:e?Object(i.b)(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return Object(d.d)(t)}}},g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3t.sortTextLow)return 1}return e.completion.labelt.completion.label?1:e.completion.kind-t.completion.kind}var _=new Map;function w(e){return _.get(e)}_.set(0,function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return b(e,t)}),_.set(2,function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return b(e,t)}),_.set(1,b),Object(a.e)("_executeCompletionItemProvider",function(e,t,n){var i={incomplete:!1,suggestions:[]},o=[],r=n.maxItemsToResolve||0;return y(e,t).then(function(e){for(var t=0,n=e;ti[1]&&(i[1]=t[1])})}),i[1]o[1];if(u&&!c&&!d)return!0;u&&(s=!0),c&&(t=!0),d&&(i=!0)}return s&&t&&i}):l(r,function(t){if("empty"===i)e.setData(n=n.map(t,function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN}));else{var r={};r[t]=o,n.selectRange(r)}}),l(r,function(e){n.setApproximateExtent(o,e)}))})}}};var d=i;e.exports=d},function(e,t,n){var i=n(1451).extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});e.exports=i},function(e,t,n){var i=n(1409),o=n(1496),r=n(1425),s=n(1505),a=n(1452),l=n(1441),u=n(1447),c=n(1478),d=r.Rect,h=l.linearMap,p=l.asc,f=i.bind,g=i.each,m="horizontal",v=["line","bar","candlestick","scatter"],y=a.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,n,i){y.superApply(this,"render",arguments),s.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){y.superApply(this,"remove",arguments),s.clear(this,"_dispatchZoomAction")},dispose:function(){y.superApply(this,"dispose",arguments),s.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,n=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},r=this._orient===m?{right:o.width-n.x-n.width,top:o.height-30-7,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},s=u.getLayoutParams(e.option);i.each(["right","top","width","height"],function(e){"ph"===s[e]&&(s[e]=r[e])});var a=u.getLayoutRect(s,o,e.padding);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],"vertical"===this._orient&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.barGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==m||o?n===m&&o?{scale:s?[-1,1]:[-1,-1]}:"vertical"!==n||o?{scale:s?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:s?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:s?[1,1]:[1,-1]});var a=e.getBoundingRect([r]);e.attr("position",[t.x-a.x,t.y-a.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.barGroup;n.add(new d({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new d({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:i.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,o=n.getRawData(),s=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=s){var a=o.getDataExtent(s),l=.3*(a[1]-a[0]);a=[a[0]-l,a[1]+l];var u,c=[0,t[1]],d=[0,t[0]],p=[[t[0],0],[0,0]],f=[],g=d[1]/(o.count()-1),m=0,v=Math.round(o.count()/t[0]);o.each([s],function(e,t){if(0t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,r=this._updateInterval("all",n[0]-o);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(g(this.getTargetCoordInfo(),function(t){if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}}),!e){var t=this.api.getWidth(),n=this.api.getHeight();e={x:.2*t,y:.2*n,width:.6*t,height:.6*n}}return e}});function b(e){return"vertical"===e?"ns-resize":"ew-resize"}var _=y;e.exports=_},function(e,t,n){n(1498),n(1451),n(1452),n(1698),n(1699),n(1500),n(1501)},function(e,t,n){var i=n(1451).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=i},function(e,t,n){var i=n(1409),o=n(1452),r=n(1478),s=n(1700),a=i.bind,l=o.extend({type:"dataZoom.inside",init:function(){this._range},render:function(e,t,n,o){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),i.each(this.getTargetCoordInfo(),function(t,o){var r=i.map(t,function(e){return s.generateCoordId(e.model)});i.each(t,function(t){var l=t.model,c={};i.each(["pan","zoom","scrollMove"],function(e){c[e]=a(u[e],this,t,o)},this),s.register(n,{coordId:s.generateCoordId(l),allCoordIds:r,containsPoint:function(e,t,n){return l.coordinateSystem.containPoint([t,n])},dataZoomId:e.id,dataZoomModel:e,getRange:c})},this)},this)},dispose:function(){s.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),u={zoom:function(e,t,n,i){var o=this._range,s=o.slice(),a=e.axisModels[0];if(a){var l=d[t](null,[i.originX,i.originY],a,n,e),u=(0n.getHeight()&&(i.textPosition="top",a=!0);var l=a?-5-o.height:h+8;s+o.width/2>n.getWidth()?(i.textPosition=["100%",l],i.textAlign="right"):s-o.width/2<0&&(i.textPosition=[0,l],i.textAlign="left")}})}function m(r,u){var c,m=g[r],v=g[u],y=p[m],b=new l(y,e,e.ecModel);if(m&&!v){if(0===m.indexOf("my"))c={model:b,onclick:b.option.onclick,featureName:m};else{var _=s.get(m);if(!_)return;c=new _(b,t,n)}f[m]=c}else{if(!(c=f[v]))return;c.model=b,c.ecModel=t,c.api=n}m||!v?b.get("show")&&!c.unusable?(function(i,r,s){var l=i.getModel("iconStyle"),u=i.getModel("emphasis.iconStyle"),c=r.getIcons?r.getIcons():i.get("icon"),p=i.get("title")||{};if("string"==typeof c){var f=c,g=p;p={},(c={})[s]=f,p[s]=g}var m=i.iconPaths={};o.each(c,function(s,c){var f=a.createIcon(s,{},{x:-h/2,y:-h/2,width:h,height:h});f.setStyle(l.getItemStyle()),f.hoverStyle=u.getItemStyle();var g=e.getModel("tooltip");g&&g.get("show")&&f.attr("tooltip",o.extend({content:p[c],formatter:g.get("formatter",!0)||function(){return p[c]},formatterParams:{componentType:"toolbox",name:c,title:p[c],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),a.setHoverStyle(f),e.get("showTitle")&&(f.__title=p[c],f.on("mouseover",function(){var e=u.getItemStyle();f.setStyle({text:p[c],textPosition:u.get("textPosition")||"bottom",textFill:u.get("textFill")||e.fill||e.stroke||"#000",textAlign:u.get("textAlign")||"center",textBackgroundColor:u.get("textBackgroundColor"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding")})}).on("mouseout",function(){f.setStyle({textFill:null,textBackgroundColor:null})})),f.trigger(i.get("iconStatus."+c)||"normal"),d.add(f),f.on("click",o.bind(r.onclick,r,t,n,c)),m[c]=f})}(b,c,m),b.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&i[e].trigger(t)},c.render&&c.render(b,t,n,i)):c.remove&&c.remove(t,n):c.dispose&&c.dispose(t,n)}},updateView:function(e,t,n,i){o.each(this._features,function(e){e.updateView&&e.updateView(e.model,t,n,i)})},remove:function(e,t){o.each(this._features,function(n){n.remove&&n.remove(e,t)}),this.group.removeAll()},dispose:function(e,t){o.each(this._features,function(n){n.dispose&&n.dispose(e,t)})}});e.exports=d},function(e,t,n){var i=n(1471),o=n(1462),r=n(1449),s=o.toolbox.saveAsImage;function a(e){this.model=e}a.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:s.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:s.lang.slice()},a.prototype.unusable=!i.canvasSupported,a.prototype.onclick=function(e,t){var n=this.model,o=n.get("name")||e.get("title.0.text")||"echarts",r=n.get("type",!0)||"png",s=t.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||i.browser.ie||i.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var a=atob(s.split(",")[1]),l=a.length,u=new Uint8Array(l);l--;)u[l]=a.charCodeAt(l);var c=new Blob([u]);window.navigator.msSaveOrOpenBlob(c,o+"."+r)}else{var d=n.get("lang"),h='';window.open().document.write(h)}else{var p=document.createElement("a");p.download=o+"."+r,p.target="_blank",p.href=s;var f=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});p.dispatchEvent(f)}},r.register("saveAsImage",a);var l=a;e.exports=l},function(e,t,n){var i=n(1416),o=n(1409),r=n(1462),s=n(1449),a=r.toolbox.magicType;function l(e){this.model=e}l.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:o.clone(a.title),option:{},seriesIndex:{}};var u=l.prototype;u.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return o.each(e.get("type"),function(e){t[e]&&(n[e]=t[e])}),n};var c={line:function(e,t,n,i){if("bar"===e)return o.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(e,t,n,i){if("line"===e)return o.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(e,t,n,i){if("line"===e||"bar"===e)return o.merge({id:t,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(e,t,n,i){if("line"===e||"bar"===e)return o.merge({id:t,stack:""},i.get("option.tiled")||{},!0)}},d=[["line","bar"],["stack","tiled"]];u.onclick=function(e,t,n){var i=this.model,r=i.get("seriesIndex."+n);if(c[n]){var s={series:[]};o.each(d,function(e){0<=o.indexOf(e,n)&&o.each(e,function(e){i.setIconStatus(e,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(t){var r=t.subType,a=t.id,l=c[n](r,a,t,i);l&&(o.defaults(l,t.option),s.series.push(l));var u=t.coordinateSystem;if(u&&"cartesian2d"===u.type&&("line"===n||"bar"===n)){var d=u.getAxesByScale("ordinal")[0];if(d){var h=d.dim+"Axis",p=e.queryComponents({mainType:h,index:t.get(name+"Index"),id:t.get(name+"Id")})[0].componentIndex;s[h]=s[h]||[];for(var f=0;f<=p;f++)s[h][p]=s[h][p]||{};s[h][p].boundaryGap="bar"===n}}}),t.dispatchAction({type:"changeMagicType",currentType:n,newOption:s})}},i.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)}),s.register("magicType",l);var h=l;e.exports=h},function(e,t,n){var i=n(1416),o=n(1409),r=n(1496),s=n(1462),a=n(1449),l=s.toolbox.dataView,u=new Array(60).join("-"),c="\t";function d(e){var t=function(e){var t={},n=[],i=[];return e.eachRawSeries(function(e){var o=e.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)n.push(e);else{var r=o.getBaseAxis();if("category"===r.type){var s=r.dim+"_"+r.index;t[s]||(t[s]={categoryAxis:r,valueAxis:o.getOtherAxis(r),series:[]},i.push({axisDim:r.dim,axisIndex:r.index})),t[s].series.push(e)}else n.push(e)}}),{seriesGroupByCategoryAxis:t,other:n,meta:i}}(e);return{value:o.filter([function(e){var t=[];return o.each(e,function(e,n){var i=e.categoryAxis,r=e.valueAxis.dim,s=[" "].concat(o.map(e.series,function(e){return e.name})),a=[i.model.getCategories()];o.each(e.series,function(e){a.push(e.getRawData().mapArray(r,function(e){return e}))});for(var l=[s.join(c)],u=0;ue[1]&&e.reverse(),e}function g(e,t){return r.parseFinder(e,t,{includeMainTypes:d})}p.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=b[e.brushType](0,n,t);e.__rangeOffset={offset:w[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})},p.matchOutputRanges=function(e,t,n){a(e,function(e){var o=this.findTargetInfo(e,t);o&&!0!==o&&i.each(o.coordSyses,function(i){var o=b[e.brushType](1,i,e.range);n(e,o.values,i,t)})},this)},p.setInputRanges=function(e,t){a(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=b[e.brushType](0,n.coordSys,e.coordRange),o=e.__rangeOffset;e.range=o?w[e.brushType](i.values,o.offset,function(e,t){var n=x(e),i=x(t),o=[n[0]/i[0],n[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}(i.xyMinMax,o.xyMinMax)):i.values}},this)},p.makePanelOpts=function(e,t){return i.map(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t&&t(n),clipPath:s.makeRectPanelClipPath(i),isTargetByCursor:s.makeRectIsTargetByCursor(i,e,n.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(i)}})},p.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&0<=l(i.coordSyses,t.coordinateSystem)},p.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=g(t,e),o=0;o"),r&&(s+=c(r),null!=n&&(s+=" : ")),null!=n&&(s+=c(i)),s},getData:function(){return this._data},setData:function(e){this._data=e}});o.mixin(h,l);var p=h;e.exports=p},function(e,t,n){var i=n(1409),o=n(1529),r=n(1441),s=n(1691),a=n(1719);function l(e,t,n){var i=t.coordinateSystem;e.each(function(o){var s,a=e.getItemModel(o),l=r.parsePercent(a.get("x"),n.getWidth()),u=r.parsePercent(a.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(t.getMarkerPosition)s=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(i){var c=e.get(i.dimensions[0],o),d=e.get(i.dimensions[1],o);s=i.dataToPoint([c,d])}}else s=[l,u];isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u),e.setItemLayout(o,s)})}var u=n(1720).extend({type:"markPoint",updateTransform:function(e,t,n){t.eachSeries(function(e){var t=e.markPointModel;t&&(l(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(t))},this)},renderSeries:function(e,t,n,r){var u=e.coordinateSystem,c=e.id,d=e.getData(),h=this.markerGroupMap,p=h.get(c)||h.set(c,new o),f=function(e,t,n){var o;o=e?i.map(e&&e.dimensions,function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return i.defaults({name:e},n)}):[{name:"value",type:"float"}];var r=new s(o,n),l=i.map(n.get("data"),i.curry(a.dataTransform,t));return e&&(l=i.filter(l,i.curry(a.dataFilter,e))),r.initData(l,null,e?a.dimValueGetter:function(e){return e.value}),r}(u,e,t);t.setData(f),l(t.getData(),e,r),f.each(function(e){var n=f.getItemModel(e),o=n.getShallow("symbol"),r=n.getShallow("symbolSize"),s=i.isFunction(o),a=i.isFunction(r);if(s||a){var l=t.getRawValue(e),u=t.getDataParams(e);s&&(o=o(l,u)),a&&(r=r(l,u))}f.setItemVisual(e,{symbol:o,symbolSize:r,color:n.get("itemStyle.color")||d.getVisual("color")})}),p.updateData(f),this.group.add(p.group),f.eachItemGraphicEl(function(e){e.traverse(function(e){e.dataModel=t})}),p.__keep=!0,p.group.silent=t.get("silent")||e.get("silent")}});e.exports=u},function(e,t,n){var i=n(1409),o=n(1441),r=n(1469).isDimensionStacked,s=i.indexOf;function a(e,t,n,i,s,a){var l=[],u=r(t,i)?t.getCalculationInfo("stackResultDimension"):i,c=d(t,u,e),h=t.indicesOfNearest(u,c)[0];l[s]=t.get(n,h),l[a]=t.get(i,h);var p=o.getPrecision(t.get(i,h));return 0<=(p=Math.min(p,20))&&(l[a]=+l[a].toFixed(p)),l}var l=i.curry,u={min:l(a,"min"),max:l(a,"max"),average:l(a,"average")};function c(e,t,n,i){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=n.getAxis(function(e,t){var n=e.getData(),i=n.dimensions;t=n.getDimension(t);for(var o=0;o console.log` because `log` has been completed recently."),o.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:o.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:o.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:o.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[o.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),o.a("tabCompletion.off","Disable tab completions."),o.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:o.a("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:o.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:o.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:!1,markdownDescription:o.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:o.a("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:g.contribInfo.suggest.showIcons,description:o.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:g.contribInfo.suggest.maxVisibleSuggestions,minimum:1,maximum:15,description:o.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0},markdownDescription:o.a("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},class:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},interface:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},enum:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean",default:!0,markdownDescription:o.a("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:o.a("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string",enum:["peek","gotoAndPeek","goto"],default:g.contribInfo.gotoLocation.multiple,enumDescriptions:[o.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),o.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),o.a("editor.gotoLocation.multiple.goto","Go to the primary result and ignore others")]},"editor.selectionHighlight":{type:"boolean",default:g.contribInfo.selectionHighlight,description:o.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean",default:g.contribInfo.occurrencesHighlight,description:o.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:o.a("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:g.viewInfo.overviewRulerBorder,description:o.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:u.h(g.viewInfo.cursorBlinking),description:o.a("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:g.viewInfo.mouseWheelZoom,markdownDescription:o.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:g.viewInfo.cursorSmoothCaretAnimation,description:o.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:u.i(g.viewInfo.cursorStyle),description:o.a("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:g.viewInfo.cursorWidth,markdownDescription:o.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:g.viewInfo.fontLigatures,description:o.a("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:g.viewInfo.hideCursorInOverviewRuler,description:o.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],enumDescriptions:["",o.a("renderWhiteSpace.boundary","Render whitespace characters except for single spaces between words."),""],default:g.viewInfo.renderWhitespace,description:o.a("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:g.viewInfo.renderControlCharacters,description:o.a("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:g.viewInfo.renderIndentGuides,description:o.a("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:g.viewInfo.highlightActiveIndentGuide,description:o.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",o.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:g.viewInfo.renderLineHighlight,description:o.a("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:g.contribInfo.codeLens,description:o.a("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean",default:g.contribInfo.folding,description:o.a("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:g.contribInfo.foldingStrategy,markdownDescription:o.a("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:g.contribInfo.showFoldingControls,description:o.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:g.contribInfo.matchBrackets,description:o.a("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:g.viewInfo.glyphMargin,description:o.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:g.useTabStops,description:o.a("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:v.trimAutoWhitespace,description:o.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:o.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:g.dragAndDrop,description:o.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[o.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),o.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),o.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:g.accessibilitySupport,description:o.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:g.showUnused,description:o.a("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:g.contribInfo.links,description:o.a("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:g.contribInfo.colorDecorators,description:o.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:g.contribInfo.lightbulbEnabled,description:o.a("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:o.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:o.a("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:o.a("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},default:g.contribInfo.codeActionsOnSave,description:o.a("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:g.contribInfo.codeActionsOnSaveTimeout,description:o.a("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:g.contribInfo.selectionClipboard,description:o.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:l.c},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:o.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:o.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean",default:v.largeFileOptimizations,description:o.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:o.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},k=null;function L(){return null===k&&(k=Object.create(null),Object.keys(O.properties).forEach(function(e){k[e]=!0})),k}function M(e){return L()["editor."+e]||!1}function E(e){return L()["diffEditor."+e]||!1}S.registerConfiguration(O)},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return g});var i,o=n(1426),r=n(1481),s=n(1673),a=(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=o.d?1.5:1.35;function u(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n}function c(e,t,n){return e>0);t[o]>=e?i=o-1:t[o+1]>=e?i=n=o:n=o+1}return n+1},p);function p(e){for(var t=[],n=0,i=0,o=e.length;i=l.start+1&&(l=d._findNextWordOnLine(e,t,new a.a(o,l.end+1))),l?l.start+1:t.getLineMaxColumn(o)),new a.a(o,r)},d._moveWordPartRight=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n=f.start+1&&(f=d._findNextWordOnLine(e,t,new a.a(s,f.end+1))),f?f.start+1:ut||c.isEmpty()&&(0===u.type||3===u.type))){var d=c.startLineNumber===t?c.startColumn:n,h=c.endLineNumber===t?c.endColumn:i;o[s++]=new r(d,h,u.inlineClassName,u.type)}}return o},r.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.classNamet.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},r);function r(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i}var s=function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n},a=(l.prototype.consumeLowerThan=function(e,t,n){for(;0=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},l);function l(){this.stopOffsets=[],this.classNames=[],this.count=0}var u=(c.normalize=function(e,t){if(0===t.length)return[];for(var n=[],o=new a,r=0,s=0,l=t.length;s=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n=n.length)return!1;var r=n.length-e;return r<=t&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},s.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,i=0,r=0,s=0;t<=n;)if(i=t+(n-t)/2|0,e<(s=(r=this.prefixSum[i])-this.values[i]))n=i-1;else{if(!(r<=e))break;t=i+1}return new o(i,e-s)},s);function s(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}var a=(l.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},l.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},l.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},l.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},l.prototype.getTotalValue=function(){return this._actual.getTotalValue()},l.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},l.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(0<=t&&to[0]&&r[1]=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function s(e){return e.end-e.start<=0}n.d(t,"a",function(){return i}),(o=i=i||{}).intersect=r,o.isEmpty=s,o.intersects=function(e,t){return!s(r(e,t))},o.relativeComplement=function(e,t){var n=[],i={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return s(i)||n.push(i),s(o)||n.push(o),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return s});var i={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},o=(r.prototype.update=function(){},r.prototype.getData=function(){return this.data},r);function r(e){this.data=e}var s={CurrentDragAndDropData:void 0}},function(e,t,n){"use strict";function i(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r});var i=n(1421),o=Object(i.c)("logService"),r=(s.prototype.trace=function(e){for(var t=[],n=1;n=this.value.length)return{type:14,pos:this.pos,len:0};var e,t=this.pos,n=0,i=this.value.charCodeAt(t);if("number"==typeof(e=a._table[i]))return this.pos+=1,{type:e,pos:t,len:1};if(a.isDigitCharacter(i)){for(e=8;n+=1,i=this.value.charCodeAt(t+n),a.isDigitCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}}if(a.isVariableCharacter(i)){for(e=9;i=this.value.charCodeAt(t+ ++n),a.isVariableCharacter(i)||a.isDigitCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}}for(e=10;n+=1,i=this.value.charCodeAt(t+n),!isNaN(i)&&void 0===a._table[i]&&!a.isDigitCharacter(i)&&!a.isVariableCharacter(i););return this.pos+=n,{type:e,pos:t,len:n}},a._table=((o={})[36]=0,o[58]=1,o[44]=2,o[123]=3,o[125]=4,o[92]=5,o[47]=6,o[124]=7,o[43]=11,o[45]=12,o[63]=13,o),a);function a(){this.text("")}var l=(u.prototype.appendChild=function(e){return e instanceof d&&this._children[this._children.length-1]instanceof d?this._children[this._children.length-1].value+=e.value:(e.parent=this)._children.push(e),this},u.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,[i,1].concat(t)),n._children=o,function e(t,n){for(var i=0,o=t;it.index?1:0},Object.defineProperty(y.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof _?this._children[0]:void 0},enumerable:!0,configurable:!0}),y.prototype.clone=function(){var e=new y(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone()}),e},y);function y(e){var t=m.call(this)||this;return t.index=e,t}var b,_=(r(w,b=l),w.prototype.appendChild=function(e){return e instanceof d&&(e.parent=this).options.push(e),this},w.prototype.toString=function(){return this.options[0].value},w.prototype.len=function(){return this.options[0].len()},w.prototype.clone=function(){var e=new w;return this.options.forEach(e.appendChild,e),e},w);function w(){var e=null!==b&&b.apply(this,arguments)||this;return e.options=[],e}var C,x=(r(S,C=l),S.prototype.resolve=function(e){var t=this,n=!1,i=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(function(e){return e instanceof k&&Boolean(e.elseValue)})&&(i=this._replace([])),i},S.prototype._replace=function(e){for(var t="",n=0,i=this._children;ne)){var c=u.startLineNumber===e?u.startColumn:o.minColumn,d=u.endLineNumber===e?u.endColumn:o.maxColumn;c');var p=Object(ae.c)(h,i);i.appendASCIIString("");var f=null;return ce&&o.isBasicASCII&&r.useMonospaceOptimizations&&0===p.containsForeignElements&&o.content.length<300&&h.lineTokens.getCount()<100&&(f=new ye(this._renderedViewLine?this._renderedViewLine.domNode:null,h,p.characterMapping)),f=f||Oe(this._renderedViewLine?this._renderedViewLine.domNode:null,h,p.characterMapping,p.containsRTL,p.containsForeignElements),this._renderedViewLine=f,!0},ve.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},ve.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},ve.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},ve.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!=i&&i=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Ve._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}),je.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+"\n\ttarget: "+(this.target?this.target.outerHTML:null)},je.prototype.fulfill=function(e,t,n,i){return void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null),new De(this.target,e,this.mouseColumn,t,n,i)},je.prototype.withTarget=function(e){return new je(this._ctx,this.editorPos,this.pos,e)},je);function je(e,t,n,i){var o=Re.call(this,e,t,n)||this;return o._ctx=e,i?(o.target=i,o.targetPath=H.collect(i,e.viewDomNode)):(o.target=null,o.targetPath=new Uint8Array(0)),o}var We={isAfterLines:!0};function Be(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Ve=(ze.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=H.collect(t,this._viewHelper.viewDomNode);return!(!Ie.isChildOfContentWidgets(n)&&!Ie.isChildOfOverflowingContentWidgets(n)&&!Ie.isChildOfOverlayWidgets(n))},ze.prototype.createMouseTarget=function(e,t,n,i){var o=new Pe(this._context,this._viewHelper,e),r=new Fe(o,t,n,i);try{return ze._createMouseTarget(o,r,!1)}catch(e){return r.fulfill(0)}},ze._createMouseTarget=function(e,t,n){if(null===t.target){if(n)return t.fulfill(0);var i=ze._doHitTest(e,t);return i.position?ze.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}var o=t,r=null;return(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r||ze._hitTestContentWidget(e,o))||ze._hitTestOverlayWidget(e,o))||ze._hitTestMinimap(e,o))||ze._hitTestScrollbarSlider(e,o))||ze._hitTestViewZone(e,o))||ze._hitTestMargin(e,o))||ze._hitTestViewCursor(e,o))||ze._hitTestTextArea(e,o))||ze._hitTestViewLines(e,o,n))||ze._hitTestScrollbar(e,o))||t.fulfill(0)},ze._hitTestContentWidget=function(e,t){if(Ie.isChildOfContentWidgets(t.targetPath)||Ie.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},ze._hitTestOverlayWidget=function(e,t){if(Ie.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},ze._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,i=r=e.lastViewCursorsRenderData;no.contentLeft+o.width)){var c=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(c<=a&&a<=c+o.height)return t.fulfill(6,o.position)}return null},ze._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?8:5;return t.fulfill(i,n.position,null,n)}return null},ze._hitTestTextArea=function(e,t){return Ie.isTextArea(t.targetPath)?t.fulfill(1):null},ze._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),r={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return(o-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,r):(o-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,r))}return null},ze._hitTestViewLines=function(e,t,n){if(!Ie.isChildOfViewLines(t.targetPath))return null;if(e.isAfterLines(t.mouseVerticalOffset)){var i=e.model.getLineCount(),o=e.model.getLineMaxColumn(i);return t.fulfill(7,new Le.a(i,o),void 0,We)}if(n){if(Ie.isStrictChildOfViewLines(t.targetPath)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(r)){var s=e.getLineWidth(r),a=Be(t.mouseContentHorizontalOffset-s);return t.fulfill(7,new Le.a(r,1),void 0,a)}}return t.fulfill(0)}var l=ze._doHitTest(e,t);return l.position?ze.createMouseTargetFromHitTestPosition(e,t,l.position.lineNumber,l.position.column):this._createMouseTarget(e,t.withTarget(l.hitTarget),!0)},ze._hitTestMinimap=function(e,t){if(Ie.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Le.a(n,i))}return null},ze._hitTestScrollbarSlider=function(e,t){if(Ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(11,new Le.a(i,o))}}return null},ze._hitTestScrollbar=function(e,t){if(Ie.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Le.a(n,i))}return null},ze.prototype.getMouseColumn=function(e,t){var n=this._context.configuration.editor.layoutInfo,i=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-n.contentLeft;return ze._getMouseColumn(i,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},ze._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},ze.createMouseTargetFromHitTestPosition=function(e,t,n,i){var o=new Le.a(n,i),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r){if(g.f&&1===o.column){var s=Be(t.mouseContentHorizontalOffset-r);return t.fulfill(7,new Le.a(n,e.model.getLineMaxColumn(n)),void 0,s)}var a=Be(t.mouseContentHorizontalOffset-r);return t.fulfill(7,o,void 0,a)}var l=e.visibleRangeForPosition2(n,i);if(!l)return t.fulfill(0,o);var u=l.left;if(t.mouseContentHorizontalOffset===u)return t.fulfill(6,o);var c=[];if(c.push({offset:l.left,column:i}),1=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);var r=new w(t.pos.x,o),s=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},ze._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var i=n.startContainer,o=null;if(i.nodeType===i.TEXT_NODE){var r=(a=(s=i.parentNode)?s.parentNode:null)?a.parentNode:null;if((r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===me.CLASS_NAME)return{position:e.getPositionFromDOMInfo(s,n.startOffset),hitTarget:null};o=i.parentNode}else if(i.nodeType===i.ELEMENT_NODE){var s,a;if(((a=(s=i.parentNode)?s.parentNode:null)&&a.nodeType===a.ELEMENT_NODE?a.className:null)===me.CLASS_NAME)return{position:e.getPositionFromDOMInfo(i,i.textContent.length),hitTarget:null};o=i}return{position:null,hitTarget:o}},ze._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType!==n.offsetNode.TEXT_NODE)return{position:null,hitTarget:n.offsetNode};var i=n.offsetNode.parentNode,o=i?i.parentNode:null,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)!==me.CLASS_NAME?{position:null,hitTarget:n.offsetNode.parentNode}:{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}},ze._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}o.collapse(!0);var r=o?o.parentElement():null,s=r?r.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===me.CLASS_NAME){var l=o.duplicate();l.moveToElementText(r),l.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,l.text.length),l.moveToElementText(e.viewDomNode)}else i=r;return o.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}},ze._doHitTest=function(e,t){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},ze);function ze(e,t){this._context=e,this._viewHelper=t}var He,Ue=n(1673),Ke=n(1433),Ge=(He=function(e,t){return(He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}He(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function qe(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var Ye,Xe=(Ge(Ze,Ye=F),Ze.prototype.dispose=function(){this._context.removeEventHandler(this),Ye.prototype.dispose.call(this)},Ze.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},Ze.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},Ze.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},Ze.prototype.getTargetAtClientPoint=function(e,t){var n=new x(e,t).toPageCoordinates(),i=k(this.viewHelper.viewDomNode);if(n.yi.y+i.height||n.xi.x+i.width)return null;var o=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(o,i,n,null)},Ze.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,e.editorPos,e.pos,t?e.target:null)},Ze.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},Ze.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},Ze.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||e.timestampt.y+t.height){var a,l;if(r=i.getCurrentScrollTop()+(e.posy-t.y),(a=Pe.getZoneAtCoord(this._context,r))&&(l=this._helpPositionJumpOverViewZone(a)))return new De(null,13,o,l);var u=i.getLineNumberAtVerticalOffset(r);return new De(null,13,o,new Le.a(u,n.getLineMaxColumn(u)))}var c=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new De(null,13,o,new Le.a(c,n.getLineMaxColumn(c))):null},$e.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t);if(!i.position)return null;if(8===i.type||5===i.type){var o=this._helpPositionJumpOverViewZone(i.detail);if(o)return new De(i.element,i.type,i.mouseColumn,o,null,i.detail)}return i},$e.prototype._helpPositionJumpOverViewZone=function(e){var t=new Le.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null},$e.prototype._dispatchMouse=function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},$e);function $e(e,t,n,i,o){var r=Je.call(this)||this;return r._context=e,r._viewController=t,r._viewHelper=n,r._createMouseTarget=i,r._getMouseColumn=o,r._mouseMoveMonitor=r._register(new T(r._viewHelper.viewDomNode)),r._onScrollTimeout=r._register(new v.e),r._mouseState=new et,r._currentSelection=new Ke.a(1,1,1,1),r._isActive=!1,r._lastMouseEvent=null,r}var et=(Object.defineProperty(tt.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(tt.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),tt.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},tt.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},tt.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},tt.prototype.trySetCount=function(e,t){var n=(new Date).getTime();n-this._lastSetMouseDownCountTime>tt.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=n,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)},tt.CLEAR_MOUSE_DOWN_COUNT_TIME=400,tt);function tt(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}var nt,it=(nt=function(e,t){return(nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function ot(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var rt,st=(it(at,rt=Xe),at.prototype._onMouseDown=function(e){"mouse"===this._lastPointerType&&rt.prototype._onMouseDown.call(this,e)},at.prototype._onCaptureGestureTap=function(e){var t=this,n=new M(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},at.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},at.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),rt.prototype.dispose.call(this)},at);function at(e,t,n){var i=rt.call(this,e,t,n)||this;return i.viewHelper.linesContentDomNode.style.msTouchAction="none",i.viewHelper.linesContentDomNode.style.msContentZooming="none",i._installGestureHandlerTimeout=window.setTimeout(function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var o=n.pointerType;o!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?o===(n.MSPOINTER_TYPE_TOUCH||"touch")?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"}),i._register(r.j(i.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return i._onGestureChange(e)},ot)),i._register(r.h(i.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return i._onCaptureGestureTap(e)},!0))}},100),i._lastPointerType="mouse",i}var lt,ut=(it(ct,lt=Xe),ct.prototype._onMouseDown=function(e){"mouse"===this._lastPointerType&<.prototype._onMouseDown.call(this,e)},ct.prototype._onCaptureGestureTap=function(e){var t=this,n=new M(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},ct.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},ct.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),lt.prototype.dispose.call(this)},ct);function ct(e,t,n){var i=lt.call(this,e,t,n)||this;return i.viewHelper.linesContentDomNode.style.touchAction="none",i._installGestureHandlerTimeout=window.setTimeout(function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var o=n.pointerType;"mouse"!==o?"touch"===o?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"}),i._register(r.j(i.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return i._onGestureChange(e)},ot)),i._register(r.h(i.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return i._onCaptureGestureTap(e)},!0))}},100),i._lastPointerType="mouse",i}var dt,ht=(it(pt,dt=Xe),pt.prototype.dispose=function(){dt.prototype.dispose.call(this)},pt.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new M(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},pt.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},pt);function pt(e,t,n){var i=dt.call(this,e,t,n)||this;return f.b.addTarget(i.viewHelper.linesContentDomNode),i._register(r.h(i.viewHelper.linesContentDomNode,f.a.Tap,function(e){return i.onTap(e)})),i._register(r.h(i.viewHelper.linesContentDomNode,f.a.Change,function(e){return i.onChange(e)})),i._register(r.h(i.viewHelper.linesContentDomNode,f.a.Contextmenu,function(e){return i._onContextMenu(new M(e,i.viewHelper.viewDomNode),!1)})),i}var ft=(gt.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},gt.prototype.dispose=function(){this.handler.dispose()},gt);function gt(e,t,n){window.navigator.msPointerEnabled?this.handler=new st(e,t,n):window.TouchEvent?this.handler=new ht(e,t,n):window.navigator.pointerEnabled||window.PointerEvent?this.handler=new ut(e,t,n):this.handler=new Xe(e,t,n)}n(2069);var mt,vt,yt=n(1413),bt=n(1860),_t=n(1861),wt=(n(2070),(mt=function(e,t){return(mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}mt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Ct,vt=F),Ct);function Ct(){return null!==vt&&vt.apply(this,arguments)||this}var xt,St,Ot=n(1453),kt=((xt=function(e,t){return(xt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}xt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Lt,St=wt),Lt.prototype._readConfig=function(){var e=this._context.configuration.editor;this._lineHeight=e.lineHeight,this._renderLineNumbers=e.viewInfo.renderLineNumbers,this._renderCustomLineNumbers=e.viewInfo.renderCustomLineNumbers,this._renderFinalNewline=e.viewInfo.renderFinalNewline,this._lineNumbersLeft=e.layoutInfo.lineNumbersLeft,this._lineNumbersWidth=e.layoutInfo.lineNumbersWidth},Lt.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,St.prototype.dispose.call(this)},Lt.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},Lt.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers},Lt.prototype.onFlushed=function(e){return!0},Lt.prototype.onLinesChanged=function(e){return!0},Lt.prototype.onLinesDeleted=function(e){return!0},Lt.prototype.onLinesInserted=function(e){return!0},Lt.prototype.onScrollChanged=function(e){return e.scrollTopChanged},Lt.prototype.onZonesChanged=function(e){return!0},Lt.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Le.a(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(!this._renderFinalNewline){var i=this._context.model.getLineCount(),o=this._context.model.getLineContent(n);if(n===i&&""===o)return""}if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2!==this._renderLineNumbers)return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n);var r=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===r?''+n+"":String(r)},Lt.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var t=y.c?this._lineHeight%2==0?" lh-even":" lh-odd":"",n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o='
',r=[],s=n;s<=i;s++){var a=s-n,l=this._getLineRenderLineNumber(s);r[a]=l?o+l+"
":""}this._renderResult=r}else this._renderResult=null},Lt.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},Lt.CLASS_NAME="line-numbers",Lt);function Lt(e){var t=St.call(this)||this;return t._context=e,t._readConfig(),t._lastCursorModelPosition=new Le.a(1,1),t._renderResult=null,t._context.addEventHandler(t),t}Object(le.e)(function(e,t){var n=e.getColor(Ot.q);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(Ot.b);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var Mt,Et,Dt=((Mt=function(e,t){return(Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Mt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Nt,Et=V),Nt.prototype.dispose=function(){Et.prototype.dispose.call(this)},Nt.prototype.getDomNode=function(){return this._domNode},Nt.prototype._createDomNode=function(){var e=Object(p.b)(document.createElement("div"));return e.setClassName(Nt.OUTER_CLASS_NAME),e.setPosition("absolute"),e.setAttribute("role","presentation"),e.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Object(p.b)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Nt.CLASS_NAME),e.appendChild(this._glyphMarginBackgroundDomNode),e},Nt.prototype.onConfigurationChanged=function(e){return e.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},Nt.prototype.onScrollChanged=function(e){return Et.prototype.onScrollChanged.call(this,e)||e.scrollTopChanged},Nt.prototype.prepareRender=function(e){},Nt.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting);var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)},Nt.CLASS_NAME="glyph-margin",Nt.OUTER_CLASS_NAME="margin",Nt);function Nt(e){var t=Et.call(this,e)||this;return t._canUseLayerHinting=t._context.configuration.editor.canUseLayerHinting,t._contentLeft=t._context.configuration.editor.layoutInfo.contentLeft,t._glyphMarginLeft=t._context.configuration.editor.layoutInfo.glyphMarginLeft,t._glyphMarginWidth=t._context.configuration.editor.layoutInfo.glyphMarginWidth,t._domNode=t._createDomNode(),t}var It,Tt,Pt=n(1604),At=(It=function(e,t){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}It(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Rt=function(e){this.type=1,this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo},Ft=function(e){this.type=2,this.selections=e},jt=function(){this.type=3},Wt=function(){this.type=4},Bt=function(e){this.type=5,this.isFocused=e},Vt=function(){this.type=6},zt=function(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t},Ht=function(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t},Ut=function(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t},Kt=function(e,t,n,i){this.type=10,this.range=e,this.verticalType=t,this.revealHorizontal=n,this.scrollType=i},Gt=function(e){this.type=11,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged},qt=function(e){this.type=12,this.ranges=e},Yt=function(){this.type=15},Xt=function(){this.type=13},Zt=function(){this.type=14},Jt=function(){this.type=16},Qt=(At($t,Tt=l.a),$t.prototype.dispose=function(){this._listeners=[],Tt.prototype.dispose.call(this)},$t.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new en),this._collector},$t.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,0this._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():this._renderInsideEditor(t,e,ln?0:1,ln?0:1,!1)}}else this._renderAtTopLeft()},pn.prototype._renderInsideEditor=function(e,t,n,i,o){var r=this.textArea,s=this.textAreaCover;o?c.a.applyFontInfo(r,this._fontInfo):(r.setFontSize(1),r.setLineHeight(this._fontInfo.lineHeight)),r.setTop(e),r.setLeft(t),r.setWidth(n),r.setHeight(i),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},pn.prototype._renderAtTopLeft=function(){var e=this.textArea,t=this.textAreaCover;if(c.a.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),ln)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),this._context.configuration.editor.viewInfo.glyphMargin?t.setClassName("monaco-editor-background textAreaCover "+Dt.OUTER_CLASS_NAME):0!==this._context.configuration.editor.viewInfo.renderLineNumbers?t.setClassName("monaco-editor-background textAreaCover "+kt.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},pn);function pn(e,t,n){var i=dn.call(this,e)||this;i._primaryCursorVisibleRange=null,i._viewController=t,i._viewHelper=n;var o=i._context.configuration.editor;i._accessibilitySupport=o.accessibilitySupport,i._contentLeft=o.layoutInfo.contentLeft,i._contentWidth=o.layoutInfo.contentWidth,i._contentHeight=o.layoutInfo.contentHeight,i._scrollLeft=0,i._scrollTop=0,i._fontInfo=o.fontInfo,i._lineHeight=o.lineHeight,i._emptySelectionClipboard=o.emptySelectionClipboard,i._copyWithSyntaxHighlighting=o.copyWithSyntaxHighlighting,i._visibleTextArea=null,i._selections=[new Ke.a(1,1,1,1)],i.textArea=Object(p.b)(document.createElement("textarea")),H.write(i.textArea,6),i.textArea.setClassName("inputarea"),i.textArea.setAttribute("wrap","off"),i.textArea.setAttribute("autocorrect","off"),i.textArea.setAttribute("autocapitalize","off"),i.textArea.setAttribute("autocomplete","off"),i.textArea.setAttribute("spellcheck","false"),i.textArea.setAttribute("aria-label",o.viewInfo.ariaLabel),i.textArea.setAttribute("role","textbox"),i.textArea.setAttribute("aria-multiline","true"),i.textArea.setAttribute("aria-haspopup","false"),i.textArea.setAttribute("aria-autocomplete","both"),i.textAreaCover=Object(p.b)(document.createElement("div")),i.textAreaCover.setPosition("absolute");var r={getLineCount:function(){return i._context.model.getLineCount()},getLineMaxColumn:function(e){return i._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return i._context.model.getValueInRange(e,t)}},s={getPlainTextToCopy:function(){var e=i._context.model.getPlainTextToCopy(i._selections,i._emptySelectionClipboard,y.g),t=i._context.model.getEOL(),n=i._emptySelectionClipboard&&1===i._selections.length&&i._selections[0].isEmpty(),o=Array.isArray(e)?e:null,r=Array.isArray(e)?e.join(t):e,s=null;return(n||o)&&(s={lastCopiedValue:g.i?r.replace(/\r\n/g,"\n"):r,isFromEmptySelection:i._emptySelectionClipboard&&1===i._selections.length&&i._selections[0].isEmpty(),multicursorText:o}),un.INSTANCE.set(s),r},getHTMLToCopy:function(){return i._copyWithSyntaxHighlighting||bt.a.forceCopyWithSyntaxHighlighting?i._context.model.getHTMLToCopy(i._selections,i._emptySelectionClipboard):null},getScreenReaderContent:function(e){if(g.k)return _t.b.EMPTY;if(1!==i._accessibilitySupport)return _t.a.fromEditorSelection(e,r,i._selections[0],0===i._accessibilitySupport);if(y.d){var t=i._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),o=i._getWordBeforePosition(n);if(0===o.length&&(o=i._getCharacterBeforePosition(n)),0=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},bn.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(tn))for(var a=Math.max(t,s.fromLineNumber),l=Math.min(n,s.toLineNumber),u=a;u<=l;u++){var c=u-this._rendLineNumberStart;this._lines[c].onTokensChanged(),i=!0}}return i},bn);function bn(e){this._createLine=e,this._set(1,[])}var _n=(wn.prototype._createDomNode=function(){var e=Object(p.b)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},wn.prototype.onConfigurationChanged=function(e){return e.layoutInfo},wn.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},wn.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},wn.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;nt?(l=t)<=(s=Math.min(n,o.rendLineNumberStart-1))&&(this._insertLinesBefore(o,l,s,i,t),o.linesLength+=s-l+1):o.rendLineNumberStartn){var s,a,l=Math.max(0,n-o.rendLineNumberStart+1);0<(a=(s=o.linesLength-1)-l+1)&&(this._removeLinesAfter(o,a),o.linesLength-=a)}return this._finishRendering(o,!1,i),o},xn.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var l=r+a;s[a].layoutLine(l,i[l-o])}},xn.prototype._insertLinesBefore=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)},xn.prototype._removeLinesBefore=function(e,t){for(var n=0;n'),i.appendASCIIString(o),i.appendASCIIString(""),!0)},Dn.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},Dn);function Dn(e,t){this._configuration=e,this._lineHeight=this._configuration.editor.lineHeight,this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}var Nn,In=(kn(Tn,Nn=Ln),Tn.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),Nn.prototype.onConfigurationChanged.call(this,e)},Tn.prototype.onScrollChanged=function(e){return Nn.prototype.onScrollChanged.call(this,e)||e.scrollWidthChanged},Tn.prototype._viewOverlaysRender=function(e){Nn.prototype._viewOverlaysRender.call(this,e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))},Tn);function Tn(e){var t=Nn.call(this,e)||this;return t._contentWidth=t._context.configuration.editor.layoutInfo.contentWidth,t.domNode.setHeight(0),t}var Pn,An=(kn(Rn,Pn=Ln),Rn.prototype.onConfigurationChanged=function(e){var t=!1;return e.fontInfo&&(c.a.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),t=!0),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,t=!0),Pn.prototype.onConfigurationChanged.call(this,e)||t},Rn.prototype.onScrollChanged=function(e){return Pn.prototype.onScrollChanged.call(this,e)||e.scrollHeightChanged},Rn.prototype._viewOverlaysRender=function(e){Pn.prototype._viewOverlaysRender.call(this,e);var t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)},Rn);function Rn(e){var t=Pn.call(this,e)||this;return t._contentLeft=t._context.configuration.editor.layoutInfo.contentLeft,t.domNode.setClassName("margin-view-overlays"),t.domNode.setWidth(1),c.a.applyFontInfo(t.domNode,t._context.configuration.editor.fontInfo),t}var Fn,jn,Wn=n(1431),Bn=(Fn=function(e,t){return(Fn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Fn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Vn=function(e,t){this.top=e,this.left=t},zn=(Bn(Hn,jn=V),Hn.prototype.dispose=function(){jn.prototype.dispose.call(this),this._widgets={}},Hn.prototype.onConfigurationChanged=function(e){for(var t=0,n=Object.keys(this._widgets);to.scrollLeft+o.viewportWidth&&(h=o.scrollLeft+o.viewportWidth-n),p+n>o.scrollLeft+o.viewportWidth&&(p=o.scrollLeft+o.viewportWidth-n),hthis._contentWidth)return null;var l,u=e.top-i,c=t.top+this._lineHeight,d=s+this._contentLeft,h=a+this._contentLeft,p=r.v(this._viewDomNode.domNode),f=p.top+u-r.e.scrollY,g=p.top+c-r.e.scrollY,m=p.left+d-r.e.scrollX,v=p.left+h-r.e.scrollX,y=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b=22<=f,_=g+i<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;return y=o){l.lineNumber>o&&(o=l.lineNumber,r=1073741824);for(var u=0,c=l.ranges.length;ue.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},Kn.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},Kn.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?this.domNode.setTop(this._renderData.top):this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},Kn);function Kn(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Object(p.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1,this._fixedOverflowWidgets=this._context.configuration.editor.viewInfo.fixedOverflowWidgets,this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth,this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._lineHeight=this._context.configuration.editor.lineHeight,this._setPosition(null,null),this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}n(2071);var Gn,qn,Yn=((Gn=function(e,t){return(Gn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Gn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(Xn,qn=wt),Xn.prototype.dispose=function(){this._context.removeEventHandler(this),qn.prototype.dispose.call(this)},Xn.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},Xn.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,!0):t},Xn.prototype.onFlushed=function(e){return!0},Xn.prototype.onLinesDeleted=function(e){return!0},Xn.prototype.onLinesInserted=function(e){return!0},Xn.prototype.onScrollChanged=function(e){return e.scrollWidthChanged},Xn.prototype.onZonesChanged=function(e){return!0},Xn.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},Xn.prototype.render=function(e,t){return t!==this._primaryCursorLineNumber?"":this._shouldShowCurrentLine()?'
':""},Xn.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},Xn.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},Xn);function Xn(e){var t=qn.call(this)||this;return t._context=e,t._lineHeight=t._context.configuration.editor.lineHeight,t._renderLineHighlight=t._context.configuration.editor.viewInfo.renderLineHighlight,t._selectionIsEmpty=!0,t._primaryCursorLineNumber=1,t._scrollWidth=0,t._contentWidth=t._context.configuration.editor.layoutInfo.contentWidth,t._context.addEventHandler(t),t}Object(le.e)(function(e,t){var n=e.getColor(Ot.o);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(Ot.p)){var i=e.getColor(Ot.p);i&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}}),n(2072);var Zn,Jn,Qn=((Zn=function(e,t){return(Zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Zn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})($n,Jn=wt),$n.prototype.dispose=function(){this._context.removeEventHandler(this),Jn.prototype.dispose.call(this)},$n.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},$n.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,!0):t},$n.prototype.onFlushed=function(e){return!0},$n.prototype.onLinesDeleted=function(e){return!0},$n.prototype.onLinesInserted=function(e){return!0},$n.prototype.onZonesChanged=function(e){return!0},$n.prototype.prepareRender=function(e){},$n.prototype.render=function(e,t){if(t!==this._primaryCursorLineNumber)return"";var n="current-line";return this._shouldShowCurrentLine()&&(n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"")),'
'},$n.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},$n.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},$n);function $n(e){var t=Jn.call(this)||this;return t._context=e,t._lineHeight=t._context.configuration.editor.lineHeight,t._renderLineHighlight=t._context.configuration.editor.viewInfo.renderLineHighlight,t._selectionIsEmpty=!0,t._primaryCursorLineNumber=1,t._contentLeft=t._context.configuration.editor.layoutInfo.contentLeft,t._context.addEventHandler(t),t}Object(le.e)(function(e,t){var n=e.getColor(Ot.o);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var i=e.getColor(Ot.p);i&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}}),n(2073);var ei,ti,ni=((ei=function(e,t){return(ei=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ei(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(ii,ti=wt),ii.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,ti.prototype.dispose.call(this)},ii.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},ii.prototype.onDecorationsChanged=function(e){return!0},ii.prototype.onFlushed=function(e){return!0},ii.prototype.onLinesChanged=function(e){return!0},ii.prototype.onLinesDeleted=function(e){return!0},ii.prototype.onLinesInserted=function(e){return!0},ii.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},ii.prototype.onZonesChanged=function(e){return!0},ii.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;ot.options.zIndex)return 1;var n=e.options.className,i=t.options.className;return n',c=Math.max(l.range.startLineNumber,o),d=Math.min(l.range.endLineNumber,r),h=c;h<=d;h++)n[h-o]+=u}},ii.prototype._renderNormalDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=null,s=!1,a=null,l=0,u=t.length;l';s[d]+=m}}},ii.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},ii);function ii(e){var t=ti.call(this)||this;return t._context=e,t._lineHeight=t._context.configuration.editor.lineHeight,t._typicalHalfwidthCharacterWidth=t._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,t._renderResult=null,t._context.addEventHandler(t),t}var oi,ri,si=n(1494),ai=((oi=function(e,t){return(oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}oi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(li,ri=V),li.prototype.dispose=function(){ri.prototype.dispose.call(this)},li.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft),"right"===this._context.configuration.editor.viewInfo.minimap.side?this.scrollbarDomNode.setWidth(e.contentWidth+e.minimapWidth):this.scrollbarDomNode.setWidth(e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight)},li.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},li.prototype.getDomNode=function(){return this.scrollbarDomNode},li.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},li.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var t=this._context.configuration.editor,n={handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity,fastScrollSensitivity:t.viewInfo.scrollbar.fastScrollSensitivity};this.scrollbar.updateOptions(n)}return e.layoutInfo&&this._setLayout(),!0},li.prototype.onScrollChanged=function(e){return!0},li.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(le.d)(this._context.theme.type)),!0},li.prototype.prepareRender=function(e){},li.prototype.render=function(e){this.scrollbar.renderNow()},li);function li(e,t,n,i){var o=ri.call(this,e)||this,s=o._context.configuration.editor.viewInfo.scrollbar,a={listenOnDomNode:n.domNode,className:"editor-scrollable "+Object(le.d)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity};function l(e,t,n){var i={};if(t){var r=e.scrollTop;r&&(i.scrollTop=o._context.viewLayout.getCurrentScrollTop()+r,e.scrollTop=0)}if(n){var s=e.scrollLeft;s&&(i.scrollLeft=o._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0)}o._context.viewLayout.setScrollPositionNow(i)}return o.scrollbar=o._register(new si.c(t.domNode,a,o._context.viewLayout.scrollable)),H.write(o.scrollbar.getDomNode(),5),o.scrollbarDomNode=Object(p.b)(o.scrollbar.getDomNode()),o.scrollbarDomNode.setPosition("absolute"),o._setLayout(),o._register(r.h(n.domNode,"scroll",function(e){return l(n.domNode,!0,!0)})),o._register(r.h(t.domNode,"scroll",function(e){return l(t.domNode,!0,!1)})),o._register(r.h(i.domNode,"scroll",function(e){return l(i.domNode,!0,!1)})),o._register(r.h(o.scrollbarDomNode.domNode,"scroll",function(e){return l(o.scrollbarDomNode.domNode,!0,!1)})),o}n(2075);var ui,ci,di=(ui=function(e,t){return(ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ui(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),hi=function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)},pi=(di(fi,ci=wt),fi.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++)i[o-e]=[];if(0===n.length)return i;n.sort(function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',s=[],a=t;a<=n;a++){var l=a-t,u=i[l];0===u.length?s[l]="":s[l]='
=this._renderResult.length?"":this._renderResult[n]},vi);function vi(e){var t=gi.call(this)||this;return t._context=e,t._lineHeight=t._context.configuration.editor.lineHeight,t._glyphMargin=t._context.configuration.editor.viewInfo.glyphMargin,t._glyphMarginLeft=t._context.configuration.editor.layoutInfo.glyphMarginLeft,t._glyphMarginWidth=t._context.configuration.editor.layoutInfo.glyphMarginWidth,t._renderResult=null,t._context.addEventHandler(t),t}n(2076);var yi,bi,_i=((yi=function(e,t){return(yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}yi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(wi,bi=wt),wi.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,bi.prototype.dispose.call(this)},wi.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),!0},wi.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},wi.prototype.onDecorationsChanged=function(e){return!0},wi.prototype.onFlushed=function(e){return!0},wi.prototype.onLinesChanged=function(e){return!0},wi.prototype.onLinesDeleted=function(e){return!0},wi.prototype.onLinesInserted=function(e){return!0},wi.prototype.onScrollChanged=function(e){return e.scrollTopChanged},wi.prototype.onZonesChanged=function(e){return!0},wi.prototype.onLanguageConfigurationChanged=function(e){return!0},wi.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getOptions().indentSize*this._spaceWidth,o=e.scrollWidth,r=this._lineHeight,s=this._context.model.getLinesIndentGuides(t,n),a=0,l=0,u=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var c=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);a=c.startLineNumber,l=c.endLineNumber,u=c.indent}for(var d=[],h=t;h<=n;h++){for(var p=a<=h&&h<=l,f=h-t,g=s[f],m="",v=e.visibleRangeForPosition(new Le.a(h,1)),y=v?v.left:0,b=1;b<=g&&(m+='
',!(o<(y+=i)));b++);d[f]=m}this._renderResult=d}else this._renderResult=null},wi.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},wi);function wi(e){var t=bi.call(this)||this;return t._context=e,t._primaryLineNumber=0,t._lineHeight=t._context.configuration.editor.lineHeight,t._spaceWidth=t._context.configuration.editor.fontInfo.spaceWidth,t._enabled=t._context.configuration.editor.viewInfo.renderIndentGuides,t._activeIndentEnabled=t._context.configuration.editor.viewInfo.highlightActiveIndentGuide,t._renderResult=null,t._context.addEventHandler(t),t}Object(le.e)(function(e,t){var n=e.getColor(Ot.l);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(Ot.a)||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")}),n(2077);var Ci,xi=(Ci=function(e,t){return(Ci=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ci(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Si=(Oi.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},Oi.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},Oi);function Oi(){this._currentVisibleRange=new Me.a(1,1,1,1)}var ki,Li=function(e,t,n,i,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=r},Mi=(xi(Ei,ki=V),Ei.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),ki.prototype.dispose.call(this)},Ei.prototype.getDomNode=function(){return this.domNode},Ei.prototype.createVisibleLine=function(){return new me(this._viewLineOptions)},Ei.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&c.a.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0},Ei.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new fe(e,this._context.theme.type);if(this._viewLineOptions.equals(t))return!1;this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),o=n;o<=i;o++)this._visibleLines.getVisibleLine(o).onOptionsChanged(this._viewLineOptions);return!0},Ei.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,o=t;o<=n;o++)i=this._visibleLines.getVisibleLine(o).onSelectionChanged()||i;return i},Ei.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},Ei.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},Ei.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},Ei.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},Ei.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},Ei.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new Li(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},Ei.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopn)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},Ei.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},Ei.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},Ei.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},Ei.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new Le.a(i,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(iu&&(u=h.left+h.width)}return i=u,l=Math.max(0,l-Ei.HORIZONTAL_EXTRA_PX),u+=this._revealHorizontalRightPadding,{scrollLeft:this._computeMinimumScrolling(r,s,l,u),maxHorizontalOffset:i}},Ei.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){o=!!o,r=!!r;var s=(t|=0)-(e|=0);return(i|=0)-(n|=0)
',r=[],s=t;s<=n;s++){for(var a=s-t,l=i[a],u="",c=0,d=l.length;c';o[s]=l}this._renderResult=o},Fi.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},Fi);function Fi(e){var t=Ai.call(this)||this;return t._context=e,t._renderResult=null,t._context.addEventHandler(t),t}n(2080);var ji=(Wi._clamp=function(e){return e<0?0:255=this._colors.length)&&(e=2),this._colors[e]},zi.prototype.backgroundIsLight=function(){return this._backgroundIsLight},zi._INSTANCE=null,zi);function zi(){var e=this;this._onDidChange=new a.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Bi.y.onDidChange(function(t){t.changedColorMap&&e._updateColorMap()})}var Hi=(Ui.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,o=e.length;ie.width||n+4>e.height)console.warn("bad render request outside image data");else{var a=s?this.x2charDataLight:this.x2charData,l=Ui._getChIndex(i),u=4*e.width,c=r.r,d=r.g,h=r.b,p=o.r-c,f=o.g-d,g=o.b-h,m=e.data,v=4*l*2,y=n*u+4*t,b=a[v]/255;m[y+0]=c+p*b,m[y+1]=d+f*b,m[y+2]=h+g*b,b=a[1+v]/255,m[y+4]=c+p*b,m[y+5]=d+f*b,m[y+6]=h+g*b,y+=u,b=a[2+v]/255,m[y+0]=c+p*b,m[y+1]=d+f*b,m[y+2]=h+g*b,b=a[3+v]/255,m[y+4]=c+p*b,m[y+5]=d+f*b,m[y+6]=h+g*b,y+=u,b=a[4+v]/255,m[y+0]=c+p*b,m[y+1]=d+f*b,m[y+2]=h+g*b,b=a[5+v]/255,m[y+4]=c+p*b,m[y+5]=d+f*b,m[y+6]=h+g*b,y+=u,b=a[6+v]/255,m[y+0]=c+p*b,m[y+1]=d+f*b,m[y+2]=h+g*b,b=a[7+v]/255,m[y+4]=c+p*b,m[y+5]=d+f*b,m[y+6]=h+g*b}},Ui.prototype.x1RenderChar=function(e,t,n,i,o,r,s){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var a=s?this.x1charDataLight:this.x1charData,l=Ui._getChIndex(i),u=4*e.width,c=r.r,d=r.g,h=r.b,p=o.r-c,f=o.g-d,g=o.b-h,m=e.data,v=2*l*1,y=n*u+4*t,b=a[v]/255;m[y+0]=c+p*b,m[y+1]=d+f*b,m[y+2]=h+g*b,y+=u,b=a[1+v]/255,m[y+0]=c+p*b,m[y+1]=d+f*b,m[y+2]=h+g*b}},Ui.prototype.x2BlockRenderChar=function(e,t,n,i,o,r){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,l=o.g,u=o.b,c=a+.5*(i.r-a),d=l+.5*(i.g-l),h=u+.5*(i.b-u),p=e.data,f=n*s+4*t;p[f+0]=c,p[f+1]=d,p[f+2]=h,p[f+4]=c,p[f+5]=d,p[f+6]=h,p[(f+=s)+0]=c,p[f+1]=d,p[f+2]=h,p[f+4]=c,p[f+5]=d,p[f+6]=h,p[(f+=s)+0]=c,p[f+1]=d,p[f+2]=h,p[f+4]=c,p[f+5]=d,p[f+6]=h,p[(f+=s)+0]=c,p[f+1]=d,p[f+2]=h,p[f+4]=c,p[f+5]=d,p[f+6]=h}},Ui.prototype.x1BlockRenderChar=function(e,t,n,i,o,r){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,l=o.g,u=o.b,c=a+.5*(i.r-a),d=l+.5*(i.g-l),h=u+.5*(i.b-u),p=e.data,f=n*s+4*t;p[f+0]=c,p[f+1]=d,p[f+2]=h,p[(f+=s)+0]=c,p[f+1]=d,p[f+2]=h}},Ui);function Ui(e,t){if(760!==e.length)throw new Error("Invalid x2CharData");if(190!==t.length)throw new Error("Invalid x1CharData");this.x2charData=e,this.x1charData=t,this.x2charDataLight=Ui.soften(e,.8),this.x1charDataLight=Ui.soften(t,50/60)}function Ki(e){for(var t=new Uint8ClampedArray(e.length),n=0,i=e.length;ns&&(b=Math.min(b,l.startLineNumber)),l.scrollTop=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=io.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,0'},Xo.prototype._actualRenderOneSelection=function(e,t,n,i){for(var o=0=this._renderResult.length?"":this._renderResult[n]},Xo.SELECTION_CLASS_NAME="selected-text",Xo.SELECTION_TOP_LEFT="top-left-radius",Xo.SELECTION_BOTTOM_LEFT="bottom-left-radius",Xo.SELECTION_TOP_RIGHT="top-right-radius",Xo.SELECTION_BOTTOM_RIGHT="bottom-right-radius",Xo.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",Xo.ROUNDED_PIECE_WIDTH=10,Xo);function Xo(e){var t=Go.call(this)||this;return t._previousFrameVisibleRangesWithStyle=[],t._context=e,t._lineHeight=t._context.configuration.editor.lineHeight,t._roundedSelection=t._context.configuration.editor.viewInfo.roundedSelection,t._typicalHalfwidthCharacterWidth=t._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,t._selections=[],t._renderResult=null,t._context.addEventHandler(t),t}function Zo(e){return e<0?-e:e}Object(le.e)(function(e,t){var n=e.getColor(Ji.B);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(Ji.A);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var o=e.getColor(Ji.C);o&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+o+"; }")}),n(2085);var Jo=n(1481),Qo=function(e,t,n,i,o,r){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=o,this.textContentClassName=r},$o=(er.prototype.getDomNode=function(){return this._domNode},er.prototype.getPosition=function(){return this._position},er.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},er.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},er.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(c.a.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},er.prototype.onCursorPositionChanged=function(e){return this.updatePosition(e),!0},er.prototype._prepareRender=function(e){var t="",n="";if(this._cursorStyle===Jo.g.Line||this._cursorStyle===Jo.g.LineThin){var i,o=e.visibleRangeForPosition(this._position);if(!o)return null;this._cursorStyle===Jo.g.Line?2<(i=r.o(0t.length){var r=this._secondaryCursors.length-t.length;for(i=0;i=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},Nr.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;td&&x.index--}e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),o--}}}},Nr);function Nr(e){this.context=e,this.primaryCursor=new Mr(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}var Ir,Tr=n(1866),Pr=n(1796),Ar=n(1545),Rr=(Ir=function(e,t){return(Ir=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ir(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Fr=function(e,t,n){this.selections=e,this.source=t,this.reason=n},jr=(Wr.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;tzr.MAX_CURSOR_COUNT&&(n=n.slice(0,zr.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var i=new jr(this._model,this);this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._emitStateChangedIfNecessary(e,t,i)},zr.prototype.setColumnSelectData=function(e){this._columnSelectData=e},zr.prototype.reveal=function(e,t,n){this._revealRange(t,0,e,n)},zr.prototype.revealRange=function(e,t,n,i){this.emitCursorRevealRange(t,n,e,i)},zr.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},zr.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;no.identifier.major?i.identifier.major:o.identifier.major).toString()]=!0;for(var s=0;s>>1;t===e[s]?i=t.length||t[1+o]>=e)return o;n=1+o|0}else i=o-1|0}return-1},Zr.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(e=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},is.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},is.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},is.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new ts.f(t.scrollTop,t.scrollLeft,e.width,e.height)},is.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new ts.f(t.scrollTop,t.scrollLeft,e.width,e.height)},is.prototype._computeScrollWidth=function(e,t){if(this._configuration.editor.wrappingInfo.isViewportWrapping)return Math.max(e,t);var n=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,i=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,t,i)},is.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},is.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},is.prototype.addWhitespace=function(e,t,n,i){return this._linesLayout.insertWhitespace(e,t,n,i)},is.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)},is.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},is.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},is.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},is.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},is.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},is.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},is.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},is.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},is.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},is.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},is.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},is.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},is.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop},is.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},is.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},is.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},is.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},is);function is(e,t,n){var i=es.call(this)||this;return i._configuration=e,i._linesLayout=new Jr(t,i._configuration.editor.lineHeight),i.scrollable=i._register(new Yr.a(0,n)),i._configureSmoothScrollDuration(),i.scrollable.setScrollDimensions({width:e.editor.layoutInfo.contentWidth,height:e.editor.layoutInfo.contentHeight}),i.onDidScroll=i.scrollable.onScroll,i._updateHeight(),i}var os=n(1560),rs=n(1674),ss=n(1773),as=n(1444),ls=function(e,t){this.outputLineIndex=e,this.outputOffset=t},us=(cs.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},cs.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Me.a(t.lineNumber,t.column,n.lineNumber,n.column)},cs.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},cs.prototype.validateViewRange=function(e,t){var n=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Me.a(n.lineNumber,n.column,i.lineNumber,i.column)},cs.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},cs.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new Me.a(t.lineNumber,t.column,n.lineNumber,n.column)},cs.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},cs);function cs(e){this._lines=e}var ds=(hs.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},hs.prototype.createCoordinatesConverter=function(){return new us(this)},hs.prototype._ensureValidState=function(){if(this.model.getVersionId()!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},hs.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),i=n.length,o=new Uint32Array(i),r=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(Me.a.compareRangesUsingStarts),s=1,a=0,l=-1,u=l+1r+1?(i.push(new Me.a(o,1,r,1)),o=l.startLineNumber,r=l.endLineNumber):l.endLineNumber>r&&(r=l.endLineNumber)}return i.push(new Me.a(o,1,r,1)),i},hs.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(Me.a.compareRangesUsingStarts);if(n.length===i.length){for(var o=!1,r=0;rthis.lines.length)&&this.lines[e-1].isVisible()},hs.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0)},hs.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},hs.prototype.onModelFlushed=function(){this._constructLines(!0)},hs.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new Ht(i,o)},hs.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),r=!1,s=new Le.a(t,1),a=0,l=o;at.id?1:0:n});for(var d=[],h=0,p=null,f=0,g=r;ft)},ws);function ws(e){this._lines=e}var Cs=(xs.prototype.dispose=function(){},xs.prototype.createCoordinatesConverter=function(){return new _s(this)},xs.prototype.getHiddenAreas=function(){return[]},xs.prototype.setHiddenAreas=function(e){return!1},xs.prototype.setTabSize=function(e){return!1},xs.prototype.setWrappingSettings=function(e,t,n){return!1},xs.prototype.onModelFlushed=function(){},xs.prototype.onModelLinesDeleted=function(e,t,n){return new Ht(t,n)},xs.prototype.onModelLinesInserted=function(e,t,n,i){return new Ut(t,n)},xs.prototype.onModelLineChanged=function(e,t,n){return[!1,new zt(t,t),null,null]},xs.prototype.acceptVersionId=function(e){},xs.prototype.getViewLineCount=function(){return this.model.getLineCount()},xs.prototype.warmUpLookupCache=function(e,t){},xs.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},xs.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),o=0;o'+this._getHTMLToCopy(n,r)+""},Ws.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize(),a="",l=n;l<=o;l++){var u=this.model.getLineTokens(l),c=u.getLineContent(),d=l===n?i-1:0,h=l===o?r-1:c.length;a+=""===c?"
":Object(qr.a)(c,u.inflate(),t,d,h,s)}return a},Ws.prototype._getColorMap=function(){var e=Bi.y.getColorMap(),t=["#000000"];if(e)for(var n=1,i=e.length;n");function ma(e){return fa+encodeURIComponent(e.toString())+ga}var va=encodeURIComponent('');Object(le.e)(function(e,t){var n=e.getColor(Ot.h);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(Ot.i);i&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+ma(i)+'") repeat-x bottom left; }');var o=e.getColor(Ot.v);o&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(Ot.w);r&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+ma(r)+'") repeat-x bottom left; }');var s=e.getColor(Ot.m);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(Ot.n);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+ma(a)+'") repeat-x bottom left; }');var l=e.getColor(Ot.j);l&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+l+"; }");var u=e.getColor(Ot.k);u&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+(va+encodeURIComponent(u.toString())+ya)+'") no-repeat bottom left; }');var c=e.getColor(Ot.u);c&&t.addRule("."+Zs+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=e.getColor(Ot.t);d&&t.addRule("."+Zs+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }")})},function(e,t,n){"use strict";n.d(t,"a",function(){return mt}),n(2098);var i=n(1418),o=n(1444),r=n(1414),s=(n(2099),n(1415)),a=n(1426),l=n(1431),u=(c.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},c.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return!!(n&&n===t&&0 .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},N);function N(e,t){this.styleElement=e,this.selectorSuffix=t}var I,T=n(1758),P=n(1410),A=n(1412),R=(I=function(e,t){return(I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),F=(Object.defineProperty(j.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),j.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},j);function j(e){this._onDispose=new A.a,this.onDispose=this._onDispose.event,this._item=e}var W=(B.prototype.isLocked=function(e){return!!this.locks[e.id]},B.prototype.run=function(e,t){var n=this,i=this.getLock(e);return i?new Promise(function(o,r){A.b.once(i.onDispose)(function(){return n.run(e,t).then(o,r)})}):new Promise(function(i,o){if(e.isDisposed())return o(new Error("Item is disposed."));var r=n.locks[e.id]=new F(e);return t().then(function(t){return delete n.locks[e.id],r.dispose(),t}).then(i,o)})},B.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n}return null},B);function B(){this.locks=Object.create({})}var V=(z.prototype.register=function(e){T.a(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Object(P.c)([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t}},z.prototype.deregister=function(e){T.a(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},z.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},z.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},z.prototype.dispose=function(){this.items=null,this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},z.prototype.isDisposed=function(){return this._isDisposed},z);function z(){this._isDisposed=!1,this._onDidRevealItem=new A.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new A.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new A.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new A.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new A.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new A.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new A.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new A.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new A.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new A.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new A.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}var H=(U.prototype.getElement=function(){return this.element},U.prototype.hasChildren=function(){return this.doesHaveChildren},U.prototype.getDepth=function(){return this.depth},U.prototype.isVisible=function(){return this.visible},U.prototype.setVisible=function(e){this.visible=e},U.prototype.isExpanded=function(){return this.expanded},U.prototype._setExpanded=function(e){this.expanded=e},U.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},U.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null)).then(function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0})}).then(function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then(function(){return!0}):t)})},U.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Promise.resolve(null);return this.forEachChild(function(e){n=n.then(function(){return e.collapse(!0)})}),n.then(function(){return t.collapse(!1)})}return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)})},U.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},U.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},U.prototype.hasTrait=function(e){return this.traits[e]||!1},U.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},U.prototype.getHeight=function(){return this.height},U.prototype.refreshChildren=function(e,t,n){var i=this;if(void 0===t&&(t=!1),void 0===n&&(n=!1),!n&&!this.isExpanded())return function e(t){t.needsChildrenRefresh=!0,t.forEachChild(e)}(this),Promise.resolve(this);function o(){var n={item:i,isNested:t};return i._onRefreshChildren.fire(n),(i.doesHaveChildren?i.context.dataSource.getChildren(i.context.tree,i.element):Promise.resolve([])).then(function(t){if(i.isDisposed()||i.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(t))return Promise.reject(new Error("Please return an array of children."));t=t?t.slice(0):[],t=i.sort(t);for(var n={};null!==i.firstChild;)n[i.firstChild.id]=i.firstChild,i.removeChild(i.firstChild);for(var o=0,r=t.length;o=n.top+n.height))return t;if(i===t)break;i=t}return this.heightMap.length},pe.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},pe.prototype.itemAtIndex=function(e){return this.heightMap[e]},pe.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},pe.prototype.createViewItem=function(e){throw new Error("not implemented")},pe.prototype.dispose=function(){this.heightMap=[],this.indexes={}},pe);function pe(){this.heightMap=[],this.indexes={}}var fe,ge=(fe=function(e,t){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}fe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),me=(ve.prototype.preventDefault=function(){},ve.prototype.stopPropagation=function(){},Object.defineProperty(ve.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),ve);function ve(e,t,n){this._posx=e,this._posy=t,this._target=n}var ye,be=(ge(_e,ye=me),_e.prototype.preventDefault=function(){this.originalEvent.preventDefault()},_e.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},_e);function _e(e){var t=ye.call(this,e.posx,e.posy,e.target)||this;return t.originalEvent=e,t}var we,Ce=(ge(xe,we=me),xe.prototype.preventDefault=function(){this.originalEvent.preventDefault()},xe.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},xe);function xe(e,t,n){var i=we.call(this,e,t,n.target)||this;return i.originalEvent=n,i}var Se,Oe=n(1778),ke=n(1422),Le=(Se=function(e,t){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Me=(Ee.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var i=document.createElement("div");i.appendChild(n);var o=null;try{o=this.context.renderer.renderTemplate(this.context.tree,e,n)}catch(e){console.error("Tree usage error: exception while rendering template"),console.error(e)}t={element:i,templateId:e,templateData:o}}return t},Ee.prototype.release=function(e,t){!function(e){try{e.parentElement.removeChild(e)}catch(e){}}(t.element),this.cache(e).push(t)},Ee.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},Ee.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach(function(t){e._cache[t].forEach(function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData),n.element=null,n.templateData=null}),delete e._cache[t]})},Ee.prototype.dispose=function(){this.garbageCollect(),this._cache=null},Ee);function Ee(e){this.context=e,this._cache={"":[]}}var De=(Object.defineProperty(Ne.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"loading",{set:function(e){e?this.addClass("loading"):this.removeClass("loading")},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(Ne.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),Ne.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},Ne.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},Ne.prototype.render=function(e){var t=this;if(void 0===e&&(e=!1),this.model&&this.element){var n=["monaco-tree-row"];n.push.apply(n,Object.keys(this._styles)),this.model.hasChildren()&&n.push("has-children"),this.element.className=n.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var i=this.context.accessibilityProvider,o=i.getAriaLabel(this.context.tree,this.model.getElement());if(o&&this.element.setAttribute("aria-label",o),i.getPosInSet&&i.getSetSize&&(this.element.setAttribute("aria-setsize",i.getSetSize()),this.element.setAttribute("aria-posinset",i.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var s=te.F(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",s)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles.expanded)):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var a=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(a!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),a?(this.uri=a,this.draggable=!0,this.unbindDragStart=r.h(this.element,"dragstart",function(e){t.onDragStart(e)})):this.uri=null),!e&&this.element){var l=0;if(this.context.horizontalScrolling){var u=window.getComputedStyle(this.element);l=parseFloat(u.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width="fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(e){console.error("Tree usage error: exception while rendering element"),console.error(e)}this.context.horizontalScrolling&&(this.width=r.u(this.element)+l,this.element.style.width="")}}},Ne.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[Re.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(t){console.warn("Failed to locate previous tree element"),e.appendChild(this.element)}this.render()}},Ne.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart.dispose(),this.uri=null,this.element[Re.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},Ne.prototype.dispose=function(){this.row=null},Ne);function Ne(e,t){var n=this;this.width=0,this.unbindDragStart=P.a.None,this.context=e,this.model=t,this.id=this.model.id,this.row=null,this.top=0,this.height=t.getHeight(),this._styles={},t.getAllTraits().forEach(function(e){return n._styles[e]=!0}),t.isExpanded()&&this.addClass("expanded")}var Ie,Te=(Le(Pe,Ie=De),Pe.prototype.render=function(){if(this.model&&this.element){var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles)),this.model.hasChildren()&&e.push("has-children"),this.element.className=e.join(" ")}},Pe.prototype.insertInDOM=function(e,t){},Pe.prototype.removeFromDOM=function(){},Pe);function Pe(e,t,n){var i=Ie.call(this,e,t)||this;return i.row={element:n,templateData:null,templateId:null},i}var Ae,Re=(Le(Fe,Ae=he),Object.defineProperty(Fe.prototype,"onDOMFocus",{get:function(){return this._onDOMFocus.event},enumerable:!0,configurable:!0}),Fe.prototype.applyStyles=function(e){this.treeStyler.style(e)},Fe.prototype.createViewItem=function(e){return new De(this.context,e)},Fe.prototype.getHTMLElement=function(){return this.domNode},Fe.prototype.focus=function(){this.domNode.focus()},Fe.prototype.isFocused=function(){return document.activeElement===this.domNode},Fe.prototype.blur=function(){this.domNode.blur()},Fe.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return e.msGesture.target=e.wrapper},100))},Fe.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},Fe.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||r.t(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||r.u(this.wrapper)))},Fe.prototype.render=function(e,t,n,i,o){var r,s,a=e,l=e+t,u=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(l)-1,s=this.indexAt(Math.max(u,a));s<=r;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(l))-1,s=this.indexAt(a);s<=r;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(u));rthis.lastRenderTop},Fe.prototype.getItemAround=function(e){var t=this.inputItem,n=e;do{if(n[Fe.BINDING]&&(t=n[Fe.BINDING]),n===this.wrapper||n===this.domNode)return t;if(n===this.scrollableElement.getDomNode()||n===document.body)return}while(n=n.parentElement)},Fe.prototype.releaseModel=function(){this.model&&(this.modelListeners=P.d(this.modelListeners),this.model=null)},Fe.prototype.dispose=function(){var e=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=P.d(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach(function(t){return e.items[t].removeFromDOM()}),this.context.cache&&this.context.cache.dispose(),Ae.prototype.dispose.call(this)},Fe.BINDING="monaco-tree-row",Fe.LOADING_DECORATION_DELAY=800,Fe.counter=0,Fe);function Fe(e,t){var n=Ae.call(this)||this;n.model=null,n.lastClickTimeStamp=0,n.contentWidthUpdateDelayer=new ke.a(50),n.isRefreshing=!1,n.refreshingPreviousChildrenIds={},n.currentDragAndDropData=null,n.currentDropTarget=null,n.currentDropTargets=null,n.currentDropDisposable=P.a.None,n.dragAndDropScrollInterval=null,n.dragAndDropScrollTimeout=null,n.dragAndDropMouseY=null,n.onHiddenScrollTop=null,n._onDOMFocus=new A.a,n._onDOMBlur=new A.a,n._onDidScroll=new A.a,Fe.counter++,n.instance=Fe.counter;var i=void 0===e.options.horizontalScrollMode?2:e.options.horizontalScrollMode;n.horizontalScrolling=2!==i,n.context={dataSource:e.dataSource,renderer:e.renderer,controller:e.controller,dnd:e.dnd,filter:e.filter,sorter:e.sorter,tree:e.tree,accessibilityProvider:e.accessibilityProvider,options:e.options,cache:new Me(e),horizontalScrolling:n.horizontalScrolling},n.modelListeners=[],n.viewListeners=[],n.items={},n.domNode=document.createElement("div"),n.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+n.instance,n.domNode.tabIndex=e.options.preventRootFocus?-1:0,n.styleElement=r.q(n.domNode),n.treeStyler=e.styler||new D(n.styleElement,"monaco-tree-instance-"+n.instance),n.domNode.setAttribute("role","tree"),n.context.options.ariaLabel&&n.domNode.setAttribute("aria-label",n.context.options.ariaLabel),n.context.options.alwaysFocused&&r.f(n.domNode,"focused"),n.context.options.paddingOnRow||r.f(n.domNode,"no-row-padding"),n.wrapper=document.createElement("div"),n.wrapper.className="monaco-tree-wrapper",n.scrollableElement=new de.b(n.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:i,vertical:void 0!==e.options.verticalScrollMode?e.options.verticalScrollMode:1,useShadows:e.options.useShadows}),n.scrollableElement.onScroll(function(e){n.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),n._onDidScroll.fire()}),Q.j?(n.wrapper.style.msTouchAction="none",n.wrapper.style.msContentZooming="none"):ee.b.addTarget(n.wrapper),n.rowsContainer=document.createElement("div"),n.rowsContainer.className="monaco-tree-rows",e.options.showTwistie&&(n.rowsContainer.className+=" show-twisties");var o=r.Q(n.domNode);return n.viewListeners.push(o.onDidFocus(function(){return n.onFocus()})),n.viewListeners.push(o.onDidBlur(function(){return n.onBlur()})),n.viewListeners.push(o),n.viewListeners.push(r.h(n.domNode,"keydown",function(e){return n.onKeyDown(e)})),n.viewListeners.push(r.h(n.domNode,"keyup",function(e){return n.onKeyUp(e)})),n.viewListeners.push(r.h(n.domNode,"mousedown",function(e){return n.onMouseDown(e)})),n.viewListeners.push(r.h(n.domNode,"mouseup",function(e){return n.onMouseUp(e)})),n.viewListeners.push(r.h(n.wrapper,"auxclick",function(e){e&&1===e.button&&n.onMouseMiddleClick(e)})),n.viewListeners.push(r.h(n.wrapper,"click",function(e){return n.onClick(e)})),n.viewListeners.push(r.h(n.domNode,"contextmenu",function(e){return n.onContextMenu(e)})),n.viewListeners.push(r.h(n.wrapper,ee.a.Tap,function(e){return n.onTap(e)})),n.viewListeners.push(r.h(n.wrapper,ee.a.Change,function(e){return n.onTouchChange(e)})),Q.j&&(n.viewListeners.push(r.h(n.wrapper,"MSPointerDown",function(e){return n.onMsPointerDown(e)})),n.viewListeners.push(r.h(n.wrapper,"MSGestureTap",function(e){return n.onMsGestureTap(e)})),n.viewListeners.push(r.j(n.wrapper,"MSGestureChange",function(e){return n.onThrottledMsGestureChange(e)},function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}))),n.viewListeners.push(r.h(window,"dragover",function(e){return n.onDragOver(e)})),n.viewListeners.push(r.h(n.wrapper,"drop",function(e){return n.onDrop(e)})),n.viewListeners.push(r.h(window,"dragend",function(e){return n.onDragEnd(e)})),n.viewListeners.push(r.h(window,"dragleave",function(e){return n.onDragOver(e)})),n.wrapper.appendChild(n.rowsContainer),n.domNode.appendChild(n.scrollableElement.getDomNode()),t.appendChild(n.domNode),n.lastRenderTop=0,n.lastRenderHeight=0,n.didJustPressContextMenuKey=!1,n.currentDropTarget=null,n.currentDropTargets=[],n.shouldInvalidateDropReaction=!1,n.dragAndDropScrollInterval=null,n.dragAndDropScrollTimeout=null,n.onRowsChanged(),n.layout(),n.setupMSGesture(),n.applyStyles(e.options),n}var je=n(1440),We=n(1443),Be=function(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new C({clickBehavior:1,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new S,this.filter=t.filter||new k,this.sorter=t.sorter,this.accessibilityProvider=t.accessibilityProvider||new M,this.styler=t.styler},Ve={listFocusBackground:je.a.fromHex("#073655"),listActiveSelectionBackground:je.a.fromHex("#0E639C"),listActiveSelectionForeground:je.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:je.a.fromHex("#094771"),listFocusAndSelectionForeground:je.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:je.a.fromHex("#3F3F46"),listHoverBackground:je.a.fromHex("#2A2D2E"),listDropBackground:je.a.fromHex("#383B3D")},ze=(He.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(He.prototype,"onDidFocus",{get:function(){return this.view&&this.view.onDOMFocus},enumerable:!0,configurable:!0}),He.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},He.prototype.layout=function(e,t){this.view.layout(e,t)},He.prototype.domFocus=function(){this.view.focus()},He.prototype.isDOMFocused=function(){return this.view.isFocused()},He.prototype.domBlur=function(){this.view.blur()},He.prototype.setInput=function(e){return this.model.setInput(e)},He.prototype.getInput=function(){return this.model.getInput()},He.prototype.expand=function(e){return this.model.expand(e)},He.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},He.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},He.prototype.isExpanded=function(e){return this.model.isExpanded(e)},He.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},He.prototype.getHighlight=function(){return this.model.getHighlight()},He.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},He.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},He.prototype.getSelection=function(){return this.model.getSelection()},He.prototype.clearSelection=function(e){this.model.setSelection([],e)},He.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},He.prototype.getFocus=function(){return this.model.getFocus()},He.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},He.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},He.prototype.focusParent=function(e){this.model.focusParent(e)},He.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},He.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},He.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},He.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},He.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},He.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},He.prototype.clearFocus=function(e){this.model.setFocus(null,e)},He.prototype.dispose=function(){this._onDispose.fire(),null!==this.model&&(this.model.dispose(),this.model=null),null!==this.view&&(this.view.dispose(),this.view=null),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},He);function He(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new A.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new A.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new A.f,this._onDidExpandItem=new A.f,this._onDidCollapseItem=new A.f,this._onDispose=new A.a,this.onDidDispose=this._onDispose.event,this.container=e,Object(We.g)(n,Ve,!1),n.twistiePixels="number"==typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"==typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,n.showLoading=!1!==n.showLoading,this.context=new Be(this,t,n),this.model=new Z(this.context),this.view=new Re(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}n(2101);var Ue,Ke,Ge=(Ue=function(e,t){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),qe={progressBarBackground:je.a.fromHex("#0E70C0")},Ye=(Ge(Xe,Ke=P.a),Xe.prototype.create=function(e){this.element=document.createElement("div"),Object(r.f)(this.element,"monaco-progress-container"),e.appendChild(this.element),this.bit=document.createElement("div"),Object(r.f)(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()},Xe.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(r.H)(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0},Xe.prototype.stop=function(){return this.doDone(!1)},Xe.prototype.doDone=function(e){var t=this;return Object(r.f)(this.element,"done"),Object(r.A)(this.element,"infinite")?this.bit.style.opacity="0":this.bit.style.width="inherit",e?setTimeout(function(){return t.off()},200):this.off(),this},Xe.prototype.hide=function(){Object(r.B)(this.element),this.showDelayedScheduler.cancel()},Xe.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},Xe.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():null;this.bit.style.backgroundColor=e}},Xe);function Xe(e,t){var n=Ke.call(this)||this;return n.options=t||Object.create(null),Object(We.g)(n.options,qe,!1),n.workedVal=0,n.progressBarBackground=n.options.progressBarBackground,n._register(n.showDelayedScheduler=new ke.d(function(){return Object(r.O)(n.element)},0)),n.create(e),n}var Ze,Je,Qe=(Ze=function(e,t){return(Ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Ze(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$e=(Qe(et,Je=C),et.prototype.onContextMenu=function(e,t,n){return a.d?this.onLeftClick(e,t,n):Je.prototype.onContextMenu.call(this,e,t,n)},et);function et(){return null!==Je&&Je.apply(this,arguments)||this}var tt,nt={background:je.a.fromHex("#1E1E1E"),foreground:je.a.fromHex("#CCCCCC"),pickerGroupForeground:je.a.fromHex("#0097FB"),pickerGroupBorder:je.a.fromHex("#3F3F46"),widgetShadow:je.a.fromHex("#000000"),progressBarBackground:je.a.fromHex("#0E70C0")},it=s.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),ot=(Qe(rt,tt=P.a),rt.prototype.getModel=function(){return this.model},rt.prototype.create=function(){var e=this;this.element=document.createElement("div"),r.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(r.h(this.element,r.d.CONTEXT_MENU,function(e){return r.c.stop(e,!0)})),this._register(r.h(this.element,r.d.FOCUS,function(t){return e.gainingFocus()},!0)),this._register(r.h(this.element,r.d.BLUR,function(t){return e.loosingFocus(t)},!0)),this._register(r.h(this.element,r.d.KEY_DOWN,function(t){var n=new ie.a(t);if(9===n.keyCode)r.c.stop(t,!0),e.hide(2);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var i=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===i[0]?(r.c.stop(t,!0),i[i.length-1].focus()):n.shiftKey||n.target!==i[i.length-1]||(r.c.stop(t,!0),i[0].focus())}})),this.progressBar=this._register(new Ye(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),r.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new v.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:it,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(r.h(this.inputBox.inputElement,r.d.INPUT,function(t){return e.onType()})),this._register(r.h(this.inputBox.inputElement,r.d.KEY_DOWN,function(t){var n=new ie.a(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)r.c.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){r.c.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?2:1)}})),this.resultCount=document.createElement("div"),r.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),r.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new ze(e,t,n)};return this.tree=this._register(t(this.treeContainer,{dataSource:new u(this),controller:new $e({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new g(this,this.styles),filter:new p(this),accessibilityProvider:new d(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:s.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(t){e.elementFocused(t.focus,t)})),this._register(this.tree.onDidChangeSelection(function(t){if(t.selection&&0n.autoFocusIndex&&(this.tree.focusNth(n.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):n.autoFocusSecondEntry?1t.children.length)throw new Error("Invalid tree location");return this.getTreeNode(i,t.children[n])},L.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),n=t.parentNode,i=t.listIndex,o=t.revealed,r=t.visible,s=e[e.length-1];if(s<0||s>n.children.length)throw new Error("Invalid tree location");var a=n.children[s];return{node:a,listIndex:i,revealed:o,visible:r&&a.visible}},L.prototype.getParentNodeWithListIndex=function(e,t,n,i,o){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0);var r=e[0],s=e.slice(1);if(r<0||r>t.children.length)throw new Error("Invalid tree location");for(var a=0;ao[0]&&r[1]=this.viewItems.length||(t="number"==typeof t?t:e.size,t=Object(ae.a)(t,e.view.minimumSize,e.view.maximumSize),this.inverseAltBehavior&&0=this.viewItems.length)){var i=this.viewItems[e];t=Math.round(t);var o=(t=Object(ae.a)(t,i.view.minimumSize,i.view.maximumSize))-i.size;if(0!==o&&e=this.viewItems.length?-1:this.viewItems[e].size},ge.prototype.resize=function(e,t,n,i,o,r,s){var a=this;if(void 0===n&&(n=this.viewItems.map(function(e){return e.size})),void 0===r&&(r=Number.NEGATIVE_INFINITY),void 0===s&&(s=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var l=Object(le.r)(e,-1),u=Object(le.r)(e+1,this.viewItems.length);if(o)for(var c=0,d=o;co[0]&&r[1] .monaco-list-row.selected:not(.highlighted) { background-color: "+u+"; }");var c=e.getColor(Ae);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+c+" !important; }");var d=e.getColor(Re);d&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+d+";}");var h=e.getColor(Fe);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}")})},function(e,t,n){"use strict";n.r(t),n.d(t,"SnippetController2",function(){return K});var i=n(1410),o=n(1413),r=n(1418),s=n(1411),a=n(1433),l=n(1432),u=n(1685),c=n(1428),d=n(1780),h=n(1430),p=(n(2116),n(1491)),f=n(1444),g=n(1870),m=n(1781),v=n(1421),y=n(1782),b=n(1415),_=n(1561),w=n(1460),C=n(1437),x="code-workspace",S=(O.prototype.resolve=function(e){for(var t=0,n=this._delegates;t ")+'"'},H.prototype.insert=function(){var e=this;if(this._editor.hasModel()){var t=this._editor.getModel(),n=H.createEditsAndSnippets(this._editor,this._template,this._overwriteBefore,this._overwriteAfter,!1,this._adjustWhitespace),i=n.edits,o=n.snippets;this._snippets=o;var r=t.pushEditOperations(this._editor.getSelections(),i,function(t){return e._snippets[0].hasPlaceholder?e._move(!0):t.map(function(e){return a.a.fromPositions(e.range.getEndPosition())})});this._editor.setSelections(r),this._editor.revealRange(r[0])}},H.prototype.merge=function(e,t,n,i){var o=this;if(void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=!0),this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);var r=H.createEditsAndSnippets(this._editor,e,t,n,!0,i),s=r.edits,l=r.snippets;this._editor.setSelections(this._editor.getModel().pushEditOperations(this._editor.getSelections(),s,function(e){for(var t=0,n=o._snippets;t")}},G.prototype._doInsert=function(e,t,n,o,r,s){var a=this;void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=!0),void 0===r&&(r=!0),void 0===s&&(s=!0),this._editor.hasModel()&&(this._snippetListener=Object(i.d)(this._snippetListener),o&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t,n,s):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new z(this._editor,e,t,n,s),this._session.insert()),r&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener=[this._editor.onDidChangeModelContent(function(e){return e.isFlush&&a.cancel()}),this._editor.onDidChangeModel(function(){return a.cancel()}),this._editor.onDidChangeCursorSelection(function(){return a._updateState()})])},G.prototype._updateState=function(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}},G.prototype._handleChoice=function(){var e=this;if(this._session&&this._editor.hasModel()){var t=this._session.choice;if(t){if(this._currentChoice!==t){this._currentChoice=t,this._editor.setSelections(this._editor.getSelections().map(function(e){return a.a.fromPositions(e.getStartPosition())}));var n=t.options[0];Object(u.f)(this._editor,t.options.map(function(t,i){return{kind:13,label:t.value,insertText:t.value,sortText:Object(o.D)("a",i+1),range:s.a.fromPositions(e._editor.getPosition(),e._editor.getPosition().delta(0,n.value.length))}}))}}else this._currentChoice=void 0}else this._currentChoice=void 0},G.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},G.prototype.cancel=function(e){void 0===e&&(e=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(i.d)(this._snippetListener),Object(i.d)(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])},G.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},G.prototype.next=function(){this._session&&this._session.next(),this._updateState()},G.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},G.InSnippetMode=new c.f("inSnippetMode",!1),G.HasNextTabstop=new c.f("hasNextTabstop",!1),G.HasPrevTabstop=new c.f("hasPrevTabstop",!1),G=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;0<=a;a--)(o=e[a])&&(s=(r<3?o(s):3=e+t&&i.push({index:s.index+n-t,templateData:s.templateData})}this.renderedElements=i},M.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){i++,o++;continue}e[i]=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){n.push(e[i]),i++,o++;continue}e[i]this.view.length)throw new Error("Invalid start index: "+e);if(t<0)throw new Error("Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents(function(){return i.spliceable.splice(e,t,n)})},he.prototype.rerender=function(){this.view.rerender()},he.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(he.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),he.prototype.domFocus=function(){this.view.domNode.focus()},he.prototype.layout=function(e,t){this.view.layout(e,t)},he.prototype.setSelection=function(e,t){for(var n=0,i=e;n=this.length)throw new Error("Invalid index "+o)}this.selection.set(e,t)},he.prototype.getSelection=function(){return this.selection.get()},he.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map(function(t){return e.view.element(t)})},he.prototype.setFocus=function(e,t){for(var n=0,i=e;n=this.length)throw new Error("Invalid index "+o)}this.focus.set(e,t)},he.prototype.focusNext=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var o=this.focus.get(),r=this.findNextIndex(0=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1},he.prototype.findPreviousIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i=this.length)throw new Error("Invalid index "+e);var n=this.view.getScrollTop(),i=this.view.elementTop(e),o=this.view.elementHeight(e);if(Object(a.f)(t)){var r=o-this.view.renderHeight;this.view.setScrollTop(r*Object(C.a)(t,0,1)+i)}else{var s=i+o,l=n+this.view.renderHeight;i=this.length)throw new Error("Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(nt+this.view.renderHeight)return null;var o=i-this.view.renderHeight;return Math.abs((t-n)/o)},he.prototype.getHTMLElement=function(){return this.view.domNode},he.prototype.open=function(e,t){for(var n=this,i=0,o=e;i=this.length)throw new Error("Invalid index "+r)}this._onDidOpen.fire({indexes:e,elements:e.map(function(e){return n.view.element(e)}),browserEvent:t})},he.prototype.pin=function(e){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+i)}this._onPin.fire(e)},he.prototype.style=function(e){this.styleController.style(e)},he.prototype.toListEvent=function(e){var t=this,n=e.indexes,i=e.browserEvent;return{indexes:n,elements:n.map(function(e){return t.view.element(e)}),browserEvent:i}},he.prototype._onFocusChange=function(){var e=this.focus.get();0=r.range.end)){if(e.end=this.items.length?(this.rangeMap=new p,this.rangeMap.splice(0,0,v),this.items=v,[]):(this.rangeMap.splice(e,t,v),(i=this.items).splice.apply(i,[e,t].concat(v)));var y=n.length-t,b=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=h(g,y),w=c.a.intersect(b,_);for(u=w.start;u=c[w+1]?(g=(h=c[w+1]-1)-k-l,L=w[m])return r[0]=c,s[0]=d,v<=w[m]&&l<=1448?this.WALKTRACE(C,h,p,S,x,f,g,O,_,w,c,t,r,d,o,s,k,a):null}var E=(L-e+(M-n)-l)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(L,this.OriginalSequence,E))return a[0]=!0,r[0]=L,s[0]=M,0=w[m+1]?w[m+1]-1:w[m-1])-(m-x)-O,v=c;e=_[m]&&l<=1448?this.WALKTRACE(C,h,p,S,x,f,g,O,_,w,c,t,r,d,o,s,k,a):null}if(l<=1447){var D=new Array(p-h+2);D[0]=C-h+1,u.Copy(_,h,D,1,p-h+1),this.m_forwardHistory.push(D),(D=new Array(g-f+2))[0]=x-f+1,u.Copy(w,f,D,1,g-f+1),this.m_reverseHistory.push(D)}}return this.WALKTRACE(C,h,p,S,x,f,g,O,_,w,c,t,r,d,o,s,k,a)},f.prototype.PrettifyChanges=function(e){for(var t=0;t=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},f.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(0=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},f.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(0=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var o=e.originalStart,r=e.originalLength,s=e.modifiedStart,l=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(l=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(o,r,s,l),!0}return n[0]=null,!1},f.prototype.ClipDiagonalBound=function(e,t,n,i){if(0<=e&&e ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:m,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=h(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=h(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=h(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",t._comment=//,t.html=h(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=h(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=h(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=v({},t),t.gfm=v({},t.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=h(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=v({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=v({},t.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),n.rules=t,n.lex=function(e,t){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,n){var i,o,r,s,a,l,u,c,d,h,p,f,g,m,v,_;for(e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),1 ?/gm,""),this.token(r,n),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),u={type:"list_start",ordered:m=1<(s=r[2]).length,start:m?+s:"",loose:!1},this.tokens.push(u),i=!(c=[]),g=(r=r[0].match(this.rules.item)).length,p=0;p?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",o.em=h(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=h(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=h(o.tag).replace("comment",t._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,o._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=h(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=h(o.reflink).replace("label",o._label).getRegex(),o.normal=v({},o),o.pedantic=v({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=v({},o.normal,{escape:h(o.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),e=e.substring(s[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0];else if(s=this.rules.link.exec(e)){var u=_(s[2],"()");if(-1$/,"$1"),l+=this.outputLink(s,{href:r.escapes(i),title:r.escapes(o)}),this.inLink=!1}else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),l+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),l+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),l+=this.renderer.codespan(c(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),l+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),l+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),i="@"===s[2]?"mailto:"+(n=c(this.mangle(s[1]))):n=c(s[1]),l+=this.renderer.link(i,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.inRawBlock?l+=this.renderer.text(s[0]):l+=this.renderer.text(c(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===s[2])i="mailto:"+(n=c(s[0]));else{for(;a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0],a!==s[0];);n=c(s[0]),i="www."===s[1]?"http://"+n:n}e=e.substring(s[0].length),l+=this.renderer.link(i,null,n)}return l},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e},r.prototype.outputLink=function(e,t){var n=t.href,i=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,c(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,o=0;o'+(n?e:c(e,!0))+"\n":"
"+(n?e:c(e,!0))+"
"},s.prototype.blockquote=function(e){return"
\n"+e+"
\n"},s.prototype.html=function(e){return e},s.prototype.heading=function(e,t,n,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},s.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},s.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},s.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},s.prototype.checkbox=function(e){return" "},s.prototype.paragraph=function(e){return"

    "+e+"

    \n"},s.prototype.table=function(e,t){return"\n\n"+e+"\n"+(t=t&&""+t+"")+"
    \n"},s.prototype.tablerow=function(e){return"\n"+e+"\n"},s.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},s.prototype.strong=function(e){return""+e+""},s.prototype.em=function(e){return""+e+""},s.prototype.codespan=function(e){return""+e+""},s.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},s.prototype.del=function(e){return""+e+""},s.prototype.link=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var i='
    "+n+""},s.prototype.image=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var i=''+n+'":">")},s.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},l.parse=function(e,t){return new l(t).parse(e)},l.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,v({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},l.prototype.next=function(){return this.token=this.tokens.pop()},l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},l.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},l.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,o="",r="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t))for(var n=t;this.seen[n]++,t=n+"-"+this.seen[n],this.seen.hasOwnProperty(t););return this.seen[t]=0,t},c.escapeTest=/[&<>"']/,c.escapeReplace=/[&<>"']/g,c.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},c.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,c.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function v(e){for(var t,n,i=1;it)n.splice(t);else for(;n.lengthAn error occurred:

    "+c(e.message+"",!0)+"
    ";throw e}}m.exec=m,w.options=w.setOptions=function(e){return v(w.defaults,e),w},w.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},w.defaults=w.getDefaults(),w.Parser=l,w.parser=l.parse,w.Renderer=s,w.TextRenderer=a,w.Lexer=n,w.lexer=n.lex,w.InlineLexer=r,w.inlineLexer=r.output,w.Slugger=u,i=w.parse=w}).call(void 0),i.Parser,i.parser;var l=i.Renderer,u=(i.TextRenderer,i.Lexer,i.lexer,i.InlineLexer,i.inlineLexer,i.parse),c=n(1417),d=n(1437),h=n(1854),p=n(1443);function f(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}function g(e,t){void 0===t&&(t={});var n=f(t);return n.textContent=e,n}function m(e,t){void 0===t&&(t={});var n=f(t);return function e(t,n,i){var r;if(2===n.type)r=document.createTextNode(n.content||"");else if(3===n.type)r=document.createElement("b");else if(4===n.type)r=document.createElement("i");else if(5===n.type&&i){var s=document.createElement("a");s.href="#",i.disposeables.push(o.k(s,"click",function(e){i.callback(String(n.index),e)})),r=s}else 7===n.type?r=document.createElement("br"):1===n.type&&(r=t);r&&t!==r&&t.appendChild(r),r&&Array.isArray(n.children)&&n.children.forEach(function(t){e(r,t,i)})}(n,function(e){for(var t={type:1,children:[]},n=0,i=t,o=[],r=new y(e);!r.eos();){var s=r.next(),a="\\"===s&&0!==_(r.peek());if(a&&(s=r.next()),a||0===_(s)||s!==r.peek())if("\n"===s)2===i.type&&(i=o.pop()),i.children.push({type:7});else if(2!==i.type){var l={type:2,content:s};i.children.push(l),o.push(i),i=l}else i.content+=s;else{r.advance(),2===i.type&&(i=o.pop());var u=_(s);if(i.type===u||5===i.type&&6===u)i=o.pop();else{var c={type:u,children:[]};5===u&&(c.index=n,n++),i.children.push(c),o.push(i),i=c}}}return 2===i.type&&(i=o.pop()),o.length,t}(e),t.actionHandler),n}function v(e,t){function n(t){var n=e.uris&&e.uris[t];if(!n)return t;var i=d.a.revive(n);return i.query&&(i=i.with({query:function(t){var n;try{n=Object(h.a)(decodeURIComponent(t))}catch(t){}return n?(n=Object(p.b)(n,function(t){return e.uris&&e.uris[t]?d.a.revive(e.uris[t]):void 0}),encodeURIComponent(JSON.stringify(n))):t}(i.query)})),n&&(t=i.toString(!0)),t}void 0===t&&(t={});var i,g=f(t),m=new Promise(function(e){return i=e}),v=new l;v.image=function(e,t,i){var o=[];if(e=n(e)){var r=e.split("|").map(function(e){return e.trim()});e=r[0];var s=r[1];if(s){var a=/height=(\d+)/.exec(s),l=/width=(\d+)/.exec(s),u=a?a[1]:"",c=l?l[1]:"",d=isFinite(parseInt(c)),h=isFinite(parseInt(u));d&&o.push('width="'+c+'"'),h&&o.push('height="'+u+'"')}}var p=[];return e&&p.push('src="'+e+'"'),i&&p.push('alt="'+i+'"'),t&&p.push('title="'+t+'"'),o.length&&(p=p.concat(o)),""},v.link=function(t,i,o){return t===o&&(o=Object(a.d)(o)),t=n(t),i=Object(a.d)(i),!(t=Object(a.d)(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?o:'/g,">").replace(/"/g,""").replace(/'/g,"'"))+'" title="'+(i||t)+'">'+o+""},v.paragraph=function(e){return"

    "+e+"

    "},t.codeBlockRenderer&&(v.code=function(e,n){var i=t.codeBlockRenderer(n,e),o=r.b.nextId(),a=Promise.all([i,m]).then(function(e){var t=e[0],n=g.querySelector('div[data-code="'+o+'"]');n&&(n.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'
    '+Object(s.m)(e)+"
    "}),t.actionHandler&&t.actionHandler.disposeables.push(o.k(g,"click",function(e){var n=e.target;if("A"===n.tagName||(n=n.parentElement)&&"A"===n.tagName)try{var i=n.dataset.href;i&&t.actionHandler.callback(i,e)}catch(e){Object(c.e)(e)}finally{e.preventDefault()}}));var y={sanitize:!0,renderer:v};return g.innerHTML=u(e.value,y),i(),g}var y=(b.prototype.eos=function(){return this.index>=this.source.length},b.prototype.next=function(){var e=this.peek();return this.advance(),e},b.prototype.peek=function(){return this.source[this.index]},b.prototype.advance=function(){this.index++},b);function b(e){this.source=e,this.index=0}function _(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"CoreEditorCommand",function(){return A}),n.d(t,"EditorScroll_",function(){return f}),n.d(t,"RevealLine_",function(){return m}),n.d(t,"CoreNavigationCommands",function(){return y}),n.d(t,"CoreEditingCommands",function(){return b});var i=n(1415),o=n(1431),r=n(1418),s=n(1445),a=n(1459),l=n(1420),u=n(1411),c=(d._columnSelect=function(e,t,n,i,o,r){for(var s=Math.abs(o-n)+1,c=ot.getLineCount()&&(o=t.getLineCount()),this.columnSelect(e,t,n.selection,o,r)},d);function d(){}var h,p,f,g,m,v,y,b,_,w,C,x,S,O,k,L,M=n(1866),E=n(1868),D=n(1796),N=n(1545),I=n(1432),T=n(1428),P=(h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=(p=r.c,P(R,p),R.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},R);function R(){return null!==p&&p.apply(this,arguments)||this}function F(){return null!==w&&w.apply(this,arguments)||this}function j(){return C.call(this,{id:"lineBreakInsert",precondition:I.a.writable,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:0,mac:{primary:301}}})||this}function W(){return x.call(this,{id:"outdent",precondition:I.a.writable,kbOpts:{weight:0,kbExpr:T.d.and(I.a.editorTextFocus,I.a.tabDoesNotMoveFocus),primary:1026}})||this}function B(){return S.call(this,{id:"tab",precondition:I.a.writable,kbOpts:{weight:0,kbExpr:T.d.and(I.a.editorTextFocus,I.a.tabDoesNotMoveFocus),primary:2}})||this}function V(){return O.call(this,{id:"deleteLeft",precondition:I.a.writable,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}function z(){return k.call(this,{id:"deleteRight",precondition:I.a.writable,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}function H(e){e.register()}(g=f=f||{}).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!o.g(e))return!1;var t=e;return!!o.h(t.to)&&!(!o.i(t.by)&&!o.h(t.by))&&!(!o.i(t.value)&&!o.f(t.value))&&!(!o.i(t.revealCursor)&&!o.c(t.revealCursor))},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},g.RawDirection={Up:"up",Down:"down"},g.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},g.parse=function(e){var t,n;switch(e.to){case g.RawDirection.Up:t=1;break;case g.RawDirection.Down:t=2;break;default:return null}switch(e.by){case g.RawUnit.Line:n=1;break;case g.RawUnit.WrappedLine:n=2;break;case g.RawUnit.Page:n=3;break;case g.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(v=m=m||{}).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!o.g(e))return!1;var t=e;return!!o.f(t.lineNumber)&&!(!o.i(t.at)&&!o.h(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},v.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t,n=(P(i,t=A),i.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[E.b.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0)},i);function i(e){var n=t.call(this,e)||this;return n._inSelectionMode=e.inSelectionMode,n}e.MoveTo=Object(r.g)(new n({id:"_moveTo",inSelectionMode:!1,precondition:null})),e.MoveToSelect=Object(r.g)(new n({id:"_moveToSelect",inSelectionMode:!0,precondition:null}));var o,s,d,h,p=(P(g,o=A),g.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map(function(e){return a.d.fromViewState(e)})),e.setColumnSelectData({toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(!0,n.reversed?1:2,0)},g);function g(){return null!==o&&o.apply(this,arguments)||this}function v(){return s.call(this,{id:"columnSelect",precondition:null})||this}function y(){return d.call(this,{id:"cursorColumnSelectLeft",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:3599,linux:{primary:0}}})||this}function b(){return h.call(this,{id:"cursorColumnSelectRight",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:3601,linux:{primary:0}}})||this}e.ColumnSelect=Object(r.g)((P(v,s=p),v.prototype._getColumnSelectResult=function(e,t,n,i){var o,r=e.model.validatePosition(i.position);return o=i.viewPosition?e.validateViewPosition(new l.a(i.viewPosition.lineNumber,i.viewPosition.column),r):e.convertModelPositionToViewPosition(r),c.columnSelect(e.config,e.viewModel,t.viewState.selection,o.lineNumber,i.mouseColumn-1)},new v)),e.CursorColumnSelectLeft=Object(r.g)((P(y,d=p),y.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectLeft(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},new y)),e.CursorColumnSelectRight=Object(r.g)((P(b,h=p),b.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectRight(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},new b));var _,w=(P(C,_=p),C.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectUp(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},C);function C(e){var t=_.call(this,e)||this;return t._isPaged=e.isPaged,t}e.CursorColumnSelectUp=Object(r.g)(new w({isPaged:!1,id:"cursorColumnSelectUp",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(r.g)(new w({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:3595,linux:{primary:0}}}));var x,S=(P(O,x=p),O.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectDown(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},O);function O(e){var t=x.call(this,e)||this;return t._isPaged=e.isPaged,t}e.CursorColumnSelectDown=Object(r.g)(new S({isPaged:!1,id:"cursorColumnSelectDown",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(r.g)(new S({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:3596,linux:{primary:0}}}));var k,L=(P(M,k=A),M.prototype.runCoreEditorCommand=function(e,t){var n=E.a.parse(t);n&&this._runCursorMove(e,t.source,n)},M.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,E.b.move(e.context,e.getAll(),n)),e.reveal(!0,0,0)},M);function M(){return k.call(this,{id:"cursorMove",precondition:null,description:E.a.description})||this}e.CursorMoveImpl=L,e.CursorMove=Object(r.g)(new L);var D,N,T,R=(P(F,D=A),F.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i)},F);function F(e){var t=D.call(this,e)||this;return t._staticArgs=e.args,t}function j(){return N.call(this,{id:"createCursor",precondition:null})||this}function W(){return T.call(this,{id:"_lastCursorMoveToSelect",precondition:null})||this}e.CursorLeft=Object(r.g)(new R({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(r.g)(new R({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:1039}})),e.CursorRight=Object(r.g)(new R({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(r.g)(new R({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:1041}})),e.CursorUp=Object(r.g)(new R({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(r.g)(new R({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(r.g)(new R({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(r.g)(new R({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:1035}})),e.CursorDown=Object(r.g)(new R({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(r.g)(new R({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(r.g)(new R({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(r.g)(new R({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:null,kbOpts:{weight:0,kbExpr:I.a.textInputFocus,primary:1036}})),e.CreateCursor=Object(r.g)((P(j,N=A),j.prototype.runCoreEditorCommand=function(e,t){var n,i=e.context;n=t.wholeLine?E.b.line(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition):E.b.moveTo(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var o=e.getAll();if(1this._limit&&this._initialize(e.slice(e.length-this._limit))},g.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t1?a.options.decimal+t[1]:"",a.options.useGrouping){for(o="",r=0,s=n.length;ra.endVal,a.frameVal=a.startVal,a.initialized=!0,!0):(a.error="[CountUp] startVal ("+t+") or endVal ("+n+") is not a number",!1)):(a.error="[CountUp] target is null or undefined",!1))},a.printValue=function(e){var t=a.options.formattingFn(e);"INPUT"===a.d.tagName?this.d.value=t:"text"===a.d.tagName||"tspan"===a.d.tagName?this.d.textContent=t:this.d.innerHTML=t},a.count=function(e){a.startTime||(a.startTime=e),a.timestamp=e;var t=e-a.startTime;a.remaining=a.duration-t,a.options.useEasing?a.countDown?a.frameVal=a.startVal-a.options.easingFn(t,0,a.startVal-a.endVal,a.duration):a.frameVal=a.options.easingFn(t,a.startVal,a.endVal-a.startVal,a.duration):a.countDown?a.frameVal=a.startVal-(a.startVal-a.endVal)*(t/a.duration):a.frameVal=a.startVal+(a.endVal-a.startVal)*(t/a.duration),a.countDown?a.frameVal=a.frameVala.endVal?a.endVal:a.frameVal,a.frameVal=Math.round(a.frameVal*a.dec)/a.dec,a.printValue(a.frameVal),ta.endVal,a.rAF=requestAnimationFrame(a.count))}},a.initialize()&&a.printValue(a.startVal)}})?i.call(t,n,t,e):i)||(e.exports=o)},,,,,,,,function(e,t,n){"use strict";t.__esModule=!0,t.commonMixinWrapper=t.defaultProp=t.propType=void 0;var i=l(n(35)),o=l(n(32)),r=l(n(37)),s=l(n(1)),a=l(n(658));function l(e){return e&&e.__esModule?e:{default:e}}function u(){}t.propType={className:s.default.string,locale:s.default.object,style:s.default.object,visible:s.default.bool,onSelect:s.default.func,prefixCls:s.default.string,onChange:s.default.func,onOk:s.default.func},t.defaultProp={locale:a.default,style:{},visible:!0,prefixCls:"rc-calendar",className:"",onSelect:u,onChange:u,onClear:u,renderFooter:function(){return null},renderSidebar:function(){return null}},t.commonMixinWrapper=function(e){var t,n,s;return s=e,(0,r.default)(a,s),a.prototype.shouldComponentUpdate=function(e){return this.props.visible||e.visible},n=t=a,t.displayName="CommonMixinWrapper",t.defaultProps=e.defaultProps,t.getDerivedStateFromProps=e.getDerivedStateFromProps,n;function a(){var e,t,n;(0,i.default)(this,a);for(var r=arguments.length,l=Array(r),u=0;ue.length)return!1;if(n){if(!Object(i.H)(e,t))return!1;if(t.length===e.length)return!0;var s=t.length;return t.charAt(t.length-1)===r&&s--,e.charAt(s)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}function a(e){return 65<=e&&e<=90||97<=e&&e<=122}},function(e,t,n){"use strict";n.d(t,"a",function(){return g}),n.d(t,"b",function(){return m});var i,o,r=n(1442),s=n(1414),a=n(1422),l=n(1412),u=n(1410),c=n(1426),d=n(1413),h=n(1861),p=n(1433),f=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},g={forceCopyWithSyntaxHighlighting:!(i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)})},m=(f(v,o=u.a),v.prototype._installSelectionChangeListener=function(){var e=this,t=0;return s.h(document,"selectionchange",function(n){if(e._hasFocus&&!e._isDoingComposition&&r.e&&c.g){var i=Date.now(),o=i-t;if(t=i,!(o<5)){var s=i-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(s<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var l=e._textArea.getSelectionStart(),u=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==l||e._textAreaState.selectionEnd!==u){var d=e._textAreaState.deduceEditorPosition(l),h=e._host.deduceModelPosition(d[0],d[1],d[2]),f=e._textAreaState.deduceEditorPosition(u),g=e._host.deduceModelPosition(f[0],f[1],f[2]),m=new p.a(h.lineNumber,h.column,g.lineNumber,g.column);e._onSelectionChangeRequest.fire(m)}}}}}})},v.prototype.dispose=function(){o.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},v.prototype.focusTextArea=function(){this._setHasFocus(!0)},v.prototype.isFocused=function(){return this._hasFocus},v.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(r.f?this._setAndWriteTextAreaState("focusgain",h.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},v.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},v.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},v.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(y.canUseTextData(e)){var n=null;r.d()&&(t.length<65536||g.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),y.setTextData(e,t,n)}else this._setAndWriteTextAreaState("copy or cut",h.b.selectedText(t))},v);function v(e,t){var n=o.call(this)||this;function i(e,t){var i=n._textAreaState,o=h.b.readFromTextArea(n._textArea);return[o,h.b.deduceInput(i,o,e,t)]}function u(e){var t=n._textAreaState,i=h.b.selectedText(e);return[i,{text:i.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]}function p(e){return!(!r.g||"ja"!==e)||!(!r.j||0!==e.indexOf("zh-Han"))}return n._onFocus=n._register(new l.a),n.onFocus=n._onFocus.event,n._onBlur=n._register(new l.a),n.onBlur=n._onBlur.event,n._onKeyDown=n._register(new l.a),n.onKeyDown=n._onKeyDown.event,n._onKeyUp=n._register(new l.a),n.onKeyUp=n._onKeyUp.event,n._onCut=n._register(new l.a),n.onCut=n._onCut.event,n._onPaste=n._register(new l.a),n.onPaste=n._onPaste.event,n._onType=n._register(new l.a),n.onType=n._onType.event,n._onCompositionStart=n._register(new l.a),n.onCompositionStart=n._onCompositionStart.event,n._onCompositionUpdate=n._register(new l.a),n.onCompositionUpdate=n._onCompositionUpdate.event,n._onCompositionEnd=n._register(new l.a),n.onCompositionEnd=n._onCompositionEnd.event,n._onSelectionChangeRequest=n._register(new l.a),n.onSelectionChangeRequest=n._onSelectionChangeRequest.event,n._host=e,n._textArea=n._register(new w(t)),n._lastTextAreaEvent=0,n._asyncTriggerCut=n._register(new a.d(function(){return n._onCut.fire()},0)),n._textAreaState=h.b.EMPTY,n.writeScreenReaderContent("ctor"),n._hasFocus=!1,n._isDoingComposition=!1,n._nextCommand=0,n._register(s.k(t.domNode,"keydown",function(e){!n._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),n._onKeyDown.fire(e)})),n._register(s.k(t.domNode,"keyup",function(e){n._onKeyUp.fire(e)})),n._register(s.h(t.domNode,"compositionstart",function(e){n._lastTextAreaEvent=1,n._isDoingComposition||(n._isDoingComposition=!0,r.g||n._setAndWriteTextAreaState("compositionstart",h.b.EMPTY),n._onCompositionStart.fire())})),n._register(s.h(t.domNode,"compositionupdate",function(e){if(n._lastTextAreaEvent=2,p(e.locale)){var t=i(!1,!1),o=t[0],r=t[1];return n._textAreaState=o,n._onType.fire(r),void n._onCompositionUpdate.fire(e)}var s=u(e.data),a=s[0],l=s[1];n._textAreaState=a,n._onType.fire(l),n._onCompositionUpdate.fire(e)})),n._register(s.h(t.domNode,"compositionend",function(e){if(n._lastTextAreaEvent=3,p(e.locale)){var t=i(!1,!1),o=t[0],s=t[1];n._textAreaState=o,n._onType.fire(s)}else{var a=u(e.data);o=a[0],s=a[1],n._textAreaState=o,n._onType.fire(s)}(r.g||r.e)&&(n._textAreaState=h.b.readFromTextArea(n._textArea)),n._isDoingComposition&&(n._isDoingComposition=!1,n._onCompositionEnd.fire())})),n._register(s.h(t.domNode,"input",function(){var e=8===n._lastTextAreaEvent;if(n._lastTextAreaEvent=4,n._textArea.setIgnoreSelectionChangeTime("received input event"),!n._isDoingComposition){var t=i(c.d,e&&c.d),o=t[0],r=t[1];0===r.replaceCharCnt&&1===r.text.length&&d.u(r.text.charCodeAt(0))||(n._textAreaState=o,0===n._nextCommand?""!==r.text&&n._onType.fire(r):(""!==r.text&&n._onPaste.fire({text:r.text}),n._nextCommand=0))}})),n._register(s.h(t.domNode,"cut",function(e){n._lastTextAreaEvent=5,n._textArea.setIgnoreSelectionChangeTime("received cut event"),n._ensureClipboardGetsEditorSelection(e),n._asyncTriggerCut.schedule()})),n._register(s.h(t.domNode,"copy",function(e){n._lastTextAreaEvent=6,n._ensureClipboardGetsEditorSelection(e)})),n._register(s.h(t.domNode,"paste",function(e){if(n._lastTextAreaEvent=7,n._textArea.setIgnoreSelectionChangeTime("received paste event"),y.canUseTextData(e)){var t=y.getTextData(e);""!==t&&n._onPaste.fire({text:t})}else n._textArea.getSelectionStart()!==n._textArea.getSelectionEnd()&&n._setAndWriteTextAreaState("paste",h.b.EMPTY),n._nextCommand=1})),n._register(s.h(t.domNode,"focus",function(){n._lastTextAreaEvent=8,n._setHasFocus(!0)})),n._register(s.h(t.domNode,"blur",function(){n._lastTextAreaEvent=9,n._setHasFocus(!1)})),n}var y=(b.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},b.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},b.setTextData=function(e,t,n){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},b);function b(){}var _,w=(f(C,_=u.a),C.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},C.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},C.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},C.prototype.getValue=function(){return this._actual.domNode.value},C.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},C.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},C.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},C.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,o=document.activeElement===i,a=i.selectionStart,l=i.selectionEnd;if(o&&a===t&&l===n)r.i&&window.parent!==window&&i.focus();else{if(o)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(r.i&&window.parent!==window&&i.focus());try{var u=s.M(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),s.K(i,u)}catch(e){}}},C);function C(e){var t=_.call(this)||this;return t._actual=e,t._ignoreSelectionChangeTime=0,t}},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return l});var i=n(1413),o=n(1420),r=n(1411),s=(a.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},a.readFromTextArea=function(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)},a.prototype.collapseSelection=function(){return new a(this.value,this.value.length,this.value.length,null,null)},a.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},a.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd)return t=this.value.substring(this.selectionEnd,e),this._finishDeduceEditorPosition(this.selectionEndPosition,t,1);var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},a.prototype._finishDeduceEditorPosition=function(e,t,n){for(var i=0,o=-1;-1!==(o=t.indexOf("\n",o+1));)i++;return[e,n*t.length,i]},a.selectedText=function(e){return new a(e,0,e.length,null,null)},a.deduceInput=function(e,t,n,o){if(!e)return{text:"",replaceCharCnt:0};var r=e.value,s=e.selectionStart,a=e.selectionEnd,l=t.value,u=t.selectionStart,c=t.selectionEnd;o&&0t.getLineMinColumn(n)?i.a.isLowSurrogate(t,n,o-2)?o-=2:o-=1:1p){l=e.viewModel.getLineCount();var f=a.lineNumber+1,g=1;return ln.endLineNumber-1&&(o=n.endLineNumber-1),oo[0]&&r[1]");var c=t.tokenize2(u,s,0);o.a.convertToEndOffset(c.tokens,u.length);for(var d=new o.a(c.tokens,u).inflate(),h=0,p=0,f=d.getCount();p'+i.m(u.substring(h,m))+"",h=m}s=c.endState}return n+""}(e,t||s)}function l(e,t,n,i,o,r){for(var s="
    ",a=i,l=0,u=0,c=t.getCount();u'+h+"",o"}},function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var i=n(1437),o=n(1561),r=n(1413),s=n(1492),a=n(1426),l=n(1493);function u(e,t,n){if("string"==typeof e&&(e=i.a.file(e)),n){var u=n.getWorkspaceFolder(e);if(u){var c=1o[0]&&r[1]r&&u.type===a.kind&&u.insertText===a.insertText&&(r=u.touch,o=s)}return-1===o?b.prototype.select.call(this,e,t,n):o},w.prototype.toJSON=function(){var e=[];return this._cache.forEach(function(t,n){e.push([n,t])}),e},w.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=e;t"}}))}}p.propTypes={getItemString:s.default.func.isRequired,keyPath:s.default.arrayOf(s.default.oneOfType([s.default.string,s.default.number])).isRequired,labelRenderer:s.default.func.isRequired,styling:s.default.func.isRequired,value:s.default.any,valueRenderer:s.default.func.isRequired,isCustomNode:s.default.func.isRequired},t.default=p},function(e,t,n){e.exports={default:n(2136),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var i=s(n(26)),o=s(n(0)),r=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.styling,n=e.arrowStyle,r=e.expanded,s=e.nodeType,a=e.onClick;return o.default.createElement("div",(0,i.default)({},t("arrowContainer",n),{onClick:a}),o.default.createElement("div",t(["arrow","arrowSign"],s,r,n),"\u25b6","double"===n&&o.default.createElement("div",t(["arrowSign","arrowSignInner"]),"\u25b6")))}a.propTypes={styling:r.default.func.isRequired,arrowStyle:r.default.oneOf(["single","double"]),expanded:r.default.bool.isRequired,nodeType:r.default.string.isRequired,onClick:r.default.func.isRequired},a.defaultProps={arrowStyle:"single"},t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase16Theme=t.createStyling=t.invertTheme=void 0;var i=p(n(212)),o=p(n(26)),r=p(n(2150)),s=p(n(1687)),a=p(n(2154)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2155)),u=p(n(2193)),c=p(n(2194)),d=p(n(2199)),h=n(2200);function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return function(t){return{className:[t.className,e.className].filter(Boolean).join(" "),style:(0,o.default)({},t.style||{},e.style||{})}}}function g(e,t){var n=(0,s.default)(t);for(var r in e)-1===n.indexOf(r)&&n.push(r);return n.reduce(function(n,r){return n[r]=function(e,t){if(void 0===e)return t;if(void 0===t)return e;var n=void 0===e?"undefined":(0,i.default)(e),r=void 0===t?"undefined":(0,i.default)(t);switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return f({className:e,style:t});case"function":return function(n){for(var i=arguments.length,o=Array(1B.year()?1:W.year()===B.year()&&W.month()>B.month());if(i&&Array.isArray(i)){var ne=l.length?l:i;if(!ee&&!te){var ie=ne[0],oe=ne[1];ie&&I(d,ie)&&(q=$=!0,J+=" "+w),(ie||oe)&&(I(d,oe)?(q=$=!0,J+=" "+C):null==ie&&d.isBefore(oe,"day")?J+=" "+x:null==oe&&d.isAfter(ie,"day")?J+=" "+x:d.isAfter(ie,"day")&&d.isBefore(oe,"day")&&(J+=" "+x))}}else I(d,o)&&(q=$=!0);I(d,i)&&(J+=" "+_),ee&&(J+=" "+S),te&&(J+=" "+k),d.clone().endOf("month").date()===d.date()&&(J+=" "+T),a&&a(d,o)&&(Q=!0,Z&&a(Z,o)||(J+=" "+D),X&&a(X,o)||(J+=" "+N)),$&&(J+=" "+b),Q&&(J+=" "+E);var re=void 0;if(s)re=s(d,o);else{var se=t?t(d,o):d.date();re=p.a.createElement("div",{key:(j=d,"rc-calendar-"+j.year()+"-"+j.month()+"-"+j.date()),className:v,"aria-selected":$,"aria-disabled":Q},se)}Y.push(p.a.createElement("td",{key:F,onClick:Q?void 0:e.onSelect.bind(null,d),onMouseEnter:Q?void 0:e.onDayHover&&e.onDayHover.bind(null,d)||void 0,role:"gridcell",title:M(d),className:J},re)),F++}H.push(p.a.createElement("tr",{key:u,role:"row",className:O()((U={},U[n+"-current-week"]=K,U[n+"-active-week"]=q,U))},G,Y))}return p.a.createElement("tbody",{className:n+"-tbody"},H)},A);function A(){return a()(this,A),u()(this,T.apply(this,arguments))}P.propTypes={contentRender:v.a.func,dateRender:v.a.func,disabledDate:v.a.func,prefixCls:v.a.string,selectedValue:v.a.oneOfType([v.a.object,v.a.arrayOf(v.a.object)]),value:v.a.object,hoverValue:v.a.any,showWeekNumber:v.a.bool},P.defaultProps={hoverValue:[]};var R,F=P;function j(){return a()(this,j),u()(this,R.apply(this,arguments))}var W=(R=p.a.Component,d()(j,R),j.prototype.render=function(){var e=this.props,t=e.prefixCls;return p.a.createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},p.a.createElement(x,e),p.a.createElement(F,e))},j);function B(e){return e}function V(e){return p.a.Children.map(e,B)}var z,H=(z=h.Component,d()(U,z),U.prototype.componentWillReceiveProps=function(e){"value"in e&&this.setState({value:e.value})},U.prototype.setAndSelectValue=function(e){this.setState({value:e}),this.props.onSelect(e)},U.prototype.months=function(){for(var e,t,n=this.state.value.clone(),i=[],o=0,r=0;r<4;r++){i[r]=[];for(var s=0;s<3;s++){n.month(o);var a=(t=(e=n).locale(),e.localeData()["zh-cn"===t?"months":"monthsShort"](e));i[r][s]={value:o,content:a,title:a},o++}}return i},U.prototype.render=function(){var e=this,t=this.props,n=this.state.value,i=L(n),o=this.months(),r=n.month(),s=t.prefixCls,a=t.locale,l=t.contentRender,u=t.cellRender,c=o.map(function(o,c){var d=o.map(function(o){var c,d=!1;if(t.disabledDate){var h=n.clone();h.month(o.value),d=t.disabledDate(h)}var f=((c={})[s+"-cell"]=1,c[s+"-cell-disabled"]=d,c[s+"-selected-cell"]=o.value===r,c[s+"-current-cell"]=i.year()===n.year()&&o.value===i.month(),c),g=void 0;if(u){var m=n.clone();m.month(o.value),g=u(m,a)}else{var v=void 0;if(l){var y=n.clone();y.month(o.value),v=l(y,a)}else v=o.content;g=p.a.createElement("a",{className:s+"-month"},v)}return p.a.createElement("td",{role:"gridcell",key:o.value,onClick:d?null:function(e){var t=this.state.value.clone();t.month(e),this.setAndSelectValue(t)}.bind(e,o.value),title:o.title,className:O()(f)},g)});return p.a.createElement("tr",{key:c,role:"row"},d)});return p.a.createElement("table",{className:s+"-table",cellSpacing:"0",role:"grid"},p.a.createElement("tbody",{className:s+"-tbody"},c))},U);function U(e){a()(this,U);var t=u()(this,z.call(this,e));return t.state={value:e.value},t}H.defaultProps={onSelect:function(){}},H.propTypes={onSelect:v.a.func,cellRender:v.a.func,prefixCls:v.a.string,value:v.a.object};var K=H;function G(e){this.props.changeYear(e)}function q(){}var Y,X=(Y=p.a.Component,d()(Z,Y),Z.getDerivedStateFromProps=function(e){var t={};return"value"in e&&(t={value:e.value}),t},Z.prototype.render=function(){var e=this.props,t=this.state.value,n=e.locale,i=e.cellRender,o=e.contentRender,r=e.renderFooter,s=t.year(),a=this.prefixCls,l=r&&r("month");return p.a.createElement("div",{className:a,style:e.style},p.a.createElement("div",null,p.a.createElement("div",{className:a+"-header"},p.a.createElement("a",{className:a+"-prev-year-btn",role:"button",onClick:this.previousYear,title:n.previousYear}),p.a.createElement("a",{className:a+"-year-select",role:"button",onClick:e.onYearPanelShow,title:n.yearSelect},p.a.createElement("span",{className:a+"-year-select-content"},s),p.a.createElement("span",{className:a+"-year-select-arrow"},"x")),p.a.createElement("a",{className:a+"-next-year-btn",role:"button",onClick:this.nextYear,title:n.nextYear})),p.a.createElement("div",{className:a+"-body"},p.a.createElement(K,{disabledDate:e.disabledDate,onSelect:this.setAndSelectValue,locale:n,value:t,cellRender:i,contentRender:o,prefixCls:a})),l&&p.a.createElement("div",{className:a+"-footer"},l)))},Z);function Z(e){a()(this,Z);var t=u()(this,Y.call(this,e));return t.setAndSelectValue=function(e){t.setValue(e),t.props.onSelect(e)},t.setValue=function(e){"value"in t.props&&t.setState({value:e})},t.nextYear=G.bind(t,1),t.previousYear=G.bind(t,-1),t.prefixCls=e.rootPrefixCls+"-month-panel",t.state={value:e.value||e.defaultValue},t}X.propTypes={onChange:v.a.func,disabledDate:v.a.func,onSelect:v.a.func,renderFooter:v.a.func,rootPrefixCls:v.a.string,value:v.a.object,defaultValue:v.a.object},X.defaultProps={onChange:q,onSelect:q},Object(b.polyfill)(X);var J=X;function Q(e){var t=this.state.value.clone();t.add(e,"year"),this.setState({value:t})}var $,ee=($=p.a.Component,d()(te,$),te.prototype.years=function(){for(var e=this.state.value.year(),t=10*parseInt(e/10,10)-1,n=[],i=0,o=0;o<4;o++){n[o]=[];for(var r=0;r<3;r++){var s=t+i,a=String(s);n[o][r]={content:a,year:s,title:a},i++}}return n},te.prototype.render=function(){var e=this,t=this.props,n=this.state.value,i=t.locale,o=t.renderFooter,r=this.years(),s=n.year(),a=10*parseInt(s/10,10),l=9+a,u=this.prefixCls,c=r.map(function(t,n){var i=t.map(function(t){var n,i,o=((n={})[u+"-cell"]=1,n[u+"-selected-cell"]=t.year===s,n[u+"-last-decade-cell"]=t.yearl,n);return i=t.yearl?e.nextDecade:function(e){var t=this.state.value.clone();t.year(e),t.month(this.state.value.month()),this.setState({value:t}),this.props.onSelect(t)}.bind(e,t.year),p.a.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:i,className:O()(o)},p.a.createElement("a",{className:u+"-year"},t.content))});return p.a.createElement("tr",{key:n,role:"row"},i)}),d=o&&o("year");return p.a.createElement("div",{className:this.prefixCls},p.a.createElement("div",null,p.a.createElement("div",{className:u+"-header"},p.a.createElement("a",{className:u+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:i.previousDecade}),p.a.createElement("a",{className:u+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:i.decadeSelect},p.a.createElement("span",{className:u+"-decade-select-content"},a,"-",l),p.a.createElement("span",{className:u+"-decade-select-arrow"},"x")),p.a.createElement("a",{className:u+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:i.nextDecade})),p.a.createElement("div",{className:u+"-body"},p.a.createElement("table",{className:u+"-table",cellSpacing:"0",role:"grid"},p.a.createElement("tbody",{className:u+"-tbody"},c))),d&&p.a.createElement("div",{className:u+"-footer"},d)))},te);function te(e){a()(this,te);var t=u()(this,$.call(this,e));return t.prefixCls=e.rootPrefixCls+"-year-panel",t.state={value:e.value||e.defaultValue},t.nextDecade=Q.bind(t,10),t.previousDecade=Q.bind(t,-10),t}var ne=ee;function ie(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}ee.propTypes={rootPrefixCls:v.a.string,value:v.a.object,defaultValue:v.a.object,renderFooter:v.a.func},ee.defaultProps={onSelect:function(){}};var oe,re=(oe=p.a.Component,d()(se,oe),se.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,i=n.locale,o=n.renderFooter,r=t.year(),s=100*parseInt(r/100,10),a=s-10,l=99+s,u=[],c=0,d=this.prefixCls,h=0;h<4;h++){u[h]=[];for(var f=0;f<3;f++){var g=a+10*c,m=a+10*c+9;u[h][f]={startDecade:g,endDecade:m},c++}}var v=o&&o("decade"),y=u.map(function(t,n){var i=t.map(function(t){var n,i,o=t.startDecade,a=t.endDecade,u=o=f.startLineNumber?f.endLineNumber>c&&(c=f.endLineNumber):(r.push({range:new d.a(u,1,c,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),u=f.startLineNumber,c=f.endLineNumber)}r.push({range:new d.a(u,1,c,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var g=new Array(e.length);for(h=0,p=e.length;he.lineNumber)){if(i.endLineNumbere.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},b.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn=Q?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},ee.prototype._largeReplaceAll=function(){var e=new p.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="m";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var i,o=this._editor.getModel(),r=o.getValue(1),s=o.getFullModelRange(),a=this._getReplacePattern();i=a.hasReplacementPatterns?r.replace(t,function(){return a.buildReplaceString(arguments)}):r.replace(t,a.buildReplaceString(null));var l=new u.b(s,i,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}},ee.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns,1073741824),i=[],o=0,r=n.length;o=Q?this._matchesCount.title=yt:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),0=Q&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=s.p(bt,n,t)}else e=_t;this._matchesCount.appendChild(document.createTextNode(e)),wt=Math.max(wt,this._matchesCount.clientWidth)},Ot.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t))},Ot.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInputBox.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=0t.startLineNumber&&(n=!1);var l=ie.x(this._domNode).left;le.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(d.a.equalsRange(e,t)||this._state.change({searchScope:e},!0))}},Ot.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},Ot.prototype._onFindInputKeyDown=function(e){return e.equals(3)?(this._codeEditor.getAction(B).run().then(void 0,Re.e),void e.preventDefault()):e.equals(1027)?(this._codeEditor.getAction(V).run().then(void 0,Re.e),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInputBox.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},Ot.prototype._onReplaceInputKeyDown=function(e){return e.equals(3)?(this._controller.replace(),void e.preventDefault()):e.equals(2051)?(this._controller.replaceAll(),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},Ot.prototype.getHorizontalSashTop=function(e){return 0},Ot.prototype.getHorizontalSashLeft=function(e){return 0},Ot.prototype.getHorizontalSashWidth=function(e){return 500},Ot.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},Ot.prototype._buildFindPart=function(){var e=this;this._findInput=this._register(new nt(null,this._contextViewProvider,{width:221,label:at,placeholder:lt,appendCaseSensitiveLabel:this._keybindingLabelFor(G),appendWholeWordsLabel:this._keybindingLabelFor(q),appendRegexLabel:this._keybindingLabelFor(Y),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(t){return{content:t.message}}}},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(t){return e._onFindInputKeyDown(t)})),this._register(this._findInput.inputBox.onDidChange(function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInputBox.focus(),t.preventDefault())})),Fe.c&&this._register(this._findInput.onMouseDown(function(t){return e._onFindInputMouseDown(t)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Dt({label:ut+this._keybindingLabelFor(V),className:"previous",onTrigger:function(){e._codeEditor.getAction(V).run().then(void 0,Re.e)}})),this._nextBtn=this._register(new Dt({label:ct+this._keybindingLabelFor(B),className:"next",onTrigger:function(){e._codeEditor.getAction(B).run().then(void 0,Re.e)}}));var t=document.createElement("div");return t.className="find-part",t.appendChild(this._findInput.domNode),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Lt({parent:t,title:dt+this._keybindingLabelFor(X),onChange:function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()||e._state.change({searchScope:t},!0)}}else e._state.change({searchScope:null},!0)}})),this._closeBtn=this._register(new Dt({label:ht+this._keybindingLabelFor(K),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),t.appendChild(this._closeBtn.domNode),t},Ot.prototype._buildReplacePart=function(){var e=this,t=document.createElement("div");t.className="replace-input",t.style.width="221px",this._replaceInputBox=this._register(new $e(t,void 0,{ariaLabel:pt,placeholder:ft,history:[]},this._contextKeyService)),this._register(ie.k(this._replaceInputBox.inputElement,"keydown",function(t){return e._onReplaceInputKeyDown(t)})),this._register(this._replaceInputBox.onDidChange(function(){e._state.change({replaceString:e._replaceInputBox.value},!1)})),this._replaceBtn=this._register(new Dt({label:gt+this._keybindingLabelFor(Z),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new Dt({label:mt+this._keybindingLabelFor(J),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var n=document.createElement("div");return n.className="replace-part",n.appendChild(t),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),n},Ot.prototype._buildDomNode=function(){var e=this,t=this._buildFindPart(),n=this._buildReplacePart();this._toggleReplaceBtn=this._register(new Dt({label:vt,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInputBox.width=e._findInput.inputBox.width),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="411px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(n),this._buildSash()},Ot.prototype._buildSash=function(){var e=this;this._resizeSash=new Ae.a(this._domNode,this,{orientation:0}),this._resized=!1;var t=411;this._register(this._resizeSash.onDidStart(function(){t=ie.z(e._domNode)})),this._register(this._resizeSash.onDidChange(function(n){e._resized=!0;var i=t+n.startX-n.currentX;if(!(i<411)){var o=i-Ct;(parseFloat(ie.s(e._domNode).maxWidth)||0)e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()||this._state.change({searchScope:e},!0)}},Kt.prototype.setSearchString=function(e){this._state.isRegex&&(e=s.n(e)),this._state.change({searchString:e},!1)},Kt.prototype.highlightFindOptions=function(){},Kt.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t,n={isRevealed:!0};if(e.seedSearchStringFromSelection&&(t=zt(this._editor))&&(this._state.isRegex?n.searchString=s.n(t):n.searchString=t),!n.searchString&&e.seedSearchStringFromGlobalClipboard&&(t=this.getGlobalBufferTerm())&&(n.searchString=t),e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),e.updateSearchScope){var i=this._editor.getSelection();i.isEmpty()||(n.searchScope=i)}this._state.change(n,!1),this._model||(this._model=new $(this._editor,this._state))}},Kt.prototype.start=function(e){this._start(e)},Kt.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},Kt.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},Kt.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},Kt.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},Kt.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},Kt.prototype.getGlobalBufferTerm=function(){return this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},Kt.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},Kt.ID="editor.contrib.findController",Kt=Wt([Bt(1,D.e),Bt(2,Ft.a),Bt(3,Tt.a)],Kt));function Kt(e,t,n,i){var r=Ht.call(this)||this;return r._editor=e,r._findWidgetVisible=N.bindTo(t),r._contextKeyService=t,r._storageService=n,r._clipboardService=i,r._updateHistoryDelayer=new o.a(500),r._state=r._register(new Ne),r.loadQueryState(),r._register(r._state.onFindReplaceStateChange(function(e){return r._onStateChanged(e)})),r._model=null,r._register(r._editor.onDidChangeModel(function(){var e=r._editor.getModel()&&r._state.isRevealed;r.disposeModel(),r._state.change({searchScope:null,matchCase:r._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:r._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:r._storageService.getBoolean("editor.isRegex",1,!1)},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),r}var Gt,qt=(jt(Yt,Gt=Ut),Yt.prototype._start=function(e){this._widget||this._createFindWidget(),!this._widget.getPosition()&&this._editor.getConfiguration().contribInfo.find.autoFindInSelection&&(e.updateSearchScope=!0),Gt.prototype._start.call(this,e),2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput()},Yt.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},Yt.prototype._createFindWidget=function(){this._widget=this._register(new St(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService)),this._findOptionsWidget=this._register(new Me(this._editor,this._state,this._keybindingService,this._themeService))},Yt=Wt([Bt(1,Pt.b),Bt(2,D.e),Bt(3,Rt.a),Bt(4,v.c),Bt(5,Ft.a),Bt(6,Object(At.d)(Tt.a))],Yt));function Yt(e,t,n,i,o,r,s){var a=Gt.call(this,e,n,r,s)||this;return a._contextViewService=t,a._keybindingService=i,a._themeService=o,a}var Xt,Zt=(jt(Jt,Xt=a.b),Jt.prototype.run=function(e,t){var n=Ut.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},Jt);function Jt(){return Xt.call(this,{id:j,label:i.a("startFindAction","Find"),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:2084,weight:100},menubarOpts:{menuId:14,group:"3_find",title:i.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}var Qt,$t=(jt(en,Qt=a.b),en.prototype.run=function(e,t){var n=Ut.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},en);function en(){return Qt.call(this,{id:W,label:i.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:null,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}var tn,nn=(jt(on,tn=a.b),on.prototype.run=function(e,t){var n=Ut.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},on);function on(){return null!==tn&&tn.apply(this,arguments)||this}var rn,sn=(jt(an,rn=nn),an.prototype._run=function(e){return e.moveToNextMatch()},an);function an(){return rn.call(this,{id:B,label:i.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:null,kbOpts:{kbExpr:l.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}var ln,un=(jt(cn,ln=nn),cn.prototype._run=function(e){return e.moveToPrevMatch()},cn);function cn(){return ln.call(this,{id:V,label:i.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:null,kbOpts:{kbExpr:l.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}var dn,hn=(jt(pn,dn=a.b),pn.prototype.run=function(e,t){var n=Ut.get(t);if(n){var i=zt(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},pn);function pn(){return null!==dn&&dn.apply(this,arguments)||this}var fn,gn=(jt(mn,fn=hn),mn.prototype._run=function(e){return e.moveToNextMatch()},mn);function mn(){return fn.call(this,{id:z,label:i.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:null,kbOpts:{kbExpr:l.a.focus,primary:2109,weight:100}})||this}var vn,yn=(jt(bn,vn=hn),bn.prototype._run=function(e){return e.moveToPrevMatch()},bn);function bn(){return vn.call(this,{id:H,label:i.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:null,kbOpts:{kbExpr:l.a.focus,primary:3133,weight:100}})||this}var _n,wn=(jt(Cn,_n=a.b),Cn.prototype.run=function(e,t){if(t.hasModel()&&!t.getConfiguration().readOnly){var n=Ut.get(t),i=t.getSelection(),o=n.isFindInputFocused(),r=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&!o,s=o||r?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1})}},Cn);function Cn(){return _n.call(this,{id:U,label:i.a("startReplace","Replace"),alias:"Replace",precondition:null,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menubarOpts:{menuId:14,group:"3_find",title:i.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}Object(a.h)(qt),Object(a.f)(Zt),Object(a.f)($t),Object(a.f)(sn),Object(a.f)(un),Object(a.f)(gn),Object(a.f)(yn),Object(a.f)(wn);var xn=a.c.bindToContribution(Ut.get);Object(a.g)(new xn({id:K,precondition:N,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:9,secondary:[1033]}})),Object(a.g)(new xn({id:G,precondition:null,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),Object(a.g)(new xn({id:q,precondition:null,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),Object(a.g)(new xn({id:Y,precondition:null,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),Object(a.g)(new xn({id:X,precondition:null,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),Object(a.g)(new xn({id:Z,precondition:N,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:3094}})),Object(a.g)(new xn({id:J,precondition:N,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:2563}})),Object(a.g)(new xn({id:"editor.action.selectAllMatches",precondition:N,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:l.a.focus,primary:515}}))},function(e,t,n){"use strict";n.d(t,"f",function(){return Y}),n.d(t,"i",function(){return Z}),n.d(t,"e",function(){return $}),n.d(t,"b",function(){return oe}),n.d(t,"g",function(){return ae}),n.d(t,"h",function(){return ce}),n.d(t,"d",function(){return pe}),n.d(t,"c",function(){return me}),n.d(t,"a",function(){return be});var i,o=n(1410),r=n(1413),s=n(1418),a=n(1677),l=n(1432),u=n(1764),c=n(1415),d=n(1439),h=n(1428),p=n(1518),f=n(1457),g=n(1543),m=n(1678),v=n(1422),y=n(1412),b=n(1411),_=n(1424),w=n(1862),C=new h.f("supportedCodeAction",""),x=(S.prototype.dispose=function(){this._disposables=Object(o.d)(this._disposables),this._autoTriggerTimer.cancel()},S.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},S.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some(function(e){return e.toString()===n.uri.toString()})&&this._autoTriggerTimer.cancelAndSet(function(){t.trigger({type:"auto"})},this._delay)},S.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet(function(){e.trigger({type:"auto"})},this._delay)},S.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});no[0]&&r[1]=n.getLineCount())&&t._futureFixes.cancel()})),t._register(M.k(t._domNode,"click",function(e){if(1===t._state.type){t._editor.focus();var n=M.v(t._domNode),i=n.top,o=n.height,r=t._editor.getConfiguration().lineHeight,s=Math.floor(r/3);t._position&&null!==t._position.position&&t._position.position.lineNumbero[0]&&r[1]o[0]&&r[1]";var a=this.text.substring(t,s.start);e+=this.supportOcticons?r(a):Object(o.m)(a),e+="",t=s.end}e+='';var l=this.text.substring(s.start,s.end);e+=this.supportOcticons?r(l):Object(o.m)(l),e+="",t=s.end}}t",l=this.text.substring(t),e+=this.supportOcticons?r(l):Object(o.m)(l),e+=""),this.domNode.innerHTML=e,this.domNode.title=this.title,this.didEverRender=!0},a.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/g,function(e,o){i="\r\n"===e?-1:0,o+=n;for(var r=0,s=t;r=o&&(a.start+=i),a.end>=o&&(a.end+=i))}return n+=i,"\u23ce"})},a);function a(e,t){this.supportOcticons=t,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",this.didEverRender=!1,e.appendChild(this.domNode)}},,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=function(e){if(e&&e.__esModule)return e;var t=function(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return function(){return e},e}();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=e[o]}}return n.default=e,t&&t.set(e,n),n}(n(0)),r=(i=n(6))&&i.__esModule?i:{default:i},s=n(57);function a(e){return(a="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)}function l(){return(l=Object.assign||function(e){for(var t=1;tc,n);return i=t.yearc?e.nextDecade:function(e){var t=this.state.value.clone();t.year(e),t.month(this.state.value.month()),this.setState({value:t}),this.props.onSelect(t)}.bind(e,t.year),s.default.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:i,className:(0,l.default)(o)},s.default.createElement("a",{className:d+"-year"},t.content))});return s.default.createElement("tr",{key:n,role:"row"},i)}),p=o&&o("year");return s.default.createElement("div",{className:this.prefixCls},s.default.createElement("div",null,s.default.createElement("div",{className:d+"-header"},s.default.createElement("a",{className:d+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:i.previousDecade}),s.default.createElement("a",{className:d+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:i.decadeSelect},s.default.createElement("span",{className:d+"-decade-select-content"},u,"-",c),s.default.createElement("span",{className:d+"-decade-select-arrow"},"x")),s.default.createElement("a",{className:d+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:i.nextDecade})),s.default.createElement("div",{className:d+"-body"},s.default.createElement("table",{className:d+"-table",cellSpacing:"0",role:"grid"},s.default.createElement("tbody",{className:d+"-tbody"},h))),p&&s.default.createElement("div",{className:d+"-footer"},p)))},p);function p(e){(0,i.default)(this,p);var t=(0,o.default)(this,d.call(this,e));return t.prefixCls=e.rootPrefixCls+"-year-panel",t.state={value:e.value||e.defaultValue},t.nextDecade=c.bind(t,10),t.previousDecade=c.bind(t,-10),t}(t.default=h).propTypes={rootPrefixCls:a.default.string,value:a.default.object,defaultValue:a.default.object,renderFooter:a.default.func},h.defaultProps={onSelect:function(){}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var i=u(n(35)),o=u(n(32)),r=u(n(37)),s=u(n(0)),a=u(n(1)),l=u(n(6));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}var d,h=(d=s.default.Component,(0,r.default)(p,d),p.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,i=n.locale,o=n.renderFooter,r=t.year(),a=100*parseInt(r/100,10),u=a-10,c=99+a,d=[],h=0,p=this.prefixCls,f=0;f<4;f++){d[f]=[];for(var g=0;g<3;g++){var m=u+10*h,v=u+10*h+9;d[f][g]={startDecade:m,endDecade:v},h++}}var y=o&&o("decade"),b=d.map(function(t,n){var i=t.map(function(t){var n,i,o=t.startDecade,u=t.endDecade,d=oB.year()?1:W.year()===B.year()&&W.month()>B.month());if(i&&Array.isArray(i)){var ne=p.length?p:i;if(!ee&&!te){var ie=ne[0],oe=ne[1];ie&&h(m,ie)&&(q=$=!0,J+=" "+O),(ie||oe)&&(h(m,oe)?(q=$=!0,J+=" "+k):null==ie&&m.isBefore(oe,"day")?J+=" "+L:null==oe&&m.isAfter(ie,"day")?J+=" "+L:m.isAfter(ie,"day")&&m.isBefore(oe,"day")&&(J+=" "+L))}}else h(m,o)&&(q=$=!0);h(m,i)&&(J+=" "+S),ee&&(J+=" "+M),te&&(J+=" "+E),m.clone().endOf("month").date()===m.date()&&(J+=" "+T),d&&d(m,o)&&(Q=!0,Z&&d(Z,o)||(J+=" "+N),X&&d(X,o)||(J+=" "+I)),$&&(J+=" "+x),Q&&(J+=" "+D);var re=void 0;if(a)re=a(m,o);else{var se=t?t(m,o):m.date();re=s.default.createElement("div",{key:(j=m,"rc-calendar-"+j.year()+"-"+j.month()+"-"+j.date()),className:w,"aria-selected":$,"aria-disabled":Q},se)}Y.push(s.default.createElement("td",{key:F,onClick:Q?void 0:e.onSelect.bind(null,m),onMouseEnter:Q?void 0:e.onDayHover&&e.onDayHover.bind(null,m)||void 0,role:"gridcell",title:(0,c.getTitleString)(m),className:J},re)),F++}H.push(s.default.createElement("tr",{key:f,role:"row",className:(0,l.default)((U={},U[n+"-current-week"]=K,U[n+"-active-week"]=q,U))},G,Y))}return s.default.createElement("tbody",{className:n+"-tbody"},H)},g);function g(){return(0,i.default)(this,g),(0,o.default)(this,p.apply(this,arguments))}f.propTypes={contentRender:a.default.func,dateRender:a.default.func,disabledDate:a.default.func,prefixCls:a.default.string,selectedValue:a.default.oneOfType([a.default.object,a.default.arrayOf(a.default.object)]),value:a.default.object,hoverValue:a.default.any,showWeekNumber:a.default.bool},f.defaultProps={hoverValue:[]},t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var i=p(n(35)),o=p(n(32)),r=p(n(37)),s=p(n(0)),a=p(n(17)),l=p(n(1)),u=p(n(1576)),c=n(42),d=p(n(266)),h=n(1531);function p(e){return e&&e.__esModule?e:{default:e}}var f,g=void 0,m=void 0,v=void 0,y=(f=s.default.Component,(0,r.default)(b,f),b.prototype.componentDidUpdate=function(){!v||!this.state.hasFocus||this.state.invalid||0===g&&0===m||v.setSelectionRange(g,m)},b.getDerivedStateFromProps=function(e,t){var n={};v&&(g=v.selectionStart,m=v.selectionEnd);var i=e.selectedValue;return t.hasFocus||(n={str:(0,h.formatDate)(i,e.format),invalid:!1}),n},b.getInstance=function(){return v},b.prototype.render=function(){var e=this.props,t=this.state,n=t.invalid,i=t.str,o=e.locale,r=e.prefixCls,a=e.placeholder,l=e.clearIcon,u=e.inputMode,c=n?r+"-input-invalid":"";return s.default.createElement("div",{className:r+"-input-wrap"},s.default.createElement("div",{className:r+"-date-input-wrap"},s.default.createElement("input",{ref:this.saveDateInput,className:r+"-input "+c,value:i,disabled:e.disabled,placeholder:a,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,inputMode:u})),e.showClear?s.default.createElement("a",{role:"button",title:o.clear,onClick:this.onClear},l||s.default.createElement("span",{className:r+"-clear-btn"})):null)},b);function b(e){(0,i.default)(this,b);var t=(0,o.default)(this,f.call(this,e));_.call(t);var n=e.selectedValue;return t.state={str:(0,h.formatDate)(n,t.props.format),invalid:!1,hasFocus:!1},t}y.propTypes={prefixCls:l.default.string,timePicker:l.default.object,value:l.default.object,disabledTime:l.default.any,format:l.default.oneOfType([l.default.string,l.default.arrayOf(l.default.string)]),locale:l.default.object,disabledDate:l.default.func,onChange:l.default.func,onClear:l.default.func,placeholder:l.default.string,onSelect:l.default.func,selectedValue:l.default.object,clearIcon:l.default.node,inputMode:l.default.string};var _=function(){var e=this;this.onClear=function(){e.setState({str:""}),e.props.onClear(null)},this.onInputChange=function(t){var n=t.target.value,i=e.props,o=i.disabledDate,r=i.format,s=i.onChange,a=i.selectedValue;if(!n)return s(null),void e.setState({invalid:!1,str:n});var l=(0,d.default)(n,r,!0);if(l.isValid()){var u=e.props.value.clone();u.year(l.year()).month(l.month()).date(l.date()).hour(l.hour()).minute(l.minute()).second(l.second()),!u||o&&o(u)?e.setState({invalid:!0,str:n}):(a!==u||a&&u&&!a.isSame(u))&&(e.setState({invalid:!1,str:n}),s(u))}else e.setState({invalid:!0,str:n})},this.onFocus=function(){e.setState({hasFocus:!0})},this.onBlur=function(){e.setState(function(e,t){return{hasFocus:!1,str:(0,h.formatDate)(t.value,t.format)}})},this.onKeyDown=function(t){var n=t.keyCode,i=e.props,o=i.onSelect,r=i.value,s=i.disabledDate;n===u.default.ENTER&&o&&(s&&s(r)||o(r.clone()),t.preventDefault())},this.getRootDOMNode=function(){return a.default.findDOMNode(e)},this.focus=function(){v&&v.focus()},this.saveDateInput=function(e){v=e}};(0,c.polyfill)(y),t.default=y,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.goStartMonth=function(e){return e.clone().startOf("month")},t.goEndMonth=function(e){return e.clone().endOf("month")},t.goTime=function(e,t,n){return e.clone().add(t,n)},t.includesTime=function(){var e=0i.getLineCount())e.dispose();else{var r,c=n.getPreviewValue(i,o);r=t.originSelectionRange?l.a.lift(t.originSelectionRange):new l.a(u.lineNumber,a.startColumn,u.lineNumber,a.endColumn);var d=n.modeService.getModeIdByFilepathOrFirstLine(i.uri.fsPath);n.addDecoration(r,(new s.a).appendCodeblock(d||"",c)),e.dispose()}}else e.dispose()})}else n.removeDecorations()}).then(void 0,r.e)}}},x.prototype.getPreviewValue=function(e,t){var n=this.getPreviewRangeBasedOnBrackets(e,t);return n.endLineNumber-n.startLineNumber>=x.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)},x.prototype.stripIndentationFromPreviewRange=function(e,t,n){for(var i=e.getLineFirstNonWhitespaceColumn(t),o=t+1;o(n?n.getLineCount():0)?r.p(p.b.gotoLineLabelEmptyWithLineLimit,n?n.getLineCount():0):r.p(p.b.gotoLineLabelEmptyWithLineAndColumnLimit,n?n.getLineMaxColumn(t.lineNumber):0)}},m.prototype.getLabel=function(){return this.parseResult.label},m.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return r.p(p.b.gotoLineAriaLabel,t,this.parseResult.label)},m.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},m.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},m.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},m.prototype.toSelection=function(){return new c.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},m);function m(e,t,n){var i=o.call(this)||this;return i.editor=t,i.decorator=n,i.parseResult=i.parseInput(e),i}var v,y=(f(b,v=h.a),b.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new s.c([new g(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:0=o.offset){n=i;break}}var s=0;for(i=t.tokens2.length>>>1;0<=i;i--)if(e.column-1>=t.tokens2[i<<1]){s=i;break}var l="",u=this._model.getLineContent(e.lineNumber),c="";if(n'+function(e){for(var t="",n=0,i=e.length;n('+c.length+" "+(1===c.length?"char":"chars")+")",l+='
    ';var p=this._decodeMetadata(t.tokens2[1+(s<<1)]);l+='',l+='",l+='",l+='",l+='",l+='",l+="",l+='
    ',n'+Object(a.m)(t.tokens1[n].type)+""),this._domNode.innerHTML=l,this._editor.layoutContentWidget(this)},O.prototype._decodeMetadata=function(e){var t=u.y.getColorMap(),n=u.x.getLanguageId(e),i=u.x.getTokenType(e),o=u.x.getFontStyle(e),r=u.x.getForeground(e),s=u.x.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]}},O.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},O.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},O.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}},O.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;nt.getLineMinColumn(i)?Object(s.v)(t.getLineContent(i).charCodeAt(n-2))?n-=2:n-=1:1=r&&(a=!0)}return a},E.prototype.cancel=function(){this.result.cancel()},E);function E(e,t,n){var i=this;this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(s.f)(function(o){return i._compute(e,t,n,o)})}var D,N=(b(I,D=M),I.prototype._compute=function(e,t,n,i){return L(e,t.getPosition(),i).then(function(e){return e||[]})},I);function I(){return null!==D&&D.apply(this,arguments)||this}var T,P=(b(A,T=M),A.prototype._compute=function(e,t,n,i){return Object(s.j)(250,i).then(function(){if(!t.isEmpty())return[];var i=e.getWordAtPosition(t.getPosition());return i?e.findMatches(i.word,!0,!1,!0,n,!1).map(function(e){return{range:e.range,kind:g.h.Text}}):[]})},A.prototype.isValid=function(e,t,n){var i=t.isEmpty();return this._selectionIsEmpty===i&&T.prototype.isValid.call(this,e,t,n)},A);function A(e,t,n){var i=T.call(this,e,t,n)||this;return i._selectionIsEmpty=t.isEmpty(),i}Object(c.e)("_executeDocumentHighlights",function(e,t){return L(e,t,a.a.None)});var R=(F.prototype.hasDecorations=function(){return 0i||r.endColumn=p.length)break;m=p[g++]}else{if((g=p.next()).done)break;m=g.value}var v=m;if(s=o.length)break;o[l++]}else{if((l=o.next()).done)break;l.value}if(t&&t":"")+n+" "+(1!==n?"entries":"entry")}},function(e,t,n){e.exports={default:n(2145),__esModule:!0}},function(e,t,n){n(2146),e.exports=n(103).Number.isSafeInteger},function(e,t,n){var i=n(141),o=n(2147),r=Math.abs;i(i.S,"Number",{isSafeInteger:function(e){return o(e)&&r(e)<=9007199254740991}})},function(e,t,n){var i=n(143),o=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){"use strict";t.__esModule=!0;var i=r(n(0)),o=r(n(1));function r(e){return e&&e.__esModule?e:{default:e}}function s(e){var t=e.nodeType,n=e.styling,o=e.labelRenderer,r=e.keyPath,s=e.valueRenderer,a=e.value,l=e.valueGetter;return i.default.createElement("li",n("value",t,r),i.default.createElement("label",n(["label","valueLabel"],t,r),o(r,t,!1,!1)),i.default.createElement("span",n("valueText",t,r),s.apply(void 0,[l(a),a].concat(r))))}s.propTypes={nodeType:o.default.string.isRequired,styling:o.default.func.isRequired,labelRenderer:o.default.func.isRequired,keyPath:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.number])).isRequired,valueRenderer:o.default.func.isRequired,value:o.default.any,valueGetter:o.default.func},s.defaultProps={valueGetter:function(e){return e}},t.default=s},function(e,t,n){"use strict";t.__esModule=!0;var i=s(n(26)),o=n(1889),r=s(n(2201));function s(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.createStyling)(function(e){var t=function(e){return{BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}}(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:function(e,t,n){var o=e.style;return{style:(0,i.default)({},o,{paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:1o[0]&&r[1]=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t)}finally{this.ignoreSelectionChange=!1}}},Ne.prototype.canNavigate=function(){return this.ranges&&0=this._maxCharCode?0:this._states.get(e,t)},Ot);function Ot(e){for(var t=0,n=0,i=0,o=e.length;i=i._lines.length?st.c:(n=i._lines[o],s=i._wordenize(n,e),r=0,o+=1,a())}}},Rt.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],i=[],o=0,r=this._wordenize(n,t);othis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var o=this._lines[t-1].length+1;n<1?(n=1,i=!0):ojt._diffLimit)i.push({range:l,text:u});else for(var h=Object(rt.b)(d,u,!1),p=n.offsetAt(ue.a.lift(l).getStartPosition()),f=0,g=h;f'"_]/g,"-")}function Mn(e,t){return new Error(e.languageId+": "+t)}function En(e,t,n,i,o){var r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,s,a,l,u,c,d,h,p){return On(a)?On(l)?!On(u)&&u=this._maxCacheDepth)return new Tn(e,t);var n=Tn.getStackElementId(e);0=this._maxCacheDepth)return new Wn(e,t);var n=Tn.getStackElementId(e),i=this._entries[n];return i||(i=new Wn(e,null),this._entries[n]=i)},jn._INSTANCE=new jn(5),jn);function jn(e){this._maxCacheDepth=e,this._entries=Object.create(null)}var Wn=(Bn.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:Fn.create(this.stack,this.embeddedModeData)},Bn.prototype.equals=function(e){return e instanceof Bn&&!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData))},Bn);function Bn(e,t){this.stack=e,this.embeddedModeData=t}var Vn=Object.hasOwnProperty,zn=(Hn.prototype.enterMode=function(e,t){this._language=t},Hn.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new de.a(e,t,this._language)))},Hn.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=Re.y.get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize(e,o,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},Hn.prototype.finalize=function(e){return new de.b(this._tokens,e)},Hn);function Hn(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}var Un=(Kn.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},Kn.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},Kn._merge=function(e,t,n){var i=null!==e?e.length:0,o=t.length,r=null!==n?n.length:0;if(0===i&&0===o&&0===r)return new Uint32Array(0);if(0===i&&0===o)return n;if(0===o&&0===r)return e;var s=new Uint32Array(i+o+r);null!==e&&s.set(e);for(var a=0;a=this._lexer.maxStack)throw Mn(this._lexer,"maximum tokenizer stack size reached: ["+l.state+","+l.parent.state+",...]");l=l.push(g)}else if("@pop"===y.next){if(l.depth<=1)throw Mn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(b));l=l.pop()}else if("@popall"===y.next)l=l.popall();else{var L;if("@"===(L=En(this._lexer,y.next,v,m,g))[0]&&(L=L.substr(1)),!Dn(this._lexer,L))throw Mn(this._lexer,"trying to set a next state '"+L+"' that is undefined in rule: "+this._safeRuleName(b));l=l.push(L)}}y.log&&"string"==typeof y.log&&(o=this._lexer,r=this._lexer.languageId+": "+En(this._lexer,y.log,v,m,g),console.log(o.languageId+": "+r))}if(null===k)throw Mn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(b));if(Array.isArray(k)){if(c&&0"),o=l.endState}return i.join("")}(e,t,n);if(n instanceof Gn){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(r,o)}i(s)}()})}function Qn(e,t){var n=[],i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(var o=0,r=e.length;o")}return n.join("")}var $n,ei=n(1488),ti=n(1765),ni=n(1680),ii=n(1759),oi=n(1491),ri=n(1468),si=n(1477),ai=n(1603),li=($n=function(e,t){return($n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}$n(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ui=(Object.defineProperty(ci.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(ci.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),ci.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},ci.prototype.getValue=function(e){return e?Object(ri.d)(this.contents,e):this.contents},ci.prototype.override=function(e){var t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;for(var n={},i=0,o=ot.e(Object.keys(this.contents).concat(Object.keys(t)));i=x.heightInLines?(C.heightInLines-=x.heightInLines,w++):(x.heightInLines-=C.heightInLines,_++)}for(;_
    '])}h+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var g=document.createElement("div");g.className="view-lines line-delete",g.innerHTML=a.build(),Oo.a.applyFontInfoSlow(g,this.modifiedEditorConfiguration.fontInfo);var m=document.createElement("div");return m.className="inline-deleted-margin-view-zone",m.innerHTML=l.join(""),Oo.a.applyFontInfoSlow(m,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:h*d,domNode:g,marginDomNode:m}},Mr.prototype._renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineTokens(o),l=a.getLineContent(),u=Qo.a.filter(r,o,1,l.length+1);s.appendASCIIString('
    ');var c=wn.d.isBasicASCII(l,t.mightContainNonBasicASCII()),d=wn.d.containsRTL(l,c,t.mightContainRTL()),h=Object(_n.c)(new _n.b(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,n.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,c,d,0,a,u,i,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures),s);s.appendASCIIString("
    ");var p=h.characterMapping.getAbsoluteOffsets();return 0> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))})}function cs(e,t,n){for(var i=null,o=null,r=null,s=n.length-1;0<=s;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)){var l=a.filepatternOnPath?e:t;Object(is.a)(a.filepatternLowercase,l)&&(o=a)}a.extension&&(!r||a.extension.length>r.extension.length)&&Object(we.k)(t,a.extensionLowercase)&&(r=a)}return i?i.mime:o?o.mime:r?r.mime:null}var ds,hs,ps=n(1686),fs=n(1467),gs=(ds=function(e,t){return(ds=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}ds(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ms=Object.prototype.hasOwnProperty,vs=(gs(ys,hs=Le.a),ys.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=ps.a.getLanguages();this._registerLanguages(e)},ys.prototype._registerLanguages=function(e){for(var t=this,n=0,i=e;n>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},la);function la(e,t){this._colorMap=e,this._root=t,this._cache=new Map}var ua=/\b(comment|string|regex|regexp)\b/,ca=(da.prototype.clone=function(){return new da(this._fontStyle,this._foreground,this._background)},da.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},da);function da(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}var ha,pa,fa,ga=(ma.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");n=-1===i?(t=e,""):(t=e.substring(0,i),e.substring(i+1));var o=this._children.get(t);return void 0!==o?o.match(n):this._mainRule},ma.prototype.insert=function(e,t,n,i){if(""!==e){var o,r,s=e.indexOf(".");r=-1===s?(o=e,""):(o=e.substring(0,s),e.substring(s+1));var a=this._children.get(o);void 0===a&&(a=new ma(this._mainRule.clone()),this._children.set(o,a)),a.insert(r,t,n,i)}else this._mainRule.acceptOverwrite(t,n,i)},ma);function ma(e){this._mainRule=e,this._children=new Map}var va={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(ha={},ha[Io.o]="#FFFFFE",ha[Io.v]="#000000",ha[Io.A]="#E5EBF1",ha[No.l]="#D3D3D3",ha[No.a]="#939393",ha[Io.D]="#ADD6FF4D",ha)},ya={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(pa={},pa[Io.o]="#1E1E1E",pa[Io.v]="#D4D4D4",pa[Io.A]="#3A3D41",pa[No.l]="#404040",pa[No.a]="#707070",pa[Io.D]="#ADD6FF26",pa)},ba={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(fa={},fa[Io.o]="#000000",fa[Io.v]="#FFFFFF",fa[No.l]="#FFFFFF",fa[No.a]="#FFFFFF",fa)},_a="vs",wa="vs-dark",Ca="hc-black",xa=fs.a.as(Io.a.ColorContribution),Sa=fs.a.as(To.a.ThemingContribution),Oa=(Object.defineProperty(ka.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),ka.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},ka.prototype.getColors=function(){if(!this.colors){var e=Object.create(null);for(var t in this.themeData.colors)e[t]=na.a.fromHex(this.themeData.colors[t]);if(this.themeData.inherit){var n=Ma(this.themeData.base);for(var t in n.colors)e[t]||(e[t]=na.a.fromHex(n.colors[t]))}this.colors=e}return this.colors},ka.prototype.getColor=function(e,t){return this.getColors()[e]||(!1!==t?this.getDefault(e):void 0)},ka.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=xa.resolveDefaultColor(e,this),this.defaultColors[e]=t)},ka.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(ka.prototype,"type",{get:function(){switch(this.base){case _a:return"light";case Ca:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(ka.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=Ma(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=aa.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),ka);function ka(e,t){var n=(this.themeData=t).base;0