/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["require","exports","vs/base/common/event","vs/base/common/winjs.base","vs/base/common/platform","vs/base/common/strings","vs/base/common/lifecycle","vs/platform/instantiation/common/instantiation","vs/base/common/types","vs/base/common/uri","vs/base/common/async","path","vs/base/common/errors","vs/nls!vs/code/electron-browser/issue/issueReporterMain","vs/base/common/amd","vs/base/browser/browser","os","vs/base/common/objects","vs/platform/log/common/log","vs/platform/registry/common/platform","vs/base/browser/dom","vs/base/parts/ipc/node/ipc","vs/css!vs/code/electron-browser/issue/issueReporterMain","vs/nls","vs/base/common/decorators","vs/base/common/uuid","vs/base/common/paths","vs/base/common/functional","vs/base/common/map","vs/base/browser/keyboardEvent","vs/base/common/assert","vs/base/common/collections","fs","vs/platform/instantiation/common/serviceCollection","vs/platform/issue/common/issue","vs/platform/configuration/common/configuration","vs/platform/node/package","vs/platform/node/product","vs/base/common/arrays","vs/platform/configuration/common/configurationRegistry","vs/base/node/pfs","vs/base/common/color","vs/base/node/encoding","vs/platform/workspaces/common/workspaces","vs/platform/windows/common/windows","vs/platform/telemetry/node/telemetryIpc","vs/base/node/extfs","vs/base/common/keyCodes","vs/base/common/date","vs/base/browser/iframe","vs/base/browser/event","vs/base/parts/ipc/node/ipc.electron","vs/base/parts/ipc/electron-browser/ipc.electron-browser","electron","vs/base/parts/ipc/node/ipc.net","vs/platform/telemetry/node/commonProperties","vs/code/electron-browser/issue/issueReporterUtil","vs/css!vs/base/browser/ui/button/button","vs/base/common/normalization","vs/base/browser/ui/button/button","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons-animations","vs/base/browser/ui/octiconLabel/octiconLabel","vs/css!vs/code/electron-browser/issue/media/issueReporter","vs/nls!vs/code/electron-browser/issue/issueReporterPage","vs/base/browser/mouseEvent","vs/base/common/cancellation","vs/code/electron-browser/issue/issueReporterPage","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/telemetry/common/telemetryService","vs/nls!vs/platform/workspaces/common/workspaces","vs/platform/instantiation/common/descriptors","vs/base/common/linkedList","vs/base/common/graph","vs/platform/instantiation/common/instantiationService","vs/base/browser/touch","vs/code/electron-browser/issue/issueReporterModel","vs/platform/keybinding/common/keybinding","vs/base/common/glob","vs/platform/log/node/logIpc","vs/platform/log/node/spdlogService","vs/base/common/mime","vs/base/node/flow","vs/platform/environment/node/environmentService","vs/platform/telemetry/common/telemetryUtils","vs/platform/windows/node/windowsIpc","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/base/node/paths","vs/base/node/stream","vs/platform/telemetry/common/telemetryService","crypto","net","stream","child_process","iconv-lite","assert","vs/code/electron-browser/issue/issueReporterMain"],t=function(t){
for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n};define(e[49],t([0,1]),function(e,t){"use strict";function n(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return i=!0,null}catch(e){return i=!0,null}return e.parent}function r(e,t){for(var n,r=e.document.getElementsByTagName("iframe"),i=0,o=r.length;i<o;i++)if((n=r[i]).contentWindow===t)return n;return null}Object.defineProperty(t,"__esModule",{value:!0});var i=!1,o=null,s=function(){function e(){}return e.getSameOriginWindowChain=function(){if(!o){o=[];var e,t=window;do{(e=n(t))?o.push({window:t,iframeElement:r(e,t)}):o.push({window:t,iframeElement:null}),t=e}while(t)}return o.slice(0)},e.hasDifferentOriginAncestor=function(){return o||this.getSameOriginWindowChain(),i},e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,r=0,i=this.getSameOriginWindowChain(),o=0;o<i.length;o++){var s=i[o]
;if(s.window===t)break;if(!s.iframeElement)break;var a=s.iframeElement.getBoundingClientRect();n+=a.top,r+=a.left}return{top:n,left:r}},e}();t.IframeUtils=s}),define(e[30],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ok=function(e,t){if(!e||null===e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}}),define(e[31],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.prototype.hasOwnProperty;t.values=function(e){var t=[];for(var r in e)n.call(e,r)&&t.push(e[r]);return t},t.size=function(e){var t=0;for(var r in e)n.call(e,r)&&(t+=1);return t},t.first=function(e){for(var t in e)if(n.call(e,t))return e[t]},t.forEach=function(e,t){var r=function(r){if(n.call(e,r)&&!1===t({key:r,value:e[r]},function(){delete e[r]}))return{value:void 0}};for(var i in e){var o=r(i);if("object"==typeof o)return o.value}},t.remove=function(e,t){return!!n.call(e,t)&&(delete e[t],!0)},t.groupBy=function(e,t){
for(var n=Object.create(null),r=0,i=e;r<i.length;r++){var o=i[r],s=t(o),a=n[s];a||(a=n[s]=[]),a.push(o)}return n}}),define(e[41],t([0,1]),function(e,t){"use strict";function n(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,r,i){void 0===i&&(i=1),this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,r)),this.a=n(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},e}();t.RGBA=r;var i=function(){function e(e,t,r,i){this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,r),0),3),this.a=n(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,r=t.g/255,i=t.b/255,o=t.a,s=Math.max(n,r,i),a=Math.min(n,r,i),u=0,c=0,l=(a+s)/2,f=s-a;if(f>0){switch(c=Math.min(l<=.5?f/(2*l):f/(2-2*l),1),s){
case n:u=(r-i)/f+(r<i?6:0);break;case r:u=(i-n)/f+2;break;case i:u=(n-r)/f+4}u*=60,u=Math.round(u)}return new e(u,c,l,o)},e._hue2rgb=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,i,o,s=t.h/360,a=t.s,u=t.l,c=t.a;if(0===a)n=i=o=u;else{var l=u<.5?u*(1+a):u+a-u*a,f=2*u-l;n=e._hue2rgb(f,l,s+1/3),i=e._hue2rgb(f,l,s),o=e._hue2rgb(f,l,s-1/3)}return new r(Math.round(255*n),Math.round(255*i),Math.round(255*o),c)},e}();t.HSLA=i;var o=function(){function e(e,t,r,i){this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,r),0),3),this.a=n(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n,r=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(r,i,o),a=s-Math.min(r,i,o),u=0===s?0:a/s;return n=0===a?0:s===r?((i-o)/a%6+6)%6:s===i?(o-r)/a+2:(r-i)/a+4,new e(Math.round(60*n),u,s,t.a)},e.toRGBA=function(e){
var t=e.h,n=e.s,i=e.v,o=e.a,s=i*n,a=s*(1-Math.abs(t/60%2-1)),u=i-s,c=[0,0,0],l=c[0],f=c[1],d=c[2];return t<60?(l=s,f=a):t<120?(l=a,f=s):t<180?(f=s,d=a):t<240?(f=a,d=s):t<300?(l=a,d=s):t<360&&(l=s,d=a),l=Math.round(255*(l+u)),f=Math.round(255*(f+u)),d=Math.round(255*(d+u)),new r(l,f,d,o)},e}();t.HSVA=o;var s=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof i)this._hsla=e,this.rgba=i.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:i.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){
return!!e&&r.equals(this.rgba,e.rgba)&&i.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return n(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.getContrastRatio=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},e.prototype.isDarker=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3<128},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()<e.getRelativeLuminance()},e.prototype.lighten=function(t){
return new e(new i(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))},e.prototype.darken=function(t){return new e(new i(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))},e.prototype.transparent=function(t){var n=this.rgba,i=n.r,o=n.g,s=n.b,a=n.a;return new e(new r(i,o,s,a*t))},e.prototype.isTransparent=function(){return 0===this.rgba.a},e.prototype.isOpaque=function(){return 1===this.rgba.a},e.prototype.opposite=function(){return new e(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},e.prototype.blend=function(t){var n=t.rgba,i=this.rgba.a,o=n.a,s=i+o*(1-i);if(s<1e-6)return e.transparent;var a=this.rgba.r*i/s+n.r*o*(1-i)/s,u=this.rgba.g*i/s+n.g*o*(1-i)/s,c=this.rgba.b*i/s+n.b*o*(1-i)/s;return new e(new r(a,u,c,s))},e.prototype.flatten=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.reduceRight(function(t,n){return e._flatten(n,t)});return e._flatten(this,r)},e._flatten=function(t,n){var i=1-t.rgba.a
;return new e(new r(i*n.rgba.r+t.rgba.a*t.rgba.r,i*n.rgba.g+t.rgba.a*t.rgba.g,i*n.rgba.b+t.rgba.a*t.rgba.b))},e.prototype.toString=function(){return e.Format.CSS.format(this)},e.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)},e.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var r=e.getRelativeLuminance();return n=n*(r-t.getRelativeLuminance())/r,e.darken(n)},e.white=new e(new r(255,255,255,1)),e.black=new e(new r(0,0,0,1)),e.red=new e(new r(255,0,0,1)),e.blue=new e(new r(0,0,255,1)),e.green=new e(new r(0,255,0,1)),e.cyan=new e(new r(0,255,255,1)),e.lightgrey=new e(new r(211,211,211,1)),e.transparent=new e(new r(0,0,0,0)),e}();t.Color=s,function(e){!function(t){!function(t){function n(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function i(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6
;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}t.formatRGB=function(t){return 1===t.rgba.a?"rgb("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+")":e.Format.CSS.formatRGBA(t)},t.formatRGBA=function(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"},t.formatHSL=function(t){return 1===t.hsla.a?"hsl("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%)":e.Format.CSS.formatHSLA(t)},t.formatHSLA=function(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"},t.formatHex=function(e){return"#"+n(e.rgba.r)+n(e.rgba.g)+n(e.rgba.b)},t.formatHexA=function(t,r){return void 0===r&&(r=!1),r&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#"+n(t.rgba.r)+n(t.rgba.g)+n(t.rgba.b)+n(Math.round(255*t.rgba.a))},t.format=function(t){
return t?t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t):null},t.parseHex=function(t){if(!t)return null;var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var o=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),a=16*i(t.charCodeAt(5))+i(t.charCodeAt(6));return new e(new r(o,s,a,1))}if(9===n){var o=16*i(t.charCodeAt(1))+i(t.charCodeAt(2)),s=16*i(t.charCodeAt(3))+i(t.charCodeAt(4)),a=16*i(t.charCodeAt(5))+i(t.charCodeAt(6)),u=16*i(t.charCodeAt(7))+i(t.charCodeAt(8));return new e(new r(o,s,a,u/255))}if(4===n){var o=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),a=i(t.charCodeAt(3));return new e(new r(16*o+o,16*s+s,16*a+a))}if(5===n){var o=i(t.charCodeAt(1)),s=i(t.charCodeAt(2)),a=i(t.charCodeAt(3)),u=i(t.charCodeAt(4));return new e(new r(16*o+o,16*s+s,16*a+a,(16*u+u)/255))}return null}}(t.CSS||(t.CSS={}))}(e.Format||(e.Format={}))}(s=t.Color||(t.Color={})),t.Color=s}),define(e[24],t([0,1]),function(e,t){"use strict";function n(e){
return function(t,n,r){var i=null,o=null;if("function"==typeof r.value?(i="value",o=r.value):"function"==typeof r.get&&(i="get",o=r.get),!o)throw new Error("not supported");r[i]=e(o,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=n,t.memoize=function(e,t,n){var r=null,i=null;if("function"==typeof n.value?(r="value",0!==(i=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(r="get",i=n.get),!i)throw new Error("not supported");var o="$memoize$"+t;n[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,e)}),this[o]}},t.debounce=function(e,t,r){return n(function(n,i){var o="$debounce$"+i,s="$debounce$result$"+i;return function(){for(var i=this,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];this[s]||(this[s]=r?r():void 0),clearTimeout(this[o]),
t&&(this[s]=t.apply(void 0,[this[s]].concat(a)),a=[this[s]]),this[o]=setTimeout(function(){n.apply(i,a),i[s]=r?r():void 0},e)}})}}),define(e[27],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}}),define(e[47],t([0,1]),function(e,t){"use strict";function n(e,t){var n=!!(2048&e),r=!!(256&e);return new u(2===t?r:n,!!(1024&e),!!(512&e),2===t?n:r,255&e)}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",
e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",
e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",
e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(t.KeyCode||(t.KeyCode={}));var r=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),i=new r,o=new r,s=new r;!function(){function e(e,t,n,r){void 0===n&&(n=t),void 0===r&&(r=n),i.define(e,t),o.define(e,n),s.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),
e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),
e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}();!function(e){e.toString=function(e){return i.keyCodeToStr(e)},e.fromString=function(e){return i.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return s.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||s.strToKeyCode(e)}}(t.KeyCodeUtils||(t.KeyCodeUtils={}));var a;!function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",e[e.WinCtrl=256]="WinCtrl",e[e.KeyCode=255]="KeyCode"}(a||(a={}));!function(e){e[e.CtrlCmd=2048]="CtrlCmd",e[e.Shift=1024]="Shift",e[e.Alt=512]="Alt",
e[e.WinCtrl=256]="WinCtrl"}(t.KeyMod||(t.KeyMod={})),t.KeyChord=function(e,t){return(e|(65535&t)<<16>>>0)>>>0},t.createKeybinding=function(e,t){if(0===e)return null;var r=(65535&e)>>>0,i=(4294901760&e)>>>16;return 0!==i?new c(n(r,t),n(i,t)):n(r,t)},t.createSimpleKeybinding=n;!function(e){e[e.Simple=1]="Simple",e[e.Chord=2]="Chord"}(t.KeybindingType||(t.KeybindingType={}));var u=function(){function e(e,t,n,r,i){this.type=1,this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}return e.prototype.equals=function(e){return 1===e.type&&(this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode)},e.prototype.getHashCode=function(){return""+(this.ctrlKey?"1":"0")+(this.shiftKey?"1":"0")+(this.altKey?"1":"0")+(this.metaKey?"1":"0")+this.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.isDuplicateModifierCase=function(){
return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}();t.SimpleKeybinding=u;var c=function(){function e(e,t){this.type=2,this.firstPart=e,this.chordPart=t}return e.prototype.getHashCode=function(){return this.firstPart.getHashCode()+";"+this.chordPart.getHashCode()},e}();t.ChordKeybinding=c;var l=function(){return function(e,t,n,r,i,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=o}}();t.ResolvedKeybindingPart=l;var f=function(){return function(){}}();t.ResolvedKeybinding=f}),define(e[6],t([0,1,27]),function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(e)?(e.forEach(function(e){return e&&e.dispose()}),[]):0!==t.length?(r(e),r(t),[]):e?(e.dispose(),e):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=r,
t.combinedDisposable=function(e){return{dispose:function(){return r(e)}}},t.toDisposable=function(e){return{dispose:function(){e()}}};var i=function(){function e(){this._toDispose=[]}return Object.defineProperty(e.prototype,"toDispose",{get:function(){return this._toDispose},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._toDispose=r(this._toDispose)},e.prototype._register=function(e){return this._toDispose.push(e),e},e.None=Object.freeze({dispose:function(){}}),e}();t.Disposable=i;var o=function(){function e(){this.references=Object.create(null)}return e.prototype.acquire=function(e){var t=this,r=this.references[e];r||(r=this.references[e]={counter:0,object:this.createReferencedObject(e)});var i=r.object,o=n.once(function(){0==--r.counter&&(t.destroyReferencedObject(r.object),delete t.references[e])});return r.counter++,{object:i,dispose:o}},e}();t.ReferenceCollection=o;var s=function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}();t.ImmortalReference=s}),
define(e[72],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e){this.element=e}}(),r=function(){function e(){}return e.prototype.isEmpty=function(){return!this._first},e.prototype.clear=function(){this._first=void 0,this._last=void 0},e.prototype.unshift=function(e){return this.insert(e,!1)},e.prototype.push=function(e){return this.insert(e,!0)},e.prototype.insert=function(e,t){var r=this,i=new n(e);if(this._first)if(t){var o=this._last;this._last=i,i.prev=o,o.next=i}else{var s=this._first;this._first=i,i.next=s,s.prev=i}else this._first=i,this._last=i;return function(){for(var e=r._first;e instanceof n;e=e.next)if(e===i){if(e.prev&&e.next){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev||e.next?e.next?e.prev||(r._first=r._first.next,r._first.prev=void 0):(r._last=r._last.prev,r._last.next=void 0):(r._first=void 0,r._last=void 0);break}}},e.prototype.iterator=function(){var e={done:void 0,value:void 0},t=this._first;return{
next:function(){return t?(e.done=!1,e.value=t.element,t=t.next):(e.done=!0,e.value=void 0),e}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t instanceof n;t=t.next)e.push(t.element);return e},e}();t.LinkedList=r}),define(e[4],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=!1,r=!1,i=!1,o=!1,s=!1,a=void 0,u=void 0,c=void 0;if(t.LANGUAGE_DEFAULT="en","object"==typeof process&&"function"==typeof process.nextTick&&"string"==typeof process.platform){n="win32"===process.platform,r="darwin"===process.platform,i="linux"===process.platform,a=t.LANGUAGE_DEFAULT,u=t.LANGUAGE_DEFAULT;var l=process.env.VSCODE_NLS_CONFIG;if(l)try{var f=JSON.parse(l),d=f.availableLanguages["*"];a=f.locale,u=d||t.LANGUAGE_DEFAULT,c=f._translationsConfigFile}catch(e){}o=!0}else if("object"==typeof navigator){var p=navigator.userAgent;n=p.indexOf("Windows")>=0,r=p.indexOf("Macintosh")>=0,i=p.indexOf("Linux")>=0,s=!0,u=a=navigator.language}var h;!function(e){e[e.Web=0]="Web",
e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(h=t.Platform||(t.Platform={}));var v=h.Web;o&&(r?v=h.Mac:n?v=h.Windows:i&&(v=h.Linux)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=o,t.isWeb=s,t.platform=v,t.isRootUser=function(){return o&&!n&&0===process.getuid()},t.language=u,t.locale=a,t.translationsConfigFile=c;var m="object"==typeof self?self:"object"==typeof global?global:{};t.globals=m;var g=null;t.setImmediate=function(e){return null===g&&(g=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),g(e)};!function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(t.OperatingSystem||(t.OperatingSystem={})),t.OS=r?2:n?1:3;!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(t.AccessibilitySupport||(t.AccessibilitySupport={}))}),define(e[5],t([0,1]),function(e,t){"use strict"
;function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var r=0;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function i(e,t){if(!e||!t)return e;var n=t.length,r=e.length;if(0===n||0===r)return e;for(var i=r,o=-1;;){if(-1===(o=e.lastIndexOf(t,i-1))||o+n!==i)break;if(0===o)return"";i=o}return e.substring(0,i)}function o(e,t){return e<t?-1:e>t?1:0}function s(e){return e>=97&&e<=122}function a(e){return e>=65&&e<=90}function u(e){return s(e)||a(e)}function c(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;r<n;r++){var i=e.charCodeAt(r),o=t.charCodeAt(r);if(i!==o)if(u(i)&&u(o)){var s=Math.abs(i-o);if(0!==s&&32!==s)return!1}else if(String.fromCharCode(i).toLowerCase()!==String.fromCharCode(o).toLowerCase())return!1}return!0}function l(e,t,n,r,i,o){for(;t<n&&i<o;){if(e[t]!==r[i])return!1;t+=1,i+=1}return!0}function f(e){
return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function d(e){return e&&e.length>0&&65279===e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n){void 0===n&&(n="0");for(var r=""+e,i=[r],o=r.length;o<t;o++)i.push(n);return i.reverse().join("")};var p=/{(\d+)}/g;t.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(p,function(e,n){var r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]})},t.escape=function(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t){return void 0===t&&(t=" "),i(r(e,t),t)},t.ltrim=r,t.rtrim=i,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},
t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.endsWith=function(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return r.global&&(i+="g"),r.matchCase||(i+="i"),r.multiline&&(i+="m"),new RegExp(e,i)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&e.exec("")&&0===e.lastIndex},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.firstNonWhitespaceIndex=function(e){for(var t=0,n=e.length;t<n;t++){var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}return-1},t.getLeadingWhitespace=function(e,t,n){void 0===t&&(t=0),
void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(32!==i&&9!==i)return e.substring(t,r)}return e.substring(t,n)},t.lastNonWhitespaceIndex=function(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1},t.compare=o,t.compareIgnoreCase=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.charCodeAt(r),u=t.charCodeAt(r);if(i!==u){a(i)&&(i+=32),a(u)&&(u+=32);var c=i-u;if(0!==c)return s(i)&&s(u)?c:o(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=s,t.isUpperAsciiLetter=a,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&c(e,t)},t.startsWithIgnoreCase=function(e,t){var n=t.length;return!(t.length>e.length)&&c(e,t,n)},t.commonPrefixLength=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r},t.commonSuffixLength=function(e,t){
var n,r=Math.min(e.length,t.length),i=e.length-1,o=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(o-n))return n;return r},t.overlap=function(e,t){var n=e.length,r=t.length,i=n-r;if(0===i)return e===t?n:0;for(i<0&&(r+=i,i=0);i<n&&r>0;){if(l(e,i,n,t,0,r))return r;r-=1,i+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343};var h=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=function(e){return h.test(e)}
;var v=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return v.test(e)};var m=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return m.test(e)},t.containsFullWidthCharacter=function(e){for(var t=0,n=e.length;t<n;t++)if(f(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=f,t.lcut=function(e,n){if(e.length<n)return e;for(var r=/\b/g,i=0;r.test(e)&&!(e.length-r.lastIndex<n);)i=r.lastIndex,r.lastIndex+=1;return e.substring(i).replace(/^\s/,t.empty)};var g=/\x1B\x5B[12]?K/g,y=/\x1b\[\d+m/g,b=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(g,"")).replace(y,"")).replace(b,"")),e},t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=d,t.stripUTF8BOM=function(e){return d(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},
t.fuzzyContains=function(e,t){if(!e||!t)return!1;if(e.length<t.length)return!1;for(var n=t.length,r=e.toLowerCase(),i=0,o=-1;i<n;){var s=r.indexOf(t[i],o+1);if(s<0)return!1;o=s,i++}return!0},t.containsUppercaseCharacter=function(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)},t.uppercaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}}),define(e[48],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toLocalISOString=function(e){return e.getFullYear()+"-"+n.pad(e.getMonth()+1,2)+"-"+n.pad(e.getDate(),2)+"T"+n.pad(e.getHours(),2)+":"+n.pad(e.getMinutes(),2)+":"+n.pad(e.getSeconds(),2)+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}),define(e[26],t([0,1,4,5]),function(e,t,n,r){"use strict";function i(e,r){void 0===r&&(r=t.nativeSep);var o=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(0===o)return".";if(0==~o)return e[0];if(~o==e.length-1)return i(e.substring(0,e.length-1));var s=e.substring(0,~o)
;return n.isWindows&&":"===s[s.length-1]&&(s+=r),s}function o(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?o(e.substring(0,e.length-1)):e.substr(1+~t)}function s(e,t){if(null===e||void 0===e)return e;var r=e.length;if(0===r)return".";var i=n.isWindows&&t;if(function(e,t){return t?!d.test(e):!f.test(e)}(e,i))return e;for(var o=i?"\\":"/",s=u(e,o),c=s.length,l=!1,p="",h=s.length;h<=r;h++)if(h===r||47===e.charCodeAt(h)||92===e.charCodeAt(h)){if(a(e,c,h,"..")){var v=p.lastIndexOf(o),m=p.slice(v+1);(s||m.length>0)&&".."!==m&&(p=-1===v?"":p.slice(0,v),l=!0)}else a(e,c,h,".")&&(s||p||h<r-1)&&(l=!0);if(!l){var g=e.slice(c,h);""!==p&&p[p.length-1]!==o&&(p+=o),p+=g}c=h+1,l=!1}return s+p}function a(e,t,n,r){return t+r.length===n&&e.indexOf(r,t)===t}function u(e,t){if(void 0===t&&(t="/"),!e)return"";var n=e.length,r=e.charCodeAt(0);if(47===r||92===r){if((47===(r=e.charCodeAt(1))||92===r)&&47!==(r=e.charCodeAt(2))&&92!==r){for(var i=3,o=i;i<n&&(47!==(r=e.charCodeAt(i))&&92!==r);i++);
if(r=e.charCodeAt(i+1),o!==i&&47!==r&&92!==r)for(i+=1;i<n;i++)if(47===(r=e.charCodeAt(i))||92===r)return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if((r>=65&&r<=90||r>=97&&r<=122)&&58===e.charCodeAt(1))return 47===(r=e.charCodeAt(2))||92===r?e.slice(0,2)+t:e.slice(0,2);var s=e.indexOf("://");if(-1!==s)for(s+=3;s<n;s++)if(47===(r=e.charCodeAt(s))||92===r)return e.slice(0,s+1);return""}function c(e){if(!e)return!1;var t=e.charCodeAt(0);if(47===t||92===t)return!0;if((t>=65&&t<=90||t>=97&&t<=122)&&e.length>2&&58===e.charCodeAt(1)){var n=e.charCodeAt(2);if(47===n||92===n)return!0}return!1}function l(e){return e&&47===e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.sep="/",t.nativeSep=n.isWindows?"\\":"/",t.dirname=i,t.basename=o,t.extname=function(e){var t=~(e=o(e)).lastIndexOf(".");return t?e.substring(~t):""};var f=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,d=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;t.normalize=s,t.getRoot=u,t.join=function(){
for(var e="",n=0;n<arguments.length;n++){var r=arguments[n];if(n>0){var i=e.charCodeAt(e.length-1);if(47!==i&&92!==i){var o=r.charCodeAt(0);47!==o&&92!==o&&(e+=t.sep)}}e+=r}return s(e)},t.isUNC=function(e){if(!n.isWindows)return!1;if(!e||e.length<5)return!1;var t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;for(var r=2,i=r;r<e.length&&92!==(t=e.charCodeAt(r));r++);return i!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};var p=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,h=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(p.lastIndex=0,p.test(e)||n.isWindows&&h.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length))},t.isEqual=function(e,t,n){var i=e===t;return!n||i?i:!(!e||!t)&&r.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,n,i,o){if(void 0===o&&(o=t.nativeSep),e===n)return!0;if(!e||!n)return!1;if(n.length>e.length)return!1;if(i){
if(!r.startsWithIgnoreCase(e,n))return!1;if(n.length===e.length)return!0;var s=n.length;return n.charAt(n.length-1)===o&&s--,e.charAt(s)===o}return n.charAt(n.length-1)!==o&&(n+=o),0===e.indexOf(n)},t.isAbsolute=function(e){return n.isWindows?c(e):l(e)},t.isAbsolute_win32=c,t.isAbsolute_posix=l}),define(e[8],t([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==c.number||e.constructor!==Array)}function r(e){return typeof e===c.string||e instanceof String}function i(e){return!(typeof e!==c.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function o(e){return typeof e===c.undefined}function s(e){return o(e)||null===e}function a(e){return typeof e===c.function}function u(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(a(t)){if(e instanceof t)return;if(!s(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return
;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}Object.defineProperty(t,"__esModule",{value:!0});var c={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=n,t.isString=r,t.isStringArray=function(e){return n(e)&&e.every(function(e){return r(e)})},t.isObject=i,t.isNumber=function(e){return(typeof e===c.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=o,t.isUndefinedOrNull=s;var l=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!i(e))return!1;for(var t in e)if(l.call(e,t))return!1;return!0},t.isFunction=a,t.areFunctions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e&&e.length>0&&e.every(a)},t.validateConstraints=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)u(e[r],t[r])},t.validateConstraint=u,t.create=function(e){
for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Object.create(e.prototype);return e.apply(r,t),r}}),define(e[73],t([0,1,8,31]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._hashFn=e,this._nodes=Object.create(null)}return e.prototype.roots=function(){var e=[];return r.forEach(this._nodes,function(t){n.isEmptyObject(t.value.outgoing)&&e.push(t.value)}),e},e.prototype.traverse=function(e,t,n){var r=this.lookup(e);r&&this._traverse(r,t,Object.create(null),n)},e.prototype._traverse=function(e,t,n,i){var o=this,s=this._hashFn(e.data);if(!n[s]){n[s]=!0,i(e.data);var a=t?e.outgoing:e.incoming;r.forEach(a,function(e){return o._traverse(e.value,t,n,i)})}},e.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),r=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=r,r.incoming[this._hashFn(e)]=n},e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],r.forEach(this._nodes,function(e){
delete e.value.outgoing[t],delete e.value.incoming[t]})},e.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n=function(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}(e),this._nodes[t]=n),n},e.prototype.lookup=function(e){return this._nodes[this._hashFn(e)]},Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this._nodes).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var e=[];return r.forEach(this._nodes,function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")}),e.join("\n")},e}();t.Graph=i}),define(e[17],t([0,1,8]),function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){e[n]&&"object"==typeof e[n]?t[n]=r(e[n]):t[n]=e[n]}),t}function i(e,t,r){if(n.isUndefinedOrNull(e))return e
;var o=t(e);if(void 0!==o)return o;if(n.isArray(e)){for(var s=[],a=0;a<e.length;a++)s.push(i(e[a],t,r));return s}if(n.isObject(e)){if(r.indexOf(e)>=0)throw new Error("Cannot clone recursive data-structure");r.push(e);var c={};for(var l in e)u.call(e,l)&&(c[l]=i(e[l],t,r));return r.pop(),c}return e}function o(e,t,r){return void 0===r&&(r=!0),n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(function(i){i in e?r&&(n.isObject(e[i])&&n.isObject(t[i])?o(e[i],t[i],r):e[i]=t[i]):e[i]=t[i]}),e):t}function s(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!s(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var o=[];for(r in t)o.push(r);if(o.sort(),!s(i,o))return!1;for(n=0;n<i.length;n++)if(!s(e[i[n]],t[i[n]]))return!1}return!0}function a(e){
for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=r,t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;for(var t=[e];t.length>0;){var n=t.shift();Object.freeze(n);for(var r in n)if(u.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e};var u=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return i(e,t,[])},t.mixin=o,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e},t.equals=s,t.arrayToHash=a,t.createKeywordMatcher=function(e,t){void 0===t&&(t=!1),t&&(e=e.map(function(e){return e.toLowerCase()}));var n=a(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}},t.safeStringify=function(e){var t=[];return JSON.stringify(e,function(e,r){if(n.isObject(r)||Array.isArray(r)){
if(-1!==t.indexOf(r))return"[Circular]";t.push(r)}return r})},t.getOrDefault=function(e,t,n){void 0===n&&(n=null);var r=t(e);return void 0===r?n:r},t.distinct=function(e,t){var n=Object.create(null);return e&&t?(Object.keys(t).forEach(function(r){var i=e[r],o=t[r];s(i,o)||(n[r]=o)}),n):n}});var n=this&&this.__extends||function(){var e=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])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();define(e[9],t([0,1,4]),function(e,t,r){"use strict";function i(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=m[o]
;void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function o(e){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,r.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){var n=t?function(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:i,r="",o=e.scheme,s=e.authority,a=e.path,u=e.query,c=e.fragment;if(o&&(r+=o,r+=":"),(s||"file"===o)&&(r+=d,r+=d),s){var l=s.indexOf("@");if(-1!==l){var f=s.substr(0,l);s=s.substr(l+1),-1===(l=f.indexOf(":"))?r+=n(f,!1):(r+=n(f.substr(0,l),!1),r+=":",r+=n(f.substr(l+1),!1)),r+="@"}
-1===(l=(s=s.toLowerCase()).indexOf(":"))?r+=n(s,!1):(r+=n(s.substr(0,l),!1),r+=s.substr(l))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){(p=a.charCodeAt(1))>=65&&p<=90&&(a="/"+String.fromCharCode(p+32)+":"+a.substr(3))}else if(a.length>=2&&58===a.charCodeAt(1)){var p=a.charCodeAt(0);p>=65&&p<=90&&(a=String.fromCharCode(p+32)+":"+a.substr(2))}r+=n(a,!0)}return u&&(r+="?",r+=n(u,!1)),c&&(r+="#",r+=t?c:i(c,!1)),r}Object.defineProperty(t,"__esModule",{value:!0});var a,u=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//,f="",d="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,h=function(){function e(e,t,n,r,i){"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=e||f,this.authority=t||f,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,n||f),this.query=r||f,this.fragment=i||f,function(e){
if(e.scheme||console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}'),e.scheme&&!u.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return o(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this
;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===i?i=this.query:null===i&&(i=f),void 0===o?o=this.fragment:null===o&&(o=f),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new v(t,n,r,i,o)},e.parse=function(e){var t=p.exec(e);return t?new v(t[2]||f,decodeURIComponent(t[4]||f),decodeURIComponent(t[5]||f),decodeURIComponent(t[7]||f),decodeURIComponent(t[9]||f)):new v(f,f,f,f,f)},e.file=function(e){var t=f;if(r.isWindows&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){var n=e.indexOf(d,2);-1===n?(t=e.substring(2),e=d):(t=e.substring(2,n),e=e.substring(n)||d)}return new v("file",t,e,f,f)},e.from=function(e){return new v(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),s(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){
if(t instanceof e)return t;var n=new v(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.URI=h,t.default=h;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return n(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=o(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(h),m=(a={},a[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",
a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a)}),define(e[14],t([0,1,9]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return n.default.parse(e.toUrl(t)).fsPath}}),define(e[28],t([0,1,9]),function(e,t,r){"use strict";function i(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function o(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=i,t.keys=o,t.getOrSet=function(e,t,n){var r=e.get(t);return void 0===r&&(r=n,e.set(t,r)),r};var s=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},e.prototype.next=function(){return this._pos+=1,this},e.prototype.hasNext=function(){return this._pos<this._value.length-1},e.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},e.prototype.value=function(){
return this._value[this._pos]},e}();t.StringIterator=s;var a=function(){function e(){}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this},e.prototype.cmp=function(e){for(var t=0,n=e.length,r=this._from;t<n&&r<this._to;){var i=e.charCodeAt(t)-this._value.charCodeAt(r);if(0!==i)return i;t+=1,r+=1}return n===this._to-this._from?0:t<n?-1:1},e.prototype.value=function(){return this._value.substring(this._from,this._to)},e}();t.PathIterator=a;var u=function(){function e(){}return e.prototype.isEmpty=function(){return!(this.left||this.mid||this.right||this.value)},e}(),c=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new a)},e.forStrings=function(){
return new e(new s)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,t){var n,r=this._iter.reset(e);for(this._root||(this._root=new u,this._root.segment=r.value()),n=this._root;;){var i=r.cmp(n.segment);if(i>0)n.left||(n.left=new u,n.left.segment=r.value()),n=n.left;else if(i<0)n.right||(n.right=new u,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new u,n.mid.segment=r.value()),n=n.mid}}var o=n.value;return n.value=t,n.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},e.prototype.delete=function(e){for(var t=this._iter.reset(e),n=[],r=this._root;r;){var i=t.cmp(r.segment);if(i>0)n.push([1,r]),r=r.left;else if(i<0)n.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;n.length>0&&r.isEmpty();){var o=n.pop(),s=o[0],a=o[1];switch(s){case 1:a.left=void 0;break;case 0:
a.mid=void 0;break;case-1:a.right=void 0}r=a}break}t.next(),n.push([0,r]),r=r.mid}}},e.prototype.findSubstr=function(e){for(var t,n=this._iter.reset(e),r=this._root;r;){var i=n.cmp(r.segment);if(i>0)r=r.left;else if(i<0)r=r.right;else{if(!n.hasNext())break;n.next(),t=r.value||t,r=r.mid}}return r&&r.value||t},e.prototype.findSuperstr=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())return n.mid?this._nodeIterator(n.mid):void 0;t.next(),n=n.mid}}},e.prototype._nodeIterator=function(e){var t,n,r=this,i={done:!1,value:void 0};return{next:function(){return n||(n=[],t=0,r._forEach(e,function(e){return n.push(e)})),t>=n.length?(i.done=!0,i.value=void 0):(i.done=!1,i.value=n[t++]),i}}},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}();t.TernarySearchTree=c;var l=function(){
function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.has=function(e){return this.map.has(this.toKey(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.delete=function(e){return this.map.delete(this.toKey(e))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.values=function(){return i(this.map)},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e.prototype.keys=function(){return o(this.map).map(r.default.parse)},e.prototype.clone=function(){var t=new e;return this.map.forEach(function(e,n){return t.map.set(n,e)}),t},e}();t.ResourceMap=l;var f;!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(f=t.Touch||(t.Touch={}));var d=function(){function e(){this._map=new Map,
this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},e.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.get=function(e,t){void 0===t&&(t=f.None);var n=this._map.get(e);if(n)return t!==f.None&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=f.None);var r=this._map.get(e);if(r)r.value=t,n!==f.None&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case f.None:this.addItemLast(r);break;case f.AsOld:this.addItemFirst(r);break;case f.AsNew:default:this.addItemLast(r)}this._map.set(e,r),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},
e.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}},e.prototype.forEach=function(e,t){for(var n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.values=function(){for(var e=[],t=this._head;t;)e.push(t.value),t=t.next;return e},e.prototype.keys=function(){for(var e=[],t=this._head;t;)e.push(t.key),t=t.next;return e},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t.previous=void 0}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list")
;e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head)this._head=e.next;else if(e===this._tail)this._tail=e.previous;else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===f.AsOld||t===f.AsNew)if(t===f.AsOld){if(e===this._head)return;var n=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(n.previous=r,r.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(t===f.AsNew){if(e===this._tail)return;var n=e.next,r=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=r,r.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),e},
e.prototype.fromJSON=function(e){this.clear();for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r[0],o=r[1];this.set(i,o)}},e}();t.LinkedMap=d;var p=function(e){function t(t,n){void 0===n&&(n=1);var r=e.call(this)||this;return r._limit=t,r._ratio=Math.min(Math.max(0,n),1),r}return n(t,e),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ratio",{get:function(){return this._ratio},set:function(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t,f.AsNew)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,f.None)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,f.AsNew),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(d);t.LRUCache=p}),
define(e[58],t([0,1,28]),function(e,t,n){"use strict";function r(e,n,r){if(!t.canNormalize||!e)return e;var i=r.get(e);if(i)return i;var o;return o=s.test(e)?e.normalize(n):e,r.set(e,o),o}Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;var i=new n.LRUCache(1e4);t.normalizeNFC=function(e){return r(e,"NFC",i)};var o=new n.LRUCache(1e4);t.normalizeNFD=function(e){return r(e,"NFD",o)};var s=/[^\u0000-\u0080]/}),define(e[25],t([0,1]),function(e,t){"use strict";function r(){return new s}function i(e){return a.test(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._value=e}return e.prototype.asHex=function(){return this._value},e}(),s=function(e){function t(){
return e.call(this,[t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))||this}return n(t,e),t._oneOf=function(e){return e[Math.floor(e.length*Math.random())]},t._randomHex=function(){return t._oneOf(t._chars)},t._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t._timeHighBits=["8","9","a","b"],t}(o);t.v4=r;var a=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;t.isUUID=i,t.parse=function(e){if(!i(e))throw new Error("invalid uuid");return new o(e)},t.generateUuid=function(){return r().asHex()}});var r;!function(){
var e=Object.create(null);e["WinJS/Core/_WinJS"]={};var t=function(t,n,r){var i={},o=!1,s=n.map(function(t){return"exports"===t?(o=!0,i):e[t]}),a=r.apply({},s);e[t]=o?i:a};t("WinJS/Core/_Global",[],function(){"use strict";return"undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{}}),t("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){"use strict";var t=null;return{hasWinRT:!!e.Windows,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e},_setImmediate:function(n){null===t&&(t=e.setImmediate?e.setImmediate.bind(e):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):e.setTimeout.bind(e)),t(n)}}}),t("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){"use strict";return e.msWriteProfilerMark||function(){}}),t("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,r){"use strict"
;function i(e,t,n){var r,i,o,s=Object.keys(t),a=Array.isArray(e);for(i=0,o=s.length;i<o;i++){var u=s[i],c=95!==u.charCodeAt(0),l=t[u];!l||"object"!=typeof l||void 0===l.value&&"function"!=typeof l.get&&"function"!=typeof l.set?c?a?e.forEach(function(e){e[u]=l}):e[u]=l:(r=r||{})[u]={value:l,enumerable:c,configurable:!0,writable:!0}:(void 0===l.enumerable&&(l.enumerable=c),n&&l.setName&&"function"==typeof l.setName&&l.setName(n+"."+u),(r=r||{})[u]=l)}r&&(a?e.forEach(function(e){Object.defineProperties(e,r)}):Object.defineProperties(e,r))}return function(){function n(n,r){var i=n||{};if(r){var o=r.split(".");i===t&&"WinJS"===o[0]&&(i=e,o.splice(0,1));for(var s=0,a=o.length;s<a;s++){var u=o[s];i[u]||Object.defineProperty(i,u,{value:{},writable:!1,enumerable:!0,configurable:!0}),i=i[u]}}return i}function o(e,t,r){var o=n(e,t);return r&&i(o,r,t||"<ANONYMOUS>"),o}var s=e;s.Namespace||(s.Namespace=Object.create(Object.prototype));var a={uninitialized:1,working:2,initialized:3};Object.defineProperties(s.Namespace,{
defineWithParent:{value:o,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,n){return o(t,e,n)},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(e){var t,n,i=a.uninitialized;return{setName:function(e){t=e},get:function(){switch(i){case a.initialized:return n;case a.uninitialized:i=a.working;try{r("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{r("WinJS.Namespace._lazy:"+t+",StopTM"),i=a.uninitialized}return e=null,i=a.initialized,n;case a.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(i){case a.working:throw"Illegal: reentrancy on initialization";default:i=a.initialized,n=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,r,o){var s=[e],a=null;return r&&(a=n(t,r),s.push(a)),i(s,o,r||"<ANONYMOUS>"),a},writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,r){return e=e||function(){},n.markSupportedForProcessing(e),t&&i(e.prototype,t),
r&&i(e,r),e}e.Namespace.define("WinJS.Class",{define:t,derive:function(e,r,o,s){if(e){r=r||function(){};var a=e.prototype;return r.prototype=Object.create(a),n.markSupportedForProcessing(r),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,configurable:!0,enumerable:!0}),o&&i(r.prototype,o),s&&i(r,s),r}return t(r,o,s)},mix:function(e){e=e||function(){};var t,n;for(t=1,n=arguments.length;t<n;t++)i(e.prototype,arguments[t]);return e}})}(),{Namespace:e.Namespace,Class:e.Class}}),t("WinJS/Core/_ErrorFromName",["WinJS/Core/_Base"],function(e){"use strict";var t=e.Class.derive(Error,function(e,t){this.name=e,this.message=t||e},{},{supportedForProcessing:!1});return e.Namespace.define("WinJS",{ErrorFromName:t}),t}),t("WinJS/Core/_Events",["exports","WinJS/Core/_Base"],function(e,t){"use strict";function n(e){var t="_on"+e+"state";return{get:function(){var e=this[t];return e&&e.userHandler},set:function(n){var r=this[t];n?(r||(r={wrapper:function(e){return r.userHandler(e)},userHandler:n},
Object.defineProperty(this,t,{value:r,enumerable:!1,writable:!0,configurable:!0}),this.addEventListener(e,r.wrapper,!1)),r.userHandler=n):r&&(this.removeEventListener(e,r.wrapper,!1),this[t]=null)},enumerable:!0}}var r=t.Class.define(function(e,t,n){this.detail=t,this.target=n,this.timeStamp=Date.now(),this.type=e},{bubbles:{value:!1,writable:!1},cancelable:{value:!1,writable:!1},currentTarget:{get:function(){return this.target}},defaultPrevented:{get:function(){return this._preventDefaultCalled}},trusted:{value:!1,writable:!1},eventPhase:{value:0,writable:!1},target:null,timeStamp:null,type:null,preventDefault:function(){this._preventDefaultCalled=!0},stopImmediatePropagation:function(){this._stopImmediatePropagationCalled=!0},stopPropagation:function(){}},{supportedForProcessing:!1}),i={_listeners:null,addEventListener:function(e,t,n){n=n||!1,this._listeners=this._listeners||{};for(var r=this._listeners[e]=this._listeners[e]||[],i=0,o=r.length;i<o;i++){var s=r[i];if(s.useCapture===n&&s.listener===t)return}
r.push({listener:t,useCapture:n})},dispatchEvent:function(e,t){var n=this._listeners&&this._listeners[e];if(n){for(var i=new r(e,t,this),o=0,s=(n=n.slice(0,n.length)).length;o<s&&!i._stopImmediatePropagationCalled;o++)n[o].listener(i);return i.defaultPrevented||!1}return!1},removeEventListener:function(e,t,n){n=n||!1;var r=this._listeners&&this._listeners[e];if(r)for(var i=0,o=r.length;i<o;i++){var s=r[i];if(s.listener===t&&s.useCapture===n){r.splice(i,1),0===r.length&&delete this._listeners[e];break}}}};t.Namespace._moduleDefine(e,"WinJS.Utilities",{_createEventProperty:n,createEventProperties:function(){for(var e={},t=0,r=arguments.length;t<r;t++){var i=arguments[t];e["on"+i]=n(i)}return e},eventMixin:i})}),t("WinJS/Core/_Trace",["WinJS/Core/_Global"],function(e){"use strict";function t(e){return e}return{_traceAsyncOperationStarting:e.Debug&&e.Debug.msTraceAsyncOperationStarting&&e.Debug.msTraceAsyncOperationStarting.bind(e.Debug)||t,
_traceAsyncOperationCompleted:e.Debug&&e.Debug.msTraceAsyncOperationCompleted&&e.Debug.msTraceAsyncOperationCompleted.bind(e.Debug)||t,_traceAsyncCallbackStarting:e.Debug&&e.Debug.msTraceAsyncCallbackStarting&&e.Debug.msTraceAsyncCallbackStarting.bind(e.Debug)||t,_traceAsyncCallbackCompleted:e.Debug&&e.Debug.msTraceAsyncCallbackCompleted&&e.Debug.msTraceAsyncCallbackCompleted.bind(e.Debug)||t}}),t("WinJS/Promise/_StateMachine",["WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_Base","WinJS/Core/_ErrorFromName","WinJS/Core/_Events","WinJS/Core/_Trace"],function(e,t,n,r,i,o){"use strict";function s(){}function a(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?D:M,e._value=t,e._setState(n)}function u(e,t,n,r,i,o){return{exception:e,error:t,promise:n,handler:o,id:r,parent:i}}function c(e,t,n,r){var i=n._isException,o=n._errorId;return u(i?t:null,i?null:t,e,o,n,r)}function l(e,t,n){var r=n._isException,i=n._errorId;return _(e,i,r),u(r?t:null,r?null:t,e,i,n)}function f(e,t){var n=++W
;return _(e,n),u(null,t,e,n)}function d(e,t){var n=++W;return _(e,n,!0),u(t,null,e,n)}function p(e,t,n,r){b(e,{c:t,e:n,p:r,asyncOpID:o._traceAsyncOperationStarting("WinJS.Promise.done")})}function h(e,t,n,r){e._value=t,g(e,t,n,r),e._setState(F)}function v(t,n){var r=t._value,i=t._listeners;if(i){t._listeners=null;var s,a;for(s=0,a=Array.isArray(i)?i.length:1;s<a;s++){var u=1===a?i:i[s],c=u.c,l=u.promise;if(o._traceAsyncOperationCompleted(u.asyncOpID,e.Debug&&e.Debug.MS_ASYNC_OP_STATUS_SUCCESS),l){o._traceAsyncCallbackStarting(u.asyncOpID);try{l._setCompleteValue(c?c(r):r)}catch(e){l._setExceptionValue(e)}finally{o._traceAsyncCallbackCompleted()}l._state!==D&&l._listeners&&n.push(l)}else q.prototype.done.call(t,c)}}}function m(t,n){var r=t._value,i=t._listeners;if(i){t._listeners=null;var s,a;for(s=0,a=Array.isArray(i)?i.length:1;s<a;s++){var u=1===a?i:i[s],l=u.e,f=u.promise,d=e.Debug&&(r&&r.name===O?e.Debug.MS_ASYNC_OP_STATUS_CANCELED:e.Debug.MS_ASYNC_OP_STATUS_ERROR)
;if(o._traceAsyncOperationCompleted(u.asyncOpID,d),f){var p=!1;try{l?(o._traceAsyncCallbackStarting(u.asyncOpID),p=!0,l.handlesOnError||g(f,r,c,t,l),f._setCompleteValue(l(r))):f._setChainedErrorValue(r,t)}catch(e){f._setExceptionValue(e)}finally{p&&o._traceAsyncCallbackCompleted()}f._state!==D&&f._listeners&&n.push(f)}else H.prototype.done.call(t,null,l)}}}function g(e,t,n,r,i){if(C._listeners[P]){if(t instanceof Error&&t.message===O)return;C.dispatchEvent(P,n(e,t,r,i))}}function y(e,t){var n=e._listeners;if(n){var r,i;for(r=0,i=Array.isArray(n)?n.length:1;r<i;r++){var o=1===i?n:n[r],s=o.p;if(s)try{s(t)}catch(e){}o.c||o.e||!o.promise||o.promise._progress(t)}}}function b(e,t){var n=e._listeners;n?(n=Array.isArray(n)?n:[n]).push(t):n=t,e._listeners=n}function _(e,t,n){e._isException=n||!1,e._errorId=t}function w(e,t,n,r){e._value=t,g(e,t,n,r),e._setState(j)}function E(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?D:N,e._value=t,e._setState(n)}function S(e,t,n,r){var i=new K(e);return b(e,{
promise:i,c:t,e:n,p:r,asyncOpID:o._traceAsyncOperationStarting("WinJS.Promise.then")}),i}e.Debug&&(e.Debug.setNonUserCodeExceptions=!0);var C=new(n.Class.mix(n.Class.define(null,{},{supportedForProcessing:!1}),i.eventMixin));C._listeners={};var P="error",O="Canceled",T=!1,x={promise:1,thenPromise:2,errorPromise:4,exceptionPromise:8,completePromise:16};x.all=x.promise|x.thenPromise|x.errorPromise|x.exceptionPromise|x.completePromise;var k,I,D,A,L,R,M,N,F,j,W=1;k={name:"created",enter:function(e){e._setState(I)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},I={name:"working",enter:s,cancel:function(e){e._setState(L)},done:p,then:S,_completed:a,_error:h,_notify:s,_progress:y,_setCompleteValue:E,_setErrorValue:w},D={name:"waiting",enter:function(e){var t=e._value;if(t instanceof K&&t._state!==j&&t._state!==N)b(t,{promise:e});else{var n=function(r){t._errorId?e._chainedError(r,t):(g(e,r,c,t,n),e._error(r))};n.handlesOnError=!0,
t.then(e._completed.bind(e),n,e._progress.bind(e))}},cancel:function(e){e._setState(A)},done:p,then:S,_completed:a,_error:h,_notify:s,_progress:y,_setCompleteValue:E,_setErrorValue:w},A={name:"waiting_canceled",enter:function(e){e._setState(R);var t=e._value;t.cancel&&t.cancel()},cancel:s,done:p,then:S,_completed:a,_error:h,_notify:s,_progress:y,_setCompleteValue:E,_setErrorValue:w},L={name:"canceled",enter:function(e){e._setState(R),e._cancelAction()},cancel:s,done:p,then:S,_completed:a,_error:h,_notify:s,_progress:y,_setCompleteValue:E,_setErrorValue:w},R={name:"canceling",enter:function(e){var t=new Error(O);t.name=t.message,e._value=t,e._setState(F)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},M={name:"complete_notify",enter:function(e){if(e.done=q.prototype.done,e.then=q.prototype.then,e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(N)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:v,
_progress:s,_setCompleteValue:s,_setErrorValue:s},N={name:"success",enter:function(e){e.done=q.prototype.done,e.then=q.prototype.then,e._cleanupAction()},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:v,_progress:s,_setCompleteValue:s,_setErrorValue:s},F={name:"error_notify",enter:function(e){if(e.done=H.prototype.done,e.then=H.prototype.then,e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(j)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s},j={name:"error",enter:function(e){e.done=H.prototype.done,e.then=H.prototype.then,e._cleanupAction()},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s};var B,U=n.Class.define(null,{_listeners:null,_nextState:null,_state:null,_value:null,cancel:function(){this._state.cancel(this),this._run()},done:function(e,t,n){this._state.done(this,e,t,n)},then:function e(t,n,r){
if(this.then===e)return this._state.then(this,t,n,r);this.then(t,n,r)},_chainedError:function(e,t){var n=this._state._error(this,e,l,t);return this._run(),n},_completed:function(e){var t=this._state._completed(this,e);return this._run(),t},_error:function(e){var t=this._state._error(this,e,f);return this._run(),t},_progress:function(e){this._state._progress(this,e)},_setState:function(e){this._nextState=e},_setCompleteValue:function(e){this._state._setCompleteValue(this,e),this._run()},_setChainedErrorValue:function(e,t){var n=this._state._setErrorValue(this,e,l,t);return this._run(),n},_setExceptionValue:function(e){var t=this._state._setErrorValue(this,e,d);return this._run(),t},_run:function(){for(;this._nextState;)this._state=this._nextState,this._nextState=null,this._state.enter(this)}},{supportedForProcessing:!1}),K=n.Class.derive(U,function(e){T&&(!0===T||T&x.thenPromise)&&(this._stack=Y._getStack()),this._creator=e,this._setState(k),this._run()},{_creator:null,_cancelAction:function(){
this._creator&&this._creator.cancel()},_cleanupAction:function(){this._creator=null}},{supportedForProcessing:!1}),H=n.Class.define(function(e){T&&(!0===T||T&x.errorPromise)&&(this._stack=Y._getStack()),this._value=e,g(this,e,f)},{cancel:function(){},done:function(e,t){var n=this._value;if(t)try{t.handlesOnError||g(null,n,c,this,t);var r=t(n);return void(r&&"object"==typeof r&&"function"==typeof r.done&&r.done())}catch(e){n=e}n instanceof Error&&n.message===O||Y._doneHandler(n)},then:function(e,t){if(!t)return this;var n,r=this._value;try{t.handlesOnError||g(null,r,c,this,t),n=new q(t(r))}catch(e){n=e===r?this:new z(e)}return n}},{supportedForProcessing:!1}),z=n.Class.derive(H,function(e){T&&(!0===T||T&x.exceptionPromise)&&(this._stack=Y._getStack()),this._value=e,g(this,e,d)},{},{supportedForProcessing:!1}),q=n.Class.define(function(e){if(T&&(!0===T||T&x.completePromise)&&(this._stack=Y._getStack()),e&&"object"==typeof e&&"function"==typeof e.then){var t=new K(null);return t._setCompleteValue(e),t}
this._value=e},{cancel:function(){},done:function(e){if(e)try{var t=e(this._value);t&&"object"==typeof t&&"function"==typeof t.done&&t.done()}catch(e){Y._doneHandler(e)}},then:function(e){try{var t=e?e(this._value):this._value;return t===this._value?this:new q(t)}catch(e){return new z(e)}}},{supportedForProcessing:!1}),Y=n.Class.derive(U,function(e,t){T&&(!0===T||T&x.promise)&&(this._stack=Y._getStack()),this._oncancel=t,this._setState(k),this._run();try{e(this._completed.bind(this),this._error.bind(this),this._progress.bind(this))}catch(e){this._setExceptionValue(e)}},{_oncancel:null,_cancelAction:function(){try{if(!this._oncancel)throw new Error("Promise did not implement oncancel");this._oncancel()}catch(e){e.message,e.stack;C.dispatchEvent("error",e)}},_cleanupAction:function(){this._oncancel=null}},{addEventListener:function(e,t,n){C.addEventListener(e,t,n)},any:function(e){return new Y(function(t,n){var r=Object.keys(e);0===r.length&&t();var i=0;r.forEach(function(o){Y.as(e[o]).then(function(){t({key:o,
value:e[o]})},function(s){s instanceof Error&&s.name===O?++i===r.length&&t(Y.cancel):n({key:o,value:e[o]})})})},function(){Object.keys(e).forEach(function(t){var n=Y.as(e[t]);"function"==typeof n.cancel&&n.cancel()})})},as:function(e){return e&&"object"==typeof e&&"function"==typeof e.then?e:new q(e)},cancel:{get:function(){return B=B||new H(new r(O))}},dispatchEvent:function(e,t){return C.dispatchEvent(e,t)},is:function(e){return e&&"object"==typeof e&&"function"==typeof e.then},join:function(e){return new Y(function(t,n,r){var i=Object.keys(e),o=Array.isArray(e)?[]:{},s=Array.isArray(e)?[]:{},a=0,u=i.length,c=function(e){if(0==--u){var a=Object.keys(o).length;if(0===a)t(s);else{var c=0;i.forEach(function(e){var t=o[e];t instanceof Error&&t.name===O&&c++}),c===a?t(Y.cancel):n(o)}}else r({Key:e,Done:!0})};i.forEach(function(t){var n=e[t];void 0===n?a++:Y.then(n,function(e){s[t]=e,c(t)},function(e){o[t]=e,c(t)})}),0!==(u-=a)||t(s)},function(){Object.keys(e).forEach(function(t){var n=Y.as(e[t])
;"function"==typeof n.cancel&&n.cancel()})})},removeEventListener:function(e,t,n){C.removeEventListener(e,t,n)},supportedForProcessing:!1,then:function(e,t,n,r){return Y.as(e).then(t,n,r)},thenEach:function(e,t,n,r){var i=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(o){i[o]=Y.as(e[o]).then(t,n,r)}),Y.join(i)},timeout:function(n,r){var i=function(n){var r;return new Y(function(i){n?r=e.setTimeout(i,n):t._setImmediate(i)},function(){r&&e.clearTimeout(r)})}(n);return r?function(e,t){var n=function(){e.cancel()};return e.then(function(){t.cancel()}),t.then(n,n),t}(i,r):i},wrap:function(e){return new q(e)},wrapError:function(e){return new H(e)},_veryExpensiveTagWithStack:{get:function(){return T},set:function(e){T=e}},_veryExpensiveTagWithStack_tag:x,_getStack:function(){if(e.Debug&&e.Debug.debuggerEnabled)try{throw new Error}catch(e){return e.stack}},_cancelBlocker:function(e,t){if(!Y.is(e))return Y.wrap(e);var n,r,i=new Y(function(e,t){n=e,r=t},function(){n=null,r=null,t&&t()})
;return e.then(function(e){n&&n(e)},function(e){r&&r(e)}),i}});return Object.defineProperties(Y,i.createEventProperties(P)),Y._doneHandler=function(e){t._setImmediate(function(){throw e})},{PromiseStateMachine:U,Promise:Y,state_created:k}}),t("WinJS/Promise",["WinJS/Core/_Base","WinJS/Promise/_StateMachine"],function(e,t){"use strict";return e.Namespace.define("WinJS",{Promise:t.Promise}),t.Promise}),(r=e["WinJS/Core/_WinJS"]).TPromise=r.Promise,r.PPromise=r.Promise,"undefined"==typeof exports&&"function"==typeof define&&define.amd?define("vs/base/common/winjs.base",[],r):module.exports=r}(),define(e[12],t([0,1,3]),function(e,t,n){"use strict";function r(e){i(e)||t.errorHandler.onUnexpectedError(e)}function i(e){return e instanceof Error&&e.name===a&&e.message===a}Object.defineProperty(t,"__esModule",{value:!0});var o={};n.TPromise.addEventListener("error",function(e){var t=e.detail,n=t.id;t.parent?t.handler&&o&&delete o[n]:(o[n]=t,1===Object.keys(o).length&&setTimeout(function(){var e=o;o={},
Object.keys(e).forEach(function(t){var n=e[t];n.exception?r(n.exception):n.error&&r(n.error),console.log("WARNING: Promise with no error callback:"+n.id),console.log(n),n.exception&&console.log(n.exception.stack)})},0))});var s=function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}return e.prototype.addListener=function(e){var t=this;return this.listeners.push(e),function(){t._removeListener(e)}},e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})},e.prototype._removeListener=function(e){this.listeners.splice(this.listeners.indexOf(e),1)},e.prototype.setUnexpectedErrorHandler=function(e){this.unexpectedErrorHandler=e},e.prototype.getUnexpectedErrorHandler=function(){return this.unexpectedErrorHandler},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}()
;t.ErrorHandler=s,t.errorHandler=new s,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=r,t.onUnexpectedExternalError=function(e){i(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error)return{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack};return e};var a="Canceled";t.isPromiseCanceledError=i,t.canceled=function(){var e=new Error(a);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")},t.illegalState=function(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")},t.readonly=function(e){return e?new Error("readonly property '"+e+" cannot be changed'"):new Error("readonly property cannot be changed")},t.disposed=function(e){var t=new Error(e+" has been disposed");return t.name="DISPOSED",t},t.isErrorWithActions=function(e){return e instanceof Error&&Array.isArray(e.actions)},
t.create=function(e,t){void 0===t&&(t=Object.create(null));var n=new Error(e);return t.actions&&(n.actions=t.actions),n},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}});var i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,
!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(e[38],t([0,1,12,3]),function(e,t,n,r){"use strict";function s(e,t){var n=0,r=e.length;if(0===r)return 0;for(;n<r;){var i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function a(e,t){return u(e,t,0,e.length-1,[]),e}function u(e,t,n,r,i){if(!(r<=n)){var o=n+(r-n)/2|0;u(e,t,n,o,i),u(e,t,o+1,r,i),t(e[o],e[o+1])<=0||function(e,t,n,r,i,o){for(var s=n,a=r+1,u=n;u<=i;u++)o[u]=e[u]
;for(u=n;u<=i;u++)s>r?e[u]=o[a++]:a>i?e[u]=o[s++]:t(o[a],o[s])<0?e[u]=o[a++]:e[u]=o[s++]}(e,t,n,o,r,i)}}function c(e,t,n){function r(e,t,n){var r;if(0!==t||0!==n.length){var o=i[i.length-1];o&&o.start+o.deleteCount===e?(o.deleteCount+=t,(r=o.toInsert).push.apply(r,n)):i.push({start:e,deleteCount:t,toInsert:n})}}for(var i=[],o=0,s=0;;){if(o===e.length){r(o,0,t.slice(s));break}if(s===t.length){r(o,e.length-o,[]);break}var a=e[o],u=t[s],c=n(a,u);0===c?(o+=1,s+=1):c<0?(r(o,1,[]),o+=1):c>0&&(r(o,0,[u]),s+=1)}return i}function l(e,t,n,r,i){for(var o=function(i){var o=e[r];if(t(o,n[i-1])<0){n.pop();var a=s(n,function(e){return t(o,e)<0});n.splice(a,0,o)}},a=n.length;r<i;r++)o(a)}function f(e,t){for(var n=0;n<e.length;n++){if(t(e[n]))return n}return-1}Object.defineProperty(t,"__esModule",{value:!0}),t.tail=function(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]},t.tail2=function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]},t.equals=function(e,t,n){
if(void 0===n&&(n=function(e,t){return e===t}),e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0},t.binarySearch=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=(r+i)/2|0,s=n(e[o],t);if(s<0)r=o+1;else{if(!(s>0))return o;i=o-1}}return-(r+1)},t.findFirstInSorted=s,t.mergeSort=a,t.groupBy=function(e,t){for(var n,r=[],i=0,o=a(e.slice(0),t);i<o.length;i++){var s=o[i];n&&0===t(n[0],s)?n.push(s):(n=[s],r.push(n))}return r},t.sortedDiff=c,t.delta=function(e,t,n){for(var r=[],i=[],o=0,s=c(e,t,n);o<s.length;o++){var a=s[o];r.push.apply(r,e.slice(a.start,a.start+a.deleteCount)),i.push.apply(i,a.toInsert)}return{removed:r,added:i}},t.top=function(e,t,n){if(0===n)return[];var r=e.slice(0,n).sort(t);return l(e,t,r,n,e.length),r},t.topAsync=function(e,t,s,a,u){var c=this;return 0===s?r.TPromise.as([]):new r.TPromise(function(r,f){i(c,void 0,void 0,function(){var r,i,c,f;return o(this,function(o){switch(o.label){case 0:r=e.length,i=e.slice(0,s).sort(t),c=s,f=Math.min(s+a,r),
o.label=1;case 1:return c<r?c>s?[4,new Promise(function(e){return setTimeout(e)})]:[3,3]:[3,5];case 2:o.sent(),o.label=3;case 3:if(u&&u.isCancellationRequested)throw n.canceled();l(e,t,i,c,f),o.label=4;case 4:return c=f,f=Math.min(f+a,r),[3,1];case 5:return[2,i]}})}).then(r,f)})},t.coalesce=function(e,t){if(!e&&!t)return e;if(!t)return e.filter(function(e){return!!e});for(var n=0,r=0;r<e.length;r++)e[r]&&(e[n]=e[r],n+=1);e.length=n},t.move=function(e,t,n){e.splice(n,0,e.splice(t,1)[0])},t.isFalsyOrEmpty=function(e){return!Array.isArray(e)||0===e.length},t.distinct=function(e,t){if(!t)return e.filter(function(t,n){return e.indexOf(t)===n});var n=Object.create(null);return e.filter(function(e){var r=t(e);return!n[r]&&(n[r]=!0,!0)})},t.uniqueFilter=function(e){var t=Object.create(null);return function(n){var r=e(n);return!t[r]&&(t[r]=!0,!0)}},t.firstIndex=f,t.first=function(e,t,n){void 0===n&&(n=null);var r=f(e,t);return r<0?n:e[r]},t.commonPrefixLength=function(e,t,n){void 0===n&&(n=function(e,t){return e===t})
;for(var r=0,i=0,o=Math.min(e.length,t.length);i<o&&n(e[i],t[i]);i++)r++;return r},t.flatten=function(e){return[].concat.apply([],e)},t.range=function(e,t){var n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);var r=[];if(n<=t)for(i=n;i<t;i++)r.push(i);else for(var i=n;i>t;i--)r.push(i);return r},t.fill=function(e,t,n){void 0===n&&(n=[]);for(var r=0;r<e;r++)n[r]=t();return n},t.index=function(e,t,n){return void 0===n&&(n=function(e){return e}),e.reduce(function(e,r){var i=t(r);return e[i]=n(r,e[i]),e},Object.create(null))},t.insert=function(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}},t.arrayInsert=function(e,t,n){var r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)},t.shuffle=function(e,t){for(var n="number"==typeof t?function(){var e=179426549*Math.sin(t++);return e-Math.floor(e)}:Math.random,r=e.length-1;r>0;r-=1){var i=Math.floor(n()*(r+1)),o=e[r];e[r]=e[i],e[i]=o}},t.pushToStart=function(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))},
t.pushToEnd=function(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}}),define(e[2],t([0,1,12,27,6,72,3]),function(e,t,r,s,a,u,c){"use strict";function l(e){return function(t,n,r){void 0===n&&(n=null);var i=e(function(e){return i.dispose(),t.call(n,e)},null,r);return i}}function f(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){return n.call(r,t(e))},null,i)}}function d(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){t(e),n.call(r,e)},null,i)}}function p(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){return t(e)&&n.call(r,e)},null,i)}}function h(e){var t,n=!0;return p(e,function(e){var r=n||e!==t;return n=!1,t=e,r})}Object.defineProperty(t,"__esModule",{value:!0});!function(e){var t={dispose:function(){}};e.None=function(){return t}}(t.Event||(t.Event={}));var v=function(){function e(e){this._options=e}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,r,i){
t._listeners||(t._listeners=new u.LinkedList);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s=t._listeners.push(r?[n,r]:n);o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r);var a;return a={dispose:function(){a.dispose=e._noop,t._disposed||(s(),t._options&&t._options.onLastListenerRemove&&t._listeners.isEmpty()&&t._options.onLastListenerRemove(t))}},Array.isArray(i)&&i.push(a),a}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){var i=this._deliveryQueue.shift(),o=i[0],s=i[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){r.onUnexpectedError(n)}}}},e.prototype.dispose=function(){
this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}();t.Emitter=v;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.fireAsync=function(e){return i(this,void 0,void 0,function(){var t,n,i,s,a,u;return o(this,function(o){switch(o.label){case 0:if(!this._listeners)return[2];for(this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]),t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())u=[],this._asyncDeliveryQueue.push([n.value,e(u,"function"==typeof n.value?n.value:n.value[0]),u]);o.label=1;case 1:if(!(this._asyncDeliveryQueue.length>0))return[3,3];i=this._asyncDeliveryQueue.shift(),s=i[0],a=i[1],u=i[2];try{"function"==typeof s?s.call(void 0,a):s[0].call(s[1],a)}catch(e){return r.onUnexpectedError(e),[3,1]}return Object.freeze(u),[4,Promise.all(u)];case 2:return o.sent(),[3,1];case 3:return[2]}})})},t}(v);t.AsyncEmitter=m;var g=function(){function e(){var e=this
;this.hasListeners=!1,this.events=[],this.emitter=new v({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return a.toDisposable(s.once(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},
e}();t.EventMultiplexer=g,t.fromCallback=function(e){var t,n=new v({onFirstListenerAdd:function(){return t=e(function(e){return n.fire(e)})},onLastListenerRemove:function(){return t.dispose()}});return n.event},t.fromPromise=function(e){var t=new v,n=!1;return e.then(null,function(){return null}).then(function(){n?t.fire():setTimeout(function(){return t.fire()},0)}),n=!0,t.event},t.toPromise=function(e){return new c.TPromise(function(t){var n=e(function(e){n.dispose(),t(e)})})},t.once=l,t.anyEvent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,r){return void 0===n&&(n=null),a.combinedDisposable(e.map(function(e){return e(function(e){return t.call(n,e)},null,r)}))}},t.debounceEvent=function(e,t,n,r){void 0===n&&(n=100),void 0===r&&(r=!1);var i,o=void 0,s=void 0,a=0,u=new v({onFirstListenerAdd:function(){i=e(function(e){a++,o=t(o,e),r&&!s&&u.fire(o),clearTimeout(s),s=setTimeout(function(){var e=o;o=void 0,s=void 0,(!r||a>1)&&u.fire(e),a=0},n)})},
onLastListenerRemove:function(){i.dispose()}});return u.event};var y=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t),e(),this.buffers.pop(),t.forEach(function(e){return e()})},e}();t.EventBufferer=y,t.mapEvent=f,t.forEach=d,t.filterEvent=p;var b=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(f(this._event,t))},e.prototype.forEach=function(t){return new e(d(this._event,t))},e.prototype.filter=function(t){return new e(p(this._event,t))},e.prototype.latch=function(){return new e(h(this._event))},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e.prototype.once=function(e,t,n){return l(this._event)(e,t,n)
},e}();t.chain=function(e){return new b(e)},t.stopwatch=function(e){var t=(new Date).getTime();return f(l(e),function(e){return(new Date).getTime()-t})},t.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]),n=n.slice();var r=e(function(e){n?n.push(e):o.fire(e)}),i=function(){n.forEach(function(e){return o.fire(e)}),n=null},o=new v({onFirstListenerAdd:function(){r||(r=e(function(e){return o.fire(e)}))},onFirstListenerDidAdd:function(){n&&(t?setTimeout(i):i())},onLastListenerRemove:function(){r.dispose(),r=null}});return o.event},t.echo=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]),n=n.slice(),e(function(e){n.push(e),i.fire(e)});var r=function(e,t){return n.forEach(function(n){return e.call(t,n)})},i=new v({onListenerDidAdd:function(e,n,i){t?setTimeout(function(){return r(n,i)}):r(n,i)}});return i.event};var _=function(){function e(){this.emitter=new v,this.event=this.emitter.event,this.disposable=a.Disposable.None}return Object.defineProperty(e.prototype,"input",{set:function(e){
this.disposable.dispose(),this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}();t.Relay=_,t.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))},i=new v({onFirstListenerAdd:function(){return e.on(t,r)},onLastListenerRemove:function(){return e.removeListener(t,r)}});return i.event},t.latch=h}),define(e[15],t([0,1,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=0,this._onDidChangeFullscreen=new n.Emitter,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event,this._accessibilitySupport=0,
this._onDidChangeAccessibilitySupport=new n.Emitter,this.onDidChangeAccessibilitySupport=this._onDidChangeAccessibilitySupport.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.setZoomLevel=function(e,t){this._zoomLevel!==e&&(this._zoomLevel=e,this._lastZoomLevelChangeTime=t?0:Date.now(),this._onDidChangeZoomLevel.fire(this._zoomLevel))},e.prototype.getZoomFactor=function(){return this._zoomFactor},e.prototype.setZoomFactor=function(e){this._zoomFactor=e},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},e.prototype.setFullscreen=function(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())},
e.prototype.isFullscreen=function(){return this._fullscreen},e.prototype.setAccessibilitySupport=function(e){this._accessibilitySupport!==e&&(this._accessibilitySupport=e,this._onDidChangeAccessibilitySupport.fire())},e.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},e.INSTANCE=new e,e}();t.setZoomLevel=function(e,t){r.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return r.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return r.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){return r.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){r.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return r.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){r.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return r.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=function(e){return r.INSTANCE.onDidChangeFullscreen(e)},
t.setAccessibilitySupport=function(e){r.INSTANCE.setAccessibilitySupport(e)},t.getAccessibilitySupport=function(){return r.INSTANCE.getAccessibilitySupport()},t.onDidChangeAccessibilitySupport=function(e){return r.INSTANCE.onDidChangeAccessibilitySupport(e)};var i=navigator.userAgent;t.isIE=i.indexOf("Trident")>=0,t.isEdge=i.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=i.indexOf("Opera")>=0,t.isFirefox=i.indexOf("Firefox")>=0,t.isWebKit=i.indexOf("AppleWebKit")>=0,t.isChrome=i.indexOf("Chrome")>=0,t.isSafari=-1===i.indexOf("Chrome")&&i.indexOf("Safari")>=0,t.isIPad=i.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&i.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){var e=i.indexOf("Edge/"),n=parseInt(i.substring(e+5,i.indexOf(".",e)),10);if(!n||n>=12&&n<=16)return!1}return!0}}),define(e[50],t([0,1,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domEvent=function(e,t,r){var i=function(e){return o.fire(e)},o=new n.Emitter({
onFirstListenerAdd:function(){e.addEventListener(t,i,r)},onLastListenerRemove:function(){e.removeEventListener(t,i,r)}});return o.event},t.stop=function(e){return n.mapEvent(e,function(e){return e.preventDefault(),e.stopPropagation(),e})}}),define(e[29],t([0,1,47,4,15]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=new Array(230),s=new Array(112);!function(){function e(e,t){o[e]=t,s[t]=e}for(var t=0;t<s.length;t++)s[t]=-1;e(3,7),e(8,1),e(9,2),e(13,3),e(16,4),e(17,5),e(18,6),e(19,7),e(20,8),e(27,9),e(32,10),e(33,11),e(34,12),e(35,13),e(36,14),e(37,15),e(38,16),e(39,17),e(40,18),e(45,19),e(46,20),e(48,21),e(49,22),e(50,23),e(51,24),e(52,25),e(53,26),e(54,27),e(55,28),e(56,29),e(57,30),e(65,31),e(66,32),e(67,33),e(68,34),e(69,35),e(70,36),e(71,37),e(72,38),e(73,39),e(74,40),e(75,41),e(76,42),e(77,43),e(78,44),e(79,45),e(80,46),e(81,47),e(82,48),e(83,49),e(84,50),e(85,51),e(86,52),e(87,53),e(88,54),e(89,55),e(90,56),e(93,58),e(96,93),e(97,94),e(98,95),e(99,96),e(100,97),
e(101,98),e(102,99),e(103,100),e(104,101),e(105,102),e(106,103),e(107,104),e(108,105),e(109,106),e(110,107),e(111,108),e(112,59),e(113,60),e(114,61),e(115,62),e(116,63),e(117,64),e(118,65),e(119,66),e(120,67),e(121,68),e(122,69),e(123,70),e(124,71),e(125,72),e(126,73),e(127,74),e(128,75),e(129,76),e(130,77),e(144,78),e(145,79),e(186,80),e(187,81),e(188,82),e(189,83),e(190,84),e(191,85),e(192,86),e(193,110),e(194,111),e(219,87),e(220,88),e(221,89),e(222,90),e(223,91),e(226,92),e(229,109),i.isIE?e(91,57):i.isFirefox?(e(59,80),e(107,81),e(109,83),r.isMacintosh&&e(224,57)):i.isWebKit&&(e(91,57),r.isMacintosh?e(93,57):e(92,57))}(),t.getCodeForKeyCode=function(e){return s[e]};var a=r.isMacintosh?256:2048,u=r.isMacintosh?2048:256,c=function(){function e(e){var t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase()
;return n.KeyCodeUtils.fromString(t)}return o[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},e.prototype.equals=function(e){return this._asKeybinding===e},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=u),t|=e},
e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new n.SimpleKeybinding(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},e}();t.StandardKeyboardEvent=c}),define(e[65],t([0,1,4,15,49]),function(e,t,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(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=o.IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}return e.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}();t.StandardMouseEvent=s;var a=function(e){function t(t){var n=e.call(this,t)||this;return n.dataTransfer=t.dataTransfer,n}return n(t,e),t}(s);t.DragMouseEvent=a;var u=function(){function e(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 o=e,s=e;void 0!==o.wheelDeltaY?this.deltaY=o.wheelDeltaY/120:void 0!==s.VERTICAL_AXIS&&s.axis===s.VERTICAL_AXIS&&(this.deltaY=-s.detail/3),
void 0!==o.wheelDeltaX?i.isSafari&&r.isWindows?this.deltaX=-o.wheelDeltaX/120:this.deltaX=o.wheelDeltaX/120:void 0!==s.HORIZONTAL_AXIS&&s.axis===s.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3),0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}();t.StandardMouseWheelEvent=u}),define(e[66],t([0,1,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(r=t.CancellationToken||(t.CancellationToken={}))
;var o=function(){function e(){this._isCancelled=!1}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)},e}(),s=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new o),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled},e.prototype.dispose=function(){
this._token?this._token instanceof o&&this._token.dispose():this._token=r.None},e}();t.CancellationTokenSource=s}),define(e[10],t([0,1,12,3,66,6,2]),function(e,t,r,i,o,s,a){"use strict";function u(e){return e&&"function"==typeof e.then}function c(e){var t=new o.CancellationTokenSource,n=e(t.token),i=new Promise(function(e,i){t.token.onCancellationRequested(function(){i(r.canceled())}),Promise.resolve(n).then(function(n){t.dispose(),e(n)},function(e){t.dispose(),i(e)})});return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return i.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e}())}function l(e){return u(e)&&"function"==typeof e.done}function f(e,t){return l(e)?new i.TPromise(function(n,i){e.done(function(e){try{t(e)}catch(e){r.onUnexpectedError(e)}n(e)},function(e){try{t(e)}catch(e){r.onUnexpectedError(e)}i(e)})},function(){e.cancel()}):(e.then(function(e){return t()},function(e){return t()}),e)}function d(e){function t(s){
void 0!==s&&null!==s&&n.push(s);var a=r<o?e[r++]():null;return a?a.then(t):i.TPromise.as(n)}var n=[],r=0,o=e.length;return i.TPromise.as(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=u,t.toThenable=function(e){return u(e)?e:i.TPromise.as(e)},t.toWinJsPromise=function(e){return e instanceof i.TPromise?e:new i.TPromise(function(t,n){return e.then(t,n)})},t.createCancelablePromise=c,t.asWinJsPromise=function(e){var t=new o.CancellationTokenSource;return new i.TPromise(function(n,r){var o=e(t.token);o instanceof i.TPromise?o.then(function(e){t.dispose(),n(e)},function(e){t.dispose(),r(e)}):u(o)?o.then(function(e){t.dispose(),n(e)},function(e){t.dispose(),r(e)}):(t.dispose(),n(o))},function(){t.cancel()})},t.wireCancellationToken=function(e,t,n){var o=e.onCancellationRequested(function(){return t.cancel()});return n&&(t=t.then(void 0,function(e){if(!r.isPromiseCanceledError(e))return i.TPromise.wrapError(e)})),f(t,function(){return o.dispose()})},t.asDisposablePromise=function(e,t,n){
var o,s={promise:new i.TPromise(function(n,i){o=function(){n(t),l(e)&&e.cancel()},e.then(n,function(e){r.isPromiseCanceledError(e)?n(t):i(e)})}),dispose:o};return Array.isArray(n)&&n.push(s),s};var p=function(){function e(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}return e.prototype.queue=function(e){var t=this;if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){var n=function(){t.queuedPromise=null;var e=t.queue(t.queuedPromiseFactory);return t.queuedPromiseFactory=null,e};this.queuedPromise=new i.TPromise(function(e){t.activePromise.then(n,n).done(e)},function(){t.activePromise.cancel()})}return new i.TPromise(function(e,n){t.queuedPromise.then(e,n)},function(){})}return this.activePromise=e(),new i.TPromise(function(e,n){t.activePromise.done(function(n){t.activePromise=null,e(n)},function(e){t.activePromise=null,n(e)})},function(){t.activePromise.cancel()})},e}();t.Throttler=p;var h=function(){function e(){this.current=i.TPromise.wrap(null)}
return e.prototype.queue=function(e){return this.current=this.current.then(function(){return e()})},e}();t.SimpleThrottler=h;var v=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.onSuccess=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new i.TPromise(function(e){n.onSuccess=e},function(){}).then(function(){n.completionPromise=null,n.onSuccess=null;var e=n.task;return n.task=null,e()})),this.timeout=setTimeout(function(){n.timeout=null,n.onSuccess(null)},t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.completionPromise.cancel(),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e}();t.Delayer=v;var m=function(e){
function t(t){var n=e.call(this,t)||this;return n.throttler=new p,n}return n(t,e),t.prototype.trigger=function(t,n){var r=this;return e.prototype.trigger.call(this,function(){return r.throttler.queue(t)},n)},t}(v);t.ThrottledDelayer=m;var g=function(){function e(){var e=this;this._isOpen=!1,this._promise=new i.TPromise(function(t,n){e._completePromise=t},function(){console.warn("You should really not try to cancel this ready promise!")})}return e.prototype.isOpen=function(){return this._isOpen},e.prototype.open=function(){this._isOpen=!0,this._completePromise(!0)},e.prototype.wait=function(){return this._promise},e}();t.Barrier=g;var y=function(e){function t(t){var n,i,o=this;return o=e.call(this,function(e,t){n=e,i=t},function(){i(r.canceled())})||this,t.then(n,i),o}return n(t,e),t}(i.TPromise);t.ShallowCancelThenPromise=y,t.timeout=function(e){return c(function(t){return new Promise(function(n,i){var o=setTimeout(n,e);t.onCancellationRequested(function(e){clearTimeout(o),i(r.canceled())})})})},
t.isWinJSPromise=l,t.always=f,t.sequence=d,t.first2=function(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var r=0,i=e.length,o=function(){return r>=i?Promise.resolve(n):(0,e[r++])().then(function(e){return t(e)?Promise.resolve(e):o()})};return o()},t.first=function(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var r=0,o=e.length,s=function(){return r>=o?i.TPromise.as(n):(0,e[r++])().then(function(e){return t(e)?i.TPromise.as(e):s()})};return s()};var b=function(){function e(e){this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new a.Emitter}return Object.defineProperty(e.prototype,"onFinished",{get:function(){return this._onFinished.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.runningPromises+this.outstandingPromises.length},enumerable:!0,configurable:!0}),e.prototype.queue=function(e){var t=this;return new i.TPromise(function(n,r){
t.outstandingPromises.push({factory:e,c:n,e:r}),t.consume()})},e.prototype.consume=function(){for(var e=this;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){var t=this.outstandingPromises.shift();this.runningPromises++;var n=t.factory();n.done(t.c,t.e),n.done(function(){return e.consumed()},function(){return e.consumed()})}},e.prototype.consumed=function(){this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()},e.prototype.dispose=function(){this._onFinished.dispose()},e}();t.Limiter=b;var _=function(e){function t(){return e.call(this,1)||this}return n(t,e),t}(b);t.Queue=_;var w=function(){function e(){this.queues=Object.create(null)}return e.prototype.queueFor=function(e){var t=this,n=e.toString();if(!this.queues[n]){var r=new _;r.onFinished(function(){r.dispose(),delete t.queues[n]}),this.queues[n]=r}return this.queues[n]},e}();t.ResourceQueue=w,t.setDisposableTimeout=function(e,t){
for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=setTimeout.apply(void 0,[e,t].concat(n));return{dispose:function(){clearTimeout(i)}}};var E=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return n(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout(function(){n._token=-1,e()},t)},t.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout(function(){n._token=-1,e()},t))},t}(s.Disposable);t.TimeoutTimer=E;var S=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return n(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){this.cancel(),
this._token=setInterval(function(){e()},t)},t}(s.Disposable);t.IntervalTimer=S;var C=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner()},e}();t.RunOnceScheduler=C;var P=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.units=[],r}return n(t,e),t.prototype.work=function(e){this.units.push(e),this.isScheduled()||this.schedule()},t.prototype.doRun=function(){var e=this.units;this.units=[],this.runner(e)},t.prototype.dispose=function(){
this.units=[],e.prototype.dispose.call(this)},t}(C);t.RunOnceWorker=P,t.nfcall=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new i.TPromise(function(n,r){return e.apply(void 0,t.concat([function(e,t){return e?r(e):n(t)}]))},function(){return null})},t.ninvoke=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return new i.TPromise(function(r,i){return t.call.apply(t,[e].concat(n,[function(e,t){return e?i(e):r(t)}]))},function(){return null})}}),define(e[20],t([0,1,4,3,10,12,6,15,29,65,2,50]),function(e,t,r,i,o,s,a,u,c,l,f,d){"use strict";function p(e,t,n,r){return new x(e,t,n,r)}function h(e){if(!k){k=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout(function(){return e((new Date).getTime())},0)}}return k.call(self,e)}function v(e){return document.defaultView.getComputedStyle(e,null)}function m(e,t,n){var r=v(e),i="0"
;return r&&(i=r.getPropertyValue?r.getPropertyValue(t):r.getAttribute(n)),R(e,i)}function g(e){for(var t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var i=v(e);i&&(r-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft),e===t&&(r+=M.getBorderLeftWidth(e),n+=M.getBorderTopWidth(e),n+=e.offsetTop,r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function y(e){var t=M.getMarginLeft(e)+M.getMarginRight(e);return e.offsetWidth+t}function b(e){var t=M.getMarginLeft(e)+M.getMarginRight(e);return e.scrollWidth+t}function _(e,t){var n=t.map(function(t){return Math.max(b(t),y(t))+function(e,t){if(null===e)return 0;var n=g(e),r=g(t);return n.left-r.left}(t,e)||0});return Math.max.apply(Math,n)}function w(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function E(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}
function S(){return F||(F=E()),F}function C(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=function(e,t){for(;e;){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}Object.defineProperty(t,"__esModule",{value:!0}),t.clearNode=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.removeNode=function(e){e.parentNode&&e.parentNode.removeChild(e)},t.isInDOM=function(e){for(;e;){if(e===document.body)return!0;e=e.parentNode}return!1};var P=new(function(){function e(){}return e.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var r=n.length,i=t.length;if(0!==i)if(r<i)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=r);for(var o,s=-1;(s=n.indexOf(t,s+1))>=0;){if(o=s+i,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(o))return this._lastStart=s,void(this._lastEnd=o+1)
;if(s>0&&32===n.charCodeAt(s-1)&&o===r)return this._lastStart=s-1,void(this._lastEnd=o);if(0===s&&o===r)return this._lastStart=0,void(this._lastEnd=o)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n)})})},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},e.prototype.removeClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n)})})},
e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},e}()),O=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return t&&e.classList&&e.classList.contains(t)},e.prototype.addClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n)})})},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.prototype.removeClasses=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n)})})},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),T=u.isIE?P:O;t.hasClass=T.hasClass.bind(T),t.addClass=T.addClass.bind(T),
t.addClasses=T.addClasses.bind(T),t.removeClass=T.removeClass.bind(T),t.removeClasses=T.removeClasses.bind(T),t.toggleClass=T.toggleClass.bind(T);var x=function(){function e(e,t,n,r){this._node=e,this._type=t,this._handler=n,this._useCapture=r||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)},e}();t.addDisposableListener=p,t.addStandardDisposableListener=function(e,t,n,r){var i=n;return"click"===t||"mousedown"===t?i=function(e){return function(t){return e(new l.StandardMouseEvent(t))}}(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(i=function(e){return function(t){return e(new c.StandardKeyboardEvent(t))}}(n)),p(e,t,i,r)},t.addDisposableNonBubblingMouseOutListener=function(e,t){return p(e,"mouseout",function(n){for(var r=n.relatedTarget||n.toElement;r&&r!==e;)r=r.parentNode;r!==e&&t(n)})};var k=null,I=function(){
function e(e,t){this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){s.onUnexpectedError(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();!function(){var e=[],n=null,r=!1,i=!1,o=function(){for(r=!1,n=e,e=[],i=!0;n.length>0;){n.sort(I.sort);n.shift().execute()}i=!1};t.scheduleAtNextAnimationFrame=function(t,n){void 0===n&&(n=0);var i=new I(t,n);return e.push(i),r||(r=!0,h(o)),i},t.runAtThisOrScheduleAtNextAnimationFrame=function(e,r){if(i){var o=new I(e,r);return n.push(o),o}return t.scheduleAtNextAnimationFrame(e,r)}}();var D=16,A=function(e,t){return t},L=function(e){function t(t,n,r,i,s){void 0===i&&(i=A),void 0===s&&(s=D);var a=e.call(this)||this,u=null,c=0,l=a._register(new o.TimeoutTimer),f=function(){c=(new Date).getTime(),r(u),u=null};return a._register(p(t,n,function(e){u=i(u,e);var t=(new Date).getTime()-c;t>=s?(l.cancel(),f()):l.setIfNotSet(f,s-t)})),a}
return n(t,e),t}(a.Disposable);t.addDisposableThrottledListener=function(e,t,n,r,i){return new L(e,t,n,r,i)},t.getComputedStyle=v;var R=function(e,t){return parseFloat(t)||0};t.getClientArea=function(e){if(e!==document.body)return new N(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new N(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new N(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new N(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};var M={getBorderLeftWidth:function(e){return m(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return m(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return m(e,"border-top-width","borderTopWidth")},
getBorderBottomWidth:function(e){return m(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return m(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return m(e,"padding-right","paddingRight")},getPaddingTop:function(e){return m(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return m(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return m(e,"margin-left","marginLeft")},getMarginTop:function(e){return m(e,"margin-top","marginTop")},getMarginRight:function(e){return m(e,"margin-right","marginRight")},getMarginBottom:function(e){return m(e,"margin-bottom","marginBottom")},__commaSentinel:!1},N=function(){return function(e,t){this.width=e,this.height=t}}();t.Dimension=N,t.getTopLeftOffset=g,t.size=function(e,t,n){"number"==typeof t&&(e.style.width=t+"px"),"number"==typeof n&&(e.style.height=n+"px")},t.position=function(e,t,n,r,i,o){void 0===o&&(o="absolute"),"number"==typeof t&&(e.style.top=t+"px"),"number"==typeof n&&(e.style.right=n+"px"),
"number"==typeof r&&(e.style.bottom=r+"px"),"number"==typeof i&&(e.style.left=i+"px"),e.style.position=o},t.getDomNodePagePosition=function(e){var n=e.getBoundingClientRect();return{left:n.left+t.StandardWindow.scrollX,top:n.top+t.StandardWindow.scrollY,width:n.width,height:n.height}},t.StandardWindow=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}()),t.getTotalWidth=y,t.getContentWidth=function(e){var t=M.getBorderLeftWidth(e)+M.getBorderRightWidth(e),n=M.getPaddingLeft(e)+M.getPaddingRight(e);return e.offsetWidth-t-n},t.getTotalScrollWidth=b,t.getContentHeight=function(e){
var t=M.getBorderTopWidth(e)+M.getBorderBottomWidth(e),n=M.getPaddingTop(e)+M.getPaddingBottom(e);return e.offsetHeight-t-n},t.getTotalHeight=function(e){var t=M.getMarginTop(e)+M.getMarginBottom(e);return e.offsetHeight+t},t.getLargestChildWidth=_,t.isAncestor=w,t.findParentWithClass=function(e,n,r){for(;e;){if(t.hasClass(e,n))return e;if(r)if("string"==typeof r){if(t.hasClass(e,r))return null}else if(e===r)return null;e=e.parentNode}return null},t.createStyleSheet=E;var F=null;t.createCSSRule=function(e,t,n){void 0===n&&(n=S()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)},t.removeCSSRulesContainingSelector=function(e,t){if(void 0===t&&(t=S()),t){for(var n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),r=[],i=0;i<n.length;i++)-1!==n[i].selectorText.indexOf(e)&&r.push(i);for(i=r.length-1;i>=0;i--)t.sheet.deleteRule(r[i])}},t.isHTMLElement=function(e){
return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},t.EventType={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:u.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:u.isWebKit?"webkitAnimationEnd":"animationend",
ANIMATION_ITERATION:u.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=function(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t},t.restoreParentsScrollTop=function(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode};var j=function(){function e(e){var n=this;this._onDidFocus=new f.Emitter,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new f.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var r=w(document.activeElement,e),i=!1;d.domEvent(e,t.EventType.FOCUS,!0)(function(){i=!1,r||(r=!0,n._onDidFocus.fire())},null,this.disposables),d.domEvent(e,t.EventType.BLUR,!0)(function(){r&&(i=!0,window.setTimeout(function(){i&&(i=!1,r=!1,n._onDidBlur.fire())},0))},null,this.disposables)}
return e.prototype.dispose=function(){this.disposables=a.dispose(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();t.trackFocus=function(e){return new j(e)},t.append=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return e.appendChild(t)}),t[t.length-1]},t.prepend=function(e,t){return e.insertBefore(t,e.firstChild),t};var W=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;t.$=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=W.exec(e);if(!i)throw new Error("Bad use of emmet");var o=document.createElement(i[1]||"div");return i[3]&&(o.id=i[3]),i[4]&&(o.className=i[4].replace(/\./g," ").trim()),Object.keys(t||{}).forEach(function(e){/^on\w+$/.test(e)?o[e]=t[e]:"selected"===e?t[e]&&o.setAttribute(e,"true"):o.setAttribute(e,t[e])}),n.filter(function(e){return!!e}).forEach(function(e){e instanceof Node?o.appendChild(e):o.appendChild(document.createTextNode(e))}),o},t.join=function(e,t){var n=[]
;return e.forEach(function(e,r){r>0&&(t instanceof Node?n.push(t.cloneNode()):n.push(document.createTextNode(t))),n.push(e)}),n},t.show=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];i.style.display="",i.removeAttribute("aria-hidden")}},t.hide=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];i.style.display="none",i.setAttribute("aria-hidden","true")}},t.removeTabIndexAndUpdateFocus=C,t.getElementsByTagName=function(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)},t.finalHandler=function(e){return function(t){t.preventDefault(),t.stopPropagation(),e(t)}},t.domContentLoaded=function(){return new i.TPromise(function(e,t){"complete"===document.readyState||document&&null!==document.body?r.setImmediate(e):window.addEventListener("DOMContentLoaded",e,!1)})},t.computeScreenAwareSize=function(e){var t=window.devicePixelRatio*e
;return Math.max(1,Math.floor(t))/window.devicePixelRatio},t.windowOpenNoOpener=function(e){if(r.isNative||u.isEdgeWebView)window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}});var s=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};define(e[75],t([0,1,38,6,20,24]),function(e,t,r,i,o,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u;!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(u=t.EventType||(t.EventType={}));var c=function(e){function t(){var t=e.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],
t._register(o.addDisposableListener(document,"touchstart",function(e){return t.onTouchStart(e)})),t._register(o.addDisposableListener(document,"touchend",function(e){return t.onTouchEnd(e)})),t._register(o.addDisposableListener(document,"touchmove",function(e){return t.onTouchMove(e)})),t}return n(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e))},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,r=e.targetTouches.length;n<r;n++){var i=e.targetTouches.item(n);this.activeTouches[i.identifier]={id:i.identifier,initialTarget:i.target,initialTimeStamp:t,initialPageX:i.pageX,initialPageY:i.pageY,rollingTimestamps:[t],rollingPageX:[i.pageX],
rollingPageY:[i.pageY]};var o=this.newGestureEvent(u.Start,i.target);o.pageX=i.pageX,o.pageY=i.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.onTouchEnd=function(e){for(var n=Date.now(),i=Object.keys(this.activeTouches).length,o=function(o,a){var c=e.changedTouches.item(o);if(!s.activeTouches.hasOwnProperty(String(c.identifier)))return console.warn("move of an UNKNOWN touch",c),"continue";var l=s.activeTouches[c.identifier],f=Date.now()-l.initialTimeStamp;if(f<t.HOLD_DELAY&&Math.abs(l.initialPageX-r.tail(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.tail(l.rollingPageY))<30){(d=s.newGestureEvent(u.Tap,l.initialTarget)).pageX=r.tail(l.rollingPageX),d.pageY=r.tail(l.rollingPageY),s.dispatchEvent(d)}else if(f>=t.HOLD_DELAY&&Math.abs(l.initialPageX-r.tail(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.tail(l.rollingPageY))<30){var d=s.newGestureEvent(u.Contextmenu,l.initialTarget);d.pageX=r.tail(l.rollingPageX),d.pageY=r.tail(l.rollingPageY),
s.dispatchEvent(d)}else if(1===i){var p=r.tail(l.rollingPageX),h=r.tail(l.rollingPageY),v=r.tail(l.rollingTimestamps)-l.rollingTimestamps[0],m=p-l.rollingPageX[0],g=h-l.rollingPageY[0],y=s.targets.filter(function(e){return l.initialTarget instanceof Node&&e.contains(l.initialTarget)});s.inertia(y,n,Math.abs(m)/v,m>0?1:-1,p,Math.abs(g)/v,g>0?1:-1,h)}s.dispatchEvent(s.newGestureEvent(u.End,l.initialTarget)),delete s.activeTouches[c.identifier]},s=this,a=0,c=e.changedTouches.length;a<c;a++)o(a);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n},t.prototype.dispatchEvent=function(e){var t=this;this.targets.forEach(function(n){e.initialTarget instanceof Node&&n.contains(e.initialTarget)&&(n.dispatchEvent(e),t.dispatched=!0)})},t.prototype.inertia=function(e,n,r,i,s,a,c,l){var f=this;this.handle=o.scheduleAtNextAnimationFrame(function(){
var o=Date.now(),d=o-n,p=0,h=0,v=!0;a+=t.SCROLL_FRICTION*d,(r+=t.SCROLL_FRICTION*d)>0&&(v=!1,p=i*r*d),a>0&&(v=!1,h=c*a*d);var m=f.newGestureEvent(u.Change);m.translationX=p,m.translationY=h,e.forEach(function(e){return e.dispatchEvent(m)}),v||f.inertia(e,o,r,i,s+p,a,c,l+h)})},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,i=e.changedTouches.length;n<i;n++){var o=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(o.identifier))){var s=this.activeTouches[o.identifier],a=this.newGestureEvent(u.Change,s.initialTarget);a.translationX=o.pageX-r.tail(s.rollingPageX),a.translationY=o.pageY-r.tail(s.rollingPageY),a.pageX=o.pageX,a.pageY=o.pageY,this.dispatchEvent(a),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(o.pageX),s.rollingPageY.push(o.pageY),s.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},
t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,s([a.memoize],t,"isTouchDevice",null),t}(i.Disposable);t.Gesture=c}),define(e[78],t([0,1,38,5,26,28,3,10]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){switch(e){case 0:return"";case 1:return E+"*?";default:return"(?:"+w+"|"+E+"+"+w+"|"+w+E+"+)*?"}}function c(e,t){if(!e)return[];for(var n,r=[],i=!1,o=!1,s="",a=0;a<e.length;a++){switch(n=e[a]){case t:if(!i&&!o){r.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":o=!0;break;case"]":o=!1}s+=n}return s&&r.push(s),r}function l(e){if(!e)return"";var t="",n=c(e,_);if(n.every(function(e){return e===b}))t=".*";else{var i=!1;n.forEach(function(e,o){if(e!==b){for(var s,a=!1,f="",d=!1,p="",h=0;h<e.length;h++)if("}"!==(s=e[h])&&a)f+=s;else if(!d||"]"===s&&p)switch(s){case"{":a=!0;continue;case"[":d=!0;continue;case"}":var v="(?:"+c(f,",").map(function(e){return l(e)}).join("|")+")";t+=v,a=!1,f="";break;case"]":t+="["+p+"]",d=!1,p="";break;case"?":t+=E;continue;case"*":t+=u(1);continue;default:
t+=r.escapeRegExpCharacters(s)}else{p+="-"===s?s:"^"!==s&&"!"!==s||p?s===_?"":r.escapeRegExpCharacters(s):"^"}o<n.length-1&&(n[o+1]!==b||o+2<n.length)&&(t+=w),i=!1}else i||(t+=u(2),i=!0)})}return t}function f(e,t){if(!e)return A;var i;i="string"!=typeof e?e.pattern:e;var o=(i=i.trim())+"_"+!!t.trimForExclusions,s=I.get(o);if(s)return d(s,e);var a;if(C.test(i)){var u=i.substr(4);s=function(e,t){return e&&r.endsWith(e,u)?i:null}}else s=(a=P.exec(p(i,t)))?function(e,t){var n="/"+e,i="\\"+e,o=function(o,s){return o?s?s===e?t:null:o===e||r.endsWith(o,n)||r.endsWith(o,i)?t:null:null},s=[e];return o.basenames=s,o.patterns=[t],o.allBasenames=s,o}(a[1],i):(t.trimForExclusions?T:O).test(i)?function(e,t){var r=y(e.slice(1,-1).split(",").map(function(e){return f(e,t)}).filter(function(e){return e!==A}),e),i=r.length;if(!i)return A;if(1===i)return r[0];var o=function(t,n){for(var i=0,o=r.length;i<o;i++)if(r[i](t,n))return e;return null},s=n.first(r,function(e){return!!e.allBasenames});s&&(o.allBasenames=s.allBasenames)
;var a=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);a.length&&(o.allPaths=a);return o}(i,t):(a=x.exec(p(i,t)))?h(a[1].substr(1),i,!0):(a=k.exec(p(i,t)))?h(a[1],i,!1):function(e){try{var t=new RegExp("^"+l(e)+"$");return function(n,r){return t.lastIndex=0,n&&t.test(n)?e:null}}catch(e){return A}}(i);return I.set(o,s),d(s,e)}function d(e,t){return"string"==typeof t?e:function(n,r){return i.isEqualOrParent(n,t.base)?e(i.normalize(t.pathToRelative(t.base,n)),r):null}}function p(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function h(e,t,n){var o=i.nativeSep!==i.sep?e.replace(S,i.nativeSep):e,s=i.nativeSep+o,a=n?function(e,n){return e&&(e===o||r.endsWith(e,s))?t:null}:function(e,n){return e&&e===o?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function v(e,t){if(void 0===t&&(t={}),!e)return D;if("string"==typeof e||g(e)){var r=f(e,t);if(r===A)return D;var o=function(e,t){return!!r(e,t)};return r.allBasenames&&(o.allBasenames=r.allBasenames),
r.allPaths&&(o.allPaths=r.allPaths),o}return function(e,t){var r=y(Object.getOwnPropertyNames(e).map(function(n){return function(e,t,n){if(!1===t)return A;var r=f(e,n);if(r===A)return A;if("boolean"==typeof t)return r;if(t){var i=t.when;if("string"==typeof i){var o=function(t,n,o,s){if(!s||!r(t,n))return null;var u=i.replace("$(basename)",o),c=s(u);return a.isThenable(c)?c.then(function(t){return t?e:null}):c?e:null};return o.requiresSiblings=!0,o}}return r}(n,e[n],t)}).filter(function(e){return e!==A})),o=r.length;if(!o)return A;if(!r.some(function(e){return e.requiresSiblings})){if(1===o)return r[0];var s=function(e,t){for(var n=0,i=r.length;n<i;n++){var o=r[n](e,t);if(o)return o}return null},u=n.first(r,function(e){return!!e.allBasenames});u&&(s.allBasenames=u.allBasenames);var c=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);return c.length&&(s.allPaths=c),s}var l=function(e,t,n){for(var o,s=0,a=r.length;s<a;s++){var u=r[s];u.requiresSiblings&&n&&(t||(t=i.basename(e)),
o||(o=t.substr(0,t.length-i.extname(e).length)));var c=u(e,t,o,n);if(c)return c}return null},d=n.first(r,function(e){return!!e.allBasenames});d&&(l.allBasenames=d.allBasenames);var p=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);p.length&&(l.allPaths=p);return l}(e,t)}function m(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function g(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern&&"function"==typeof t.pathToRelative}function y(e,t){var n=e.filter(function(e){return!!e.basenames});if(n.length<2)return e;var r,i=n.reduce(function(e,t){return e.concat(t.basenames)},[]);if(t){r=[];for(var o=0,s=i.length;o<s;o++)r.push(t)}else r=n.reduce(function(e,t){return e.concat(t.patterns)},[]);var a=function(e,t){if(!e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}var s=i.indexOf(t);return-1!==s?r[s]:null};a.basenames=i,a.patterns=r,a.allBasenames=i;var u=e.filter(function(e){
return!e.basenames});return u.push(a),u}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};var b="**",_="/",w="[/\\\\]",E="[^/\\\\]",S=/\//g;t.splitGlobAware=c;var C=/^\*\*\/\*\.[\w\.-]+$/,P=/^\*\*\/([\w\.-]+)\/?$/,O=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,T=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,x=/^\*\*((\/[\w\.-]+)+)\/?$/,k=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,I=new o.LRUCache(1e4),D=function(){return!1},A=function(){return null};t.match=function(e,t,n){return!(!e||!t)&&v(e)(t,void 0,n)},t.parse=v,t.hasSiblingPromiseFn=function(e){if(e){var t;return function(n){return t||(t=(e()||s.TPromise.as([])).then(function(e){return e?m(e):{}})),t.then(function(e){return!!e[n]})}}},t.hasSiblingFn=function(e){if(e){var t;return function(n){if(!t){var r=e();t=r?m(r):{}}return!!t[n]}}},t.isRelativePattern=g,t.parseToAsync=function(e,t){var n=v(e,t);return function(e,t,r){var i=n(e,t,r)
;return i instanceof s.TPromise?i:s.TPromise.as(i)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[81],t([0,1,26,5,78]),function(e,t,n,r,i){"use strict";function o(e,t){void 0===t&&(t=!1);var r=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(n.sep)>=0}}(e);c.push(r),r.userConfigured?f.push(r):l.push(r),t&&!r.userConfigured&&c.forEach(function(e){e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn("Overwriting extension <<"+r.extension+">> to now point to mime <<"+r.mime+">>"),
r.filename&&e.filename===r.filename&&console.warn("Overwriting filename <<"+r.filename+">> to now point to mime <<"+r.mime+">>"),r.filepattern&&e.filepattern===r.filepattern&&console.warn("Overwriting filepattern <<"+r.filepattern+">> to now point to mime <<"+r.mime+">>"),r.firstline&&e.firstline===r.firstline&&console.warn("Overwriting firstline <<"+r.firstline+">> to now point to mime <<"+r.mime+">>"))})}function s(e,i){if(!e)return[t.MIME_UNKNOWN];e=e.toLowerCase();var o=n.basename(e),s=a(e,o,f);if(s)return[s,t.MIME_TEXT];var u=a(e,o,l);if(u)return[u,t.MIME_TEXT];if(i){var d=function(e){r.startsWithUTF8BOM(e)&&(e=e.substr(1));if(e.length>0)for(var t=0;t<c.length;++t){var n=c[t];if(n.firstline){var i=e.match(n.firstline);if(i&&i.length>0)return n.mime}}return null}(i);if(d)return[d,t.MIME_TEXT]}return[t.MIME_UNKNOWN]}function a(e,t,n){for(var o,s,a,u=n.length-1;u>=0;u--){var c=n[u];if(t===c.filenameLowercase){o=c;break}if(c.filepattern&&(!s||c.filepattern.length>s.filepattern.length)){
var l=c.filepatternOnPath?e:t;i.match(c.filepatternLowercase,l)&&(s=c)}c.extension&&(!a||c.extension.length>a.extension.length)&&r.endsWith(t,c.extensionLowercase)&&(a=c)}return o?o.mime:s?s.mime:a?a.mime:null}function u(e){return!e||("string"==typeof e?e===t.MIME_BINARY||e===t.MIME_TEXT||e===t.MIME_UNKNOWN:1===e.length&&u(e[0]))}Object.defineProperty(t,"__esModule",{value:!0}),t.MIME_TEXT="text/plain",t.MIME_BINARY="application/octet-stream",t.MIME_UNKNOWN="application/unknown";var c=[],l=[],f=[];t.registerTextMime=o,t.clearTextMimes=function(e){e?(c=c.filter(function(e){return!e.userConfigured}),f=[]):(c=[],l=[],f=[])},t.guessMimeTypes=s,t.isUnspecific=u,t.suggestFilename=function(e,t){for(var n=0;n<c.length;n++){var r=c[n];if(!r.userConfigured&&r.id===e&&r.extension)return t+r.extension}return t};var d={".bmp":"image/bmp",".gif":"image/gif",".jpg":"image/jpg",".jpeg":"image/jpg",".jpe":"image/jpg",".png":"image/png",".tiff":"image/tiff",".tif":"image/tiff",".ico":"image/x-icon",".tga":"image/x-tga",
".psd":"image/vnd.adobe.photoshop",".webp":"image/webp",".mid":"audio/midi",".midi":"audio/midi",".mp4a":"audio/mp4",".mpga":"audio/mpeg",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".m2a":"audio/mpeg",".m3a":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".spx":"audio/ogg",".aac":"audio/x-aac",".wav":"audio/x-wav",".wma":"audio/x-ms-wma",".mp4":"video/mp4",".mp4v":"video/mp4",".mpg4":"video/mp4",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpe":"video/mpeg",".m1v":"video/mpeg",".m2v":"video/mpeg",".ogv":"video/ogg",".qt":"video/quicktime",".mov":"video/quicktime",".webm":"video/webm",".mkv":"video/x-matroska",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".avi":"video/x-msvideo",".movie":"video/x-sgi-movie"};t.getMediaMime=function(e){var t=n.extname(e);return d[t.toLowerCase()]}}),define(e[82],t([0,1,95]),function(e,t,n){"use strict";function r(e,t,i){if(n.ok(e,"Missing first parameter"),
n.ok("function"==typeof t,"Second parameter must be a function that is called for each element"),n.ok("function"==typeof i,"Third parameter must be a function that is called on error and success"),"function"==typeof e)try{e(function(e,n){e?i(e,null):r(n,t,i)})}catch(e){i(e,null)}else{var o=[],s=function(n){if(n<e.length)try{t(e[n],function(e,t){!0!==e&&!1!==e||(t=e,e=null),e?i(e,null):(t&&o.push(t),process.nextTick(function(){s(n+1)}))},n,e.length)}catch(e){i(e,null)}else i(null,o)};s(0)}}function i(e){!function(e){n.ok(e.length>1,"Need at least one error handler and one function to process sequence"),e.forEach(function(e){n.ok("function"==typeof e)});var t=e.splice(0,1)[0],i=null;r(e,function(e,t){var n=function(e,n){!0!==e&&!1!==e||(n=e,e=null),e?t(e,null):(i=n,t(null,null))};try{e.call(n,i)}catch(e){t(e,null)}},function(e,n){e&&t(e)})}(Array.isArray(e)?e:Array.prototype.slice.call(arguments))}Object.defineProperty(t,"__esModule",{value:!0}),t.parallel=function(e,t,n){
var r=new Array(e.length),i=new Array(e.length),o=!1,s=0;if(0===e.length)return n(null,[]);e.forEach(function(a,u){t(a,function(t,a){if(t?(o=!0,r[u]=null,i[u]=t):(r[u]=a,i[u]=null),++s===e.length)return n(o?i:null,r)})})},t.loop=r,t.sequence=i}),define(e[87],t([0,1,14]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n.getPathFromAmdModule(e,"paths"),i=e.__$__nodeRequire(r);t.getAppDataPath=i.getAppDataPath,t.getDefaultUserDataPath=i.getDefaultUserDataPath}),define(e[88],t([0,1,32,3]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readExactlyByFile=function(e,t){return new r.TPromise(function(r,i){n.open(e,"r",null,function(e,o){function s(e,t,s){n.close(o,function(n){return n?i(n):e&&"EISDIR"===e.code?i(e):r({buffer:t,bytesRead:s})})}function a(){n.read(o,u,c,t-c,null,function(e,n){return e?s(e,null,0):0===n?s(null,u,c):(c+=n)===t?s(null,u,c):a()})}if(e)return i(e);var u=Buffer.allocUnsafe(t),c=0;a()})})},
t.readToMatchingString=function(e,t,i,o){return new r.TPromise(function(r,s){return n.open(e,"r",null,function(a,u){function c(e,t){n.close(u,function(n){return n?s(n):e&&"EISDIR"===e.code?s(e):r(t)})}function l(){n.read(u,f,d,i,null,function(n,r){if(n)return c(n,null);if(0===r)return c(null,null);d+=r;var i=f.indexOf(t);return i>=0?c(null,f.toString("utf8").substr(0,i)):d>=o?c(new Error("Could not find "+t+" in first "+o+" bytes of "+e),null):l()})}if(a)return s(a);var f=Buffer.allocUnsafe(o),d=0;l()})})}}),define(e[42],t([0,1,88,94,3,4,93,92,10]),function(e,t,r,i,o,s,a,u,c){"use strict";function l(e){return i.decodeStream(f(e))}function f(e){return e===t.UTF8_with_bom?t.UTF8:e}function d(e,n){if(!e||n<2)return null;var r=e.readUInt8(0),i=e.readUInt8(1);if(254===r&&255===i)return t.UTF16be;if(255===r&&254===i)return t.UTF16le;if(n<3)return null;var o=e.readUInt8(2);return 239===r&&187===i&&191===o?t.UTF8:null}function p(t){return c.toWinJsPromise(new Promise(function(t,n){e(["jschardet"],t,n)
})).then(function(e){e.Constants.MINIMUM_THRESHOLD=m;var n=e.detect(t);if(!n||!n.encoding)return null;var r=n.encoding.toLowerCase();return 0<=g.indexOf(r)?null:h(n.encoding)})}function h(e){var t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return y[t]||t}function v(e,n){var r=e.buffer,i=e.bytesRead,o=d(r,i),s=!1;if(o!==t.UTF16be&&o!==t.UTF16le){for(var a=!0,u=!0,c=!1,l=0;l<i&&l<b;l++){var f=l%2==1,h=0===r.readInt8(l);if(h&&(c=!0),a&&(f&&!h||!f&&h)&&(a=!1),u&&(f&&h||!f&&!h)&&(u=!1),h&&!a&&!u)break}c&&(a?o=t.UTF16le:u?o=t.UTF16be:s=!0)}return!n||s||o?{seemsBinary:s,encoding:o}:p(r.slice(0,i)).then(function(e){return{seemsBinary:!1,encoding:e}})}Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.toDecodeStream=function(e,r){return r.minBytesRequiredForDetection||(r.minBytesRequiredForDetection=r.guessEncoding?w:_),r.overwriteEncoding||(r.overwriteEncoding=function(e){return e||t.UTF8}),new o.TPromise(function(t,i){
e.pipe(new(function(e){function i(t){var n=e.call(this,t)||this;return n._buffer=[],n._bytesBuffered=0,n.once("finish",function(){return n._finish()}),n}return n(i,e),i.prototype._write=function(e,t,n){Buffer.isBuffer(e)||n(new Error("data must be a buffer")),this._decodeStream?this._decodeStream.write(e,n):(this._buffer.push(e),this._bytesBuffered+=e.length,this._decodeStreamConstruction?this._decodeStreamConstruction.then(function(e){return n()},function(e){return n(e)}):this._bytesBuffered>=r.minBytesRequiredForDetection?this._startDecodeStream(n):n())},i.prototype._startDecodeStream=function(e){var n=this;this._decodeStreamConstruction=o.TPromise.as(v({buffer:Buffer.concat(this._buffer),bytesRead:this._bytesBuffered},r.guessEncoding)).then(function(i){i.encoding=r.overwriteEncoding(i.encoding),n._decodeStream=l(i.encoding);for(var o=0,s=n._buffer;o<s.length;o++){var a=s[o];n._decodeStream.write(a)}e(),t({detected:i,stream:n._decodeStream})},function(t){n.emit("error",t),e(t)})},
i.prototype._finish=function(){var e=this;this._decodeStream?this._decodeStream.end():this._startDecodeStream(function(){return e._decodeStream.end()})},i}(u.Writable)))})},t.bomLength=function(e){switch(e){case t.UTF8:return 3;case t.UTF16be:case t.UTF16le:return 2}return 0},t.decode=function(e,t){return i.decode(e,f(t))},t.encode=function(e,t,n){return i.encode(e,f(t),n)},t.encodingExists=function(e){return i.encodingExists(f(e))},t.decodeStream=l,t.encodeStream=function(e,t){return i.encodeStream(f(e),t)},t.detectEncodingByBOMFromBuffer=d,t.detectEncodingByBOM=function(e){return r.readExactlyByFile(e,3).then(function(e){return d(e.buffer,e.bytesRead)})};var m=.2,g=["ascii","utf-8","utf-16","utf-32"];t.guessEncodingByBuffer=p;var y={ibm866:"cp866",big5:"cp950"};t.toCanonicalName=function(e){switch(e){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r"
;case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:var t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}};var b=512,_=512,w=4096;t.detectEncodingFromBuffer=v;var E={437:"cp437",850:"cp850",852:"cp852",855:"cp855",857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};t.resolveTerminalEncoding=function(e){var n,r=process.env.VSCODE_CLI_ENCODING;return r?(e&&console.log("Found VSCODE_CLI_ENCODING variable: "+r),n=o.TPromise.as(r)):n=s.isLinux||s.isMacintosh?new o.TPromise(function(t){e&&console.log('Running "locale charmap" to detect terminal encoding...'),a.exec("locale charmap",function(e,n,r){return t(n)})}):new o.TPromise(function(t){e&&console.log('Running "chcp" to detect terminal encoding...'),a.exec("chcp",function(e,n,r){if(n)for(var i=Object.keys(E),o=0;o<i.length;o++){var s=i[o];if(n.indexOf(s)>=0)return t(E[s])}return t(void 0)})}),n.then(function(n){
if(e&&console.log("Detected raw terminal encoding: "+n),!n||"utf-8"===n.toLowerCase()||n.toLowerCase()===t.UTF8)return t.UTF8;var r=h(n);return i.encodingExists(r)?r:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),define(e[46],t([0,1,32,11,10,58,4,5,25,3,42,82]),function(e,t,n,r,i,o,s,a,u,c,l,f){"use strict";function d(e){return s.isMacintosh?n.readdirSync(e).map(function(e){return o.normalizeNFC(e)}):n.readdirSync(e)}function p(e,t){return s.isMacintosh?n.readdir(e,function(e,n){return e?t(e,null):t(null,n.map(function(e){return o.normalizeNFC(e)}))}):n.readdir(e,t)}function h(e,t,i,o){o||(o=Object.create(null)),n.stat(e,function(s,a){if(s)return i(s);if(!a.isDirectory())return function(e,t,r,i){var o=n.createReadStream(e),s=n.createWriteStream(t,{mode:r}),a=!1,u=function(e){a||(a=!0,e?i(e):n.chmod(t,r,i))};o.once("error",function(e){return u(e)}),s.once("error",function(e){return u(e)}),s.once("close",function(){return u()}),o.pipe(s)}(e,t,511&a.mode,i)
;if(o[e])return i(null);o[e]=!0;var u=function(){p(e,function(n,s){E(s,function(n,i){h(r.join(e,n),r.join(t,n),function(e){return i(e,void 0)},o)},i)})};v(t,511&a.mode).done(u,u)})}function v(e,t,o){var s=function(){return i.nfcall(n.mkdir,e,t).then(null,function(t){return"ENOENT"===t.code?c.TPromise.wrapError(t):i.nfcall(n.stat,e).then(function(t){return t.isDirectory()?null:c.TPromise.wrapError(new Error("'"+e+"' exists and is not a directory."))},function(e){return c.TPromise.wrapError(t)})})};return e===r.dirname(e)?c.TPromise.as(!0):s().then(null,function(n){return o&&o.isCancellationRequested?c.TPromise.as(!1):"ENOENT"===n.code?v(r.dirname(e),t).then(s):c.TPromise.wrapError(n)})}function m(e,t){if("\\"===e||"/"===e)return t(new Error("Will not delete root!"));n.exists(e,function(i){i?n.lstat(e,function(i,o){if(i||!o)t(i);else if(!o.isDirectory()||o.isSymbolicLink()){var s=o.mode;128&s?n.unlink(e,t):n.chmod(e,128|s,function(r){r?t(r):n.unlink(e,t)})}else p(e,function(i,o){
if(i||!o)t(i);else if(0===o.length)n.rmdir(e,t);else{var s=null,a=o.length;o.forEach(function(i){m(r.join(e,i),function(r){a--,r&&(s=s||r),0===a&&(s?t(s):n.rmdir(e,t))})})}})}):t(null)})}function g(e){try{var t=n.lstatSync(e);t.isDirectory()&&!t.isSymbolicLink()?(d(e).forEach(function(t){return g(r.join(e,t))}),n.rmdirSync(e)):n.unlinkSync(e)}catch(e){if("ENOENT"===e.code)return;throw e}}function y(e,t,r,i){r=b(r),"string"==typeof t||Buffer.isBuffer(t)?function(e,t,r,i){r.encoding&&(t=l.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM}));if(!S)return n.writeFile(e,t,{mode:r.mode,flag:r.flag},i);n.open(e,r.flag,r.mode,function(e,r){if(e)return i(e);n.writeFile(r,t,function(e){if(e)return n.close(r,function(){return i(e)});n.fdatasync(r,function(e){return e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),S=!1),n.close(r,function(e){return i(e)})})})})}(e,t,r,i):function(e,t,r,i){var o,s,a=!1,u=function(e){a||(a=!0,e?s?(c.once("close",function(){return i(e)}),
c.close()):i(e):i())},c=n.createWriteStream(e,{mode:r.mode,flags:r.flag,autoClose:!1});c.once("open",function(e){o=e,s=!0,r.encoding&&(t=t.pipe(l.encodeStream(r.encoding.charset,{addBOM:r.encoding.addBOM}))),t.pipe(c)}),t.once("error",function(e){return u(e)}),c.once("error",function(e){return u(e)}),c.once("finish",function(){S&&s?n.fdatasync(o,function(e){e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),S=!1),c.close()}):c.close()}),c.once("close",function(){return u()})}(e,t,r,i)}function b(e){if(!e)return{mode:438,flag:"w"};var t={mode:e.mode,flag:e.flag,encoding:e.encoding};return"number"!=typeof t.mode&&(t.mode=438),"string"!=typeof t.flag&&(t.flag="w"),t}function _(e){var t=r.dirname(e);if(e===t)return e;var n=(r.basename(e)||e).toLowerCase();try{var i=d(t).filter(function(e){return e.toLowerCase()===n});if(1===i.length){if(s=_(t))return r.join(s,i[0])}else if(i.length>1){var o=i.indexOf(n);if(o>=0){var s=_(t);if(s)return r.join(s,i[o])}}}catch(e){}
return null}function w(e){return a.rtrim(r.normalize(e),r.sep)}Object.defineProperty(t,"__esModule",{value:!0});var E=f.loop;t.readdirSync=d,t.readdir=p,t.statLink=function(e,t){n.lstat(e,function(r,i){r||i.isSymbolicLink()?n.stat(e,function(e,n){if(e)return t(e,null);t(null,{stat:n,isSymbolicLink:i&&i.isSymbolicLink()})}):t(null,{stat:i,isSymbolicLink:!1})})},t.copy=h,t.mkdirp=v,t.del=function(e,t,i,o){n.exists(e,function(s){if(!s)return i(null);n.stat(e,function(s,c){if(s||!c)return i(s);if("."===e[e.length-1]||a.endsWith(e,"./")||a.endsWith(e,".\\"))return m(e,i);var l=r.join(t,u.generateUuid());n.rename(e,l,function(t){if(t)return m(e,i);i(null),m(l,function(e){e&&console.error(e),o&&o(e)})})})})},t.delSync=g,t.mv=function(e,t,r){function i(e){if(e)return r(e);n.stat(t,function(e,i){return e?r(e):i.isDirectory()?r(null):void n.open(t,"a",null,function(e,t){if(e)return r(e);n.futimes(t,i.atime,new Date,function(e){if(e)return r(e);n.close(t,r)})})})}if(e===t)return r(null);n.rename(e,t,function(n){
return n?n&&e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||a.endsWith(e,".")?h(e,t,function(t){if(t)return r(t);m(e,i)}):r(n):i(null)})};var S=!0;t.writeFileAndFlush=y,t.writeFileAndFlushSync=function(e,t,r){if((r=b(r)).encoding&&(t=l.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM})),!S)return n.writeFileSync(e,t,{mode:r.mode,flag:r.flag});var i=n.openSync(e,r.flag,r.mode);try{n.writeFileSync(i,t);try{n.fdatasyncSync(i)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),S=!1}}finally{n.closeSync(i)}},t.realcaseSync=_,t.realpathSync=function(e){try{return n.realpathSync(e)}catch(r){var t=w(e);return n.accessSync(t,n.constants.R_OK),t}},t.realpath=function(e,t){return n.realpath(e,function(r,i){if(!r)return t(null,i);var o=w(e);return n.access(o,n.constants.R_OK,function(e){return t(e,o)})})},t.watch=function(e,t,r){try{var i=n.watch(e);return i.on("change",function(e,n){var r=null;n&&(r=n.toString(),s.isMacintosh&&(r=o.normalizeNFC(r))),
t(e,r)}),i.on("error",function(t,n){return r("Failed to watch "+e+" for changes ("+t+", "+n+")")}),i}catch(t){n.exists(e,function(n){n&&r("Failed to watch "+e+" for changes ("+t.toString()+")")})}}}),define(e[40],t([0,1,3,46,11,10,32,16,4,2]),function(e,t,n,r,i,o,s,a,u,c){"use strict";function l(e){return o.nfcall(r.readdir,e)}function f(e){return p(e).then(function(t){return t.isDirectory()&&!t.isSymbolicLink()?l(e).then(function(t){return n.TPromise.join(t.map(function(t){return f(i.join(e,t))}))}).then(function(){return h(e)}):v(e)},function(e){if("ENOENT"!==e.code)return n.TPromise.wrapError(e)})}function d(e){return o.nfcall(s.stat,e)}function p(e){return o.nfcall(s.lstat,e)}function h(e){return o.nfcall(s.rmdir,e)}function v(e){return o.nfcall(s.unlink,e)}function m(e,t,n){return function(e){var t=b[e];if(!t){t=new o.Queue,b[e]=t;c.once(t.onFinished)(function(){delete b[e],t.dispose()})}return t}(function(e){var t=e;(u.isWindows||u.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(function(){
return o.nfcall(r.writeFileAndFlush,e,t,n)})}function g(e){return d(e).then(function(e){return e.isDirectory()},function(){return!1})}function y(e,t){return void 0===t&&(_||(_=a.tmpdir()),t=_),o.nfcall(r.del,e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=l,t.exists=function(e){return new n.TPromise(function(t){return s.exists(e,t)},function(){})},t.chmod=function(e,t){return o.nfcall(s.chmod,e,t)},t.mkdirp=r.mkdirp,t.rimraf=f,t.realpath=function(e){return o.nfcall(r.realpath,e)},t.stat=d,t.statLink=function(e){return o.nfcall(r.statLink,e)},t.lstat=p,t.rename=function(e,t){return o.nfcall(s.rename,e,t)},t.rmdir=h,t.unlink=v,t.symlink=function(e,t,n){return o.nfcall(s.symlink,e,t,n)},t.readlink=function(e){return o.nfcall(s.readlink,e)},t.truncate=function(e,t){return o.nfcall(s.truncate,e,t)},t.readFile=function(e,t){return o.nfcall(s.readFile,e,t)};var b=Object.create(null);t.writeFile=m,t.readDirsInDir=function(e){return l(e).then(function(t){return n.TPromise.join(t.map(function(t){
return g(i.join(e,t))})).then(function(e){return t.filter(function(t,n){return e[n]})})})},t.dirExists=g,t.fileExists=function(e){return d(e).then(function(e){return e.isFile()},function(){return!1})};var _=null;t.del=y,t.whenDeleted=function(e){return new n.TPromise(function(t){var n=!1,r=setInterval(function(){n||(n=!0,s.exists(e,function(e){n=!1,e||(clearInterval(r),t(null))}))},1e3)})},t.copy=function(e,t){return o.nfcall(r.copy,e,t)}}),define(e[21],t([0,1,3,6,2]),function(e,t,n,r,i){"use strict";function o(e,t){void 0===t&&(t=void 0);var n=Buffer.allocUnsafe(4),r=function(e){return void 0===e?{buffer:d,type:f.Undefined}:"string"==typeof e?{buffer:Buffer.from(e),type:f.String}:Buffer.isBuffer(e)?{buffer:e,type:f.Buffer}:{buffer:Buffer.from(JSON.stringify(e)),type:f.Object}}(t),i=r.buffer,o=r.type,s=Buffer.from(JSON.stringify([e,o]));return n.writeUInt32BE(s.byteLength,0),Buffer.concat([n,s,i])}function s(e){var t=e.readUInt32BE(0),n=e.slice(4,4+t),r=e.slice(4+t),i=JSON.parse(n.toString());return{
header:i[0],body:function(e,t){switch(t){case f.Undefined:return;case f.String:return e.toString();case f.Buffer:return e;case f.Object:return JSON.parse(e.toString())}}(r,i[1])}}function a(e){return{call:function(t,n){return e.then(function(e){return e.call(t,n)})},listen:function(t,n){var r=new i.Relay;return e.then(function(e){return r.input=e.listen(t,n)}),r.event}}}Object.defineProperty(t,"__esModule",{value:!0});var u;!function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(u=t.RequestType||(t.RequestType={}));var c;!function(e){e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"}(c=t.ResponseType||(t.ResponseType={}));var l;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(l||(l={}));var f;!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",
e[e.Buffer=2]="Buffer",e[e.Object=3]="Object"}(f||(f={}));var d=Buffer.allocUnsafe(0),p=function(){function e(e){var t=this;this.protocol=e,this.channels=Object.create(null),this.activeRequests=Object.create(null),this.protocolListener=this.protocol.onMessage(function(e){return t.onRawMessage(e)}),this.sendResponse({type:c.Initialize})}return e.prototype.registerChannel=function(e,t){this.channels[e]=t},e.prototype.onPromise=function(e){var t,i=this,o=this.channels[e.channelName];try{t=o.call(e.name,e.arg)}catch(e){t=n.TPromise.wrapError(e)}var s=e.id,a=t.then(function(t){i.sendResponse({id:s,data:t,type:c.PromiseSuccess}),delete i.activeRequests[e.id]},function(t){t instanceof Error?i.sendResponse({id:s,data:{message:t.message,name:t.name,stack:t.stack?t.stack.split?t.stack.split("\n"):t.stack:void 0},type:c.PromiseError}):i.sendResponse({id:s,data:t,type:c.PromiseErrorObj}),delete i.activeRequests[e.id]});this.activeRequests[e.id]=r.toDisposable(function(){return a.cancel()})},
e.prototype.onEventListen=function(e){var t=this,n=this.channels[e.channelName],r=e.id,i=n.listen(e.name,e.arg)(function(e){return t.sendResponse({id:r,data:e,type:c.EventFire})});this.activeRequests[e.id]=i},e.prototype.disposeActiveRequest=function(e){var t=this.activeRequests[e.id];t&&(t.dispose(),delete this.activeRequests[e.id])},e.prototype.onRawMessage=function(e){var t,n=s(e),r=n.header,i=n.body;switch(r[0]){case u.Promise:case u.EventListen:t={type:r[0],id:r[1],channelName:r[2],name:r[3],arg:i};break;case u.PromiseCancel:case u.EventDispose:t={type:r[0],id:r[1]};break;default:return}this.onRequest(t)},e.prototype.onRequest=function(e){switch(e.type){case u.Promise:this.onPromise(e);break;case u.EventListen:this.onEventListen(e);break;case u.PromiseCancel:case u.EventDispose:this.disposeActiveRequest(e)}},e.prototype.sendResponse=function(e){var t;switch(e.type){case c.Initialize:t=o([e.type]);break;case c.PromiseSuccess:case c.PromiseError:case c.EventFire:case c.PromiseErrorObj:
t=o([e.type,e.id],e.data)}this.sendRawMessage(t)},e.prototype.sendRawMessage=function(e){try{this.protocol.send(e)}catch(e){}},e.prototype.dispose=function(){var e=this;this.protocolListener.dispose(),this.protocolListener=null,Object.keys(this.activeRequests).forEach(function(t){e.activeRequests[t].dispose()}),this.activeRequests=null},e}();t.ChannelServer=p;var h=function(){function e(e){var t=this;this.protocol=e,this.state=l.Uninitialized,this.activeRequests=[],this.bufferedRequests=[],this.handlers=Object.create(null),this.lastRequestId=0,this._onDidInitialize=new i.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(function(e){return t.onRawMessage(e)})}return e.prototype.getChannel=function(e){var t=this;return{call:function(n,r){return t.requestPromise(e,n,r)},listen:function(n,r){return t.requestEvent(e,n,r)}}},e.prototype.requestPromise=function(e,t,n){var i=this,o={raw:{id:this.lastRequestId++,type:u.Promise,channelName:e,name:t,arg:n}
},s=this.state===l.Uninitialized?this.bufferRequest(o):this.doRequest(o),a=r.toDisposable(function(){return s.cancel()});return this.activeRequests.push(a),s.then(null,function(e){return null}).done(function(){return i.activeRequests=i.activeRequests.filter(function(e){return e!==a})}),s},e.prototype.requestEvent=function(e,t,n){var r=this,o=this.lastRequestId++,s={raw:{id:o,type:u.EventListen,channelName:e,name:t,arg:n}},a=null,c=new i.Emitter({onFirstListenerAdd:function(){(a=r.whenInitialized()).then(function(){a=null,r.sendRequest(s.raw)})},onLastListenerRemove:function(){a?(a.cancel(),a=null):r.sendRequest({id:o,type:u.EventDispose})}});return this.handlers[o]=function(e){return c.fire(e.data)},c.event},e.prototype.doRequest=function(e){var t=this,r=e.raw.id;return new n.TPromise(function(n,i){t.handlers[r]=function(e){switch(e.type){case c.PromiseSuccess:delete t.handlers[r],n(e.data);break;case c.PromiseError:delete t.handlers[r];var o=new Error(e.data.message);o.stack=e.data.stack,o.name=e.data.name,
i(o);break;case c.PromiseErrorObj:delete t.handlers[r],i(e.data)}},t.sendRequest(e.raw)},function(){return t.sendRequest({id:r,type:u.PromiseCancel})})},e.prototype.bufferRequest=function(e){var t=this,r=null;return new n.TPromise(function(n,i){t.bufferedRequests.push(e),e.flush=function(){e.flush=null,r=t.doRequest(e).then(n,i)}},function(){if(e.flush=null,t.state===l.Uninitialized){var n=t.bufferedRequests.indexOf(e);-1!==n&&t.bufferedRequests.splice(n,1)}else r&&(r.cancel(),r=null)})},e.prototype.onRawMessage=function(e){var t,n=s(e),r=n.header,i=n.body;switch(r[0]){case c.Initialize:t={type:r[0]};break;case c.PromiseSuccess:case c.PromiseError:case c.EventFire:case c.PromiseErrorObj:t={type:r[0],id:r[1],data:i};break;default:return}this.onResponse(t)},e.prototype.onResponse=function(e){if(e.type===c.Initialize)return this.state=l.Idle,this._onDidInitialize.fire(),this.bufferedRequests.forEach(function(e){return e.flush&&e.flush()}),void(this.bufferedRequests=null);var t=this.handlers[e.id];t&&t(e)},
e.prototype.sendRequest=function(e){var t;switch(e.type){case u.Promise:case u.EventListen:t=o([e.type,e.id,e.channelName,e.name],e.arg);break;case u.PromiseCancel:case u.EventDispose:t=o([e.type,e.id])}this.sendRawMessage(t)},e.prototype.sendRawMessage=function(e){try{this.protocol.send(e)}catch(e){}},e.prototype.whenInitialized=function(){return this.state===l.Idle?n.TPromise.as(null):n.TPromise.wrap(i.toPromise(this.onDidInitialize))},e.prototype.dispose=function(){this.protocolListener.dispose(),this.protocolListener=null,this.activeRequests=r.dispose(this.activeRequests)},e}();t.ChannelClient=h;var v=function(){function e(e){var t=this;this.channels=Object.create(null),this.channelClients=Object.create(null),this.onClientAdded=new i.Emitter,e(function(e){var n=e.protocol,r=e.onDidClientDisconnect;i.once(n.onMessage)(function(e){var i=new p(n),o=new h(n);Object.keys(t.channels).forEach(function(e){return i.registerChannel(e,t.channels[e])});var s=e.toString();t.channelClients[s]=o,t.onClientAdded.fire(s),
r(function(){i.dispose(),o.dispose(),delete t.channelClients[s]})})})}return e.prototype.getChannel=function(e,t){var n=this;return{call:function(r,i){return a(t.routeCall(r,i).then(function(e){return n.getClient(e)}).then(function(t){return t.getChannel(e)})).call(r,i)},listen:function(r,i){return a(t.routeEvent(r,i).then(function(e){return n.getClient(e)}).then(function(t){return t.getChannel(e)})).listen(r,i)}}},e.prototype.registerChannel=function(e,t){this.channels[e]=t},e.prototype.getClient=function(e){var t=this;if(!e)return n.TPromise.wrapError(new Error("Client id should be provided"));var r=this.channelClients[e];return r?n.TPromise.as(r):new n.TPromise(function(n){i.once(i.filterEvent(t.onClientAdded.event,function(t){return t===e}))(function(){return n(t.channelClients[e])})})},e.prototype.dispose=function(){this.channels=Object.create(null),this.channelClients=Object.create(null),this.onClientAdded.dispose()},e}();t.IPCServer=v;var m=function(){function e(e,t){e.send(Buffer.from(t)),
this.channelClient=new h(e),this.channelServer=new p(e)}return e.prototype.getChannel=function(e){return this.channelClient.getChannel(e)},e.prototype.registerChannel=function(e,t){this.channelServer.registerChannel(e,t)},e.prototype.dispose=function(){this.channelClient.dispose(),this.channelClient=null,this.channelServer.dispose(),this.channelServer=null},e}();t.IPCClient=m,t.getDelayedChannel=a,t.getNextTickChannel=function(e){var t=!1;return{call:function(r,i){return t?e.call(r,i):n.TPromise.timeout(0).then(function(){return t=!0}).then(function(){return e.call(r,i)})},listen:function(r,o){if(t)return e.listen(r,o);var s=new i.Relay;return n.TPromise.timeout(0).then(function(){return t=!0}).then(function(){return s.input=e.listen(r,o)}),s.event}}}}),define(e[51],t([0,1,6,2]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=this;this.sender=e,this._onMessage=new r.Emitter,t(function(e){return n._onMessage.fire(Buffer.from(e,"base64"))})}
return Object.defineProperty(e.prototype,"onMessage",{get:function(){return this._onMessage.event},enumerable:!0,configurable:!0}),e.prototype.send=function(e){try{this.sender.send("ipc:message",e.toString("base64"))}catch(e){}},e.prototype.dispose=function(){this.listener=n.dispose(this.listener)},e}();t.Protocol=i}),define(e[52],t([0,1,2,21,51,53]),function(e,t,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(n){return e.call(this,t.createProtocol(),n)||this}return n(t,e),t.createProtocol=function(){var e=r.fromNodeEventEmitter(s.ipcRenderer,"ipc:message",function(e,t){return t});return s.ipcRenderer.send("ipc:hello"),new o.Protocol(s.ipcRenderer,e)},t}(i.IPCClient);t.Client=a}),define(e[54],t([0,1,91,3,2,21,11,16,25,10]),function(e,t,r,i,o,s,a,u,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomPipeName=function(){var e=c.generateUuid()
;return"win32"===process.platform?"\\\\.\\pipe\\vscode-ipc-"+e+"-sock":a.join(u.tmpdir(),"vscode-ipc-"+e+".sock")};var f=function(){function e(t,n){var r=this;this._socket=t,this._onMessage=new o.Emitter,this.onMessage=this._onMessage.event,this._onClose=new o.Emitter,this.onClose=this._onClose.event,this._writeBuffer=new(function(){function e(){this._data=[],this._totalLength=0}return e.prototype.add=function(e,t){var n=0===this._totalLength;return this._data.push(e,t),this._totalLength+=e.length+t.length,n},e.prototype.take=function(){var e=Buffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e},e}()),this._isDisposed=!1,this._chunks=[];var i=0,s={readHead:!0,bodyLen:-1},a=function(t){for(r._chunks.push(t),i+=t.length;i>0;){if(s.readHead){if(!(i>=e._headerLen))break;n=Buffer.concat(r._chunks);s.bodyLen=n.readUInt32BE(0),s.readHead=!1;a=n.slice(e._headerLen);i=a.length,r._chunks=[a]}if(!s.readHead){if(!(i>=s.bodyLen))break
;var n,o=(n=Buffer.concat(r._chunks)).slice(0,s.bodyLen),a=n.slice(s.bodyLen);if(i=a.length,r._chunks=[a],s.bodyLen=-1,s.readHead=!0,r._onMessage.fire(o),r._isDisposed)break}}},u=function(){if(n&&n.length>0){var e=n;n=null,a(e)}};this._firstChunkTimer=new l.TimeoutTimer,this._firstChunkTimer.setIfNotSet(function(){u()},0),this._socketDataListener=function(e){u(),a(e)},t.on("data",this._socketDataListener),this._socketEndListener=function(){u()},t.on("end",this._socketEndListener),this._socketCloseListener=function(){r._onClose.fire()},t.once("close",this._socketCloseListener)}return e.prototype.dispose=function(){this._isDisposed=!0,this._firstChunkTimer.dispose(),this._socket.removeListener("data",this._socketDataListener),this._socket.removeListener("end",this._socketEndListener),this._socket.removeListener("close",this._socketCloseListener)},e.prototype.end=function(){this._socket.end()},e.prototype.getBuffer=function(){return Buffer.concat(this._chunks)},e.prototype.send=function(t){
var n=Buffer.allocUnsafe(e._headerLen);n.writeUInt32BE(t.length,0,!0),this._writeSoon(n,t)},e.prototype._writeSoon=function(e,t){var n=this;this._writeBuffer.add(e,t)&&setImmediate(function(){n._socket.destroyed||n._socket.write(n._writeBuffer.take())})},e._headerLen=4,e}();t.Protocol=f;var d=function(e){function t(n){var r=e.call(this,t.toClientConnectionEvent(n))||this;return r.server=n,r}return n(t,e),t.toClientConnectionEvent=function(e){var t=o.fromNodeEventEmitter(e,"connection");return o.mapEvent(t,function(e){return{protocol:new f(e),onDidClientDisconnect:o.once(o.fromNodeEventEmitter(e,"close"))}})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.server.close(),this.server=null},t}(s.IPCServer);t.Server=d;var p=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.protocol=t,r}return n(t,e),t.fromSocket=function(e,n){return new t(new f(e),n)},Object.defineProperty(t.prototype,"onClose",{get:function(){return this.protocol.onClose},enumerable:!0,configurable:!0}),
t.prototype.dispose=function(){e.prototype.dispose.call(this),this.protocol.end()},t}(s.IPCClient);t.Client=p,t.serve=function(e){return new i.TPromise(function(t,n){var i=r.createServer();i.on("error",n),i.listen(e,function(){i.removeListener("error",n),t(new d(i))})})},t.connect=function(e,t){return new i.TPromise(function(n,i){var o=r.createConnection(e,function(){o.removeListener("error",i),n(p.fromSocket(o,t))});o.once("error",i)})}}),define(e[56],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeGitHubUrl=function(e){return n.endsWith(e,".git")&&(e=e.substr(0,e.length-4)),e=n.rtrim(e,"/"),n.endsWith(e,"/new")&&(e=n.rtrim(e,"/new")),n.endsWith(e,"/issues")&&(e=n.rtrim(e,"/issues")),e}}),define(e[57],t([22]),{}),define(e[59],t([0,1,20,29,41,17,2,6,75,57]),function(e,t,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={buttonBackground:o.Color.fromHex("#0E639C"),buttonHoverBackground:o.Color.fromHex("#006BB3"),
buttonForeground:o.Color.white},f=function(e){function t(t,n){var o=e.call(this)||this;return o._onDidClick=o._register(new a.Emitter),o.options=n||Object.create(null),s.mixin(o.options,l,!1),o.buttonBackground=o.options.buttonBackground,o.buttonHoverBackground=o.options.buttonHoverBackground,o.buttonForeground=o.options.buttonForeground,o.buttonBorder=o.options.buttonBorder,o._element=document.createElement("a"),r.addClass(o._element,"monaco-button"),o._element.tabIndex=0,o._element.setAttribute("role","button"),t.appendChild(o._element),c.Gesture.addTarget(o._element),o._register(r.addDisposableListener(o._element,r.EventType.CLICK,function(e){o.enabled?o._onDidClick.fire(e):r.EventHelper.stop(e)})),o._register(r.addDisposableListener(o._element,r.EventType.KEY_DOWN,function(e){var t=new i.StandardKeyboardEvent(e),n=!1;o.enabled&&t.equals(3)||t.equals(10)?(o._onDidClick.fire(e),n=!0):t.equals(9)&&(o._element.blur(),n=!0),n&&r.EventHelper.stop(t,!0)})),
o._register(r.addDisposableListener(o._element,r.EventType.MOUSE_OVER,function(e){r.hasClass(o._element,"disabled")||o.setHoverBackground()})),o._register(r.addDisposableListener(o._element,r.EventType.MOUSE_OUT,function(e){o.applyStyles()})),o.focusTracker=o._register(r.trackFocus(o._element)),o._register(o.focusTracker.onDidFocus(function(){return o.setHoverBackground()})),o._register(o.focusTracker.onDidBlur(function(){return o.applyStyles()})),o.applyStyles(),o}return n(t,e),Object.defineProperty(t.prototype,"onDidClick",{get:function(){return this._onDidClick.event},enumerable:!0,configurable:!0}),t.prototype.setHoverBackground=function(){var e=this.buttonHoverBackground?this.buttonHoverBackground.toString():null;e&&(this._element.style.backgroundColor=e)},t.prototype.style=function(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()},t.prototype.applyStyles=function(){
if(this._element){var e=this.buttonBackground?this.buttonBackground.toString():null,t=this.buttonForeground?this.buttonForeground.toString():null,n=this.buttonBorder?this.buttonBorder.toString():null;this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=n?"1px":null,this._element.style.borderStyle=n?"solid":null,this._element.style.borderColor=n}},Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{set:function(e){r.hasClass(this._element,"monaco-text-button")||r.addClass(this._element,"monaco-text-button"),this._element.textContent=e,this.options.title&&(this._element.title=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"icon",{set:function(e){r.addClass(this._element,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return!r.hasClass(this._element,"disabled")},set:function(e){
e?(r.removeClass(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(r.addClass(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!0)),r.removeTabIndexAndUpdateFocus(this._element))},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._element.focus()},t}(u.Disposable);t.Button=f;var d=function(e){function t(t,n,r){var i=e.call(this)||this;return i._buttons=[],i.create(t,n,r),i}return n(t,e),Object.defineProperty(t.prototype,"buttons",{get:function(){return this._buttons},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n){for(var o=this,s=function(s){var u=a._register(new f(e,n));a._buttons.push(u),t>1&&a._register(r.addDisposableListener(u.element,r.EventType.KEY_DOWN,function(e){var t,n=new i.StandardKeyboardEvent(e),a=!0;n.equals(15)?t=s>0?s-1:o._buttons.length-1:n.equals(17)?t=s===o._buttons.length-1?0:s+1:a=!1,a&&(o._buttons[t].focus(),r.EventHelper.stop(e,!0))}))},a=this,u=0;u<t;u++)s(u)},t
}(u.Disposable);t.ButtonGroup=d}),define(e[60],t([22]),{}),define(e[61],t([22]),{}),define(e[62],t([0,1,5,60,61]),function(e,t,n){"use strict";function r(e){return function(e){return e.replace(/\$\(((.+?)(~(.*?))?)\)/g,function(e,t,n,r,i){return'<span class="octicon octicon-'+n+" "+(i?"octicon-animation-"+i:"")+'"></span>'})}(n.escape(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.renderOcticons=r;var i=function(){function e(e){this._container=e}return Object.defineProperty(e.prototype,"text",{set:function(e){this._container.innerHTML=r(e||"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this._container.title=e},enumerable:!0,configurable:!0}),e}();t.OcticonLabel=i}),define(e[63],t([22]),{}),define(e[64],t([23,13]),function(e,t){return e.create("vs/code/electron-browser/issue/issueReporterPage",t)}),define(e[67],t([0,1,5,64]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){
return'\n<div id="issue-reporter">\n\t<div id="english" class="input-group hidden">'+n.escape(r.localize(0,null))+'</div>\n\n\t<div class="section">\n\t\t<div class="input-group">\n\t\t\t<label class="inline-label" for="issue-type">'+n.escape(r.localize(1,null))+'</label>\n\t\t\t<select id="issue-type" class="inline-form-control">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</select>\n\t\t</div>\n\n\t\t<div class="input-group" id="problem-source">\n\t\t\t<label class="inline-label" for="issue-source">'+n.escape(r.localize(2,null))+'</label>\n\t\t\t<select id="issue-source" class="inline-form-control">\n\t\t\t\t<option value="false">'+n.escape(r.localize(3,null))+'</option>\n\t\t\t\t<option value="true">'+n.escape(r.localize(4,null))+'</option>\n\t\t\t</select>\n\t\t\t<div id="problem-source-help-text" class="instructions">'+n.escape(r.localize(5,null)).replace("{0}",'<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">'+n.escape(r.localize(6,null))+"</span>")+'\n\t\t\t</div>\n\n\t\t\t<div id="extension-selection">\n\t\t\t\t<label class="inline-label" for="extension-selector">'+n.escape(r.localize(7,null))+' <span class="required-input">*</span></label>\n\t\t\t\t<select id="extension-selector" class="inline-form-control">\n\t\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</select>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class="input-group">\n\t\t\t<label class="inline-label" for="issue-title">'+n.escape(r.localize(8,null))+' <span class="required-input">*</span></label>\n\t\t\t<input id="issue-title" type="text" class="inline-form-control" placeholder="'+n.escape(r.localize(9,null))+'" required>\n\t\t\t<div id="issue-title-length-validation-error" class="validation-error hidden" role="alert">'+n.escape(r.localize(10,null))+'</div>\n\t\t\t<small id="similar-issues">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</small>\n\t\t</div>\n\n\t</div>\n\n\t<div class="input-group description-section">\n\t\t<label for="description" id="issue-description-label">\n\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t</label>\n\t\t<div class="instructions" id="issue-description-subtitle">\n\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t</div>\n\t\t<div class="block-info-text">\n\t\t\t<textarea name="description" id="description" placeholder="'+n.escape(r.localize(11,null))+'" required></textarea>\n\t\t</div>\n\t</div>\n\n\t<div class="system-info" id="block-container">\n\t\t<div class="block block-system">\n\t\t\t<input class="sendData" type="checkbox" id="includeSystemInfo" checked/>\n\t\t\t<label class="caption" for="includeSystemInfo">'+n.escape(r.localize(12,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(13,null))+"</a>")+'</label>\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-process">\n\t\t\t<input class="sendData" type="checkbox" id="includeProcessInfo" checked/>\n\t\t\t<label class="caption" for="includeProcessInfo">'+n.escape(r.localize(14,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(15,null))+"</a>")+'</label>\n\t\t\t<pre class="block-info hidden">\n\t\t\t\t<code>\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</code>\n\t\t\t</pre>\n\t\t</div>\n\t\t<div class="block block-workspace">\n\t\t\t<input class="sendData" type="checkbox" id="includeWorkspaceInfo" checked/>\n\t\t\t<label class="caption" for="includeWorkspaceInfo">'+n.escape(r.localize(16,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(17,null))+"</a>")+'</label>\n\t\t\t<pre id="systemInfo" class="block-info hidden">\n\t\t\t\t<code>\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t\t</code>\n\t\t\t</pre>\n\t\t</div>\n\t\t<div class="block block-extensions">\n\t\t\t<input class="sendData" type="checkbox" id="includeExtensions" checked/>\n\t\t\t<label class="caption" for="includeExtensions">'+n.escape(r.localize(18,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(19,null))+"</a>")+'</label>\n\t\t\t<div id="systemInfo" class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-searchedExtensions">\n\t\t\t<input class="sendData" type="checkbox" id="includeSearchedExtensions" checked/>\n\t\t\t<label class="caption" for="includeSearchedExtensions">'+n.escape(r.localize(20,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(21,null))+"</a>")+'</label>\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="block block-settingsSearchResults">\n\t\t\t<input class="sendData" type="checkbox" id="includeSettingsSearchDetails" checked/>\n\t\t\t<label class="caption" for="includeSettingsSearchDetails">'+n.escape(r.localize(22,null)).replace("{0}",'<a href="#" class="showInfo">'+n.escape(r.localize(23,null))+"</a>")+'</label>\n\t\t\t<div class="block-info hidden">\n\t\t\t\t\x3c!-- To be dynamically filled --\x3e\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>'
}}),define(e[68],t([23,13]),function(e,t){return e.create("vs/platform/configuration/common/configurationRegistry",t)}),define(e[69],t([23,13]),function(e,t){return e.create("vs/platform/telemetry/common/telemetryService",t)}),define(e[70],t([23,13]),function(e,t){return e.create("vs/platform/workspaces/common/workspaces",t)}),define(e[71],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.ctor=e,this.staticArguments=t}}();t.SyncDescriptor=n,t.createSyncDescriptor=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new(n.bind.apply(n,[void 0,e].concat(t)))}}),define(e[7],t([0,1]),function(e,t){"use strict";function n(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function r(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);var t=function(e,r,i){
if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,i,!1)};return t.toString=function(){return e},i.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i=t._util||(t._util={})),t.IInstantiationService=r("instantiationService"),t.createDecorator=r,t.optional=function(e){return function(t,r,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,i,!0)}}}),define(e[33],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],s=i[1];this.set(o,s)}}return e.prototype.set=function(e,t){var n=this._entries.get(e)
;return this._entries.set(e,t),n},e.prototype.forEach=function(e){this._entries.forEach(function(t,n){return e(n,t)})},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}();t.ServiceCollection=n}),define(e[74],t([0,1,12,8,30,73,71,7,33]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){void 0===e&&(e=new u.ServiceCollection),void 0===t&&(t=!1),this._services=e,this._strict=t,this._services.set(a.IInstantiationService,this)}return e.prototype.createChild=function(t){var n=this;return this._services.forEach(function(e,r){t.has(e)||(r instanceof s.SyncDescriptor&&(r=n._createAndCacheServiceInstance(e,r)),t.set(e,r))}),new e(t,this._strict)},e.prototype.invokeFunction=function(e){for(var t=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o;try{return o={get:function(e,n){var r=t._getOrCreateServiceInstance(e)
;if(!r&&n!==a.optional)throw new Error("[invokeFunction] unknown service '"+e+"'");return r}},e.apply(void 0,[o].concat(r))}finally{o.get=function(){throw n.illegalState("service accessor is only valid during the invocation of its target method")}}},e.prototype.createInstance=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e instanceof s.SyncDescriptor?this._createInstance(e,t):this._createInstance(new s.SyncDescriptor(e),t)},e.prototype._createInstance=function(e,t){for(var n=e.staticArguments.concat(t),i=a._util.getServiceDependencies(e.ctor).sort(function(e,t){return e.index-t.index}),o=[],s=0,u=i;s<u.length;s++){var c=u[s],l=this._getOrCreateServiceInstance(c.id);if(!l&&this._strict&&!c.optional)throw new Error("[createInstance] "+e.ctor.name+" depends on UNKNOWN service "+c.id+".");o.push(l)}var f=i.length>0?i[0].index:n.length;if(n.length!==f){
console.warn("[createInstance] First service dependency of "+e.ctor.name+" at position "+(f+1)+" conflicts with "+n.length+" static arguments");var d=f-n.length;n=d>0?n.concat(new Array(d)):n.slice(0,f)}var p=[e.ctor];return p.push.apply(p,n),p.push.apply(p,o),r.create.apply(null,p)},e.prototype._getOrCreateServiceInstance=function(e){var t=this._services.get(e);return t instanceof s.SyncDescriptor?this._createAndCacheServiceInstance(e,t):t},e.prototype._createAndCacheServiceInstance=function(e,t){function n(){var e=new Error("[createInstance] cyclic dependency between services");throw e.message=r.toString(),e}i.ok(this._services.get(e)instanceof s.SyncDescriptor);for(var r=new o.Graph(function(e){return e.id.toString()}),u=0,c=[{id:e,desc:t}];c.length;){var l=c.pop();r.lookupOrInsertNode(l),u++>100&&n();for(var f=0,d=a._util.getServiceDependencies(l.desc.ctor);f<d.length;f++){var p=d[f],h=this._services.get(p.id);if(h||console.warn("[createInstance] "+e+" depends on "+p.id+" which is NOT registered."),
h instanceof s.SyncDescriptor){var v={id:p.id,desc:h};r.insertEdge(l,v),c.push(v)}}}for(;;){var m=r.roots();if(0===m.length){0!==r.length&&n();break}for(var g=0,y=m;g<y.length;g++){var b=y[g],_=this._createInstance(b.data.desc,[]);this._services.set(b.data.id,_),r.removeNode(b.data)}}return this._services.get(e)},e}();t.InstantiationService=c}),define(e[34],t([0,1,7]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IIssueService=n.createDecorator("issueService");!function(e){e[e.Bug=0]="Bug",e[e.PerformanceIssue=1]="PerformanceIssue",e[e.FeatureRequest=2]="FeatureRequest",e[e.SettingsSearchIssue=3]="SettingsSearchIssue"}(t.IssueType||(t.IssueType={}))}),define(e[76],t([0,1,17,34]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){var t={includeSystemInfo:!0,includeWorkspaceInfo:!0,includeProcessInfo:!0,includeExtensions:!0,includeSearchedExtensions:!0,includeSettingsSearchDetails:!0};this._data=e?n.assign(t,e):t}
return e.prototype.getData=function(){return this._data},e.prototype.update=function(e){n.assign(this._data,e)},e.prototype.serialize=function(){return"\nIssue Type: <b>"+this.getIssueTypeTitle()+"</b>\n\n"+this._data.issueDescription+"\n"+this.getExtensionVersion()+"\nVS Code version: "+(this._data.versionInfo&&this._data.versionInfo.vscodeVersion)+"\nOS version: "+(this._data.versionInfo&&this._data.versionInfo.os)+"\n\n"+this.getInfos()+"\n\x3c!-- generated by issue reporter --\x3e"},e.prototype.fileOnExtension=function(){return(this._data.issueType===r.IssueType.Bug||this._data.issueType===r.IssueType.PerformanceIssue||this._data.issueType===r.IssueType.FeatureRequest)&&this._data.fileOnExtension},e.prototype.getExtensionVersion=function(){return this.fileOnExtension()?"\nExtension version: "+this._data.selectedExtension.manifest.version:""},e.prototype.getIssueTypeTitle=function(){
return this._data.issueType===r.IssueType.Bug?"Bug":this._data.issueType===r.IssueType.PerformanceIssue?"Performance Issue":this._data.issueType===r.IssueType.SettingsSearchIssue?"Settings Search Issue":"Feature Request"},e.prototype.getInfos=function(){var e="";return this._data.issueType!==r.IssueType.Bug&&this._data.issueType!==r.IssueType.PerformanceIssue||this._data.includeSystemInfo&&(e+=this.generateSystemInfoMd()),this._data.issueType===r.IssueType.PerformanceIssue&&(this._data.includeProcessInfo&&(e+=this.generateProcessInfoMd()),this._data.includeWorkspaceInfo&&(e+=this.generateWorkspaceInfoMd())),this._data.issueType!==r.IssueType.Bug&&this._data.issueType!==r.IssueType.PerformanceIssue||this._data.includeExtensions&&(e+=this.generateExtensionsMd()),this._data.issueType===r.IssueType.SettingsSearchIssue&&(this._data.includeSearchedExtensions&&(e+=this.generateExtensionsMd()),this._data.includeSettingsSearchDetails&&(e+=this.generateSettingSearchResultsMd(),
e+="\n"+this.generateSettingsSearchResultDetailsMd())),e},e.prototype.generateSystemInfoMd=function(){var e=this,t="<details>\n<summary>System Info</summary>\n\n|Item|Value|\n|---|---|\n";return Object.keys(this._data.systemInfo).forEach(function(n){var r="object"==typeof e._data.systemInfo[n]?Object.keys(e._data.systemInfo[n]).map(function(t){return t+": "+e._data.systemInfo[n][t]}).join("<br>"):e._data.systemInfo[n];t+="|"+n+"|"+r+"|\n"}),t+="\n</details>"},e.prototype.generateProcessInfoMd=function(){return"<details>\n<summary>Process Info</summary>\n\n```\n"+this._data.processInfo+"\n```\n\n</details>\n"},e.prototype.generateWorkspaceInfoMd=function(){return"<details>\n<summary>Workspace Info</summary>\n\n```\n"+this._data.workspaceInfo+";\n```\n\n</details>\n"},e.prototype.generateExtensionsMd=function(){if(this._data.extensionsDisabled)return"Extensions disabled";var e=this._data.numberOfThemeExtesions?"\n("+this._data.numberOfThemeExtesions+" theme extensions excluded)":""
;if(!this._data.enabledNonThemeExtesions)return"Extensions: none"+e;var t=this._data.enabledNonThemeExtesions.map(function(e){return e.manifest.name+"|"+e.manifest.publisher.substr(0,3)+"|"+e.manifest.version}).join("\n");return"<details><summary>Extensions ("+this._data.enabledNonThemeExtesions.length+")</summary>\n\nExtension|Author (truncated)|Version\n---|---|---\n"+t+"\n"+e+"\n\n</details>"},e.prototype.generateSettingsSearchResultDetailsMd=function(){return"\nQuery: "+this._data.query+"\nLiteral matches: "+this._data.filterResultCount},e.prototype.generateSettingSearchResultsMd=function(){if(!this._data.actualSearchResults)return"";if(!this._data.actualSearchResults.length)return"No fuzzy results";return"<details><summary>Results</summary>\n\nSetting|Extension|Score\n---|---|---\n"+this._data.actualSearchResults.map(function(e){return e.key+"|"+e.extensionId+"|"+String(e.score).slice(0,5)}).join("\n")+"\n\n</details>"},e}();t.IssueReporterModel=i}),define(e[77],t([0,1,7]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Default=1]="Default",e[e.User=2]="User"}(t.KeybindingSource||(t.KeybindingSource={})),t.IKeybindingService=n.createDecorator("keybindingService")}),define(e[18],t([0,1,7,6,4,2]),function(e,t,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=r.createDecorator("logService");var a;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(a=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=a.Info;var u=function(e){function r(){var n=null!==e&&e.apply(this,arguments)||this;return n.level=t.DEFAULT_LOG_LEVEL,n._onDidChangeLogLevel=n._register(new s.Emitter),n.onDidChangeLogLevel=n._onDidChangeLogLevel.event,n}return n(r,e),r.prototype.setLevel=function(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))},r.prototype.getLevel=function(){return this.level},r}(i.Disposable)
;t.AbstractLogService=u;var c=function(e){function r(n){void 0===n&&(n=t.DEFAULT_LOG_LEVEL);var r=e.call(this)||this;return r.setLevel(n),r.useColors=!o.isWindows,r}return n(r,e),r.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Trace&&(this.useColors?console.log.apply(console,["[90m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Debug&&(this.useColors?console.log.apply(console,["[90m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
;this.getLevel()<=a.Info&&(this.useColors?console.log.apply(console,["[90m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Warning&&(this.useColors?console.warn.apply(console,["[93m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.warn.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Error&&(this.useColors?console.error.apply(console,["[91m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.error.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
;this.getLevel()<=a.Critical&&(this.useColors?console.error.apply(console,["[90m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.error.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.dispose=function(){},r}(u);t.ConsoleLogMainService=c;var l=function(e){function r(n){void 0===n&&(n=t.DEFAULT_LOG_LEVEL);var r=e.call(this)||this;return r.setLevel(n),r}return n(r,e),r.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Trace&&console.log.apply(console,["%cTRACE","color: #888",e].concat(t))},r.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Debug&&console.log.apply(console,["%cDEBUG","background: #eee; color: #888",e].concat(t))},r.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Info&&console.log.apply(console,["%c INFO","color: #33f",e].concat(t))},r.prototype.warn=function(e){
for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Warning&&console.log.apply(console,["%c WARN","color: #993",e].concat(t))},r.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Error&&console.log.apply(console,["%c  ERR","color: #f33",e].concat(t))},r.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Critical&&console.log.apply(console,["%cCRITI","background: #f33; color: white",e].concat(t))},r.prototype.dispose=function(){},r}(u);t.ConsoleLogService=l;var f=function(e){function t(t){var n=e.call(this)||this;return n.logServices=t,t.length&&n.setLevel(t[0].getLevel()),n}return n(t,e),t.prototype.setLevel=function(t){for(var n=0,r=this.logServices;n<r.length;n++){r[n].setLevel(t)}e.prototype.setLevel.call(this,t)},t.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r]
;o.trace.apply(o,[e].concat(t))}},t.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.debug.apply(o,[e].concat(t))}},t.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.info.apply(o,[e].concat(t))}},t.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.warn.apply(o,[e].concat(t))}},t.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.error.apply(o,[e].concat(t))}},t.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.critical.apply(o,[e].concat(t))}},t.prototype.dispose=function(){for(var e=0,t=this.logServices;e<t.length;e++){
t[e].dispose()}},t}(u);t.MultiplexLogService=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.logService=t,n._register(t),n}return n(t,e),Object.defineProperty(t.prototype,"onDidChangeLogLevel",{get:function(){return this.logService.onDidChangeLogLevel},enumerable:!0,configurable:!0}),t.prototype.setLevel=function(e){this.logService.setLevel(e)},t.prototype.getLevel=function(){return this.logService.getLevel()},t.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).trace.apply(r,[e].concat(t))},t.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).debug.apply(r,[e].concat(t))},t.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).info.apply(r,[e].concat(t))},t.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).warn.apply(r,[e].concat(t))},
t.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).error.apply(r,[e].concat(t))},t.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).critical.apply(r,[e].concat(t))},t}(i.Disposable);t.DelegatedLogService=d;var p=function(){function e(){this.onDidChangeLogLevel=(new s.Emitter).event}return e.prototype.setLevel=function(e){},e.prototype.getLevel=function(){return a.Info},e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.critical=function(e){
for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.dispose=function(){},e}();t.NullLogService=p,t.getLogLevel=function(e){if(e.verbose)return a.Trace;if("string"==typeof e.args.log)switch(e.args.log.toLowerCase()){case"trace":return a.Trace;case"debug":return a.Debug;case"info":return a.Info;case"warn":return a.Warning;case"error":return a.Error;case"critical":return a.Critical;case"off":return a.Off}return t.DEFAULT_LOG_LEVEL}}),define(e[79],t([0,1,3,18,2]),function(e,t,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){this.service=e,this.onDidChangeLogLevel=o.buffer(e.onDidChangeLogLevel,!0)}return e.prototype.listen=function(e){switch(e){case"onDidChangeLogLevel":return this.onDidChangeLogLevel}throw new Error("No event found")},e.prototype.call=function(e,t){switch(e){case"setLevel":return this.service.setLevel(t),r.TPromise.as(null)}},e}();t.LogLevelSetterChannel=s;var a=function(){function e(e){this.channel=e}
return Object.defineProperty(e.prototype,"onDidChangeLogLevel",{get:function(){return this.channel.listen("onDidChangeLogLevel")},enumerable:!0,configurable:!0}),e.prototype.setLevel=function(e){return this.channel.call("setLevel",e)},e}();t.LogLevelSetterChannelClient=a;var u=function(e){function t(t,n){var r=e.call(this,n)||this;return r.master=t,r._register(t.onDidChangeLogLevel(function(e){return n.setLevel(e)})),r}return n(t,e),t.prototype.setLevel=function(e){this.master.setLevel(e)},t}(i.DelegatedLogService);t.FollowerLogService=u}),define(e[80],t([0,1,11,18]),function(e,t,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSpdLogService=function(t,n,s){try{var a=e.__$__nodeRequire("spdlog");a.setAsyncMode(8192,2e3);var u=r.join(s,t+".log"),c=new a.RotatingLogger(t,u,5242880,6);return c.setLevel(0),new o(c,n)}catch(e){console.error(e)}return new i.NullLogService};var o=function(e){function t(t,n){void 0===n&&(n=i.LogLevel.Error);var r=e.call(this)||this;return r.logger=t,
r.setLevel(n),r}return n(t,e),t.prototype.trace=function(){this.getLevel()<=i.LogLevel.Trace&&this.logger.trace(this.format(arguments))},t.prototype.debug=function(){this.getLevel()<=i.LogLevel.Debug&&this.logger.debug(this.format(arguments))},t.prototype.info=function(){this.getLevel()<=i.LogLevel.Info&&this.logger.info(this.format(arguments))},t.prototype.warn=function(){this.getLevel()<=i.LogLevel.Warning&&this.logger.warn(this.format(arguments))},t.prototype.error=function(){if(this.getLevel()<=i.LogLevel.Error){var e=arguments[0];if(e instanceof Error){var t=Array.prototype.slice.call(arguments);t[0]=e.stack,this.logger.error(this.format(t))}else this.logger.error(this.format(arguments))}},t.prototype.critical=function(){this.getLevel()<=i.LogLevel.Critical&&this.logger.critical(this.format(arguments))},t.prototype.dispose=function(){this.logger.drop()},t.prototype.format=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if("object"==typeof r)try{r=JSON.stringify(r)}catch(e){}t+=(n>0?" ":"")+r}
return t},t}(i.AbstractLogService)}),define(e[36],t([0,1,11,14]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n.dirname(r.getPathFromAmdModule(e,"")),o=n.join(i,"package.json");t.default=e.__$__nodeRequire(o)}),define(e[37],t([0,1,11,14]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n.dirname(r.getPathFromAmdModule(e,"")),o=n.join(i,"product.json"),s=e.__$__nodeRequire(o);process.env.VSCODE_DEV&&(s.nameShort+=" Dev",s.nameLong+=" Dev",s.dataFolderName+="-dev"),t.default=s}),define(e[83],t([0,1,90,87,16,11,24,36,37,48,4,14,9]),function(e,t,n,r,i,o,a,u,c,l,f,d,p){"use strict";function h(e,t){return f.isWindows?function(e,t){return"\\\\.\\pipe\\"+n.createHash("md5").update(e).digest("hex")+"-"+u.default.version+"-"+t+"-sock"}(e,t):function(e,t){if(_){var r=n.createHash("md5").update(e).digest("hex").substr(0,8);return o.join(_,"vscode-"+r+"-"+u.default.version+"-"+t+".sock")}return o.join(e,u.default.version+"-"+t+".sock")}(e,t)}
function v(e,t){return g(e.debugPluginHost,e.debugBrkPluginHost,5870,t,e.debugId)}function m(e,t){return g(e.debugSearch,e.debugBrkSearch,5876,t)}function g(e,t,n,r,i){var o=t||e,s=Number(o)||(r?null:n);return{port:s,break:!!s&&Boolean(!!t),debugId:i}}function y(e,t){if(e){var n=o.resolve(e);return o.normalize(e)===n?n:o.resolve(t.env.VSCODE_CWD||t.cwd(),e)}}function b(e,t){return y(e["user-data-dir"],t)||o.resolve(r.getDefaultUserDataPath(t.platform))}Object.defineProperty(t,"__esModule",{value:!0});var _=process.env.XDG_RUNTIME_DIR,w=function(){function t(e,t){if(this._args=e,this._execPath=t,!process.env.VSCODE_LOGS){var n=l.toLocalISOString(new Date).replace(/-|:|\.\d+Z$/g,"");process.env.VSCODE_LOGS=o.join(this.userDataPath,"logs",n)}this.logsPath=process.env.VSCODE_LOGS}return Object.defineProperty(t.prototype,"args",{get:function(){return this._args},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appRoot",{get:function(){return o.dirname(d.getPathFromAmdModule(e,""))},enumerable:!0,
configurable:!0}),Object.defineProperty(t.prototype,"execPath",{get:function(){return this._execPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cliPath",{get:function(){return function(e,t,n){return f.isWindows?n?o.join(o.dirname(e),"bin",c.default.applicationName+".cmd"):o.join(t,"scripts","code-cli.bat"):f.isLinux?n?o.join(o.dirname(e),"bin",""+c.default.applicationName):o.join(t,"scripts","code-cli.sh"):n?o.join(t,"bin","code"):o.join(t,"scripts","code-cli.sh")}(this.execPath,this.appRoot,this.isBuilt)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userHome",{get:function(){return i.homedir()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"userDataPath",{get:function(){return process.env.VSCODE_PORTABLE?o.join(process.env.VSCODE_PORTABLE,"user-data"):b(this._args,process)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appNameLong",{get:function(){return c.default.nameLong},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"appQuality",{get:function(){return c.default.quality},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appSettingsHome",{get:function(){return o.join(this.userDataPath,"User")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appSettingsPath",{get:function(){return o.join(this.appSettingsHome,"settings.json")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settingsSearchBuildId",{get:function(){return c.default.settingsSearchBuildId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settingsSearchUrl",{get:function(){return c.default.settingsSearchUrl},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"appKeybindingsPath",{get:function(){return o.join(this.appSettingsHome,"keybindings.json")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExtensionDevelopment",{get:function(){return!!this._args.extensionDevelopmentPath},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"backupHome",{get:function(){return o.join(this.userDataPath,"Backups")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backupWorkspacesPath",{get:function(){return o.join(this.backupHome,"workspaces.json")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"workspacesHome",{get:function(){return o.join(this.userDataPath,"Workspaces")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"installSourcePath",{get:function(){return o.join(this.userDataPath,"installSource")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"builtinExtensionsPath",{get:function(){var t=y(this._args["builtin-extensions-dir"],process);return t||o.normalize(o.join(d.getPathFromAmdModule(e,""),"..","extensions"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensionsPath",{get:function(){var e=y(this._args["extensions-dir"],process)
;return e||(process.env.VSCODE_EXTENSIONS?process.env.VSCODE_EXTENSIONS:process.env.VSCODE_PORTABLE?o.join(process.env.VSCODE_PORTABLE,"extensions"):o.join(this.userHome,c.default.dataFolderName,"extensions"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensionDevelopmentLocationURI",{get:function(){var e=this._args.extensionDevelopmentPath;if(e)return/^[^:/?#]+?:\/\//.test(e)?p.default.parse(e):p.default.file(o.normalize(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensionTestsPath",{get:function(){return this._args.extensionTestsPath?o.normalize(this._args.extensionTestsPath):this._args.extensionTestsPath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableExtensions",{get:function(){if(this._args["disable-extensions"])return!0;var e=this._args["disable-extension"];if(e){if("string"==typeof e)return[e];if(Array.isArray(e)&&e.length>0)return e}return!1},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"skipGettingStarted",{get:function(){return this._args["skip-getting-started"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipReleaseNotes",{get:function(){return this._args["skip-release-notes"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"skipAddToRecentlyOpened",{get:function(){return this._args["skip-add-to-recently-opened"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debugExtensionHost",{get:function(){return v(this._args,this.isBuilt)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debugSearch",{get:function(){return m(this._args,this.isBuilt)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isBuilt",{get:function(){return!process.env.VSCODE_DEV},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verbose",{get:function(){return this._args.verbose},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"log",{get:function(){
return this._args.log},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wait",{get:function(){return this._args.wait},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logExtensionHostCommunication",{get:function(){return this._args.logExtensionHostCommunication},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"performance",{get:function(){return this._args.performance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._args.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mainIPCHandle",{get:function(){return h(this.userDataPath,"main")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sharedIPCHandle",{get:function(){return h(this.userDataPath,"shared")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodeCachedDataDir",{get:function(){return this.isBuilt?o.join(this.userDataPath,"CachedData",c.default.commit||new Array(41).join("0")):void 0
},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableUpdates",{get:function(){return!!this._args["disable-updates"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableCrashReporter",{get:function(){return!!this._args["disable-crash-reporter"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"driverHandle",{get:function(){return this._args.driver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"driverVerbose",{get:function(){return this._args["driver-verbose"]},enumerable:!0,configurable:!0}),s([a.memoize],t.prototype,"appRoot",null),s([a.memoize],t.prototype,"cliPath",null),s([a.memoize],t.prototype,"userHome",null),s([a.memoize],t.prototype,"userDataPath",null),s([a.memoize],t.prototype,"appSettingsHome",null),s([a.memoize],t.prototype,"appSettingsPath",null),s([a.memoize],t.prototype,"settingsSearchBuildId",null),s([a.memoize],t.prototype,"settingsSearchUrl",null),s([a.memoize],t.prototype,"appKeybindingsPath",null),
s([a.memoize],t.prototype,"isExtensionDevelopment",null),s([a.memoize],t.prototype,"backupHome",null),s([a.memoize],t.prototype,"backupWorkspacesPath",null),s([a.memoize],t.prototype,"workspacesHome",null),s([a.memoize],t.prototype,"installSourcePath",null),s([a.memoize],t.prototype,"builtinExtensionsPath",null),s([a.memoize],t.prototype,"extensionsPath",null),s([a.memoize],t.prototype,"extensionDevelopmentLocationURI",null),s([a.memoize],t.prototype,"extensionTestsPath",null),s([a.memoize],t.prototype,"debugExtensionHost",null),s([a.memoize],t.prototype,"debugSearch",null),s([a.memoize],t.prototype,"mainIPCHandle",null),s([a.memoize],t.prototype,"sharedIPCHandle",null),s([a.memoize],t.prototype,"nodeCachedDataDir",null),t}();t.EnvironmentService=w,t.parseExtensionHostPort=v,t.parseSearchPort=m,t.parseDebugPort=g,t.parseUserDataDir=b}),define(e[19],t([0,1,8,30]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.data={}}
return e.prototype.add=function(e,t){r.ok(n.isString(e)),r.ok(n.isObject(t)),r.ok(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},e.prototype.knows=function(e){return this.data.hasOwnProperty(e)},e.prototype.as=function(e){return this.data[e]||null},e}();t.Registry=new i}),define(e[86],t([0,1,19,2]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={JSONContribution:"base.contributions.json"};var i=new(function(){function e(){this._onDidChangeSchema=new r.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.schemasById={}}return e.prototype.registerSchema=function(e,t){this.schemasById[function(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}(e)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e.prototype.getSchemaContributions=function(){return{schemas:this.schemasById}},e}())
;n.Registry.add(t.Extensions.JSONContribution,i)}),define(e[39],t([0,1,68,2,19,8,5,86]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){return t.OVERRIDE_PROPERTY_PATTERN.test(e)?n.localize(3,null,e):void 0!==v.getConfigurationProperties()[e]?n.localize(4,null,e):null}Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={Configuration:"base.contributions.configuration"};var c;!function(e){e[e.APPLICATION=1]="APPLICATION",e[e.WINDOW=2]="WINDOW",e[e.RESOURCE=3]="RESOURCE"}(c=t.ConfigurationScope||(t.ConfigurationScope={})),t.allSettings={properties:{},patternProperties:{}},t.applicationSettings={properties:{},patternProperties:{}},t.windowSettings={properties:{},patternProperties:{}},t.resourceSettings={properties:{},patternProperties:{}},t.editorConfigurationSchemaId="vscode://schemas/settings/editor";var l=i.Registry.as(a.Extensions.JSONContribution),f=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new r.Emitter,this.onDidSchemaChange=this._onDidSchemaChange.event,
this._onDidRegisterConfiguration=new r.Emitter,this.onDidRegisterConfiguration=this._onDidRegisterConfiguration.event,this.configurationContributors=[],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),l.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],[],t)},e.prototype.registerConfigurations=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.toConfiguration(t);i&&e.push(i);var o=[];e.forEach(function(e){o.push.apply(o,r.validateAndRegisterProperties(e,n)),r.configurationContributors.push(e),r.registerJSONConfiguration(e),r.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidRegisterConfiguration.fire(o)},e.prototype.notifyConfigurationSchemaUpdated=function(e){
l.notifySchemaChanged(t.editorConfigurationSchemaId)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.toConfiguration=function(e){for(var r={id:"defaultOverrides",title:n.localize(0,null),properties:{}},i=0,o=e;i<o.length;i++){var s=o[i];for(var a in s.defaults){var u=s.defaults[a];t.OVERRIDE_PROPERTY_PATTERN.test(a)&&"object"==typeof u&&(r.properties[a]={type:"object",default:u,description:n.localize(1,null,a),$ref:t.editorConfigurationSchemaId})}}return Object.keys(r.properties).length?r:null},e.prototype.validateAndRegisterProperties=function(e,n,r,i){void 0===n&&(n=!0),void 0===r&&(r=c.WINDOW),void 0===i&&(i=!1),r=o.isUndefinedOrNull(e.scope)?r:e.scope,i=e.overridable||i;var s=[],a=e.properties;if(a)for(var l in a){var f=void 0;if(n&&(f=u(l)))console.warn(f),delete a[l];else{var d=a[l],p=d.default;o.isUndefined(p)&&(d.default=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1
;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(d.type)),i&&(d.overridable=!0),t.OVERRIDE_PROPERTY_PATTERN.test(l)?d.scope=void 0:d.scope=o.isUndefinedOrNull(d.scope)?r:d.scope,!a[l].hasOwnProperty("included")||a[l].included?(this.configurationProperties[l]=a[l],s.push(l)):(this.excludedConfigurationProperties[l]=a[l],delete a[l])}}var h=e.allOf;if(h)for(var v=0,m=h;v<m.length;v++){var g=m[v];s.push.apply(s,this.validateAndRegisterProperties(g,n,r,i))}return s},e.prototype.getConfigurations=function(){return this.configurationContributors},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.getExcludedConfigurationProperties=function(){return this.excludedConfigurationProperties},e.prototype.registerJSONConfiguration=function(e){function n(e){var r=e.properties;if(r)for(var i in r)switch(t.allSettings.properties[i]=r[i],r[i].scope){case c.APPLICATION:
t.applicationSettings.properties[i]=r[i];break;case c.WINDOW:t.windowSettings.properties[i]=r[i];break;case c.RESOURCE:t.resourceSettings.properties[i]=r[i]}var o=e.allOf;o&&o.forEach(n)}n(e),this._onDidSchemaChange.fire()},e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){e.id!==d&&(this.update(e),l.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema))},e.prototype.updateOverridePropertyPatternKey=function(){var e=t.allSettings.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:n.localize(2,null),errorMessage:"Unknown Identifier. Use language identifiers",$ref:t.editorConfigurationSchemaId}),delete t.allSettings.patternProperties[this.overridePropertyPattern],delete t.applicationSettings.patternProperties[this.overridePropertyPattern],delete t.windowSettings.patternProperties[this.overridePropertyPattern],delete t.resourceSettings.patternProperties[this.overridePropertyPattern],this.computeOverridePropertyPattern(),
t.allSettings.patternProperties[this.overridePropertyPattern]=e,t.applicationSettings.patternProperties[this.overridePropertyPattern]=e,t.windowSettings.patternProperties[this.overridePropertyPattern]=e,t.resourceSettings.patternProperties[this.overridePropertyPattern]=e,this._onDidSchemaChange.fire()},e.prototype.update=function(e){var t=this,n=e.properties;if(n)for(var r in n)n[r].overridable&&(this.editorConfigurationSchema.properties[r]=this.getConfigurationProperties()[r]);var i=e.allOf;i&&i.forEach(function(e){return t.update(e)})},e.prototype.computeOverridePropertyPattern=function(){this.overridePropertyPattern=this.overrideIdentifiers.length?h.replace("${0}",this.overrideIdentifiers.map(function(e){return s.createRegExp(e,!1).source}).join("|")):p},e}(),d="override",p="\\[.*\\]$",h="\\[(${0})\\]$";t.OVERRIDE_PROPERTY_PATTERN=new RegExp(p);var v=new f;i.Registry.add(t.Extensions.Configuration,v),t.validateProperty=u,t.getScopes=function(){
for(var e={},t=v.getConfigurationProperties(),n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];e[i]=t[i].scope}return e.launch=c.RESOURCE,e.task=c.RESOURCE,e}}),define(e[35],t([0,1,17,8,9,19,7,39]),function(e,t,n,r,i,o,s,a){"use strict";function u(e,t){var n=Object.create(null);for(var r in e)c(n,r,e[r],t);return n}function c(e,t,n,r){for(var i=t.split("."),o=i.pop(),s=e,a=0;a<i.length;a++){var u=i[a],c=s[u];switch(typeof c){case"undefined":c=s[u]=Object.create(null);break;case"object":break;default:return void r("Ignoring "+t+" as "+i.slice(0,a+1).join(".")+" is "+JSON.stringify(c))}s=c}"object"==typeof s?s[o]=n:r("Ignoring "+t+" as "+i.join(".")+" is "+JSON.stringify(s))}function l(e,t){var n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){var r=e[n];"object"!=typeof r||Array.isArray(r)||(l(r,t),0===Object.keys(r).length&&delete e[n])}}else delete e[n]}function f(e,t,n){var r=function(e,t){for(var n=e,r=0;r<t.length;r++){if("object"!=typeof n||null===n)return;n=n[t[r]]}return n}(e,t.split("."))
;return void 0===r?n:r}function d(e,t,n){Object.keys(t).forEach(function(i){i in e?r.isObject(e[i])&&r.isObject(t[i])?d(e[i],t[i],n):n&&(e[i]=t[i]):e[i]=t[i]})}function p(e){return e.substring(1,e.length-1)}Object.defineProperty(t,"__esModule",{value:!0}),t.IConfigurationService=s.createDecorator("configurationService"),t.isConfigurationOverrides=function(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof i.default)};!function(e){e[e.USER=1]="USER",e[e.WORKSPACE=2]="WORKSPACE",e[e.WORKSPACE_FOLDER=3]="WORKSPACE_FOLDER",e[e.DEFAULT=4]="DEFAULT",e[e.MEMORY=5]="MEMORY"}(t.ConfigurationTarget||(t.ConfigurationTarget={})),t.compare=function(e,t){for(var r=t.keys.filter(function(t){return-1===e.keys.indexOf(t)}),i=e.keys.filter(function(e){return-1===t.keys.indexOf(e)}),o=[],s=0,a=e.keys;s<a.length;s++){var u=a[s],c=f(e.contents,u),l=f(t.contents,u);n.equals(c,l)||o.push(u)}return{added:r,removed:i,updated:o}},
t.toOverrides=function(e,t){for(var n=[],r=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties(),i=0,s=Object.keys(e);i<s.length;i++){var c=s[i];if(a.OVERRIDE_PROPERTY_PATTERN.test(c)){var l={};for(var f in e[c])r[f]&&r[f].overridable&&(l[f]=e[c][f]);n.push({identifiers:[p(c).trim()],contents:u(l,t)})}}return n},t.toValuesTree=u,t.addToValueTree=c,t.removeFromValueTree=function(e,t){l(e,t.split("."))},t.getConfigurationValue=f,t.merge=d,t.getConfigurationKeys=function(){var e=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties();return Object.keys(e)},t.getDefaultValues=function(){var e=Object.create(null),t=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(var n in t)c(e,n,t[n].default,function(e){return console.error("Conflict in default settings: "+e)});return e},t.overrideIdentifierFromKey=p,t.keyFromOverrideIdentifier=function(e){return"["+e+"]"}});var a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}}
;define(e[89],t([0,1,69,5,7,35,39,3,6,17,19]),function(e,t,n,r,i,o,u,c,l,f,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){this._configurationService=t,this._disposables=[],this._cleanupPatterns=[],this._appender=e.appender,this._commonProperties=e.commonProperties||c.TPromise.as({}),this._piiPaths=e.piiPaths||[],this._userOptIn=!0,this._cleanupPatterns=[/file:\/\/\/.*?\/resources\/app\//gi];for(var n=0,i=this._piiPaths;n<i.length;n++){var o=i[n];this._cleanupPatterns.push(new RegExp(r.escapeRegExpCharacters(o),"gi"))}this._configurationService&&(this._updateUserOptIn(),this._configurationService.onDidChangeConfiguration(this._updateUserOptIn,this,this._disposables),this.publicLog("optInStatus",{optIn:this._userOptIn}))}return e.prototype._updateUserOptIn=function(){var e=this._configurationService.getValue(h);this._userOptIn=e?e.enableTelemetry:this._userOptIn},Object.defineProperty(e.prototype,"isOptedIn",{get:function(){return this._userOptIn},
enumerable:!0,configurable:!0}),e.prototype.getTelemetryInfo=function(){return this._commonProperties.then(function(e){return{sessionId:e.sessionID,instanceId:e["common.instanceId"],machineId:e["common.machineId"]}})},e.prototype.dispose=function(){this._disposables=l.dispose(this._disposables)},e.prototype.publicLog=function(e,t,n){var r=this;return this._userOptIn?this._commonProperties.then(function(i){t=f.mixin(t,i),t=f.cloneAndChange(t,function(e){if("string"==typeof e)return r._cleanupInfo(e,n)}),r._appender.log(e,t)},function(e){console.error(e)}):c.TPromise.as(void 0)},e.prototype._cleanupInfo=function(e,t){var n=e;if(t){for(var r=[],i=0,o=this._cleanupPatterns;i<o.length;i++)for(d=o[i];;){var s=d.exec(e);if(!s)break;r.push([s.index,d.lastIndex])}for(var a=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,u=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g,c=function(){var t=u.exec(e);if(!t)return"break";!a.test(t[0])&&r.every(function(e){var n=e[0],r=e[1]
;return t.index<n||t.index>=r})&&(n=n.slice(0,t.index)+t[0].replace(/./g,"a")+n.slice(u.lastIndex))};;){if("break"===c())break}}for(var l=0,f=this._cleanupPatterns;l<f.length;l++){var d=f[l];n=n.replace(d,"")}return n},e.IDLE_START_EVENT_NAME="UserIdleStart",e.IDLE_STOP_EVENT_NAME="UserIdleStop",e=s([a(1,i.optional(o.IConfigurationService))],e)}();t.TelemetryService=p;var h="telemetry";d.Registry.as(u.Extensions.Configuration).registerConfiguration({id:h,order:110,type:"object",title:n.localize(0,null),properties:{"telemetry.enableTelemetry":{type:"boolean",description:n.localize(1,null),default:!0,tags:["usesOnlineServices"]}}})}),define(e[84],t([0,1,3,81,26,35,77,18]),function(e,t,n,r,i,o,u,c){"use strict";function l(e,t){return t.onDidChangeConfiguration(function(t){t.source!==o.ConfigurationTarget.DEFAULT&&(e.publicLog("updateConfiguration",{configurationSource:o.ConfigurationTarget[t.source],configurationKeys:function(e){if(!e)return[];var t=[];return f(t,"",e),t}(t.sourceConfig)}),
e.publicLog("updateConfigurationValues",{configurationSource:o.ConfigurationTarget[t.source],configurationValues:function(e,t){if(!e)return[];return t.reduce(function(t,n){var r,i=n.split(".").reduce(function(e,t){return e&&"object"==typeof e?e[t]:void 0},e);return void 0!==i&&t.push((r={},r[n]=i,r)),t},[])}(t.sourceConfig,p)}))})}function f(e,t,n){n&&"object"==typeof n&&!Array.isArray(n)?Object.keys(n).forEach(function(r){return f(e,t?t+"."+r:r,n[r])}):e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.NullTelemetryService=new(function(){function e(){}return e.prototype.publicLog=function(e,t){return n.TPromise.wrap(null)},e.prototype.getTelemetryInfo=function(){return n.TPromise.wrap({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"})},e}()),t.combinedAppender=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{log:function(t,n){return e.forEach(function(e){return e.log(t,n)})},dispose:function(){
return n.TPromise.join(e.map(function(e){return e.dispose()}))}}},t.NullAppender={log:function(){return null},dispose:function(){return n.TPromise.as(null)}};var d=function(){function e(e){this._logService=e,this.commonPropertiesRegex=/^sessionID$|^version$|^timestamp$|^commitHash$|^common\./}return e.prototype.dispose=function(){return n.TPromise.as(void 0)},e.prototype.log=function(e,t){var n=this,r={};Object.keys(t).forEach(function(e){n.commonPropertiesRegex.test(e)||(r[e]=t[e])}),this._logService.trace("telemetry/"+e,r)},e=s([a(0,c.ILogService)],e)}();t.LogAppender=d,t.telemetryURIDescriptor=function(e,t){var n=e&&e.fsPath;return n?{mimeType:r.guessMimeTypes(n).join(", "),ext:i.extname(n),path:t(n)}:{}}
;var p=["editor.tabCompletion","editor.fontFamily","editor.fontWeight","editor.fontSize","editor.lineHeight","editor.letterSpacing","editor.lineNumbers","editor.rulers","editor.wordSeparators","editor.tabSize","editor.insertSpaces","editor.detectIndentation","editor.roundedSelection","editor.scrollBeyondLastLine","editor.minimap.enabled","editor.minimap.side","editor.minimap.renderCharacters","editor.minimap.maxColumn","editor.find.seedSearchStringFromSelection","editor.find.autoFindInSelection","editor.wordWrap","editor.wordWrapColumn","editor.wrappingIndent","editor.mouseWheelScrollSensitivity","editor.multiCursorModifier","editor.quickSuggestions","editor.quickSuggestionsDelay","editor.parameterHints.enabled","editor.parameterHints.cycle","editor.autoClosingBrackets","editor.autoClosingQuotes","editor.autoSurround","editor.autoIndent","editor.formatOnType","editor.formatOnPaste","editor.suggestOnTriggerCharacters","editor.acceptSuggestionOnEnter","editor.acceptSuggestionOnCommitCharacter","editor.snippetSuggestions","editor.emptySelectionClipboard","editor.wordBasedSuggestions","editor.suggestSelection","editor.suggestFontSize","editor.suggestLineHeight","editor.selectionHighlight","editor.occurrencesHighlight","editor.overviewRulerLanes","editor.overviewRulerBorder","editor.cursorBlinking","editor.cursorStyle","editor.mouseWheelZoom","editor.fontLigatures","editor.hideCursorInOverviewRuler","editor.renderWhitespace","editor.renderControlCharacters","editor.renderIndentGuides","editor.renderLineHighlight","editor.codeLens","editor.folding","editor.showFoldingControls","editor.matchBrackets","editor.glyphMargin","editor.useTabStops","editor.trimAutoWhitespace","editor.stablePeek","editor.dragAndDrop","editor.formatOnSave","editor.colorDecorators","breadcrumbs.enabled","breadcrumbs.filePath","breadcrumbs.symbolPath","breadcrumbs.useQuickPick","explorer.openEditors.visible","extensions.autoUpdate","files.associations","files.autoGuessEncoding","files.autoSave","files.autoSaveDelay","files.encoding","files.eol","files.hotExit","files.trimTrailingWhitespace","git.confirmSync","git.enabled","http.proxyStrictSSL","javascript.validate.enable","php.builtInCompletions.enable","php.validate.enable","php.validate.run","terminal.integrated.fontFamily","window.openFilesInNewWindow","window.restoreWindows","window.zoomLevel","workbench.editor.enablePreview","workbench.editor.enablePreviewFromQuickOpen","workbench.editor.showTabs","workbench.editor.swipeToNavigate","workbench.sideBar.location","workbench.startupEditor","workbench.statusBar.visible","workbench.welcome.enabled"]
;t.configurationTelemetry=l,t.keybindingsTelemetry=function(e,t){return t.onDidUpdateKeybindings(function(t){t.source===u.KeybindingSource.User&&t.keybindings&&e.publicLog("updateKeybindings",{bindings:t.keybindings.map(function(e){return{key:e.key,command:e.command,when:e.when,args:!!e.args||void 0}})})})}}),define(e[55],t([0,1,4,16,25,40]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveCommonProperties=function(e,t,s,a){var u=Object.create(null);u["common.machineId"]=s,u.sessionID=i.generateUuid()+Date.now(),u.commitHash=e,u.version=t,u["common.platformVersion"]=(r.release()||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),u["common.platform"]=n.Platform[n.platform],u["common.nodePlatform"]=process.platform,u["common.nodeArch"]=process.arch;var c=0,l=Date.now();return Object.defineProperties(u,{timestamp:{get:function(){return new Date},enumerable:!0},"common.timesincesessionstart":{get:function(){return Date.now()-l},enumerable:!0},"common.sequence":{
get:function(){return c++},enumerable:!0}}),o.readFile(a,"utf8").then(function(e){return u["common.source"]=e.slice(0,30),u},function(e){return u})}}),define(e[45],t([0,1,3]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.appender=e}return e.prototype.listen=function(e,t){throw new Error("No events")},e.prototype.call=function(e,t){var r=t.eventName,i=t.data;return this.appender.log(r,i),n.TPromise.as(null)},e}();t.TelemetryAppenderChannel=r;var i=function(){function e(e){this.channel=e}return e.prototype.log=function(e,t){return this.channel.call("log",{eventName:e,data:t}).done(null,function(e){return"Failed to log telemetry: "+console.warn(e)}),n.TPromise.as(null)},e.prototype.dispose=function(){},e}();t.TelemetryAppenderClient=i}),define(e[44],t([0,1,3,7,2,6]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWindowsService=r.createDecorator("windowsService"),
t.IWindowService=r.createDecorator("windowService");!function(e){e[e.CLI=0]="CLI",e[e.DOCK=1]="DOCK",e[e.MENU=2]="MENU",e[e.DIALOG=3]="DIALOG",e[e.DESKTOP=4]="DESKTOP",e[e.API=5]="API"}(t.OpenContext||(t.OpenContext={}));!function(e){e[e.NONE=0]="NONE",e[e.LOADING=1]="LOADING",e[e.NAVIGATING=2]="NAVIGATING",e[e.READY=3]="READY"}(t.ReadyState||(t.ReadyState={}));var u=function(){function e(e){var t=this;this.disposables=[];i.latch(i.anyEvent(e.onWindowOpen,e.onWindowFocus))(this.setActiveWindow,this,this.disposables),this.firstActiveWindowIdPromise=e.getActiveWindowId().then(function(e){return void 0===t._activeWindowId&&t.setActiveWindow(e)})}return e.prototype.setActiveWindow=function(e){this.firstActiveWindowIdPromise&&(this.firstActiveWindowIdPromise=null),this._activeWindowId=e},e.prototype.getActiveClientId=function(){return this.firstActiveWindowIdPromise?this.firstActiveWindowIdPromise:n.TPromise.as("window:"+this._activeWindowId)},e.prototype.dispose=function(){
this.disposables=o.dispose(this.disposables)},e=s([a(0,t.IWindowsService)],e)}();t.ActiveWindowManager=u}),define(e[43],t([0,1,7,70,9]),function(e,t,n,r,i){"use strict";function o(e){return e&&"object"==typeof e&&"string"==typeof e.path&&(!e.name||"string"==typeof e.name)}function s(e){return e&&"object"==typeof e&&"string"==typeof e.uri&&(!e.name||"string"==typeof e.name)}Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspacesMainService=n.createDecorator("workspacesMainService"),t.IWorkspacesService=n.createDecorator("workspacesService"),t.WORKSPACE_EXTENSION="code-workspace",t.WORKSPACE_FILTER=[{name:r.localize(0,null),extensions:[t.WORKSPACE_EXTENSION]}],t.UNTITLED_WORKSPACE_NAME="workspace.json",t.isStoredWorkspaceFolder=function(e){return o(e)||s(e)},t.isRawFileWorkspaceFolder=o,t.isRawUriWorkspaceFolder=s,t.isSingleFolderWorkspaceIdentifier=function(e){return e instanceof i.default},t.isWorkspaceIdentifier=function(e){var t=e;return t&&"string"==typeof t.id&&"string"==typeof t.configPath},
t.toWorkspaceIdentifier=function(e){return e.configuration?{configPath:e.configuration.fsPath,id:e.id}:1===e.folders.length?e.folders[0].uri:void 0}}),define(e[85],t([0,1,2,43,9]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this.service=e,this.onWindowOpen=n.buffer(e.onWindowOpen,!0),this.onWindowFocus=n.buffer(e.onWindowFocus,!0),this.onWindowBlur=n.buffer(e.onWindowBlur,!0),this.onWindowMaximize=n.buffer(e.onWindowMaximize,!0),this.onWindowUnmaximize=n.buffer(e.onWindowUnmaximize,!0),this.onRecentlyOpenedChange=n.buffer(e.onRecentlyOpenedChange,!0)}return e.prototype.listen=function(e,t){switch(e){case"onWindowOpen":return this.onWindowOpen;case"onWindowFocus":return this.onWindowFocus;case"onWindowBlur":return this.onWindowBlur;case"onWindowMaximize":return this.onWindowMaximize;case"onWindowUnmaximize":return this.onWindowUnmaximize;case"onRecentlyOpenedChange":return this.onRecentlyOpenedChange}throw new Error("No event found")},
e.prototype.call=function(e,t){switch(e){case"pickFileFolderAndOpen":return this.service.pickFileFolderAndOpen(t);case"pickFileAndOpen":return this.service.pickFileAndOpen(t);case"pickFolderAndOpen":return this.service.pickFolderAndOpen(t);case"pickWorkspaceAndOpen":return this.service.pickWorkspaceAndOpen(t);case"showMessageBox":return this.service.showMessageBox(t[0],t[1]);case"showSaveDialog":return this.service.showSaveDialog(t[0],t[1]);case"showOpenDialog":return this.service.showOpenDialog(t[0],t[1]);case"reloadWindow":return this.service.reloadWindow(t[0],t[1]);case"openDevTools":return this.service.openDevTools(t[0],t[1]);case"toggleDevTools":return this.service.toggleDevTools(t);case"closeWorkspace":return this.service.closeWorkspace(t);case"enterWorkspace":return this.service.enterWorkspace(t[0],t[1]);case"createAndEnterWorkspace":var n=t[1],o=void 0;return Array.isArray(n)&&(o=n.map(function(e){return{uri:i.default.revive(e.uri),name:e.name}})),this.service.createAndEnterWorkspace(t[0],o,t[2])
;case"saveAndEnterWorkspace":return this.service.saveAndEnterWorkspace(t[0],t[1]);case"toggleFullScreen":return this.service.toggleFullScreen(t);case"setRepresentedFilename":return this.service.setRepresentedFilename(t[0],t[1]);case"addRecentlyOpened":return this.service.addRecentlyOpened(t.map(i.default.revive));case"removeFromRecentlyOpened":var s=t;return Array.isArray(s)&&(s=s.map(function(e){return r.isWorkspaceIdentifier(e)?e:i.default.revive(e)})),this.service.removeFromRecentlyOpened(s);case"clearRecentlyOpened":return this.service.clearRecentlyOpened();case"newWindowTab":return this.service.newWindowTab();case"showPreviousWindowTab":return this.service.showPreviousWindowTab();case"showNextWindowTab":return this.service.showNextWindowTab();case"moveWindowTabToNewWindow":return this.service.moveWindowTabToNewWindow();case"mergeAllWindowTabs":return this.service.mergeAllWindowTabs();case"toggleWindowTabsBar":return this.service.toggleWindowTabsBar();case"updateTouchBar":
return this.service.updateTouchBar(t[0],t[1]);case"getRecentlyOpened":return this.service.getRecentlyOpened(t);case"focusWindow":return this.service.focusWindow(t);case"closeWindow":return this.service.closeWindow(t);case"isFocused":return this.service.isFocused(t);case"isMaximized":return this.service.isMaximized(t);case"maximizeWindow":return this.service.maximizeWindow(t);case"unmaximizeWindow":return this.service.unmaximizeWindow(t);case"minimizeWindow":return this.service.minimizeWindow(t);case"onWindowTitleDoubleClick":return this.service.onWindowTitleDoubleClick(t);case"setDocumentEdited":return this.service.setDocumentEdited(t[0],t[1]);case"openWindow":return this.service.openWindow(t[0],t[1]?t[1].map(function(e){return i.default.revive(e)}):t[1],t[2]);case"openNewWindow":return this.service.openNewWindow();case"showWindow":return this.service.showWindow(t);case"getWindows":return this.service.getWindows();case"getWindowCount":return this.service.getWindowCount();case"relaunch":
return this.service.relaunch(t[0]);case"whenSharedProcessReady":return this.service.whenSharedProcessReady();case"toggleSharedProcess":return this.service.toggleSharedProcess();case"quit":return this.service.quit();case"log":return this.service.log(t[0],t[1]);case"showItemInFolder":return this.service.showItemInFolder(t);case"getActiveWindowId":return this.service.getActiveWindowId();case"openExternal":return this.service.openExternal(t);case"startCrashReporter":return this.service.startCrashReporter(t);case"openAboutDialog":return this.service.openAboutDialog()}},e}();t.WindowsChannel=o;var s=function(){function e(e){this.channel=e}return Object.defineProperty(e.prototype,"onWindowOpen",{get:function(){return this.channel.listen("onWindowOpen")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onWindowFocus",{get:function(){return this.channel.listen("onWindowFocus")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onWindowBlur",{get:function(){
return this.channel.listen("onWindowBlur")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onWindowMaximize",{get:function(){return this.channel.listen("onWindowMaximize")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onWindowUnmaximize",{get:function(){return this.channel.listen("onWindowUnmaximize")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onRecentlyOpenedChange",{get:function(){return this.channel.listen("onRecentlyOpenedChange")},enumerable:!0,configurable:!0}),e.prototype.pickFileFolderAndOpen=function(e){return this.channel.call("pickFileFolderAndOpen",e)},e.prototype.pickFileAndOpen=function(e){return this.channel.call("pickFileAndOpen",e)},e.prototype.pickFolderAndOpen=function(e){return this.channel.call("pickFolderAndOpen",e)},e.prototype.pickWorkspaceAndOpen=function(e){return this.channel.call("pickWorkspaceAndOpen",e)},e.prototype.showMessageBox=function(e,t){return this.channel.call("showMessageBox",[e,t])},
e.prototype.showSaveDialog=function(e,t){return this.channel.call("showSaveDialog",[e,t])},e.prototype.showOpenDialog=function(e,t){return this.channel.call("showOpenDialog",[e,t])},e.prototype.reloadWindow=function(e,t){return this.channel.call("reloadWindow",[e,t])},e.prototype.openDevTools=function(e,t){return this.channel.call("openDevTools",[e,t])},e.prototype.toggleDevTools=function(e){return this.channel.call("toggleDevTools",e)},e.prototype.closeWorkspace=function(e){return this.channel.call("closeWorkspace",e)},e.prototype.enterWorkspace=function(e,t){return this.channel.call("enterWorkspace",[e,t])},e.prototype.createAndEnterWorkspace=function(e,t,n){return this.channel.call("createAndEnterWorkspace",[e,t,n])},e.prototype.saveAndEnterWorkspace=function(e,t){return this.channel.call("saveAndEnterWorkspace",[e,t])},e.prototype.toggleFullScreen=function(e){return this.channel.call("toggleFullScreen",e)},e.prototype.setRepresentedFilename=function(e,t){
return this.channel.call("setRepresentedFilename",[e,t])},e.prototype.addRecentlyOpened=function(e){return this.channel.call("addRecentlyOpened",e)},e.prototype.removeFromRecentlyOpened=function(e){return this.channel.call("removeFromRecentlyOpened",e)},e.prototype.clearRecentlyOpened=function(){return this.channel.call("clearRecentlyOpened")},e.prototype.getRecentlyOpened=function(e){return this.channel.call("getRecentlyOpened",e).then(function(e){return e.workspaces=e.workspaces.map(function(e){return r.isWorkspaceIdentifier(e)?e:i.default.revive(e)}),e.files=e.files.map(i.default.revive),e})},e.prototype.newWindowTab=function(){return this.channel.call("newWindowTab")},e.prototype.showPreviousWindowTab=function(){return this.channel.call("showPreviousWindowTab")},e.prototype.showNextWindowTab=function(){return this.channel.call("showNextWindowTab")},e.prototype.moveWindowTabToNewWindow=function(){return this.channel.call("moveWindowTabToNewWindow")},e.prototype.mergeAllWindowTabs=function(){
return this.channel.call("mergeAllWindowTabs")},e.prototype.toggleWindowTabsBar=function(){return this.channel.call("toggleWindowTabsBar")},e.prototype.focusWindow=function(e){return this.channel.call("focusWindow",e)},e.prototype.closeWindow=function(e){return this.channel.call("closeWindow",e)},e.prototype.isFocused=function(e){return this.channel.call("isFocused",e)},e.prototype.isMaximized=function(e){return this.channel.call("isMaximized",e)},e.prototype.maximizeWindow=function(e){return this.channel.call("maximizeWindow",e)},e.prototype.unmaximizeWindow=function(e){return this.channel.call("unmaximizeWindow",e)},e.prototype.minimizeWindow=function(e){return this.channel.call("minimizeWindow",e)},e.prototype.onWindowTitleDoubleClick=function(e){return this.channel.call("onWindowTitleDoubleClick",e)},e.prototype.setDocumentEdited=function(e,t){return this.channel.call("setDocumentEdited",[e,t])},e.prototype.quit=function(){return this.channel.call("quit")},e.prototype.relaunch=function(e){
return this.channel.call("relaunch",[e])},e.prototype.whenSharedProcessReady=function(){return this.channel.call("whenSharedProcessReady")},e.prototype.toggleSharedProcess=function(){return this.channel.call("toggleSharedProcess")},e.prototype.openWindow=function(e,t,n){return this.channel.call("openWindow",[e,t,n])},e.prototype.openNewWindow=function(){return this.channel.call("openNewWindow")},e.prototype.showWindow=function(e){return this.channel.call("showWindow",e)},e.prototype.getWindows=function(){return this.channel.call("getWindows").then(function(e){return e.forEach(function(e){return e.folderUri=e.folderUri?i.default.revive(e.folderUri):e.folderUri}),e})},e.prototype.getWindowCount=function(){return this.channel.call("getWindowCount")},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.channel.call("log",[e,t])},e.prototype.showItemInFolder=function(e){return this.channel.call("showItemInFolder",e)},e.prototype.getActiveWindowId=function(){
return this.channel.call("getActiveWindowId")},e.prototype.openExternal=function(e){return this.channel.call("openExternal",e)},e.prototype.startCrashReporter=function(e){return this.channel.call("startCrashReporter",e)},e.prototype.updateTouchBar=function(e,t){return this.channel.call("updateTouchBar",[e,t])},e.prototype.openAboutDialog=function(){return this.channel.call("openAboutDialog")},e}();t.WindowsChannelClient=s}),define(e[96],t([0,1,53,13,20,31,15,5,37,36,16,24,4,6,52,21,54,33,44,84,89,45,74,55,85,83,76,34,67,80,79,18,62,56,59,63]),function(e,t,r,i,o,a,u,c,l,f,d,p,h,v,m,g,y,b,_,w,E,S,C,P,O,T,x,k,I,D,A,L,R,M,N){"use strict";function F(e){e.classList.add("hidden")}function j(e){e.classList.remove("hidden")}Object.defineProperty(t,"__esModule",{value:!0});var W=h.isWindows?2081:5400;t.startup=function(e){document.body.innerHTML=I.default(),new B(e).render(),document.body.style.display="block"};var B=function(e){function t(t){var n=e.call(this)||this;return n.numberOfSearchResultsDisplayed=0,
n.receivedSystemInfo=!1,n.receivedPerformanceInfo=!1,n.shouldQueueSearch=!1,n.updateSystemInfo=function(e){var t=document.querySelector(".block-system .block-info"),n="";Object.keys(e.systemInfo).forEach(function(t){var r="object"==typeof e.systemInfo[t]?Object.keys(e.systemInfo[t]).map(function(n){return n+": "+e.systemInfo[t][n]}).join("<br>"):e.systemInfo[t];n+="\n\t\t\t\t<tr>\n\t\t\t\t\t<td>"+t+"</td>\n\t\t\t\t\t<td>"+r+"</td>\n\t\t\t\t</tr>"}),t.innerHTML="<table>"+n+"</table>"},n.updateProcessInfo=function(e){document.querySelector(".block-process .block-info").innerHTML="<code>"+e.processInfo+"</code>"},n.updateWorkspaceInfo=function(e){document.querySelector(".block-workspace .block-info code").textContent="\n"+e.workspaceInfo},n.initServices(t),n.issueReporterModel=new x.IssueReporterModel({issueType:t.data.issueType||k.IssueType.Bug,versionInfo:{vscodeVersion:f.default.name+" "+f.default.version+" ("+(l.default.commit||"Commit unknown")+", "+(l.default.date||"Date unknown")+")",
os:d.type()+" "+d.arch()+" "+d.release()},extensionsDisabled:!!n.environmentService.disableExtensions}),n.previewButton=new N.Button(document.getElementById("issue-reporter")),r.ipcRenderer.on("vscode:issuePerformanceInfoResponse",function(e,t){n.logService.trace("issueReporter: Received performance data"),n.issueReporterModel.update(t),n.receivedPerformanceInfo=!0;var r=n.issueReporterModel.getData();n.updateProcessInfo(r),n.updateWorkspaceInfo(r),n.updatePreviewButtonState()}),r.ipcRenderer.on("vscode:issueSystemInfoResponse",function(e,t){n.logService.trace("issueReporter: Received system data"),n.issueReporterModel.update({systemInfo:t}),n.receivedSystemInfo=!0,n.updateSystemInfo(n.issueReporterModel.getData()),n.updatePreviewButtonState()}),r.ipcRenderer.send("vscode:issueSystemInfoRequest"),t.data.issueType===k.IssueType.PerformanceIssue&&r.ipcRenderer.send("vscode:issuePerformanceInfoRequest"),n.logService.trace("issueReporter: Sent data requests"),
"en"!==window.document.documentElement.lang&&j(document.getElementById("english")),n.setUpTypes(),n.setEventHandlers(),n.applyZoom(t.data.zoomLevel),n.applyStyles(t.data.styles),n.handleExtensionData(t.data.enabledExtensions),t.data.issueType===k.IssueType.SettingsSearchIssue&&n.handleSettingsSearchData(t.data),n}return n(t,e),t.prototype.render=function(){this.renderBlocks()},t.prototype.applyZoom=function(e){r.webFrame.setZoomLevel(e),u.setZoomFactor(r.webFrame.getZoomFactor()),u.setZoomLevel(r.webFrame.getZoomLevel(),!1)},t.prototype.applyStyles=function(e){var t=document.createElement("style"),n=[];e.inputBackground&&n.push('input[type="text"], textarea, select, .issues-container > .issue > .issue-state, .block-info { background-color: '+e.inputBackground+"; }"),e.inputBorder?n.push('input[type="text"], textarea, select { border: 1px solid '+e.inputBorder+"; }"):n.push('input[type="text"], textarea, select { border: 1px solid transparent; }'),
e.inputForeground&&n.push('input[type="text"], textarea, select, .issues-container > .issue > .issue-state, .block-info { color: '+e.inputForeground+"; }"),e.inputErrorBorder&&(n.push(".invalid-input, .invalid-input:focus { border: 1px solid "+e.inputErrorBorder+" !important; }"),n.push(".validation-error, .required-input { color: "+e.inputErrorBorder+"; }")),e.inputActiveBorder&&n.push("input[type='text']:focus, textarea:focus, select:focus, summary:focus, button:focus, a:focus, .workbenchCommand:focus  { border: 1px solid "+e.inputActiveBorder+"; outline-style: none; }"),e.textLinkColor&&n.push("a, .workbenchCommand { color: "+e.textLinkColor+"; }"),e.textLinkColor&&n.push("a { color: "+e.textLinkColor+"; }"),e.textLinkActiveForeground&&n.push("a:hover, .workbenchCommand:hover { color: "+e.textLinkActiveForeground+"; }"),e.sliderBackgroundColor&&n.push("::-webkit-scrollbar-thumb { background-color: "+e.sliderBackgroundColor+"; }"),
e.sliderActiveColor&&n.push("::-webkit-scrollbar-thumb:active { background-color: "+e.sliderActiveColor+"; }"),e.sliderHoverColor&&n.push("::--webkit-scrollbar-thumb:hover { background-color: "+e.sliderHoverColor+"; }"),e.buttonBackground&&n.push(".monaco-text-button { background-color: "+e.buttonBackground+" !important; }"),e.buttonForeground&&n.push(".monaco-text-button { color: "+e.buttonForeground+" !important; }"),e.buttonHoverBackground&&n.push(".monaco-text-button:hover, .monaco-text-button:focus { background-color: "+e.buttonHoverBackground+" !important; }"),t.innerHTML=n.join("\n"),document.head.appendChild(t),document.body.style.color=e.color},t.prototype.handleExtensionData=function(e){var t=a.groupBy(e,function(e){var t=e.manifest.contributes?Object.keys(e.manifest.contributes):[];return!e.manifest.activationEvents&&1===t.length&&"themes"===t[0]?"themes":"nonThemes"}),n=t.nonThemes,r=t.themes,i=r&&r.length;this.issueReporterModel.update({numberOfThemeExtesions:i,enabledNonThemeExtesions:n,
allExtensions:e}),this.updateExtensionTable(n,i),(this.environmentService.disableExtensions||0===e.length)&&(document.getElementById("disableExtensions").disabled=!0),this.updateExtensionSelector(e)},t.prototype.handleSettingsSearchData=function(e){this.issueReporterModel.update({actualSearchResults:e.actualSearchResults,query:e.query,filterResultCount:e.filterResultCount}),this.updateSearchedExtensionTable(e.enabledExtensions),this.updateSettingsSearchDetails(e)},t.prototype.updateSettingsSearchDetails=function(e){var t=document.querySelector(".block-settingsSearchResults .block-info"),n="\n\t\t\t<div class='block-settingsSearchResults-details'>\n\t\t\t\t<div>Query: \""+e.query+'"</div>\n\t\t\t\t<div>Literal match count: '+e.filterResultCount+"</div>\n\t\t\t</div>\n\t\t",r="\n\t\t\t<tr>\n\t\t\t\t<th>Setting</th>\n\t\t\t\t<th>Extension</th>\n\t\t\t\t<th>Score</th>\n\t\t\t</tr>";e.actualSearchResults.forEach(function(e){
r+="\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>"+e.key+"</td>\n\t\t\t\t\t\t<td>"+e.extensionId+"</td>\n\t\t\t\t\t\t<td>"+String(e.score).slice(0,5)+"</td>\n\t\t\t\t\t</tr>"}),t.innerHTML=n+"<table>"+r+"</table>"},t.prototype.initServices=function(e){var t=this,n=new b.ServiceCollection,r=new m.Client(String("window"+e.windowId)),i=r.getChannel("windows");n.set(_.IWindowsService,new O.WindowsChannelClient(i)),this.environmentService=new T.EnvironmentService(e,e.execPath);var o=D.createSpdLogService("issuereporter"+e.windowId,L.getLogLevel(this.environmentService),this.environmentService.logsPath),s=new A.LogLevelSetterChannelClient(r.getChannel("loglevel"));this.logService=new A.FollowerLogService(s,o);var a=n.get(_.IWindowsService).whenSharedProcessReady().then(function(){return y.connect(t.environmentService.sharedIPCHandle,"window:"+e.windowId)}),u=new C.InstantiationService(n,!0)
;if(this.environmentService.isExtensionDevelopment||this.environmentService.args["disable-telemetry"]||!l.default.enableTelemetry)this.telemetryService=w.NullTelemetryService;else{var c=g.getDelayedChannel(a.then(function(e){return e.getChannel("telemetryAppender")})),d={appender:w.combinedAppender(new S.TelemetryAppenderClient(c),new w.LogAppender(o)),commonProperties:P.resolveCommonProperties(l.default.commit,f.default.version,e.machineId,this.environmentService.installSourcePath),piiPaths:[this.environmentService.appRoot,this.environmentService.extensionsPath]},p=u.createInstance(E.TelemetryService,d);this._register(p),this.telemetryService=p}},t.prototype.setEventHandlers=function(){var e=this;this.addEventListener("issue-type","change",function(t){var n=parseInt(t.target.value);e.issueReporterModel.update({issueType:n}),n!==k.IssueType.PerformanceIssue||e.receivedPerformanceInfo||r.ipcRenderer.send("vscode:issuePerformanceInfoRequest"),e.updatePreviewButtonState(),e.render()}),
["includeSystemInfo","includeProcessInfo","includeWorkspaceInfo","includeExtensions","includeSearchedExtensions","includeSettingsSearchDetails"].forEach(function(t){e.addEventListener(t,"click",function(n){var r;n.stopPropagation(),e.issueReporterModel.update((r={},r[t]=!e.issueReporterModel.getData()[t],r))})});for(var t=document.getElementsByClassName("showInfo"),n=0;n<t.length;n++){t.item(n).addEventListener("click",function(e){e.preventDefault();var t=e.target,n=t.parentElement.parentElement.lastElementChild;n.classList.contains("hidden")?(j(n),t.textContent=i.localize(0,null)):(F(n),t.textContent=i.localize(1,null))})}this.addEventListener("issue-source","change",function(t){var n=JSON.parse(t.target.value);e.issueReporterModel.update({fileOnExtension:n,includeExtensions:!n}),e.render();var r=document.getElementById("issue-title").value;if(n)e.searchExtensionIssues(r);else{var i=e.issueReporterModel.getData().issueDescription;e.searchVSCodeIssues(r,i)}}),
this.addEventListener("description","input",function(t){var n=t.target.value;if(e.issueReporterModel.update({issueDescription:n}),!e.issueReporterModel.fileOnExtension()){var r=document.getElementById("issue-title").value;e.searchVSCodeIssues(r,n)}}),this.addEventListener("issue-title","input",function(t){var n=event.target.value,r=document.getElementById("issue-title-length-validation-error");if(n&&e.getIssueUrlWithTitle(n).length>W?j(r):F(r),e.issueReporterModel.fileOnExtension())e.searchExtensionIssues(n);else{var i=e.issueReporterModel.getData().issueDescription;e.searchVSCodeIssues(n,i)}}),this.previewButton.onDidClick(function(){return e.createIssue()}),this.addEventListener("disableExtensions","click",function(){r.ipcRenderer.send("vscode:workbenchCommand","workbench.action.reloadWindowWithExtensionsDisabled")}),this.addEventListener("disableExtensions","keydown",function(e){e.stopPropagation(),
13!==e.keyCode&&32!==e.keyCode||(r.ipcRenderer.send("vscode:workbenchCommand","workbench.extensions.action.disableAll"),r.ipcRenderer.send("vscode:workbenchCommand","workbench.action.reloadWindow"))}),document.onkeydown=function(t){var n=h.isMacintosh?t.metaKey:t.ctrlKey;n&&13===t.keyCode&&e.createIssue()&&r.ipcRenderer.send("vscode:closeIssueReporter"),n&&187===t.keyCode&&e.applyZoom(r.webFrame.getZoomLevel()+1),n&&189===t.keyCode&&e.applyZoom(r.webFrame.getZoomLevel()-1),h.isMacintosh&&n&&65===t.keyCode&&t.target&&(t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement)&&t.target.select()}},t.prototype.updatePreviewButtonState=function(){this.isPreviewEnabled()?(this.previewButton.label=i.localize(2,null),this.previewButton.enabled=!0):(this.previewButton.enabled=!1,this.previewButton.label=i.localize(3,null))},t.prototype.isPreviewEnabled=function(){var e=this.issueReporterModel.getData().issueType
;return!(e!==k.IssueType.Bug||!this.receivedSystemInfo)||(!(e!==k.IssueType.PerformanceIssue||!this.receivedSystemInfo||!this.receivedPerformanceInfo)||(e===k.IssueType.FeatureRequest||e===k.IssueType.SettingsSearchIssue))},t.prototype.getExtensionRepositoryUrl=function(){var e=this.issueReporterModel.getData().selectedExtension;return e&&e.manifest&&e.manifest.repository&&e.manifest.repository.url},t.prototype.getExtensionBugsUrl=function(){var e=this.issueReporterModel.getData().selectedExtension;return e&&e.manifest&&e.manifest.bugs&&e.manifest.bugs.url},t.prototype.searchVSCodeIssues=function(e,t){e?this.searchDuplicates(e,t):this.clearSearchResults()},t.prototype.searchExtensionIssues=function(e){var t=this.getExtensionGitHubUrl();if(e){var n=/^https?:\/\/github\.com\/(.*)/.exec(t);if(n&&n.length){var r=n[1];return this.searchGitHub(r,e)}if(this.issueReporterModel.getData().selectedExtension)return this.clearSearchResults(),this.displaySearchResults([])}this.clearSearchResults()},
t.prototype.clearSearchResults=function(){document.getElementById("similar-issues").innerHTML="",this.numberOfSearchResultsDisplayed=0},t.prototype.searchGitHub=function(e,t){var n=this,r="is:issue+repo:"+e+"+"+t,s=document.getElementById("similar-issues");window.fetch("https://api.github.com/search/issues?q="+r).then(function(r){r.json().then(function(a){if(s.innerHTML="",a&&a.items)n.displaySearchResults(a.items);else{var u=o.$("div.list-title");u.textContent=i.localize(4,null),s.appendChild(u);var c=r.headers.get("X-RateLimit-Reset"),l=parseInt(c)-Math.floor(Date.now()/1e3);n.shouldQueueSearch&&(n.shouldQueueSearch=!1,setTimeout(function(){n.searchGitHub(e,t),n.shouldQueueSearch=!0},1e3*l))}}).catch(function(e){n.logSearchError(e)})}).catch(function(e){n.logSearchError(e)})},t.prototype.searchDuplicates=function(e,t){var n=this,r={method:"POST",body:JSON.stringify({title:e,body:t}),headers:new Headers({"Content-Type":"application/json"})}
;window.fetch("https://vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates",r).then(function(e){e.json().then(function(e){if(n.clearSearchResults(),!e||!e.candidates)throw new Error("Unexpected response, no candidates property");n.displaySearchResults(e.candidates)}).catch(function(e){n.logSearchError(e)})}).catch(function(e){n.logSearchError(e)})},t.prototype.displaySearchResults=function(e){var t=this,n=document.getElementById("similar-issues");if(e.length){var r=o.$("div.issues-container"),s=o.$("div.list-title");s.textContent=i.localize(5,null),this.numberOfSearchResultsDisplayed=e.length<5?e.length:5;for(var a=0;a<this.numberOfSearchResultsDisplayed;a++){var u=e[a],c=o.$("a.issue-link",{href:u.html_url});c.textContent=u.title,c.title=u.title,c.addEventListener("click",function(e){return t.openLink(e)}),c.addEventListener("auxclick",function(e){return t.openLink(e)});var l=void 0;if(u.state){l=o.$("span.issue-state");var f=o.$("span.issue-icon")
;new R.OcticonLabel(f).text="open"===u.state?"$(issue-opened)":"$(issue-closed)";var d=o.$("span.issue-state.label");d.textContent="open"===u.state?i.localize(6,null):i.localize(7,null),l.title="open"===u.state?i.localize(8,null):i.localize(9,null),l.appendChild(f),l.appendChild(d)}var p=o.$("div.issue",{},l,c);r.appendChild(p)}n.appendChild(s),n.appendChild(r)}else{var h=o.$("div.list-title");h.textContent=i.localize(10,null),n.appendChild(h)}},t.prototype.logSearchError=function(e){this.logService.warn("issueReporter#search ",e.message),this.telemetryService.publicLog("issueReporterSearchError",{message:e.message})},t.prototype.setUpTypes=function(){var e=function(e,t){return'<option value="'+e.valueOf()+'">'+c.escape(t)+"</option>"},t=document.getElementById("issue-type"),n=this.issueReporterModel.getData().issueType;n===k.IssueType.SettingsSearchIssue?(t.innerHTML=e(k.IssueType.SettingsSearchIssue,i.localize(11,null)),
t.disabled=!0):t.innerHTML=[e(k.IssueType.Bug,i.localize(12,null)),e(k.IssueType.FeatureRequest,i.localize(13,null)),e(k.IssueType.PerformanceIssue,i.localize(14,null))].join("\n"),t.value=n.toString()},t.prototype.renderBlocks=function(){var e=this.issueReporterModel.getData(),t=e.issueType,n=e.fileOnExtension,r=document.getElementById("block-container"),o=document.querySelector(".block-system"),s=document.querySelector(".block-process"),a=document.querySelector(".block-workspace"),u=document.querySelector(".block-extensions"),c=document.querySelector(".block-searchedExtensions"),l=document.querySelector(".block-settingsSearchResults"),f=document.getElementById("problem-source"),d=document.getElementById("problem-source-help-text"),p=document.getElementById("issue-description-label"),h=document.getElementById("issue-description-subtitle"),v=document.getElementById("extension-selection");F(r),F(o),F(s),F(a),F(u),F(c),F(l),F(f),F(d),F(v),t===k.IssueType.Bug?(j(r),j(o),j(f),n?j(v):(j(u),j(d)),
p.innerHTML=i.localize(15,null)+' <span class="required-input">*</span>',h.innerHTML=i.localize(16,null)):t===k.IssueType.PerformanceIssue?(j(r),j(o),j(s),j(a),j(f),n?j(v):(j(u),j(d)),p.innerHTML=i.localize(17,null)+' <span class="required-input">*</span>',h.innerHTML=i.localize(18,null)):t===k.IssueType.FeatureRequest?(p.innerHTML=i.localize(19,null)+' <span class="required-input">*</span>',h.innerHTML=i.localize(20,null),j(f),n&&j(v)):t===k.IssueType.SettingsSearchIssue&&(j(r),j(c),j(l),p.innerHTML=i.localize(21,null)+' <span class="required-input">*</span>',h.innerHTML=i.localize(22,null))},t.prototype.validateInput=function(e){var t=document.getElementById(e);return t.value?(t.classList.remove("invalid-input"),!0):(t.classList.add("invalid-input"),!1)},t.prototype.validateInputs=function(){var e=this,t=!0;return["issue-title","description","issue-source"].forEach(function(n){t=e.validateInput(n)&&t}),this.issueReporterModel.fileOnExtension()&&(t=this.validateInput("extension-selector")&&t),t},
t.prototype.createIssue=function(){var e=this;if(!this.validateInputs()){var t=document.getElementsByClassName("invalid-input");return t.length&&t[0].focus(),document.getElementById("issue-title").addEventListener("input",function(t){e.validateInput("issue-title")}),document.getElementById("description").addEventListener("input",function(t){e.validateInput("description")}),this.issueReporterModel.fileOnExtension()&&document.getElementById("extension-selector").addEventListener("change",function(t){e.validateInput("extension-selector")}),!1}this.telemetryService.publicLog("issueReporterSubmit",{issueType:this.issueReporterModel.getData().issueType,numSimilarIssuesDisplayed:this.numberOfSearchResultsDisplayed});var n=this.getIssueUrlWithTitle(document.getElementById("issue-title").value),o=this.issueReporterModel.serialize(),s=n+"&body="+encodeURIComponent(o);return s.length>W&&(r.clipboard.writeText(o),s=n+"&body="+encodeURIComponent(i.localize(23,null))),r.shell.openExternal(s),!0},
t.prototype.getExtensionGitHubUrl=function(){var e="",t=this.getExtensionBugsUrl(),n=this.getExtensionRepositoryUrl();return t&&t.match(/^https?:\/\/github\.com\/(.*)/)?e=M.normalizeGitHubUrl(t):n&&n.match(/^https?:\/\/github\.com\/(.*)/)&&(e=M.normalizeGitHubUrl(n)),e},t.prototype.getIssueUrlWithTitle=function(e){var t=l.default.reportIssueUrl;if(this.issueReporterModel.fileOnExtension()){var n=this.getExtensionGitHubUrl();n&&(t=n+"/issues/new")}return""+t+(-1===l.default.reportIssueUrl.indexOf("?")?"?":"&")+"title="+encodeURIComponent(e)},t.prototype.updateExtensionSelector=function(e){var t=this,n=e.map(function(e){return{name:e.manifest.displayName||e.manifest.name||"",id:e.identifier.id}});n.sort(function(e,t){var n=e.name.toLowerCase(),r=t.name.toLowerCase();return n>r?1:n<r?-1:0});document.getElementById("extension-selector").innerHTML="<option></option>"+n.map(function(e){return'<option value="'+e.id+'">'+c.escape(e.name)+"</option>"}).join("\n"),
this.addEventListener("extension-selector","change",function(e){var n=e.target.value,r=t.issueReporterModel.getData().allExtensions.filter(function(e){return e.identifier.id===n});if(r.length){t.issueReporterModel.update({selectedExtension:r[0]});var i=document.getElementById("issue-title").value;t.searchExtensionIssues(i)}else t.issueReporterModel.update({selectedExtension:null}),t.clearSearchResults()})},t.prototype.updateExtensionTable=function(e,t){var n=document.querySelector(".block-extensions .block-info");if(this.environmentService.disableExtensions)n.innerHTML=i.localize(24,null);else{var r=t?"\n("+t+" theme extensions excluded)":"";if((e=e||[]).length){var o=this.getExtensionTableHtml(e);n.innerHTML="<table>"+o+"</table>"+r}else n.innerHTML="Extensions: none"+r}},t.prototype.updateSearchedExtensionTable=function(e){var t=document.querySelector(".block-searchedExtensions .block-info");if(e.length){var n=this.getExtensionTableHtml(e);t.innerHTML="<table>"+n+"</table>"
}else t.innerHTML="Extensions: none"},t.prototype.getExtensionTableHtml=function(e){var t="\n\t\t\t<tr>\n\t\t\t\t<th>Extension</th>\n\t\t\t\t<th>Author (truncated)</th>\n\t\t\t\t<th>Version</th>\n\t\t\t</tr>";return t+=e.map(function(e){return"\n\t\t\t\t<tr>\n\t\t\t\t\t<td>"+e.manifest.name+"</td>\n\t\t\t\t\t<td>"+e.manifest.publisher.substr(0,3)+"</td>\n\t\t\t\t\t<td>"+e.manifest.version+"</td>\n\t\t\t\t</tr>"}).join("")},t.prototype.openLink=function(e){e.preventDefault(),e.stopPropagation(),e.which<3&&(r.shell.openExternal(e.target.href),this.telemetryService.publicLog("issueReporterViewSimilarIssue"))},t.prototype.addEventListener=function(e,t,n){var r=document.getElementById(e);if(r)r.addEventListener(t,n);else{var i=new Error(e+" not found.");this.logService.error(i),this.telemetryService.publicLog("issueReporterAddEventListenerError",{message:i.message})}},s([p.debounce(300)],t.prototype,"searchGitHub",null),s([p.debounce(300)],t.prototype,"searchDuplicates",null),t}(v.Disposable);t.IssueReporter=B})
}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/5944e81f3c46a3938a82c701f96d7a59b074cfdc/core/vs/code/electron-browser/issue/issueReporterMain.js.map
