diff --git a/README.md b/README.md index f95c5b4..1c6311b 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,16 @@ > Livecoding is a desktop appliaction where newbies can learn the basics of programmation. > The principle is simple : You write commands in the in-app editor, press send, and the commands will interact the a little game (like pacman). -## Changelog - v2.0.0-beta.10 +## Changelog - v2.0.0-beta.11 *This version is unstable - do not use in production !* **Client :** -- Manifest validator now uses the proxy language list to check the available languages. -- The gameManager now injects the console in the game constructor for easy logging. +- Add save button to download the content editor into a file. +- Add import button to load a file into the editor content **Processor :** -- Fix command errors with first command execution. -- Fix string parsing error in php engine. +- Update on the synchronisation procedure between processor and languages process. **Pokedash game :** The legacy game shipped with livecoding is deprecated, the new default game are developped in his dedicated repo : [LiveCoding-Pokedash-Game](https://github.com/CPNV-ES/LiveCoding-Pokedash-Game). diff --git a/client/dist/css/app.b2d20be3.css b/client/dist/css/app.521e5c61.css similarity index 99% rename from client/dist/css/app.b2d20be3.css rename to client/dist/css/app.521e5c61.css index 0a4e455..088c834 100644 --- a/client/dist/css/app.b2d20be3.css +++ b/client/dist/css/app.521e5c61.css @@ -1,4 +1,4 @@ -@-webkit-keyframes spinAround{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}} +.file-cta{padding:5px 10px!important}.file-icon{margin:0!important}@-webkit-keyframes spinAround{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}} /*! bulma.io v0.7.4 | MIT License | github.com/jgthms/bulma */@keyframes spinAround{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.breadcrumb,.button,.delete,.file,.is-unselectable,.modal-close,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.tabs{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.navbar-link:not(.is-arrowless):after,.select:not(.is-multiple):not(.is-loading):after{border:3px solid transparent;border-radius:2px;border-right:0;border-top:0;content:" ";display:block;height:.625em;margin-top:-.4375em;pointer-events:none;position:absolute;top:50%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:center;transform-origin:center;width:.625em}.block:not(:last-child),.box:not(:last-child),.breadcrumb:not(:last-child),.content:not(:last-child),.highlight:not(:last-child),.level:not(:last-child),.list:not(:last-child),.message:not(:last-child),.notification:not(:last-child),.progress:not(:last-child),.subtitle:not(:last-child),.table-container:not(:last-child),.table:not(:last-child),.tabs:not(:last-child),.title:not(:last-child){margin-bottom:1.5rem}.delete,.modal-close{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(10,10,10,.2);border:none;border-radius:290486px;cursor:pointer;pointer-events:auto;display:inline-block;flex-grow:0;flex-shrink:0;font-size:0;height:20px;max-height:20px;max-width:20px;min-height:20px;min-width:20px;outline:none;position:relative;vertical-align:top;width:20px}.delete:after,.delete:before,.modal-close:after,.modal-close:before{background-color:#fff;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;transform-origin:center center}.delete:before,.modal-close:before{height:2px;width:50%}.delete:after,.modal-close:after{height:50%;width:2px}.delete:focus,.delete:hover,.modal-close:focus,.modal-close:hover{background-color:rgba(10,10,10,.3)}.delete:active,.modal-close:active{background-color:rgba(10,10,10,.4)}.is-small.delete,.is-small.modal-close{height:16px;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.is-medium.delete,.is-medium.modal-close{height:24px;max-height:24px;max-width:24px;min-height:24px;min-width:24px;width:24px}.is-large.delete,.is-large.modal-close{height:32px;max-height:32px;max-width:32px;min-height:32px;min-width:32px;width:32px}.button.is-loading:after,.control.is-loading:after,.loader,.select.is-loading:after{-webkit-animation:spinAround .5s linear infinite;animation:spinAround .5s linear infinite;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em}.hero-video,.image.is-1by1 .has-ratio,.image.is-1by1 img,.image.is-1by2 .has-ratio,.image.is-1by2 img,.image.is-1by3 .has-ratio,.image.is-1by3 img,.image.is-2by1 .has-ratio,.image.is-2by1 img,.image.is-2by3 .has-ratio,.image.is-2by3 img,.image.is-3by1 .has-ratio,.image.is-3by1 img,.image.is-3by2 .has-ratio,.image.is-3by2 img,.image.is-3by4 .has-ratio,.image.is-3by4 img,.image.is-3by5 .has-ratio,.image.is-3by5 img,.image.is-4by3 .has-ratio,.image.is-4by3 img,.image.is-4by5 .has-ratio,.image.is-4by5 img,.image.is-5by3 .has-ratio,.image.is-5by3 img,.image.is-5by4 .has-ratio,.image.is-5by4 img,.image.is-9by16 .has-ratio,.image.is-9by16 img,.image.is-16by9 .has-ratio,.image.is-16by9 img,.image.is-square .has-ratio,.image.is-square img,.is-overlay,.modal,.modal-background{bottom:0;left:0;position:absolute;right:0;top:0}.button,.file-cta,.file-name,.input,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.select select,.taginput .taginput-container.is-focusable,.textarea{-moz-appearance:none;-webkit-appearance:none;align-items:center;border:1px solid transparent;border-radius:4px;box-shadow:none;display:inline-flex;font-size:1rem;height:2.25em;justify-content:flex-start;line-height:1.5;padding-bottom:calc(.375em - 1px);padding-left:calc(.625em - 1px);padding-right:calc(.625em - 1px);padding-top:calc(.375em - 1px);position:relative;vertical-align:top}.button:active,.button:focus,.file-cta:active,.file-cta:focus,.file-name:active,.file-name:focus,.input:active,.input:focus,.is-active.button,.is-active.file-cta,.is-active.file-name,.is-active.input,.is-active.pagination-ellipsis,.is-active.pagination-link,.is-active.pagination-next,.is-active.pagination-previous,.is-active.textarea,.is-focused.button,.is-focused.file-cta,.is-focused.file-name,.is-focused.input,.is-focused.pagination-ellipsis,.is-focused.pagination-link,.is-focused.pagination-next,.is-focused.pagination-previous,.is-focused.textarea,.pagination-ellipsis:active,.pagination-ellipsis:focus,.pagination-link:active,.pagination-link:focus,.pagination-next:active,.pagination-next:focus,.pagination-previous:active,.pagination-previous:focus,.select select.is-active,.select select.is-focused,.select select:active,.select select:focus,.taginput .is-active.taginput-container.is-focusable,.taginput .is-focused.taginput-container.is-focusable,.taginput .taginput-container.is-focusable:active,.taginput .taginput-container.is-focusable:focus,.textarea:active,.textarea:focus{outline:none}.button[disabled],.file-cta[disabled],.file-name[disabled],.input[disabled],.pagination-ellipsis[disabled],.pagination-link[disabled],.pagination-next[disabled],.pagination-previous[disabled],.select fieldset[disabled] select,.select select[disabled],.taginput .taginput-container.is-focusable[disabled],.taginput fieldset[disabled] .taginput-container.is-focusable,.textarea[disabled],fieldset[disabled] .button,fieldset[disabled] .file-cta,fieldset[disabled] .file-name,fieldset[disabled] .input,fieldset[disabled] .pagination-ellipsis,fieldset[disabled] .pagination-link,fieldset[disabled] .pagination-next,fieldset[disabled] .pagination-previous,fieldset[disabled] .select select,fieldset[disabled] .taginput .taginput-container.is-focusable,fieldset[disabled] .textarea{cursor:not-allowed} diff --git a/client/dist/index.html b/client/dist/index.html index cc30786..5758af5 100644 --- a/client/dist/index.html +++ b/client/dist/index.html @@ -58,4 +58,4 @@ 100% { transform: translate(19px, 0); } - }
\ No newline at end of file + }
\ No newline at end of file diff --git a/client/dist/js/app.01c69642.js b/client/dist/js/app.01c69642.js new file mode 100644 index 0000000..62b9196 --- /dev/null +++ b/client/dist/js/app.01c69642.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var a,o,i=t[0],c=t[1],u=t[2],l=0,p=[];llog($tutu);\n",python:localStorage.getItem("python")||"tutu = 'Bienvenue sur LiveCoding'\ndebugger.log(tutu)\n"}},processor:{url:localStorage.getItem("processor-url")||"ws://localhost:12800/"},game:{loading:!1,provider:localStorage.getItem("game-provider")||"github",url:localStorage.getItem("game-url")||"CPNV-ES/LiveCoding-Test-Game@v1.1.8",loaded:!1,manager:null}},be={editorContent:function(e){return e.editor.languagesContent[e.editor.language]},shareUrl:function(e){return"".concat(window.location.href,"?provider=github&user=CPNV-ES&repo=LiveCoding-Test-Game&version=v1.2.0")}},_e={UPDATE_EDITOR_CONTENT:function(e,t){localStorage.setItem(e.editor.language,t),e.editor.languagesContent[e.editor.language]=t},UPDATE_EDITOR_THEME:function(e,t){localStorage.setItem("editor-theme",t),e.editor.theme=t},UPDATE_EDITOR_FONT_SIZE:function(e,t){localStorage.setItem("editor-font-size",t),e.editor.fontSize=t},UPDATE_EDITOR_LANGUAGE:function(e,t){localStorage.setItem("editor-language",t),e.editor.language=t},UPDATE_GAME_URL:function(e,t){localStorage.setItem("game-url",t),e.game.url=t},UPDATE_PROCESSOR_URL:function(e,t){localStorage.setItem("processor-url",t),e.processor.url=t},UPDATE_GAME_PROVIDER:function(e,t){localStorage.setItem("game-provider",t),e.game.provider=t},SET_GAME_MANAGER:function(e,t){e.game.manager=t,e.game.loaded=!0},CLEAR_GAME_MANAGER:function(e){e.game.manager=null,e.game.loaded=!1},SET_GAME_LOADING_STATE:function(e,t){e.game.loading=t}},ke=n("a4bb"),we=n.n(ke),Ce=(n("7514"),n("6d67"),n("6762"),n("2fdb"),n("7f7f"),n("28a5"),n("d225")),Ee=n("b0b4"),ye=(n("6b54"),n("87b3"),n("2caf"),n("795b")),xe=n.n(ye),Oe=function(){function e(t){var n=t.dispatch,a=t.processorUrl,r=t.language,s=t.interpreter,o=t.userScript;Object(Ce["a"])(this,e),this.dispatch=n,this.processorUrl=a,this.language=r,this.interpreter=s,this.userScript=o}return Object(Ee["a"])(e,[{key:"launchExecution",value:function(){var e=this;return new xe.a(function(t,n){e.socket=new WebSocket(e.processorUrl),e.socket.onerror=function(t){e.dispatch("console/error","Websocket connexion error."),n(t)},e.socket.close=function(n){e.dispatch("console/info","Websocket connexion closed, execution finish."),t()},e.socket.onopen=function(t){e.dispatch("console/success","Processor connected, sending data !"),e.socket.send(e.language),e.socket.onmessage=function(t){"OK"===t.data?(e.socket.send(e.interpreter),e.socket.onmessage=function(t){"OK"===t.data?(e.socket.send(e.userScript),e.socket.onmessage=function(t){"OK"===t.data?(e.dispatch("console/success","Processor successfully loaded script, launching process."),e.dispatch("console/info","Waiting for engine interactions"),e.socket.onmessage=function(){var t=Object(d["a"])(regeneratorRuntime.mark(function t(n){var a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if("close game"!==n.data){t.next=4;break}e.socket.close(),t.next=8;break;case 4:return t.next=6,window.game.executeGameCommand(n.data);case 6:a=t.sent,e.socket.send(a);case 8:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()):e.socket.close()}):e.socket.close()}):e.socket.close()}}})}},{key:"stopExecution",value:function(){this.socket.send("PROCESS_ENDED_BY_USER")}}]),e}(),je=function(){function e(){Object(Ce["a"])(this,e)}return Object(Ee["a"])(e,null,[{key:"create",value:function(e,t){var n=this.processorProxies.find(function(t){return t.name===e});return new n.class(t)}},{key:"processorProxies",get:function(){return[{name:"php",class:Oe},{name:"ruby",class:Oe}]}}]),e}(),Se=function(){function e(t){Object(Ce["a"])(this,e),this.manifest=t,this.formatChecked=!1}return Object(Ee["a"])(e,[{key:"checkFormat",value:function(){var e=[];if("name"in this.manifest?this.manifest.name.length<1&&e.push("The manifest name key can not be empty."):e.push("The manifest must contain a name key."),"data"in this.manifest?"game"in this.manifest.data||e.push("The manifest data key must contain a game key."):e.push("The manifest must contain a data key."),"interpreters"in this.manifest?we()(this.manifest.interpreters).length<1&&e.push("The game must support at least one interpreter."):e.push("The manifest must contain a interpreters key."),e.length>0)throw new Error("The manifest format dont respect specs. Errors : ".concat(e.toString()));return this.formatChecked=!0,!0}},{key:"checkLanguages",value:function(){if(this.formatChecked){if(we()(this.manifest.interpreters).every(function(e){return je.processorProxies.map(function(e){return e.name}).includes(e)}))return console.log("Tous les languanges sont suportés"),!0;throw new Error("Some specified languages are not suported by the platform, supported languages : ".concat(je.processorProxies.map(function(e){return e.name}).toString()))}throw new Error("You need to check the manifest format before checking the languages !")}}]),e}(),Te=function(){function e(t){Object(Ce["a"])(this,e),this.provider=t}return Object(Ee["a"])(e,[{key:"loadGame",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.provider.loadManifest();case 2:return t=new Se(this.provider.manifest),t.checkFormat(),t.checkLanguages(),e.next=7,this.provider.loadInterpreters();case 7:return e.next=9,this.provider.loadLibraries();case 9:return e.next=11,this.provider.loadGameClass();case 11:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"startGame",value:function(e){window.game=new this.provider.gameModule.Game({element:document.getElementById("game-box"),assetsBasePath:this.provider.assetsBasePath,console:e})}}]),e}(),Ae=n("308d"),Re=n("6bb5"),Me=n("013f"),$e=n("4e2b"),Ue=n("bd86"),Ge=n("5d73"),Le=n.n(Ge),Ie=(n("ac6a"),function(e){return new xe.a(function(t,n){var a=document.createElement("script");a.src=e,a.onload=t,a.onerror=n,document.head.appendChild(a)})}),Pe=function(){function e(t){Object(Ce["a"])(this,e),Object(Ue["a"])(this,"url",""),Object(Ue["a"])(this,"manifest",null),Object(Ue["a"])(this,"interpreters",{}),Object(Ue["a"])(this,"gameModule",{}),this.url=t}return Object(Ee["a"])(e,[{key:"generateRawUrl",value:function(e){return"".concat(this.url,"/").concat(e)}},{key:"generateUrl",value:function(e){return"".concat(this.url,"/").concat(e)}},{key:"loadManifest",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(this.generateRawUrl("manifest.json"));case 3:return t=e.sent,e.next=6,t.json();case 6:return this.manifest=e.sent,e.abrupt("return",this.manifest);case 10:throw e.prev=10,e.t0=e["catch"](0),new Error("Impossible to load the game manifest, check your url, or if a manifest is present.");case 13:case"end":return e.stop()}},e,this,[[0,10]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"loadInterpreters",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:e.t0=regeneratorRuntime.keys(this.gameInterpreters);case 1:if((e.t1=e.t0()).done){e.next=11;break}return t=e.t1.value,e.next=5,fetch(this.generateRawUrl(this.gameInterpreters[t]));case 5:return n=e.sent,e.next=8,n.text();case 8:this.interpreters[t]=e.sent,e.next=1;break;case 11:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"loadLibraries",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){var t,n,a,r,s,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.gameLibraries){e.next=29;break}t=!0,n=!1,a=void 0,e.prev=4,r=Le()(this.gameLibraries);case 6:if(t=(s=r.next()).done){e.next=13;break}return o=s.value,e.next=10,Ie(o.cdn?o.url:this.generateRawUrl(o.url));case 10:t=!0,e.next=6;break;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e["catch"](4),n=!0,a=e.t0;case 19:e.prev=19,e.prev=20,t||null==r.return||r.return();case 22:if(e.prev=22,!n){e.next=25;break}throw a;case 25:return e.finish(22);case 26:return e.finish(19);case 27:e.next=30;break;case 29:console.info("No libraries to load");case 30:case"end":return e.stop()}},e,this,[[4,15,19,27],[20,,22,26]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"loadGameClass",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import(this.generateRawUrl(this.manifest.data.game));case 3:return this.gameModule=e.sent,e.abrupt("return",this.gameModule);case 7:throw e.prev=7,e.t0=e["catch"](0),console.error(e.t0),new Error("Impossible to load the game class, check your url, or if the manifest is corectly configured.");case 11:case"end":return e.stop()}},e,this,[[0,7]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"gameName",get:function(){return this.manifest.name}},{key:"gameDescription",get:function(){return this.manifest.description}},{key:"gameInterpreters",get:function(){return this.manifest.interpreters}},{key:"gameInstructions",get:function(){return this.manifest.instructions}},{key:"gameLibraries",get:function(){return this.manifest.data.libraries}},{key:"assetsBasePath",get:function(){return"".concat(this.url,"/").concat(this.manifest.data.assets,"/")}}]),e}(),De=function(e){function t(){var e,n;Object(Ce["a"])(this,t);for(var a=arguments.length,r=new Array(a),s=0;slog($tutu);\n",python:localStorage.getItem("python")||"tutu = 'Bienvenue sur LiveCoding'\ndebugger.log(tutu)\n"}},processor:{url:localStorage.getItem("processor-url")||"ws://localhost:12800/"},game:{loading:!1,provider:localStorage.getItem("game-provider")||"github",url:localStorage.getItem("game-url")||"CPNV-ES/LiveCoding-Test-Game@v1.1.8",loaded:!1,manager:null}},be={editorContent:function(e){return e.editor.languagesContent[e.editor.language]},shareUrl:function(e){return"".concat(window.location.href,"?provider=github&user=CPNV-ES&repo=LiveCoding-Test-Game&version=v1.2.0")}},_e={UPDATE_EDITOR_CONTENT:function(e,t){localStorage.setItem(e.editor.language,t),e.editor.languagesContent[e.editor.language]=t},UPDATE_EDITOR_THEME:function(e,t){localStorage.setItem("editor-theme",t),e.editor.theme=t},UPDATE_EDITOR_FONT_SIZE:function(e,t){localStorage.setItem("editor-font-size",t),e.editor.fontSize=t},UPDATE_EDITOR_LANGUAGE:function(e,t){localStorage.setItem("editor-language",t),e.editor.language=t},UPDATE_GAME_URL:function(e,t){localStorage.setItem("game-url",t),e.game.url=t},UPDATE_PROCESSOR_URL:function(e,t){localStorage.setItem("processor-url",t),e.processor.url=t},UPDATE_GAME_PROVIDER:function(e,t){localStorage.setItem("game-provider",t),e.game.provider=t},SET_GAME_MANAGER:function(e,t){e.game.manager=t,e.game.loaded=!0},SET_GAME_LOADING_STATE:function(e,t){e.game.loading=t}},ke=n("d225"),Ce=n("b0b4"),we=(n("6b54"),n("87b3"),n("6d67"),n("6762"),n("2fdb"),n("2caf"),n("a4bb")),ye=n.n(we),Ee=(n("7f7f"),n("7514"),n("795b")),xe=n.n(Ee),Oe=function(){function e(t){var n=t.dispatch,a=t.processorUrl,r=t.language,o=t.interpreter,s=t.userScript;Object(ke["a"])(this,e),this.dispatch=n,this.processorUrl=a,this.language=r,this.interpreter=o,this.userScript=s}return Object(Ce["a"])(e,[{key:"launchExecution",value:function(){var e=this;return new xe.a(function(t,n){e.socket=new WebSocket(e.processorUrl),e.socket.onerror=function(t){e.dispatch("console/error","Websocket connexion error."),n(t)},e.socket.close=function(n){e.dispatch("console/info","Websocket connexion closed, execution finish."),t()},e.socket.onopen=function(t){e.dispatch("console/success","Processor connected, sending data !"),e.socket.send(e.language),e.socket.onmessage=function(t){"OK"===t.data?(e.socket.send(e.interpreter),e.socket.onmessage=function(t){"OK"===t.data?(e.socket.send(e.userScript),e.socket.onmessage=function(t){"OK"===t.data?(e.dispatch("console/success","Processor successfully loaded script, launching process."),e.dispatch("console/info","Waiting for engine interactions"),e.socket.onmessage=function(){var t=Object(d["a"])(regeneratorRuntime.mark(function t(n){var a;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if("close game"!==n.data){t.next=4;break}e.socket.close(),t.next=8;break;case 4:return t.next=6,window.game.executeGameCommand(n.data);case 6:a=t.sent,e.socket.send(a);case 8:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()):e.socket.close()}):e.socket.close()}):e.socket.close()}}})}},{key:"stopExecution",value:function(){this.socket.send("PROCESS_ENDED_BY_USER")}}]),e}(),Se=function(){function e(){Object(ke["a"])(this,e)}return Object(Ce["a"])(e,null,[{key:"create",value:function(e,t){var n=this.processorProxies.find(function(t){return t.name===e});return new n.class(t)}},{key:"processorProxies",get:function(){return[{name:"php",class:Oe},{name:"ruby",class:Oe}]}}]),e}(),je=function(){function e(t){Object(ke["a"])(this,e),this.manifest=t,this.formatChecked=!1}return Object(Ce["a"])(e,[{key:"checkFormat",value:function(){var e=[];if("name"in this.manifest?this.manifest.name.length<1&&e.push("The manifest name key can not be empty."):e.push("The manifest must contain a name key."),"data"in this.manifest?"game"in this.manifest.data||e.push("The manifest data key must contain a game key."):e.push("The manifest must contain a data key."),"interpreters"in this.manifest?ye()(this.manifest.interpreters).length<1&&e.push("The game must support at least one interpreter."):e.push("The manifest must contain a interpreters key."),e.length>0)throw new Error("The manifest format dont respect specs. Errors : ".concat(e.toString()));return this.formatChecked=!0,!0}},{key:"checkLanguages",value:function(){if(this.formatChecked){if(ye()(this.manifest.interpreters).every(function(e){return Se.processorProxies.map(function(e){return e.name}).includes(e)}))return console.log("Tous les languanges sont suportés"),!0;throw new Error("Some specified languages are not suported by the platform, supported languages : ".concat(Se.processorProxies.map(function(e){return e.name}).toString()))}throw new Error("You need to check the manifest format before checking the languages !")}}]),e}(),Te=function(){function e(t){Object(ke["a"])(this,e),this.provider=t}return Object(Ce["a"])(e,[{key:"loadGame",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.provider.loadManifest();case 2:return t=new je(this.provider.manifest),t.checkFormat(),t.checkLanguages(),e.next=7,this.provider.loadInterpreters();case 7:return e.next=9,this.provider.loadLibraries();case 9:return e.next=11,this.provider.loadGameClass();case 11:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"startGame",value:function(e){window.game=new this.provider.gameModule.Game({element:document.getElementById("game-box"),assetsBasePath:this.provider.assetsBasePath,console:e}),window.gameCommandEval=eval}}]),e}(),Ae=(n("28a5"),n("308d")),Re=n("6bb5"),Me=n("013f"),$e=n("4e2b"),Ue=n("bd86"),Pe=n("5d73"),De=n.n(Pe),Ge=(n("ac6a"),function(e){return new xe.a(function(t,n){var a=document.createElement("script");a.src=e,a.onload=t,a.onerror=n,document.head.appendChild(a)})}),Ie=function(){function e(t){Object(ke["a"])(this,e),Object(Ue["a"])(this,"url",""),Object(Ue["a"])(this,"manifest",null),Object(Ue["a"])(this,"interpreters",{}),Object(Ue["a"])(this,"gameModule",{}),this.url=t}return Object(Ce["a"])(e,[{key:"generateRawUrl",value:function(e){return"".concat(this.url,"/").concat(e)}},{key:"generateUrl",value:function(e){return"".concat(this.url,"/").concat(e)}},{key:"loadManifest",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(this.generateRawUrl("manifest.json"));case 3:return t=e.sent,e.next=6,t.json();case 6:return this.manifest=e.sent,e.abrupt("return",this.manifest);case 10:throw e.prev=10,e.t0=e["catch"](0),new Error("Impossible to load the game manifest, check your url, or if a manifest is present.");case 13:case"end":return e.stop()}},e,this,[[0,10]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"loadInterpreters",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:e.t0=regeneratorRuntime.keys(this.gameInterpreters);case 1:if((e.t1=e.t0()).done){e.next=11;break}return t=e.t1.value,e.next=5,fetch(this.generateRawUrl(this.gameInterpreters[t]));case 5:return n=e.sent,e.next=8,n.text();case 8:this.interpreters[t]=e.sent,e.next=1;break;case 11:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"loadLibraries",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){var t,n,a,r,o,s;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.gameLibraries){e.next=29;break}t=!0,n=!1,a=void 0,e.prev=4,r=De()(this.gameLibraries);case 6:if(t=(o=r.next()).done){e.next=13;break}return s=o.value,e.next=10,Ge(s.cdn?s.url:this.generateRawUrl(s.url));case 10:t=!0,e.next=6;break;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e["catch"](4),n=!0,a=e.t0;case 19:e.prev=19,e.prev=20,t||null==r.return||r.return();case 22:if(e.prev=22,!n){e.next=25;break}throw a;case 25:return e.finish(22);case 26:return e.finish(19);case 27:e.next=30;break;case 29:console.info("No libraries to load");case 30:case"end":return e.stop()}},e,this,[[4,15,19,27],[20,,22,26]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"loadGameClass",value:function(){var e=Object(d["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import(this.generateRawUrl(this.manifest.data.game));case 3:return this.gameModule=e.sent,e.abrupt("return",this.gameModule);case 7:throw e.prev=7,e.t0=e["catch"](0),console.error(e.t0),new Error("Impossible to load the game class, check your url, or if the manifest is corectly configured.");case 11:case"end":return e.stop()}},e,this,[[0,7]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"gameName",get:function(){return this.manifest.name}},{key:"gameDescription",get:function(){return this.manifest.description}},{key:"gameInterpreters",get:function(){return this.manifest.interpreters}},{key:"gameInstructions",get:function(){return this.manifest.instructions}},{key:"gameLibraries",get:function(){return this.manifest.data.libraries}},{key:"assetsBasePath",get:function(){return"".concat(this.url,"/").concat(this.manifest.data.assets,"/")}}]),e}(),Le=function(e){function t(){var e,n;Object(ke["a"])(this,t);for(var a=arguments.length,r=new Array(a),o=0;o0},t.prototype.startMonitoring=function(e,t,n){var s=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var a=o["a"].getSameOriginWindowChain(),u=0,c=a;uo)$(e,n=i[o++],t[n]);return e},Y=function(e,t){return void 0===t?S(e):Z(S(e),t)},X=function(e){var t=F.call(this,e=w(e,!0));return!(this===B&&o(W,e)&&!o(V,e))&&(!(t||!o(this,e)||!o(W,e)||o(this,A)&&this[A][e])||t)},Q=function(e,t){if(e=b(e),t=w(t,!0),e!==B||!o(W,t)||o(V,t)){var n=N(e,t);return!n||!o(W,t)||o(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){var t,n=E(b(e)),i=[],r=0;while(n.length>r)o(W,t=n[r++])||t==A||t==u||i.push(t);return i},ee=function(e){var t,n=e===B,i=E(n?V:b(e)),r=[],s=0;while(i.length>s)!o(W,t=i[s++])||n&&!o(B,t)||r.push(W[t]);return r};H||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(V,n),o(this,A)&&o(this[A],e)&&(this[A][e]=!1),K(this,e,C(1,n))};return r&&U&&K(B,e,{configurable:!0,set:t}),q(e)},a(I[P],"toString",function(){return this._k}),O.f=Q,x.f=$,n("6abf").f=L.f=J,n("355d").f=X,n("9aa9").f=ee,r&&!n("b8e3")&&a(B,"propertyIsEnumerable",X,!0),p.f=function(e){return q(f(e))}),s(s.G+s.W+s.F*!H,{Symbol:I});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var ie=k(f.store),oe=0;ie.length>oe;)g(ie[oe++]);s(s.S+s.F*!H,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=I(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),s(s.S+s.F*!H,"Object",{create:Y,defineProperty:$,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),M&&s(s.S+s.F*(!H||c(function(){var e=I();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){var t,n,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(n=t=i[1],(y(t)||void 0!==e)&&!G(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),i[1]=t,T.apply(M,i)}}),I[P][R]||n("35e8")(I[P],R,I[P].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"01b0":function(e,t,n){},"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,_,y,b){u(n,t,v);var w,C,S,L=function(e){if(!h&&e in N)return N[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",x=_==g,k=!1,N=e.prototype,D=N[d]||N[f]||_&&N[_],E=D||L(_),I=_?x?L("entries"):E:void 0,M="Array"==t&&N.entries||D;if(M&&(S=l(M.call(new e)),S!==Object.prototype&&S.next&&(c(S,O,!0),i||"function"==typeof S[d]||s(S,d,m))),x&&D&&D.name!==g&&(k=!0,E=function(){return D.call(this)}),i&&!b||!h&&!k&&N[d]||s(N,d,E),a[t]=E,a[O]=m,_)if(w={values:x?E:L(g),keys:y?E:L(p),entries:I},b)for(C in w)C in N||r(N,C,w[C]);else o(o.P+o.F*(h||k),t,w);return w}},"0210":function(e,t,n){"use strict";n.r(t),n.d(t,"GotoLineEntry",function(){return h}),n.d(t,"GotoLineAction",function(){return f});n("0bda");var i=n("dff7"),o=n("469c"),r=n("b055"),s=n("b2cc"),a=n("7061"),u=n("6a89"),c=n("c101"),l=n("af33"),d=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(e){function t(t,n,i){var o=e.call(this)||this;return o.editor=n,o.decorator=i,o.parseResult=o.parseInput(t),o}return d(t,e),t.prototype.parseInput=function(e){var t,n,o=e.split(",").map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)});if(t=0===o.length?new a["a"](-1,-1):1===o.length?new a["a"](o[0],1):new a["a"](o[0],o[1]),Object(r["a"])(this.editor))n=this.editor.getModel();else{var s=this.editor.getModel();n=s?s.modified:null}var u,c=!!n&&n.validatePosition(t).equals(t);return u=c?t.column&&t.column>1?i["a"]("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}",t.lineNumber,t.column):i["a"]("gotoLineLabelValidLine","Go to line {0}",t.lineNumber,t.column):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?i["a"]("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to",n?n.getLineCount():0):i["a"]("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to",n?n.getLineMaxColumn(t.lineNumber):0),{position:t,isValid:c,label:u}},t.prototype.getLabel=function(){return this.parseResult.label},t.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return i["a"]("gotoLineAriaLabel","Current Line: {0}. Go to line {0}.",t,this.parseResult.label)},t.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},t.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},t.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return new u["a"](this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},t}(o["a"]),f=function(e){function t(){return e.call(this,i["a"]("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),{id:"editor.action.gotoLine",label:i["a"]("GotoLineAction.label","Go to Line..."),alias:"Go to Line...",precondition:null,kbOpts:{kbExpr:c["a"].focus,primary:2085,mac:{primary:293},weight:100}})||this}return d(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new o["c"]([new h(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(l["a"]);Object(s["f"])(f)},"0293":function(e,t,n){var i=n("241e"),o=n("53e2");n("ce7e")("getPrototypeOf",function(){return function(e){return o(i(e))}})},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),u=i(n),c=a.length;return u<0||u>=c?e?"":void 0:(r=a.charCodeAt(u),r<55296||r>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):r:e?a.slice(u,u+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0395":function(e,t,n){var i=n("36c3"),o=n("6abf").f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?a(e):o(i(e))}},"03e8":function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return c});var i=n("0a0f"),o=n("308f"),r=n("a666"),s=n("ef8e"),a=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=Object(i["c"])("storageService"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._serviceBrand=void 0,t._onDidChangeStorage=t._register(new o["a"]),t.onWillSaveState=o["b"].None,t.globalCache=new Map,t.workspaceCache=new Map,t}return a(t,e),Object.defineProperty(t.prototype,"onDidChangeStorage",{get:function(){return this._onDidChangeStorage.event},enumerable:!0,configurable:!0}),t.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},t.prototype.get=function(e,t,n){var i=this.getCache(t).get(e);return Object(s["k"])(i)?n:i},t.prototype.getBoolean=function(e,t,n){var i=this.getCache(t).get(e);return Object(s["k"])(i)?n:"true"===i},t.prototype.store=function(e,t,n){if(Object(s["k"])(t))return this.remove(e,n);var i=String(t),o=this.getCache(n).get(e);return o===i?Promise.resolve():(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e}),Promise.resolve())},t.prototype.remove=function(e,t){var n=this.getCache(t).delete(e);return n?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()},t}(r["a"])},"041a":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("c4d7");var i=n("0f70"),o=n("a666"),r=n("308f"),s=n("30db"),a=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function u(e,t){return!!e[t]}var c=function(){function e(e,t){this.target=e.target,this.hasTriggerModifier=u(e.event,t.triggerModifier),this.hasSideBySideModifier=u(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=i["j"]||e.event.detail<=1}return e}(),l=function(){function e(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=u(e,t.triggerModifier)}return e}(),d=function(){function e(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}return e.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},e}();function h(e){return"altKey"===e?s["d"]?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey"):s["d"]?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}var f=function(e){function t(t){var n=e.call(this)||this;return n._onMouseMoveOrRelevantKeyDown=n._register(new r["a"]),n.onMouseMoveOrRelevantKeyDown=n._onMouseMoveOrRelevantKeyDown.event,n._onExecute=n._register(new r["a"]),n.onExecute=n._onExecute.event,n._onCancel=n._register(new r["a"]),n.onCancel=n._onCancel.event,n._editor=t,n._opts=h(n._editor.getConfiguration().multiCursorModifier),n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._register(n._editor.onDidChangeConfiguration(function(e){if(e.multiCursorModifier){var t=h(n._editor.getConfiguration().multiCursorModifier);if(n._opts.equals(t))return;n._opts=t,n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._onCancel.fire()}})),n._register(n._editor.onMouseMove(function(e){return n.onEditorMouseMove(new c(e,n._opts))})),n._register(n._editor.onMouseDown(function(e){return n.onEditorMouseDown(new c(e,n._opts))})),n._register(n._editor.onMouseUp(function(e){return n.onEditorMouseUp(new c(e,n._opts))})),n._register(n._editor.onKeyDown(function(e){return n.onEditorKeyDown(new l(e,n._opts))})),n._register(n._editor.onKeyUp(function(e){return n.onEditorKeyUp(new l(e,n._opts))})),n._register(n._editor.onMouseDrag(function(){return n.resetHandler()})),n._register(n._editor.onDidChangeCursorSelection(function(e){return n.onDidChangeCursorSelection(e)})),n._register(n._editor.onDidChangeModel(function(e){return n.resetHandler()})),n._register(n._editor.onDidChangeModelContent(function(){return n.resetHandler()})),n._register(n._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&n.resetHandler()})),n}return a(t,e),t.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},t.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},t.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},t.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},t.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},t.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},t.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},t}(o["a"])},"045b":function(e,t,n){"use strict";function i(e,t){var n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i),s=i;while(s+10&&e.getLanguageId(a-1)===r)a--;return new o(e,r,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var o=function(){function e(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r}return e.prototype.getLineContent=function(){var e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function r(e){return 0!==(7&e)}},"061b":function(e,t,n){e.exports=n("fa99")},"0632":function(e,t,n){},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0829":function(e,t,n){},"0876":function(e,t,n){},"0910":function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return b});var i=n("dff7"),o=n("308f"),r=n("89cd"),s=n("ef8e"),a=n("3742"),u=n("dd1b"),c={Configuration:"base.contributions.configuration"},l={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},p="vscode://schemas/settings/editor",g=r["a"].as(u["a"].JSONContribution),m=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new o["a"],this._onDidUpdateConfiguration=new o["a"],this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:i["a"]("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),g.registerSchema(p,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var i=[];e.forEach(function(e){i.push.apply(i,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e),n.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,t,n,i){void 0===t&&(t=!0),void 0===n&&(n=2),void 0===i&&(i=!1),n=s["k"](e.scope)?n:e.scope,i=e.overridable||i;var o=[],r=e.properties;if(r)for(var a in r){var u=void 0;if(t&&(u=S(a)))console.warn(u),delete r[a];else{var c=r[a],l=c.default;s["j"](l)&&(c.default=w(c.type)),i&&(c.overridable=!0),b.test(a)?c.scope=void 0:c.scope=s["k"](c.scope)?n:c.scope,!r[a].hasOwnProperty("included")||r[a].included?(this.configurationProperties[a]=r[a],o.push(a)):(this.excludedConfigurationProperties[a]=r[a],delete r[a])}}var d=e.allOf;if(d)for(var h=0,f=d;hw;w++)if((h||w in _)&&(g=_[w],m=y(g,w,v),e))if(n)C[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:C.push(g)}else if(l)return!1;return d?-1:c||l?l:C}}},"0a89":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var i=n("3742"),o=n("7061"),r=n("6a89"),s=function(){function e(e,t,n,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=o}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){var i=0,o=-1;while(-1!==(o=t.indexOf("\n",o+1)))i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,o){if(!e)return{text:"",replaceCharCnt:0};var r=e.value,s=e.selectionStart,a=e.selectionEnd,u=t.value,c=t.selectionStart,l=t.selectionEnd;o&&r.length>0&&s===a&&c===l&&!i["G"](u,r)&&i["k"](u,r)&&(s=0,a=0);var d=r.substring(a),h=u.substring(l),f=i["c"](d,h);u=u.substring(0,u.length-f),r=r.substring(0,r.length-f);var p=r.substring(0,s),g=u.substring(0,c),m=i["b"](p,g);if(u=u.substring(m),r=r.substring(m),c-=m,s-=m,l-=m,a-=m,n&&c===l&&r.length>0){var v=null;if(c===u.length?i["G"](u,r)&&(v=u.substring(r.length)):i["k"](u,r)&&(v=u.substring(0,u.length-r.length)),null!==v&&v.length>0&&(/\uFE0F/.test(v)||i["e"](v)))return{text:v,replaceCharCnt:0}}if(c===l){if(r===u&&0===s&&a===r.length&&c===u.length&&-1===u.indexOf("\n")&&i["f"](u))return{text:"",replaceCharCnt:0};var _=p.length-m;return{text:u,replaceCharCnt:_}}var y=a-s;return{text:u,replaceCharCnt:y}},e.EMPTY=new e("",0,0,null,null),e}(),a=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE,i=n+1,o=n+e._LINES_PER_PAGE;return new r["a"](i,1,o+1,1)},e.fromEditorSelection=function(t,n,i,a){var u,c=e._getPageOfLine(i.startLineNumber),l=e._getRangeForPage(c),d=e._getPageOfLine(i.endLineNumber),h=e._getRangeForPage(d),f=l.intersectRanges(new r["a"](1,1,i.startLineNumber,i.startColumn)),p=n.getValueInRange(f,1),g=n.getLineCount(),m=n.getLineMaxColumn(g),v=h.intersectRanges(new r["a"](i.endLineNumber,i.endColumn,g,m)),_=n.getValueInRange(v,1);if(c===d||c+1===d)u=n.getValueInRange(i,1);else{var y=l.intersectRanges(i),b=h.intersectRanges(i);u=n.getValueInRange(y,1)+String.fromCharCode(8230)+n.getValueInRange(b,1)}if(a){var w=500;p.length>w&&(p=p.substring(p.length-w,p.length)),_.length>w&&(_=_.substring(0,w)),u.length>2*w&&(u=u.substring(0,w)+String.fromCharCode(8230)+u.substring(u.length-w,u.length))}return new s(p+u+_,p.length,p.length+u.length,new o["a"](i.startLineNumber,i.startColumn),new o["a"](i.endLineNumber,i.endColumn))},e._LINES_PER_PAGE=10,e}()},"0b11":function(e,t,n){"use strict";n.r(t);var i=n("b2cc"),o=n("0b54");Object(i["h"])(o["e"]),Object(i["f"])(o["d"]),Object(i["f"])(o["f"]),Object(i["f"])(o["g"]),Object(i["f"])(o["c"]),Object(i["f"])(o["a"]),Object(i["g"])(new o["b"])},"0b54":function(e,t,n){"use strict";var i,o=n("a666"),r=n("3742"),s=n("b2cc"),a=n("c7f5"),u=n("c101"),c=n("351f"),l=n("dff7"),d=n("9e74"),h=n("4fc3"),f=n("533b"),p=n("6dec"),g=n("b400"),m=n("b539"),v=n("5fe7"),_=n("308f"),y=n("6a89"),b=n("b707"),w=n("8495"),C=new h["f"]("supportedCodeAction",""),S=function(){function e(e,t,n,i,o){void 0===i&&(i=250);var r=this;this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._progressService=o,this._disposables=[],this._autoTriggerTimer=new v["e"],this._disposables.push(this._markerService.onMarkerChanged(function(e){return r._onMarkerChanges(e)}),this._editor.onDidChangeCursorPosition(function(){return r._onCursorChange()}))}return e.prototype.dispose=function(){this._disposables=Object(o["d"])(this._disposables),this._autoTriggerTimer.cancel()},e.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},e.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some(function(e){return e.toString()===n.uri.toString()})&&this._autoTriggerTimer.cancelAndSet(function(){t.trigger({type:"auto"})},this._delay)},e.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet(function(){e.trigger({type:"auto"})},this._delay)},e.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});n0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=t.getLineCount())&&n._futureFixes.cancel()})),n._register(x["k"](n._domNode,"click",function(e){if(1===n._state.type){n._editor.focus();var t=x["v"](n._domNode),i=t.top,o=t.height,r=n._editor.getConfiguration().lineHeight,s=Math.floor(r/3);n._position&&null!==n._position.position&&n._position.position.lineNumber0&&o?t._show(e):t.hide()}).catch(function(){t.hide()})}},Object.defineProperty(t.prototype,"title",{get:function(){return this._domNode.title},set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),t.prototype._show=function(e){var n=this,i=this._editor.getConfiguration();if(i.contribInfo.lightbulbEnabled&&1===this._state.type){var o=this._state.position,r=o.lineNumber,s=o.column,a=this._editor.getModel();if(a){var u=a.getOptions().tabSize,c=a.getLineContent(r),l=A["b"].computeIndentLevel(c,u),d=i.fontInfo.spaceWidth*l>22,h=function(e){return e>2&&n._editor.getTopForLineNumber(e)===n._editor.getTopForLineNumber(e-1)},f=r;if(!d)if(r>1&&!h(r-1))f-=1;else if(h(r+1)){if(s*i.fontInfo.spaceWidth<22)return void this.hide()}else f+=1;this._position={position:{lineNumber:f,column:1},preference:t._posPref},x["P"](this._domNode,"autofixable",e.some(function(e){return!!e.kind&&O["a"].QuickFix.contains(new O["a"](e.kind))&&!!e.isPreferred})),this._editor.layoutContentWidget(this)}}},t.prototype.hide=function(){this._position=null,this._state=i.Empty,this._futureFixes.cancel(),this._editor.layoutContentWidget(this)},t._posPref=[0],t}(o["a"]);n.d(t,"e",function(){return U}),n.d(t,"h",function(){return K}),n.d(t,"d",function(){return G}),n.d(t,"b",function(){return Z}),n.d(t,"f",function(){return Y}),n.d(t,"g",function(){return X}),n.d(t,"c",function(){return Q}),n.d(t,"a",function(){return J});var j=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),W=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},V=function(e,t){return function(n,i){t(n,i,e)}},B=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},H=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&(1===e.trigger.autoApply||0===e.trigger.autoApply&&1===n.length)?t._onApplyCodeAction(n[0]):t._codeActionContextMenu.show(e.actions,e.position)}).catch(N["e"]):"manual"===e.trigger.type?this._codeActionContextMenu.show(e.actions,e.position):this._codeActionContextMenu.isVisible?this._codeActionContextMenu.show(e.actions,e.position):this._lightBulbWidget.tryShow(e)):this._lightBulbWidget.hide()},e.prototype.getId=function(){return e.ID},e.prototype._handleLightBulbSelect=function(e){this._codeActionContextMenu.show(e.state.actions,e)},e.prototype.triggerFromEditorSelection=function(e,t){return this._model.trigger({type:"manual",filter:e,autoApply:t})},e.prototype._updateLightBulbTitle=function(){var e,t=this._keybindingService.lookupKeybinding(G.Id);e=t?l["a"]("quickFixWithKb","Show Fixes ({0})",t.getLabel()):l["a"]("quickFix","Show Fixes"),this._lightBulbWidget.title=e},e.prototype._onApplyCodeAction=function(e){return K(e,this._bulkEditService,this._commandService,this._editor)},e.ID="editor.contrib.quickFixController",e=W([V(1,g["b"]),V(2,h["e"]),V(3,m["a"]),V(4,f["a"]),V(5,d["b"]),V(6,p["a"]),V(7,a["a"])],e),e}();function K(e,t,n,i){return B(this,void 0,void 0,function(){return H(this,function(o){switch(o.label){case 0:return e.edit?[4,t.apply(e.edit,{editor:i})]:[3,2];case 1:o.sent(),o.label=2;case 2:return e.command?[4,n.executeCommand.apply(n,[e.command.id].concat(e.command.arguments||[]))]:[3,4];case 3:o.sent(),o.label=4;case 4:return[2]}})})}function q(e,t,n,i){if(e.hasModel()){var o=U.get(e);if(o){var r=e.getPosition();o.triggerFromEditorSelection(n,i).then(function(n){n&&n.length||c["a"].get(e).showMessage(t,r)})}}}var G=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix",precondition:h["d"].and(u["a"].writable,u["a"].hasCodeActionsProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:2132,weight:100}})||this}return j(t,e),t.prototype.run=function(e,t){return q(t,l["a"]("editor.action.quickFix.noneMessage","No code actions available"))},t.Id="editor.action.quickFix",t}(s["b"]),$=function(){function e(e,t,n){this.kind=e,this.apply=t,this.preferred=n}return e.fromUser=function(t,n){return t&&"object"===typeof t?new e(e.getKindFromUser(t,n.kind),e.getApplyFromUser(t,n.apply),e.getPreferredUser(t)):new e(n.kind,n.apply,!1)},e.getApplyFromUser=function(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return 1;case"never":return 2;case"ifsingle":return 0;default:return t}},e.getKindFromUser=function(e,t){return"string"===typeof e.kind?new O["a"](e.kind):t},e.getPreferredUser=function(e){return"boolean"===typeof e.preferred&&e.preferred},e}(),Z=function(e){function t(){return e.call(this,{id:t.Id,precondition:h["d"].and(u["a"].writable,u["a"].hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:{type:"object",required:["kind"],properties:{kind:{type:"string"},apply:{type:"string",default:"ifSingle",enum:["first","ifSingle","never"]}}}}]}})||this}return j(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=$.fromUser(n,{kind:O["a"].Empty,apply:0});return q(t,l["a"]("editor.action.quickFix.noneMessage","No code actions available"),{kind:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.codeAction",t}(s["c"]),Y=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("refactor.label","Refactor..."),alias:"Refactor",precondition:h["d"].and(u["a"].writable,u["a"].hasCodeActionsProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:3120,mac:{primary:1328},weight:100},menuOpts:{group:"1_modification",order:2,when:h["d"].and(u["a"].writable,z(O["a"].Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:{type:"object",properties:{kind:{type:"string"},apply:{type:"string",default:"never",enum:["first","ifSingle","never"]}}}}]}})||this}return j(t,e),t.prototype.run=function(e,t,n){var i=$.fromUser(n,{kind:O["a"].Refactor,apply:2});return q(t,l["a"]("editor.action.refactor.noneMessage","No refactorings available"),{kind:O["a"].Refactor.contains(i.kind)?i.kind:O["a"].Empty,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.refactor",t}(s["b"]),X=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("source.label","Source Action..."),alias:"Source Action",precondition:h["d"].and(u["a"].writable,u["a"].hasCodeActionsProvider),menuOpts:{group:"1_modification",order:2.1,when:h["d"].and(u["a"].writable,z(O["a"].Source))},description:{description:"Source Action...",args:[{name:"args",schema:{type:"object",properties:{kind:{type:"string"},apply:{type:"string",default:"never",enum:["first","ifSingle","never"]}}}}]}})||this}return j(t,e),t.prototype.run=function(e,t,n){var i=$.fromUser(n,{kind:O["a"].Source,apply:2});return q(t,l["a"]("editor.action.source.noneMessage","No source actions available"),{kind:O["a"].Source.contains(i.kind)?i.kind:O["a"].Empty,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.sourceAction",t}(s["b"]),Q=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h["d"].and(u["a"].writable,z(O["a"].SourceOrganizeImports)),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1581,weight:100}})||this}return j(t,e),t.prototype.run=function(e,t){return q(t,l["a"]("editor.action.organize.noneMessage","No organize imports action available"),{kind:O["a"].SourceOrganizeImports,includeSourceActions:!0},0)},t.Id="editor.action.organizeImports",t}(s["b"]),J=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("autoFix.label","Auto Fix..."),alias:"Auto Fix",precondition:h["d"].and(u["a"].writable,z(O["a"].QuickFix)),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}return j(t,e),t.prototype.run=function(e,t){return q(t,l["a"]("editor.action.autoFix.noneMessage","No auto fixes available"),{kind:O["a"].QuickFix,onlyIncludePreferredActions:!0},0)},t.Id="editor.action.autoFix",t}(s["b"])},"0baa":function(e,t,n){},"0bda":function(e,t,n){},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d30":function(e,t,n){},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},"0f70":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"o",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"j",function(){return l}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"i",function(){return f}),n.d(t,"m",function(){return p}),n.d(t,"e",function(){return g}),n.d(t,"l",function(){return m}),n.d(t,"n",function(){return v}),n.d(t,"k",function(){return _}),n.d(t,"h",function(){return y}),n.d(t,"d",function(){return b});var i=n("308f"),o=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i["a"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n},e.INSTANCE=new e,e}();function r(){return o.INSTANCE.getZoomLevel()}function s(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function u(){return o.INSTANCE.getPixelRatio()}var c=navigator.userAgent,l=c.indexOf("Trident")>=0,d=c.indexOf("Edge/")>=0,h=l||d,f=c.indexOf("Firefox")>=0,p=c.indexOf("AppleWebKit")>=0,g=c.indexOf("Chrome")>=0,m=!g&&c.indexOf("Safari")>=0,v=!g&&!m&&p,_=c.indexOf("iPad")>=0,y=d&&c.indexOf("WebView/")>=0;function b(){if(l)return!1;if(d){var e=c.indexOf("Edge/"),t=parseInt(c.substring(e+5,c.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}},"0f88":function(e,t,n){var i,o=n("7726"),r=n("32e9"),s=n("ca5a"),a=s("typed_array"),u=s("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,d=0,h=9,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(d=0;n--)t+=e.charAt(n);return t}var t=null,n=null;return function(i){return t!==i&&(t=i,n=e(t)),n}}(),g=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=n.length-(r.index||0),a=r[0].length,u=i+s;return new o["a"](t,u-a+1,t,u+1)},e.findPrevBracketInToken=function(e,t,n,i,o){var r=p(n),s=r.substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,s,i)},e.findNextBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=r.index||0,a=r[0].length;if(0===a)return null;var u=i+s;return new o["a"](t,u+1,t,u+1+a)},e.findNextBracketInToken=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},e}()},"10eb":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e("chunk-2d22ca58").then(n.bind(null,"f3b7"))}})},"10f4":function(e,t,n){},1169:function(e,t,n){var i=n("2d95");e.exports=Array.isArray||function(e){return"Array"==i(e)}},1173:function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},"11e9":function(e,t,n){var i=n("52a7"),o=n("4630"),r=n("6821"),s=n("6a99"),a=n("69a8"),u=n("c69a"),c=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?c:function(e,t){if(e=r(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(a(e,t))return o(!i.f.call(e,t),e[t])}},"11f7":function(e,t,n){"use strict";n.d(t,"n",function(){return p}),n.d(t,"I",function(){return g}),n.d(t,"E",function(){return m}),n.d(t,"A",function(){return b}),n.d(t,"f",function(){return w}),n.d(t,"g",function(){return C}),n.d(t,"G",function(){return S}),n.d(t,"H",function(){return L}),n.d(t,"P",function(){return O}),n.d(t,"h",function(){return k}),n.d(t,"k",function(){return E}),n.d(t,"i",function(){return I}),n.d(t,"L",function(){return M}),n.d(t,"N",function(){return T}),n.d(t,"j",function(){return V}),n.d(t,"s",function(){return B}),n.d(t,"b",function(){return K}),n.d(t,"x",function(){return q}),n.d(t,"v",function(){return G}),n.d(t,"e",function(){return $}),n.d(t,"z",function(){return Z}),n.d(t,"u",function(){return Y}),n.d(t,"t",function(){return X}),n.d(t,"y",function(){return Q}),n.d(t,"C",function(){return J}),n.d(t,"r",function(){return ee}),n.d(t,"q",function(){return te}),n.d(t,"p",function(){return re}),n.d(t,"F",function(){return se}),n.d(t,"D",function(){return ae}),n.d(t,"d",function(){return ue}),n.d(t,"c",function(){return ce}),n.d(t,"M",function(){return le}),n.d(t,"K",function(){return de}),n.d(t,"Q",function(){return fe}),n.d(t,"m",function(){return pe}),n.d(t,"a",function(){return me}),n.d(t,"O",function(){return ve}),n.d(t,"B",function(){return _e}),n.d(t,"J",function(){return be}),n.d(t,"w",function(){return we}),n.d(t,"o",function(){return Ce}),n.d(t,"R",function(){return Se}),n.d(t,"l",function(){return Le});var i=n("0f70"),o=n("e32d"),r=n("b835"),s=n("5d28"),a=n("5fe7"),u=n("fdcc"),c=n("308f"),l=n("a666"),d=n("30db"),h=n("e8e3"),f=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function p(e){while(e.firstChild)e.removeChild(e.firstChild)}function g(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e){while(e){if(e===document.body)return!0;e=e.parentNode}return!1}var v=new(function(){function e(){}return e.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var i=n.length,o=t.length;if(0!==o)if(i=0){if(r=s+o,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return this._lastStart=s,void(this._lastEnd=r+1);if(s>0&&32===n.charCodeAt(s-1)&&r===i)return this._lastStart=s-1,void(this._lastEnd=r);if(0===s&&r===i)return this._lastStart=0,void(this._lastEnd=r)}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=[],i=1;i0){t.sort(R.sort);var o=t.shift();o.execute()}i=!1};T=function(t,i){void 0===i&&(i=0);var r=new R(t,i);return e.push(r),n||(n=!0,A(o)),r},M=function(e,n){if(i){var o=new R(e,n);return t.push(o),o}return T(e,n)}})();var F=16,j=function(e,t){return t},W=function(e){function t(t,n,i,o,r){void 0===o&&(o=j),void 0===r&&(r=F);var s=e.call(this)||this,u=null,c=0,l=s._register(new a["e"]),d=function(){c=(new Date).getTime(),i(u),u=null};return s._register(k(t,n,function(e){u=o(u,e);var t=(new Date).getTime()-c;t>=r?(l.cancel(),d()):l.setIfNotSet(d,r-t)})),s}return f(t,e),t}(l["a"]);function V(e,t,n,i,o){return new W(e,t,n,i,o)}function B(e){return document.defaultView.getComputedStyle(e,null)}var H=function(){return function(e,t){return parseFloat(t)||0}}();function z(e,t,n){var i=B(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),H(e,o)}var U={getBorderLeftWidth:function(e){return z(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return z(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return z(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return z(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return z(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return z(e,"padding-right","paddingRight")},getPaddingTop:function(e){return z(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return z(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return z(e,"margin-left","marginLeft")},getMarginTop:function(e){return z(e,"margin-top","marginTop")},getMarginRight:function(e){return z(e,"margin-right","marginRight")},getMarginBottom:function(e){return z(e,"margin-bottom","marginBottom")},__commaSentinel:!1},K=function(){function e(e,t){this.width=e,this.height=t}return e}();function q(e){var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement){n-=e.scrollTop;var o=B(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=U.getBorderLeftWidth(e),n+=U.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function G(e){var t=e.getBoundingClientRect();return{left:t.left+$.scrollX,top:t.top+$.scrollY,width:t.width,height:t.height}}var $=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}());function Z(e){var t=U.getMarginLeft(e)+U.getMarginRight(e);return e.offsetWidth+t}function Y(e){var t=U.getBorderLeftWidth(e)+U.getBorderRightWidth(e),n=U.getPaddingLeft(e)+U.getPaddingRight(e);return e.offsetWidth-t-n}function X(e){var t=U.getBorderTopWidth(e)+U.getBorderBottomWidth(e),n=U.getPaddingTop(e)+U.getPaddingBottom(e);return e.offsetHeight-t-n}function Q(e){var t=U.getMarginTop(e)+U.getMarginBottom(e);return e.offsetHeight+t}function J(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function ee(e,t,n){while(e){if(b(e,t))return e;if(n)if("string"===typeof n){if(b(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function te(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}var ne=null;function ie(){return ne||(ne=te()),ne}function oe(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function re(e,t,n){void 0===n&&(n=ie()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function se(e,t){if(void 0===t&&(t=ie()),t){for(var n=oe(t),i=[],o=0;o=0;o--)t.sheet.deleteRule(i[o])}}function ae(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}var ue={CLICK:"click",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:i["m"]?"webkitAnimationStart":"animationstart",ANIMATION_END:i["m"]?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i["m"]?"webkitAnimationIteration":"animationiteration"},ce={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function le(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function de(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 he=function(){function e(e){var t=this;this._onDidFocus=new c["a"],this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new c["a"],this.onDidBlur=this._onDidBlur.event,this.disposables=[];var n=J(document.activeElement,e),i=!1,r=function(){i=!1,n||(n=!0,t._onDidFocus.fire())},s=function(){n&&(i=!0,window.setTimeout(function(){i&&(i=!1,n=!1,t._onDidBlur.fire())},0))};Object(o["a"])(e,ue.FOCUS,!0)(r,null,this.disposables),Object(o["a"])(e,ue.BLUR,!0)(s,null,this.disposables)}return e.prototype.dispose=function(){this.disposables=Object(l["d"])(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();function fe(e){return new he(e)}function pe(e){for(var t=[],n=1;nu)i.f(e,n=s[u++],t[n]);return e}},1569:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}n.d(t,"a",function(){return i})},1654:function(e,t,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1898:function(e,t,n){"use strict";n("7aad");var i=n("11f7"),o=n("6653"),r=n("5d28"),s=n("00a3"),a=n("1b7d"),u=n("5fe7"),c=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=11,d=function(e){function t(t){var n=e.call(this)||this;return n._onActivate=t.onActivate,n.bgDomNode=document.createElement("div"),n.bgDomNode.className="arrow-background",n.bgDomNode.style.position="absolute",n.bgDomNode.style.width=t.bgWidth+"px",n.bgDomNode.style.height=t.bgHeight+"px","undefined"!==typeof t.top&&(n.bgDomNode.style.top="0px"),"undefined"!==typeof t.left&&(n.bgDomNode.style.left="0px"),"undefined"!==typeof t.bottom&&(n.bgDomNode.style.bottom="0px"),"undefined"!==typeof t.right&&(n.bgDomNode.style.right="0px"),n.domNode=document.createElement("div"),n.domNode.className=t.className,n.domNode.style.position="absolute",n.domNode.style.width=l+"px",n.domNode.style.height=l+"px","undefined"!==typeof t.top&&(n.domNode.style.top=t.top+"px"),"undefined"!==typeof t.left&&(n.domNode.style.left=t.left+"px"),"undefined"!==typeof t.bottom&&(n.domNode.style.bottom=t.bottom+"px"),"undefined"!==typeof t.right&&(n.domNode.style.right=t.right+"px"),n._mouseMoveMonitor=n._register(new s["a"]),n.onmousedown(n.bgDomNode,function(e){return n._arrowMouseDown(e)}),n.onmousedown(n.domNode,function(e){return n._arrowMouseDown(e)}),n._mousedownRepeatTimer=n._register(new u["c"]),n._mousedownScheduleRepeatTimer=n._register(new u["e"]),n}return c(t,e),t.prototype._arrowMouseDown=function(e){var t=this,n=function(){t._mousedownRepeatTimer.cancelAndSet(function(){return t._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(n,200),this._mouseMoveMonitor.startMonitoring(s["b"],function(e){},function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()},t}(a["a"]),h=n("a666"),f=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(e){function t(t,n,i){var o=e.call(this)||this;return o._visibility=t,o._visibleClassName=n,o._invisibleClassName=i,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new u["e"]),o}return f(t,e),t.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e)},t.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())},t.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())},t.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},t.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)},t.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)},0))},t.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},t}(h["a"]),g=n("30db"),m=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=140,_=function(e){function t(t){var n=e.call(this)||this;return n._lazyRender=t.lazyRender,n._host=t.host,n._scrollable=t.scrollable,n._scrollbarState=t.scrollbarState,n._visibilityController=n._register(new p(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),n._mouseMoveMonitor=n._register(new s["a"]),n._shouldRender=!0,n.domNode=Object(o["b"])(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n._visibilityController.setDomNode(n.domNode),n.domNode.setPosition("absolute"),n.onmousedown(n.domNode.domNode,function(e){return n._domNodeMouseDown(e)}),n}return m(t,e),t.prototype._createArrow=function(e){var t=this._register(new d(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},t.prototype._createSlider=function(e,t,n,i){var r=this;this.slider=Object(o["b"])(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(e){e.leftButton&&(e.preventDefault(),r._sliderMouseDown(e,function(){}))})},t.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},t.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},t.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},t.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},t.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);n<=o&&o<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){})):this._onMouseDown(e)},t.prototype._onMouseDown=function(e){var t,n;if(e.target===this.domNode.domNode&&"number"===typeof e.browserEvent.offsetX&&"number"===typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var o=i["v"](this.domNode.domNode);t=e.posx-o.left,n=e.posy-o.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){}))},t.prototype._sliderMouseDown=function(e,t){var n=this,i=this._sliderMousePosition(e),o=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(s["b"],function(e){var t=n._sliderOrthogonalMousePosition(e),s=Math.abs(t-o);if(g["g"]&&s>v)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var a=n._sliderMousePosition(e),u=a-i;n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(u))}},function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()}),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(a["a"]),y=20,b=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},e._computeValues=function(e,t,n,i,o){var r=Math.max(0,n-e),s=Math.max(0,r-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(y,Math.floor(n*s/i))),c=(s-u)/(i-n),l=o*c;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:c,computedSliderPosition:Math.round(l)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}(),w=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),C=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new b(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var s=(n.arrowSize-l)/2,a=(n.horizontalScrollbarSize-l)/2;o._createArrow({className:"left-arrow",top:a,left:s,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new r["c"](null,1,0))}}),o._createArrow({className:"right-arrow",top:a,left:void 0,bottom:void 0,right:s,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new r["c"](null,-1,0))}})}return o._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),o}return w(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(_),S=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),L=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new b(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var s=(n.arrowSize-l)/2,a=(n.verticalScrollbarSize-l)/2;o._createArrow({className:"up-arrow",top:s,left:a,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new r["c"](null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:a,bottom:s,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new r["c"](null,0,-1))}})}return o._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),o}return S(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(_),O=n("308f"),x=n("42e3");n.d(t,"b",function(){return P}),n.d(t,"c",function(){return A}),n.d(t,"a",function(){return R});var k=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=500,D=50,E=!0,I=function(){function e(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}return e}(),M=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;var e=1,t=0,n=1,i=this._rear;do{var o=i===this._front?e:Math.pow(2,-n);if(e-=o,t+=this._memory[i].score*o,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}while(1);return t<=.5},e.prototype.accept=function(e,t,n){var i=new I(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}(),T=function(e){function t(t,n,i){var r=e.call(this)||this;r._onScroll=r._register(new O["a"]),r.onScroll=r._onScroll.event,t.style.overflow="hidden",r._options=F(n),r._scrollable=i,r._register(r._scrollable.onScroll(function(e){r._onDidScroll(e),r._onScroll.fire(e)}));var s={onMouseWheel:function(e){return r._onMouseWheel(e)},onDragStart:function(){return r._onDragStart()},onDragEnd:function(){return r._onDragEnd()}};return r._verticalScrollbar=r._register(new L(r._scrollable,r._options,s)),r._horizontalScrollbar=r._register(new C(r._scrollable,r._options,s)),r._domNode=document.createElement("div"),r._domNode.className="monaco-scrollable-element "+r._options.className,r._domNode.setAttribute("role","presentation"),r._domNode.style.position="relative",r._domNode.style.overflow="hidden",r._domNode.appendChild(t),r._domNode.appendChild(r._horizontalScrollbar.domNode.domNode),r._domNode.appendChild(r._verticalScrollbar.domNode.domNode),r._options.useShadows&&(r._leftShadowDomNode=Object(o["b"])(document.createElement("div")),r._leftShadowDomNode.setClassName("shadow"),r._domNode.appendChild(r._leftShadowDomNode.domNode),r._topShadowDomNode=Object(o["b"])(document.createElement("div")),r._topShadowDomNode.setClassName("shadow"),r._domNode.appendChild(r._topShadowDomNode.domNode),r._topLeftShadowDomNode=Object(o["b"])(document.createElement("div")),r._topLeftShadowDomNode.setClassName("shadow top-left-corner"),r._domNode.appendChild(r._topLeftShadowDomNode.domNode)),r._listenOnDomNode=r._options.listenOnDomNode||r._domNode,r._mouseWheelToDispose=[],r._setListeningToMouseWheel(r._options.handleMouseWheel),r.onmouseover(r._listenOnDomNode,function(e){return r._onMouseOver(e)}),r.onnonbubblingmouseout(r._listenOnDomNode,function(e){return r._onMouseOut(e)}),r._hideTimeout=r._register(new u["e"]),r._isDragging=!1,r._mouseIsOver=!1,r._shouldRender=!0,r._revealOnScroll=!0,r}return k(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=Object(h["d"])(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,g["d"]&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=F(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this,n=this._mouseWheelToDispose.length>0;if(n!==e&&(this._mouseWheelToDispose=Object(h["d"])(this._mouseWheelToDispose),e)){var o=function(e){t._onMouseWheel(new r["c"](e))};this._mouseWheelToDispose.push(i["h"](this._listenOnDomNode,"mousewheel",o))}},t.prototype._onMouseWheel=function(e){var t,n=M.INSTANCE;if(E&&n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(t=[o,i],i=t[0],o=t[1]);var r=!g["d"]&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||o||(o=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,i*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(i){var u=s.scrollTop-D*i;this._verticalScrollbar.writeScrollPosition(a,u)}if(o){var c=s.scrollLeft-D*o;this._horizontalScrollbar.writeScrollPosition(a,c)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop){var l=E&&this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel();l?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},N)},t}(a["a"]),P=function(e){function t(t,n){var o=this;n=n||{},n.mouseWheelSmoothScroll=!1;var r=new x["a"](0,function(e){return i["N"](e)});return o=e.call(this,t,n,r)||this,o._register(r),o}return k(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(T),A=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return k(t,e),t}(T),R=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._element=t,i.onScroll(function(e){e.scrollTopChanged&&(i._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(i._element.scrollLeft=e.scrollLeft)}),i.scanDomNode(),i}return k(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(P);function F(e){var t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,g["d"]&&(t.className+=" mac"),t}},"191f":function(e,t,n){"use strict";var i=n("fdcc"),o=n("3742"),r=n("2c29"),s=n("ccde"),a=n("6a89"),u=n("8025"),c=function(){function e(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new a["a"](this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a["a"](this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range,o=n[1].range;return new u["a"](i.endLineNumber,i.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)},e}(),l=n("2e5d"),d=n("e6ff"),h=n("2837"),f=n("70cb");n.d(t,"a",function(){return p});var p=function(){function e(){}return e.indent=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o1){var c=void 0;for(c=i-1;c>=1;c--){var l=n.getLineContent(c),d=o["y"](l);if(d>=0)break}if(c<1)return null;var p=n.getLineMaxColumn(c),g=f["a"].getEnterAction(n,new a["a"](c,p,c,p));g&&(s=g.indentation,r=g.enterAction,r&&(s+=r.appendText))}return r&&(r===h["a"].Indent&&(s=e.shiftIndent(t,s)),r===h["a"].Outdent&&(s=e.unshiftIndent(t,s)),s=t.normalizeIndentation(s)),s||null},e._replaceJumpToNextIndent=function(e,t,n,i){var o="",s=n.getStartPosition();if(e.insertSpaces)for(var a=l["a"].visibleColumnFromColumn2(e,t,s),u=e.indentSize,c=u-a%u,d=0;d=0?s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,D+1)):s.setEndPosition(s.endLineNumber,n.getLineMaxColumn(s.endLineNumber)),i)return new r["d"](s,k+t.normalizeIndentation(C.afterEnter),!0);var E=0;return x<=D+1&&(t.insertSpaces||(O=Math.ceil(O/t.indentSize)),E=Math.min(O+1-t.normalizeIndentation(C.afterEnter).length-1,0)),new r["c"](s,k+t.normalizeIndentation(C.afterEnter),0,E,!0)}return e._typeCommand(s,"\n"+t.normalizeIndentation(L),i)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var i=0,o=n.length;i1){var v=Object(d["a"])(t.wordSeparators),_=m.charCodeAt(g.column-2),y=v.get(_);if(0===y)return!1}var b=m.charAt(g.column-1);if(b){var w=e._isBeforeClosingBrace(t,r,b);if(!w&&!u(b))return!1}if(!n.isCheapToTokenize(g.lineNumber))return!1;n.forceTokenization(g.lineNumber);var C=n.getLineTokens(g.lineNumber),S=!1;try{S=f["a"].shouldAutoClosePair(r,C,g.column)}catch(L){Object(i["e"])(L)}if(!S)return!1}return!0},e._runAutoClosingOpenCharType=function(e,t,n,i,o){for(var s=[],a=0,u=i.length;a2){var v=Object(d["a"])(n.wordSeparators),_=h.charCodeAt(c.column-3),y=v.get(_);if(0===y)continue}var b=h.charAt(c.column-1);if(b){var w=e._isBeforeClosingBrace(n,p,b),C=Object(l["g"])(p)?n.shouldAutoCloseBefore.quote:n.shouldAutoCloseBefore.bracket;if(w)continue;if(!C(b))continue}if(!o.isCheapToTokenize(c.lineNumber))continue;o.forceTokenization(c.lineNumber);var S=o.getLineTokens(c.lineNumber),L=!1;try{L=f["a"].shouldAutoClosePair(p,S,c.column-1)}catch(x){Object(i["e"])(x)}if(L){var O=n.autoClosingPairsOpen[p];a[u]=new r["c"](s[u],O,0,-O.length)}}}return new l["e"](1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e.typeWithInterceptors=function(t,n,i,o,s){if("\n"===s){for(var a=[],u=0,c=o.length;un)t.push(arguments[n++]);return v[++m]=function(){a("function"==typeof e?e:Function(e),t)},i(m),m},f=function(e){delete v[e]},"process"==n("2d95")(d)?i=function(e){d.nextTick(s(y,e,1))}:g&&g.now?i=function(e){g.now(s(y,e,1))}:p?(o=new p,r=o.port2,o.port1.onmessage=b,i=s(r.postMessage,r,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(i=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):i=_ in c("script")?function(e){u.appendChild(c("script"))[_]=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),e.exports={set:h,clear:f}},"1af3":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("6a89"),r=n("8025"),s=n("c101"),a=n("b2cc"),u=n("a40b"),c=function(){function e(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range;return this._originalSelection.isEmpty()?new r["a"](i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new r["a"](i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)},e}(),l=n("bc04"),d=n("b7d0"),h=n("918c"),f=n("b57f"),p=n("5fe7"),g=n("fdcc"),m=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},_=function(e,t){return function(n,i){t(n,i,e)}},y=function(){function e(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.prototype.run=function(t,n){var i=this;this.currentRequest&&this.currentRequest.cancel();var s=this.editor.getSelection(),a=this.editor.getModel();if(a&&s){var u=s;if(u.startLineNumber===u.endLineNumber){var d=new l["a"](this.editor,5),h=a.uri;return this.editorWorkerService.canNavigateValueSet(h)?(this.currentRequest=Object(p["f"])(function(e){return i.editorWorkerService.navigateValueSet(h,u,n)}),this.currentRequest.then(function(n){if(n&&n.range&&n.value&&d.validate(i.editor)){var s=o["a"].lift(n.range),a=n.range,l=n.value.length-(u.endColumn-u.startColumn);a={startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.startColumn+n.value.length},l>1&&(u=new r["a"](u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn+l-1));var h=new c(s,u,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,h),i.editor.pushUndoStop(),i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[{range:a,options:e.DECORATION}]),i.decorationRemover&&i.decorationRemover.cancel(),i.decorationRemover=Object(p["j"])(350),i.decorationRemover.then(function(){return i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[])}).catch(g["e"])}}).catch(g["e"])):Promise.resolve(void 0)}}},e.ID="editor.contrib.inPlaceReplaceController",e.DECORATION=f["a"].register({className:"valueSetReplacement"}),e=v([_(1,u["a"])],e),e}(),b=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:i["a"]("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3154,weight:100}})||this}return m(t,e),t.prototype.run=function(e,t){var n=y.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)},t}(a["b"]),w=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:i["a"]("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3156,weight:100}})||this}return m(t,e),t.prototype.run=function(e,t){var n=y.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)},t}(a["b"]);Object(a["h"])(y),Object(a["f"])(b),Object(a["f"])(w),Object(d["e"])(function(e,t){var n=e.getColor(h["d"]);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")})},"1b0e":function(e,t,n){"use strict";var i=function(){function e(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function o(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function r(e,t,n){return new l(o(e),o(t)).ComputeDiff(n)}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return l});var s=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t)},e}(),a=function(){function e(){}return e.Copy=function(e,t,n,i,o){for(var r=0;r0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),l=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,i,o){var r=[!1],s=this.ComputeDiffRecursive(e,t,n,i,r);return o?this.PrettifyChanges(s):s},e.prototype.ComputeDiffRecursive=function(e,t,n,o,r){r[0]=!1;while(e<=t&&n<=o&&this.ElementsAreEqual(e,n))e++,n++;while(t>=e&&o>=n&&this.ElementsAreEqual(t,o))t--,o--;if(e>t||n>o){var a=void 0;return n<=o?(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new i(e,0,n,o-n+1)]):e<=t?(s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[new i(e,t-e+1,n,0)]):(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var u=[0],c=[0],l=this.ComputeRecursionPoint(e,t,n,o,u,c,r),d=u[0],h=c[0];if(null!==l)return l;if(!r[0]){var f=this.ComputeDiffRecursive(e,d,n,h,r),p=[];return p=r[0]?[new i(d+1,t-(d+1)+1,h+1,o-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,o,r),this.ConcatenateChanges(f,p)}return[new i(e,t-e+1,n,o-n+1)]},e.prototype.WALKTRACE=function(e,t,n,o,r,s,a,u,l,d,h,f,p,g,m,v,_,y){var b,w=null,C=null,S=new c,L=t,O=n,x=p[0]-v[0]-o,k=Number.MIN_VALUE,N=this.m_forwardHistory.length-1;do{b=x+e,b===L||b=0&&(l=this.m_forwardHistory[N],e=l[0],L=1,O=l.length-1)}while(--N>=-1);if(w=S.getReverseChanges(),y[0]){var D=p[0]+1,E=v[0]+1;if(null!==w&&w.length>0){var I=w[w.length-1];D=Math.max(D,I.getOriginalEnd()),E=Math.max(E,I.getModifiedEnd())}C=[new i(D,f-D+1,E,m-E+1)]}else{S=new c,L=s,O=a,x=p[0]-v[0]-u,k=Number.MAX_VALUE,N=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{b=x+r,b===L||b=d[b+1]?(h=d[b+1]-1,g=h-x-u,h>k&&S.MarkNextChange(),k=h+1,S.AddOriginalElement(h+1,g+1),x=b+1-r):(h=d[b-1],g=h-x-u,h>k&&S.MarkNextChange(),k=h,S.AddModifiedElement(h+1,g+1),x=b-1-r),N>=0&&(d=this.m_reverseHistory[N],r=d[0],L=1,O=d.length-1)}while(--N>=-1);C=S.getChanges()}return this.ConcatenateChanges(w,C)},e.prototype.ComputeRecursionPoint=function(e,t,n,o,r,s,c){var l,d=0,h=0,f=0,p=0,g=0,m=0;e--,n--,r[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v,_,y=t-e+(o-n),b=y+1,w=new Array(b),C=new Array(b),S=o-n,L=t-e,O=e-n,x=t-o,k=L-S,N=k%2===0;for(w[S]=e,C[L]=t,c[0]=!1,l=1;l<=y/2+1;l++){var D=0,E=0;for(f=this.ClipDiagonalBound(S-l,l,S,b),p=this.ClipDiagonalBound(S+l,l,S,b),v=f;v<=p;v+=2){d=v===f||vD+E&&(D=d,E=h),!N&&Math.abs(v-L)<=l-1&&d>=C[v])return r[0]=d,s[0]=h,_<=C[v]&&u>0&&l<=u+1?this.WALKTRACE(S,f,p,O,L,g,m,x,w,C,d,t,r,h,o,s,N,c):null}var I=(D-e+(E-n)-l)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(D,this.OriginalSequence,I))return c[0]=!0,r[0]=D,s[0]=E,I>0&&u>0&&l<=u+1?this.WALKTRACE(S,f,p,O,L,g,m,x,w,C,d,t,r,h,o,s,N,c):(e++,n++,[new i(e,t-e+1,n,o-n+1)]);for(g=this.ClipDiagonalBound(L-l,l,L,b),m=this.ClipDiagonalBound(L+l,l,L,b),v=g;v<=m;v+=2){d=v===g||v=C[v+1]?C[v+1]-1:C[v-1],h=d-(v-L)-x,_=d;while(d>e&&h>n&&this.ElementsAreEqual(d,h))d--,h--;if(C[v]=d,N&&Math.abs(v-S)<=l&&d<=w[v])return r[0]=d,s[0]=h,_>=w[v]&&u>0&&l<=u+1?this.WALKTRACE(S,f,p,O,L,g,m,x,w,C,d,t,r,h,o,s,N,c):null}if(l<=u){var M=new Array(p-f+2);M[0]=S-f+1,a.Copy(w,f,M,1,p-f+1),this.m_forwardHistory.push(M),M=new Array(m-g+2),M[0]=L-g+1,a.Copy(C,g,M,1,m-g+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(S,f,p,O,L,g,m,x,w,C,d,t,r,h,o,s,N,c)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=n.modifiedLength>0;while(n.originalStart+n.originalLength=0;t--){n=e[t],i=0,o=0;if(t>0){var u=e[t-1];u.originalLength>0&&(i=u.originalStart+u.originalLength),u.modifiedLength>0&&(o=u.modifiedStart+u.modifiedLength)}r=n.originalLength>0,s=n.modifiedLength>0;for(var c=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,f=n.modifiedStart-d;if(hl&&(l=p,c=d)}n.originalStart-=c,n.modifiedStart-=c}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"===typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"===typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,i){var o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(n,i)?1:0;return o+r},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var i=new Array(e.length+t.length-1);return a.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],a.Copy(t,1,i,e.length,t.length-1),i}i=new Array(e.length+t.length);return a.Copy(e,0,i,0,e.length),a.Copy(t,0,i,e.length,t.length),i},e.prototype.ChangesOverlap=function(e,t,n){if(s.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),s.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var o=e.originalStart,r=e.originalLength,a=e.modifiedStart,u=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(u=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(o,r,a,u),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e.001){C=!1;break}}var k=!0;C&&b.width!==S&&(k=!1),b.width>y.width&&(k=!1);var N=i["b"]()>2e3;return new f["b"]({zoomLevel:i["c"](),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:C,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:k,spaceWidth:s.width,maxDigitWidth:w},N)},t.INSTANCE=new t,t}(r["a"]),_=function(e){function t(t,n,o){void 0===n&&(n=null);var r=e.call(this,t)||this;return r.accessibilityService=o,r._elementSizeObserver=r._register(new d(n,function(){return r._onReferenceDomElementSizeChanged()})),r._register(v.INSTANCE.onDidChange(function(){return r._onCSSBasedConfigurationChanged()})),r._validatedOptions.automaticLayout&&r._elementSizeObserver.startObserving(),r._register(i["o"](function(e){return r._recomputeOptions()})),r._register(r.accessibilityService.onDidChangeAccessibilitySupport(function(){return r._recomputeOptions()})),r._recomputeOptions(),r}return p(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return i["l"]||i["n"]||(e+="no-user-select "),s["d"]&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i["m"]||i["i"],pixelRatio:i["a"](),zoomLevel:i["c"](),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return v.INSTANCE.readConfiguration(e)},t}(h["a"])},"1df8":function(e,t,n){var i=n("63b6");i(i.S,"Object",{setPrototypeOf:n("ead6").set})},"1ec9":function(e,t,n){var i=n("f772"),o=n("e53d").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"1f26":function(e,t,n){},"1fa1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e("chunk-2d0e57ec").then(n.bind(null,"9571"))}})},"1fa8":function(e,t,n){var i=n("cb7c");e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(s){var r=e["return"];throw void 0!==r&&i(r.call(e)),s}}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),s=n("be13"),a=n("2b4c"),u=n("520a"),c=a("species"),l=!r(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=a(e),f=!r(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),p=f?!r(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t}):void 0;if(!f||!p||"replace"===e&&!l||"split"===e&&!d){var g=/./[h],m=n(s,h,""[e],function(e,t,n,i,o){return t.exec===u?f&&!o?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),v=m[0],_=m[1];i(String.prototype,e,v),o(RegExp.prototype,h,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}}},"230e":function(e,t,n){var i=n("d3f47"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},"241e":function(e,t,n){var i=n("25eb");e.exports=function(e){return Object(i(e))}},"24c5":function(e,t,n){"use strict";var i,o,r,s,a=n("b8e3"),u=n("e53d"),c=n("d864"),l=n("40c3"),d=n("63b6"),h=n("f772"),f=n("79aa"),p=n("1173"),g=n("a22a"),m=n("f201"),v=n("4178").set,_=n("aba2")(),y=n("656e"),b=n("4439"),w=n("bc13"),C=n("cd78"),S="Promise",L=u.TypeError,O=u.process,x=O&&O.versions,k=x&&x.v8||"",N=u[S],D="process"==l(O),E=function(){},I=o=y.f,M=!!function(){try{var e=N.resolve(1),t=(e.constructor={})[n("5168")("species")]=function(e){e(E,E)};return(D||"function"==typeof PromiseRejectionEvent)&&e.then(E)instanceof t&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(i){}}(),T=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;_(function(){var i=e._v,o=1==e._s,r=0,s=function(t){var n,r,s,a=o?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{a?(o||(2==e._h&&F(e),e._h=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),s=!0)),n===t.promise?c(L("Promise-chain cycle")):(r=T(n))?r.call(n,u,c):u(n)):c(i)}catch(d){l&&!s&&l.exit(),c(d)}};while(n.length>r)s(n[r++]);e._c=[],e._n=!1,t&&!e._h&&A(e)})}},A=function(e){v.call(u,function(){var t,n,i,o=e._v,r=R(e);if(r&&(t=b(function(){D?O.emit("unhandledRejection",o,e):(n=u.onunhandledrejection)?n({promise:e,reason:o}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",o)}),e._h=D||R(e)?2:1),e._a=void 0,r&&t.e)throw t.v})},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){v.call(u,function(){var t;D?O.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},j=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},W=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw L("Promise can't be resolved itself");(t=T(e))?_(function(){var i={_w:n,_d:!1};try{t.call(e,c(W,i,1),c(j,i,1))}catch(o){j.call(i,o)}}):(n._v=e,n._s=1,P(n,!1))}catch(i){j.call({_w:n,_d:!1},i)}}};M||(N=function(e){p(this,N,S,"_h"),f(e),i.call(this);try{e(c(W,this,1),c(j,this,1))}catch(t){j.call(this,t)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n("5c95")(N.prototype,{then:function(e,t){var n=I(m(this,N));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=D?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i;this.promise=e,this.resolve=c(W,e,1),this.reject=c(j,e,1)},y.f=I=function(e){return e===N||e===s?new r(e):o(e)}),d(d.G+d.W+d.F*!M,{Promise:N}),n("45f2")(N,S),n("4c95")(S),s=n("584a")[S],d(d.S+d.F*!M,S,{reject:function(e){var t=I(this),n=t.reject;return n(e),t.promise}}),d(d.S+d.F*(a||!M),S,{resolve:function(e){return C(a&&this===s?N:this,e)}}),d(d.S+d.F*!(M&&n("4ee1")(function(e){N.all(e)["catch"](E)})),S,{all:function(e){var t=this,n=I(t),i=n.resolve,o=n.reject,r=b(function(){var n=[],r=0,s=1;g(e,!1,function(e){var a=r++,u=!1;n.push(void 0),s++,t.resolve(e).then(function(e){u||(u=!0,n[a]=e,--s||i(n))},o)}),--s||i(n)});return r.e&&o(r.v),n.promise},race:function(e){var t=this,n=I(t),i=n.reject,o=b(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return o.e&&i(o.v),n.promise}})},2504:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i,o=n("308f"),r=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});(function(e){function t(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o["b"].None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})})(i||(i={}));var s=function(){function e(){this._isCancelled=!1,this._emitter=null}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?r:(this._emitter||(this._emitter=new o["a"]),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),a=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new s),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof s&&this._token.cancel():this._token=i.Cancelled},e.prototype.dispose=function(){this._token?this._token instanceof s&&this._token.dispose():this._token=i.None},e}()},"258a":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"f",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"e",function(){return c});var i,o=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r={done:!0,value:void 0};function s(e){return Array.isArray(e)?i.fromArray(e):e}(function(e){var t={next:function(){return r}};function n(){return t}function i(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return t>=n?r:{done:!1,value:e[t++]}}}}function o(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()}function s(e,t){return{next:function(){var n=e.next();return n.done?r:{done:!1,value:t(n.value)}}}}function a(e,t){return{next:function(){while(1){var n=e.next();if(n.done)return r;if(t(n.value))return{done:!1,value:n.value}}}}}function u(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)}function c(e){var t=[];return u(e,function(e){return t.push(e)}),t}e.empty=n,e.fromArray=i,e.from=o,e.map=s,e.filter=a,e.forEach=u,e.collect=c})(i||(i={}));var a=function(){function e(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===i&&(i=t-1),this.items=e,this.start=t,this.end=n,this.index=i}return e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}(),u=function(e){function t(t,n,i,o){return void 0===n&&(n=0),void 0===i&&(i=t.length),void 0===o&&(o=n-1),e.call(this,t,n,i,o)||this}return o(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(a),c=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}()},"25b0":function(e,t,n){n("1df8"),e.exports=n("584a").Object.setPrototypeOf},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"268f":function(e,t,n){e.exports=n("fde4")},"27e6":function(e,t,n){},"27ee":function(e,t,n){var i=n("23c6"),o=n("2b4c")("iterator"),r=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},2837:function(e,t,n){"use strict";var i;n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(i||(i={}));var o=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t1||""[f](/.?/)[p]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!i(e))return n.call(o,e,t);var r,s,a,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?m:t>>>0,v=new RegExp(e.source,l+"g");while(r=c.call(v,o)){if(s=v[g],s>d&&(u.push(o.slice(d,r.index)),r[p]>1&&r.index=f))break;v[g]===r.index&&v[g]++}return d===o[p]?!a&&v.test("")||u.push(""):u.push(o.slice(d)),u[p]>f?u.slice(0,f):u}:"0"[f](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o,i):_.call(String(o),n,i)},function(e,t){var i=l(_,e,this,t,_!==n);if(i.done)return i.value;var c=o(e),h=String(this),f=r(c,RegExp),p=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),y=new f(v?c:"^(?:"+c.source+")",g),b=void 0===t?m:t>>>0;if(0===b)return[];if(0===h.length)return null===u(y,h)?[h]:[];var w=0,C=0,S=[];while(C";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),c=e.F;while(i--)delete c[u][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=i(e),n=new a,a[u]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00a3":function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return c});var i=n("11f7"),o=n("e757"),r=n("5d28"),s=n("a666"),a=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function u(e,t){var n=new r["b"](t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}var c=function(e){function t(){var t=e.call(this)||this;return t.hooks=[],t.mouseMoveEventMerger=null,t.mouseMoveCallback=null,t.onStopCallback=null,t}return a(t,e),t.prototype.dispose=function(){this.stopMonitoring(!1),e.prototype.dispose.call(this)},t.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks=Object(s["d"])(this.hooks),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var t=this.onStopCallback;this.onStopCallback=null,e&&t&&t()}},t.prototype.isMonitoring=function(){return this.hooks.length>0},t.prototype.startMonitoring=function(e,t,n){var s=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var a=o["a"].getSameOriginWindowChain(),u=0,c=a;uo)$(e,n=i[o++],t[n]);return e},Y=function(e,t){return void 0===t?S(e):Z(S(e),t)},X=function(e){var t=F.call(this,e=w(e,!0));return!(this===B&&o(W,e)&&!o(V,e))&&(!(t||!o(this,e)||!o(W,e)||o(this,A)&&this[A][e])||t)},Q=function(e,t){if(e=b(e),t=w(t,!0),e!==B||!o(W,t)||o(V,t)){var n=N(e,t);return!n||!o(W,t)||o(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){var t,n=E(b(e)),i=[],r=0;while(n.length>r)o(W,t=n[r++])||t==A||t==u||i.push(t);return i},ee=function(e){var t,n=e===B,i=E(n?V:b(e)),r=[],s=0;while(i.length>s)!o(W,t=i[s++])||n&&!o(B,t)||r.push(W[t]);return r};H||(I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(V,n),o(this,A)&&o(this[A],e)&&(this[A][e]=!1),K(this,e,C(1,n))};return r&&U&&K(B,e,{configurable:!0,set:t}),q(e)},a(I[P],"toString",function(){return this._k}),O.f=Q,x.f=$,n("6abf").f=L.f=J,n("355d").f=X,n("9aa9").f=ee,r&&!n("b8e3")&&a(B,"propertyIsEnumerable",X,!0),p.f=function(e){return q(f(e))}),s(s.G+s.W+s.F*!H,{Symbol:I});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var ie=k(f.store),oe=0;ie.length>oe;)g(ie[oe++]);s(s.S+s.F*!H,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=I(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),s(s.S+s.F*!H,"Object",{create:Y,defineProperty:$,defineProperties:Z,getOwnPropertyDescriptor:Q,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),M&&s(s.S+s.F*(!H||c(function(){var e=I();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){var t,n,i=[e],o=1;while(arguments.length>o)i.push(arguments[o++]);if(n=t=i[1],(y(t)||void 0!==e)&&!G(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),i[1]=t,T.apply(M,i)}}),I[P][R]||n("35e8")(I[P],R,I[P].valueOf),d(I,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"01b0":function(e,t,n){},"01f9":function(e,t,n){"use strict";var i=n("2d00"),o=n("5ca1"),r=n("2aba"),s=n("32e9"),a=n("84f2"),u=n("41a0"),c=n("7f20"),l=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,_,y,b){u(n,t,v);var w,C,S,L=function(e){if(!h&&e in N)return N[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",x=_==g,k=!1,N=e.prototype,D=N[d]||N[f]||_&&N[_],E=D||L(_),I=_?x?L("entries"):E:void 0,M="Array"==t&&N.entries||D;if(M&&(S=l(M.call(new e)),S!==Object.prototype&&S.next&&(c(S,O,!0),i||"function"==typeof S[d]||s(S,d,m))),x&&D&&D.name!==g&&(k=!0,E=function(){return D.call(this)}),i&&!b||!h&&!k&&N[d]||s(N,d,E),a[t]=E,a[O]=m,_)if(w={values:x?E:L(g),keys:y?E:L(p),entries:I},b)for(C in w)C in N||r(N,C,w[C]);else o(o.P+o.F*(h||k),t,w);return w}},"0210":function(e,t,n){"use strict";n.r(t),n.d(t,"GotoLineEntry",function(){return h}),n.d(t,"GotoLineAction",function(){return f});n("0bda");var i=n("dff7"),o=n("469c"),r=n("b055"),s=n("b2cc"),a=n("7061"),u=n("6a89"),c=n("c101"),l=n("af33"),d=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(e){function t(t,n,i){var o=e.call(this)||this;return o.editor=n,o.decorator=i,o.parseResult=o.parseInput(t),o}return d(t,e),t.prototype.parseInput=function(e){var t,n,o=e.split(",").map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)});if(t=0===o.length?new a["a"](-1,-1):1===o.length?new a["a"](o[0],1):new a["a"](o[0],o[1]),Object(r["a"])(this.editor))n=this.editor.getModel();else{var s=this.editor.getModel();n=s?s.modified:null}var u,c=!!n&&n.validatePosition(t).equals(t);return u=c?t.column&&t.column>1?i["a"]("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}",t.lineNumber,t.column):i["a"]("gotoLineLabelValidLine","Go to line {0}",t.lineNumber,t.column):t.lineNumber<1||t.lineNumber>(n?n.getLineCount():0)?i["a"]("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to",n?n.getLineCount():0):i["a"]("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to",n?n.getLineMaxColumn(t.lineNumber):0),{position:t,isValid:c,label:u}},t.prototype.getLabel=function(){return this.parseResult.label},t.prototype.getAriaLabel=function(){var e=this.editor.getPosition(),t=e?e.lineNumber:0;return i["a"]("gotoLineAriaLabel","Current Line: {0}. Go to line {0}.",t,this.parseResult.label)},t.prototype.run=function(e,t){return 1===e?this.runOpen():this.runPreview()},t.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e,0),this.editor.focus(),!0},t.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e,0),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return new u["a"](this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},t}(o["a"]),f=function(e){function t(){return e.call(this,i["a"]("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),{id:"editor.action.gotoLine",label:i["a"]("GotoLineAction.label","Go to Line..."),alias:"Go to Line...",precondition:null,kbOpts:{kbExpr:c["a"].focus,primary:2085,mac:{primary:293},weight:100}})||this}return d(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new o["c"]([new h(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(l["a"]);Object(s["f"])(f)},"0293":function(e,t,n){var i=n("241e"),o=n("53e2");n("ce7e")("getPrototypeOf",function(){return function(e){return o(i(e))}})},"02f4":function(e,t,n){var i=n("4588"),o=n("be13");e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),u=i(n),c=a.length;return u<0||u>=c?e?"":void 0:(r=a.charCodeAt(u),r<55296||r>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):r:e?a.slice(u,u+2):s-56320+(r-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0395":function(e,t,n){var i=n("36c3"),o=n("6abf").f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return o(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==r.call(e)?a(e):o(i(e))}},"03e8":function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return c});var i=n("0a0f"),o=n("308f"),r=n("a666"),s=n("ef8e"),a=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=Object(i["c"])("storageService"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._serviceBrand=void 0,t._onDidChangeStorage=t._register(new o["a"]),t.onWillSaveState=o["b"].None,t.globalCache=new Map,t.workspaceCache=new Map,t}return a(t,e),Object.defineProperty(t.prototype,"onDidChangeStorage",{get:function(){return this._onDidChangeStorage.event},enumerable:!0,configurable:!0}),t.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},t.prototype.get=function(e,t,n){var i=this.getCache(t).get(e);return Object(s["k"])(i)?n:i},t.prototype.getBoolean=function(e,t,n){var i=this.getCache(t).get(e);return Object(s["k"])(i)?n:"true"===i},t.prototype.store=function(e,t,n){if(Object(s["k"])(t))return this.remove(e,n);var i=String(t),o=this.getCache(n).get(e);return o===i?Promise.resolve():(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e}),Promise.resolve())},t.prototype.remove=function(e,t){var n=this.getCache(t).delete(e);return n?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()},t}(r["a"])},"041a":function(e,t,n){"use strict";n.d(t,"a",function(){return f});n("c4d7");var i=n("0f70"),o=n("a666"),r=n("308f"),s=n("30db"),a=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function u(e,t){return!!e[t]}var c=function(){function e(e,t){this.target=e.target,this.hasTriggerModifier=u(e.event,t.triggerModifier),this.hasSideBySideModifier=u(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=i["j"]||e.event.detail<=1}return e}(),l=function(){function e(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=u(e,t.triggerModifier)}return e}(),d=function(){function e(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}return e.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},e}();function h(e){return"altKey"===e?s["d"]?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey"):s["d"]?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}var f=function(e){function t(t){var n=e.call(this)||this;return n._onMouseMoveOrRelevantKeyDown=n._register(new r["a"]),n.onMouseMoveOrRelevantKeyDown=n._onMouseMoveOrRelevantKeyDown.event,n._onExecute=n._register(new r["a"]),n.onExecute=n._onExecute.event,n._onCancel=n._register(new r["a"]),n.onCancel=n._onCancel.event,n._editor=t,n._opts=h(n._editor.getConfiguration().multiCursorModifier),n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._register(n._editor.onDidChangeConfiguration(function(e){if(e.multiCursorModifier){var t=h(n._editor.getConfiguration().multiCursorModifier);if(n._opts.equals(t))return;n._opts=t,n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._onCancel.fire()}})),n._register(n._editor.onMouseMove(function(e){return n.onEditorMouseMove(new c(e,n._opts))})),n._register(n._editor.onMouseDown(function(e){return n.onEditorMouseDown(new c(e,n._opts))})),n._register(n._editor.onMouseUp(function(e){return n.onEditorMouseUp(new c(e,n._opts))})),n._register(n._editor.onKeyDown(function(e){return n.onEditorKeyDown(new l(e,n._opts))})),n._register(n._editor.onKeyUp(function(e){return n.onEditorKeyUp(new l(e,n._opts))})),n._register(n._editor.onMouseDrag(function(){return n.resetHandler()})),n._register(n._editor.onDidChangeCursorSelection(function(e){return n.onDidChangeCursorSelection(e)})),n._register(n._editor.onDidChangeModel(function(e){return n.resetHandler()})),n._register(n._editor.onDidChangeModelContent(function(){return n.resetHandler()})),n._register(n._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&n.resetHandler()})),n}return a(t,e),t.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},t.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},t.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},t.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},t.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},t.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},t.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},t}(o["a"])},"045b":function(e,t,n){"use strict";function i(e,t){var n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i),s=i;while(s+10&&e.getLanguageId(a-1)===r)a--;return new o(e,r,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var o=function(){function e(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r}return e.prototype.getLineContent=function(){var e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function r(e){return 0!==(7&e)}},"061b":function(e,t,n){e.exports=n("fa99")},"0632":function(e,t,n){},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0829":function(e,t,n){},"0876":function(e,t,n){},"0910":function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return b});var i=n("dff7"),o=n("308f"),r=n("89cd"),s=n("ef8e"),a=n("3742"),u=n("dd1b"),c={Configuration:"base.contributions.configuration"},l={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},p="vscode://schemas/settings/editor",g=r["a"].as(u["a"].JSONContribution),m=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new o["a"],this._onDidUpdateConfiguration=new o["a"],this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:i["a"]("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),g.registerSchema(p,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var i=[];e.forEach(function(e){i.push.apply(i,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e),n.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,t,n,i){void 0===t&&(t=!0),void 0===n&&(n=2),void 0===i&&(i=!1),n=s["k"](e.scope)?n:e.scope,i=e.overridable||i;var o=[],r=e.properties;if(r)for(var a in r){var u=void 0;if(t&&(u=S(a)))console.warn(u),delete r[a];else{var c=r[a],l=c.default;s["j"](l)&&(c.default=w(c.type)),i&&(c.overridable=!0),b.test(a)?c.scope=void 0:c.scope=s["k"](c.scope)?n:c.scope,!r[a].hasOwnProperty("included")||r[a].included?(this.configurationProperties[a]=r[a],o.push(a)):(this.excludedConfigurationProperties[a]=r[a],delete r[a])}}var d=e.allOf;if(d)for(var h=0,f=d;hw;w++)if((h||w in _)&&(g=_[w],m=y(g,w,v),e))if(n)C[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:C.push(g)}else if(l)return!1;return d?-1:c||l?l:C}}},"0a89":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return a});var i=n("3742"),o=n("7061"),r=n("6a89"),s=function(){function e(e,t,n,i,o){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=o}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){var i=0,o=-1;while(-1!==(o=t.indexOf("\n",o+1)))i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,o){if(!e)return{text:"",replaceCharCnt:0};var r=e.value,s=e.selectionStart,a=e.selectionEnd,u=t.value,c=t.selectionStart,l=t.selectionEnd;o&&r.length>0&&s===a&&c===l&&!i["G"](u,r)&&i["k"](u,r)&&(s=0,a=0);var d=r.substring(a),h=u.substring(l),f=i["c"](d,h);u=u.substring(0,u.length-f),r=r.substring(0,r.length-f);var p=r.substring(0,s),g=u.substring(0,c),m=i["b"](p,g);if(u=u.substring(m),r=r.substring(m),c-=m,s-=m,l-=m,a-=m,n&&c===l&&r.length>0){var v=null;if(c===u.length?i["G"](u,r)&&(v=u.substring(r.length)):i["k"](u,r)&&(v=u.substring(0,u.length-r.length)),null!==v&&v.length>0&&(/\uFE0F/.test(v)||i["e"](v)))return{text:v,replaceCharCnt:0}}if(c===l){if(r===u&&0===s&&a===r.length&&c===u.length&&-1===u.indexOf("\n")&&i["f"](u))return{text:"",replaceCharCnt:0};var _=p.length-m;return{text:u,replaceCharCnt:_}}var y=a-s;return{text:u,replaceCharCnt:y}},e.EMPTY=new e("",0,0,null,null),e}(),a=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE,i=n+1,o=n+e._LINES_PER_PAGE;return new r["a"](i,1,o+1,1)},e.fromEditorSelection=function(t,n,i,a){var u,c=e._getPageOfLine(i.startLineNumber),l=e._getRangeForPage(c),d=e._getPageOfLine(i.endLineNumber),h=e._getRangeForPage(d),f=l.intersectRanges(new r["a"](1,1,i.startLineNumber,i.startColumn)),p=n.getValueInRange(f,1),g=n.getLineCount(),m=n.getLineMaxColumn(g),v=h.intersectRanges(new r["a"](i.endLineNumber,i.endColumn,g,m)),_=n.getValueInRange(v,1);if(c===d||c+1===d)u=n.getValueInRange(i,1);else{var y=l.intersectRanges(i),b=h.intersectRanges(i);u=n.getValueInRange(y,1)+String.fromCharCode(8230)+n.getValueInRange(b,1)}if(a){var w=500;p.length>w&&(p=p.substring(p.length-w,p.length)),_.length>w&&(_=_.substring(0,w)),u.length>2*w&&(u=u.substring(0,w)+String.fromCharCode(8230)+u.substring(u.length-w,u.length))}return new s(p+u+_,p.length,p.length+u.length,new o["a"](i.startLineNumber,i.startColumn),new o["a"](i.endLineNumber,i.endColumn))},e._LINES_PER_PAGE=10,e}()},"0b11":function(e,t,n){"use strict";n.r(t);var i=n("b2cc"),o=n("0b54");Object(i["h"])(o["e"]),Object(i["f"])(o["d"]),Object(i["f"])(o["f"]),Object(i["f"])(o["g"]),Object(i["f"])(o["c"]),Object(i["f"])(o["a"]),Object(i["g"])(new o["b"])},"0b54":function(e,t,n){"use strict";var i,o=n("a666"),r=n("3742"),s=n("b2cc"),a=n("c7f5"),u=n("c101"),c=n("351f"),l=n("dff7"),d=n("9e74"),h=n("4fc3"),f=n("533b"),p=n("6dec"),g=n("b400"),m=n("b539"),v=n("5fe7"),_=n("308f"),y=n("6a89"),b=n("b707"),w=n("8495"),C=new h["f"]("supportedCodeAction",""),S=function(){function e(e,t,n,i,o){void 0===i&&(i=250);var r=this;this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._progressService=o,this._disposables=[],this._autoTriggerTimer=new v["e"],this._disposables.push(this._markerService.onMarkerChanged(function(e){return r._onMarkerChanges(e)}),this._editor.onDidChangeCursorPosition(function(){return r._onCursorChange()}))}return e.prototype.dispose=function(){this._disposables=Object(o["d"])(this._disposables),this._autoTriggerTimer.cancel()},e.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},e.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some(function(e){return e.toString()===n.uri.toString()})&&this._autoTriggerTimer.cancelAndSet(function(){t.trigger({type:"auto"})},this._delay)},e.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet(function(){e.trigger({type:"auto"})},this._delay)},e.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});n0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]=t.getLineCount())&&n._futureFixes.cancel()})),n._register(x["k"](n._domNode,"click",function(e){if(1===n._state.type){n._editor.focus();var t=x["v"](n._domNode),i=t.top,o=t.height,r=n._editor.getConfiguration().lineHeight,s=Math.floor(r/3);n._position&&null!==n._position.position&&n._position.position.lineNumber0&&o?t._show(e):t.hide()}).catch(function(){t.hide()})}},Object.defineProperty(t.prototype,"title",{get:function(){return this._domNode.title},set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),t.prototype._show=function(e){var n=this,i=this._editor.getConfiguration();if(i.contribInfo.lightbulbEnabled&&1===this._state.type){var o=this._state.position,r=o.lineNumber,s=o.column,a=this._editor.getModel();if(a){var u=a.getOptions().tabSize,c=a.getLineContent(r),l=A["b"].computeIndentLevel(c,u),d=i.fontInfo.spaceWidth*l>22,h=function(e){return e>2&&n._editor.getTopForLineNumber(e)===n._editor.getTopForLineNumber(e-1)},f=r;if(!d)if(r>1&&!h(r-1))f-=1;else if(h(r+1)){if(s*i.fontInfo.spaceWidth<22)return void this.hide()}else f+=1;this._position={position:{lineNumber:f,column:1},preference:t._posPref},x["P"](this._domNode,"autofixable",e.some(function(e){return!!e.kind&&O["a"].QuickFix.contains(new O["a"](e.kind))&&!!e.isPreferred})),this._editor.layoutContentWidget(this)}}},t.prototype.hide=function(){this._position=null,this._state=i.Empty,this._futureFixes.cancel(),this._editor.layoutContentWidget(this)},t._posPref=[0],t}(o["a"]);n.d(t,"e",function(){return U}),n.d(t,"h",function(){return K}),n.d(t,"d",function(){return G}),n.d(t,"b",function(){return Z}),n.d(t,"f",function(){return Y}),n.d(t,"g",function(){return X}),n.d(t,"c",function(){return Q}),n.d(t,"a",function(){return J});var j=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),W=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},V=function(e,t){return function(n,i){t(n,i,e)}},B=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(t){r(t)}}function a(e){try{u(i["throw"](e))}catch(t){r(t)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},H=function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return u([e,t])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(o=2&r[0]?i["return"]:r[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&(1===e.trigger.autoApply||0===e.trigger.autoApply&&1===n.length)?t._onApplyCodeAction(n[0]):t._codeActionContextMenu.show(e.actions,e.position)}).catch(N["e"]):"manual"===e.trigger.type?this._codeActionContextMenu.show(e.actions,e.position):this._codeActionContextMenu.isVisible?this._codeActionContextMenu.show(e.actions,e.position):this._lightBulbWidget.tryShow(e)):this._lightBulbWidget.hide()},e.prototype.getId=function(){return e.ID},e.prototype._handleLightBulbSelect=function(e){this._codeActionContextMenu.show(e.state.actions,e)},e.prototype.triggerFromEditorSelection=function(e,t){return this._model.trigger({type:"manual",filter:e,autoApply:t})},e.prototype._updateLightBulbTitle=function(){var e,t=this._keybindingService.lookupKeybinding(G.Id);e=t?l["a"]("quickFixWithKb","Show Fixes ({0})",t.getLabel()):l["a"]("quickFix","Show Fixes"),this._lightBulbWidget.title=e},e.prototype._onApplyCodeAction=function(e){return K(e,this._bulkEditService,this._commandService,this._editor)},e.ID="editor.contrib.quickFixController",e=W([V(1,g["b"]),V(2,h["e"]),V(3,m["a"]),V(4,f["a"]),V(5,d["b"]),V(6,p["a"]),V(7,a["a"])],e),e}();function K(e,t,n,i){return B(this,void 0,void 0,function(){return H(this,function(o){switch(o.label){case 0:return e.edit?[4,t.apply(e.edit,{editor:i})]:[3,2];case 1:o.sent(),o.label=2;case 2:return e.command?[4,n.executeCommand.apply(n,[e.command.id].concat(e.command.arguments||[]))]:[3,4];case 3:o.sent(),o.label=4;case 4:return[2]}})})}function q(e,t,n,i){if(e.hasModel()){var o=U.get(e);if(o){var r=e.getPosition();o.triggerFromEditorSelection(n,i).then(function(n){n&&n.length||c["a"].get(e).showMessage(t,r)})}}}var G=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix",precondition:h["d"].and(u["a"].writable,u["a"].hasCodeActionsProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:2132,weight:100}})||this}return j(t,e),t.prototype.run=function(e,t){return q(t,l["a"]("editor.action.quickFix.noneMessage","No code actions available"))},t.Id="editor.action.quickFix",t}(s["b"]),$=function(){function e(e,t,n){this.kind=e,this.apply=t,this.preferred=n}return e.fromUser=function(t,n){return t&&"object"===typeof t?new e(e.getKindFromUser(t,n.kind),e.getApplyFromUser(t,n.apply),e.getPreferredUser(t)):new e(n.kind,n.apply,!1)},e.getApplyFromUser=function(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return 1;case"never":return 2;case"ifsingle":return 0;default:return t}},e.getKindFromUser=function(e,t){return"string"===typeof e.kind?new O["a"](e.kind):t},e.getPreferredUser=function(e){return"boolean"===typeof e.preferred&&e.preferred},e}(),Z=function(e){function t(){return e.call(this,{id:t.Id,precondition:h["d"].and(u["a"].writable,u["a"].hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:{type:"object",required:["kind"],properties:{kind:{type:"string"},apply:{type:"string",default:"ifSingle",enum:["first","ifSingle","never"]}}}}]}})||this}return j(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=$.fromUser(n,{kind:O["a"].Empty,apply:0});return q(t,l["a"]("editor.action.quickFix.noneMessage","No code actions available"),{kind:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.codeAction",t}(s["c"]),Y=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("refactor.label","Refactor..."),alias:"Refactor",precondition:h["d"].and(u["a"].writable,u["a"].hasCodeActionsProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:3120,mac:{primary:1328},weight:100},menuOpts:{group:"1_modification",order:2,when:h["d"].and(u["a"].writable,z(O["a"].Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:{type:"object",properties:{kind:{type:"string"},apply:{type:"string",default:"never",enum:["first","ifSingle","never"]}}}}]}})||this}return j(t,e),t.prototype.run=function(e,t,n){var i=$.fromUser(n,{kind:O["a"].Refactor,apply:2});return q(t,l["a"]("editor.action.refactor.noneMessage","No refactorings available"),{kind:O["a"].Refactor.contains(i.kind)?i.kind:O["a"].Empty,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.refactor",t}(s["b"]),X=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("source.label","Source Action..."),alias:"Source Action",precondition:h["d"].and(u["a"].writable,u["a"].hasCodeActionsProvider),menuOpts:{group:"1_modification",order:2.1,when:h["d"].and(u["a"].writable,z(O["a"].Source))},description:{description:"Source Action...",args:[{name:"args",schema:{type:"object",properties:{kind:{type:"string"},apply:{type:"string",default:"never",enum:["first","ifSingle","never"]}}}}]}})||this}return j(t,e),t.prototype.run=function(e,t,n){var i=$.fromUser(n,{kind:O["a"].Source,apply:2});return q(t,l["a"]("editor.action.source.noneMessage","No source actions available"),{kind:O["a"].Source.contains(i.kind)?i.kind:O["a"].Empty,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)},t.Id="editor.action.sourceAction",t}(s["b"]),Q=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h["d"].and(u["a"].writable,z(O["a"].SourceOrganizeImports)),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1581,weight:100}})||this}return j(t,e),t.prototype.run=function(e,t){return q(t,l["a"]("editor.action.organize.noneMessage","No organize imports action available"),{kind:O["a"].SourceOrganizeImports,includeSourceActions:!0},0)},t.Id="editor.action.organizeImports",t}(s["b"]),J=function(e){function t(){return e.call(this,{id:t.Id,label:l["a"]("autoFix.label","Auto Fix..."),alias:"Auto Fix",precondition:h["d"].and(u["a"].writable,z(O["a"].QuickFix)),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}return j(t,e),t.prototype.run=function(e,t){return q(t,l["a"]("editor.action.autoFix.noneMessage","No auto fixes available"),{kind:O["a"].QuickFix,onlyIncludePreferredActions:!0},0)},t.Id="editor.action.autoFix",t}(s["b"])},"0baa":function(e,t,n){},"0bda":function(e,t,n){},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d30":function(e,t,n){},"0d58":function(e,t,n){var i=n("ce10"),o=n("e11e");e.exports=Object.keys||function(e){return i(e,o)}},"0f70":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return s}),n.d(t,"o",function(){return a}),n.d(t,"a",function(){return u}),n.d(t,"j",function(){return l}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"i",function(){return f}),n.d(t,"m",function(){return p}),n.d(t,"e",function(){return g}),n.d(t,"l",function(){return m}),n.d(t,"n",function(){return v}),n.d(t,"k",function(){return _}),n.d(t,"h",function(){return y}),n.d(t,"d",function(){return b});var i=n("308f"),o=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i["a"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n},e.INSTANCE=new e,e}();function r(){return o.INSTANCE.getZoomLevel()}function s(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function u(){return o.INSTANCE.getPixelRatio()}var c=navigator.userAgent,l=c.indexOf("Trident")>=0,d=c.indexOf("Edge/")>=0,h=l||d,f=c.indexOf("Firefox")>=0,p=c.indexOf("AppleWebKit")>=0,g=c.indexOf("Chrome")>=0,m=!g&&c.indexOf("Safari")>=0,v=!g&&!m&&p,_=c.indexOf("iPad")>=0,y=d&&c.indexOf("WebView/")>=0;function b(){if(l)return!1;if(d){var e=c.indexOf("Edge/"),t=parseInt(c.substring(e+5,c.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}},"0f88":function(e,t,n){var i,o=n("7726"),r=n("32e9"),s=n("ca5a"),a=s("typed_array"),u=s("view"),c=!(!o.ArrayBuffer||!o.DataView),l=c,d=0,h=9,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(d=0;n--)t+=e.charAt(n);return t}var t=null,n=null;return function(i){return t!==i&&(t=i,n=e(t)),n}}(),g=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=n.length-(r.index||0),a=r[0].length,u=i+s;return new o["a"](t,u-a+1,t,u+1)},e.findPrevBracketInToken=function(e,t,n,i,o){var r=p(n),s=r.substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,s,i)},e.findNextBracketInText=function(e,t,n,i){var r=n.match(e);if(!r)return null;var s=r.index||0,a=r[0].length;if(0===a)return null;var u=i+s;return new o["a"](t,u+1,t,u+1+a)},e.findNextBracketInToken=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},e}()},"10eb":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e("chunk-2d22ca58").then(n.bind(null,"f3b7"))}})},"10f4":function(e,t,n){},1169:function(e,t,n){var i=n("2d95");e.exports=Array.isArray||function(e){return"Array"==i(e)}},1173:function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},"11e9":function(e,t,n){var i=n("52a7"),o=n("4630"),r=n("6821"),s=n("6a99"),a=n("69a8"),u=n("c69a"),c=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?c:function(e,t){if(e=r(e),t=s(t,!0),u)try{return c(e,t)}catch(n){}if(a(e,t))return o(!i.f.call(e,t),e[t])}},"11f7":function(e,t,n){"use strict";n.d(t,"n",function(){return p}),n.d(t,"I",function(){return g}),n.d(t,"E",function(){return m}),n.d(t,"A",function(){return b}),n.d(t,"f",function(){return w}),n.d(t,"g",function(){return C}),n.d(t,"G",function(){return S}),n.d(t,"H",function(){return L}),n.d(t,"P",function(){return O}),n.d(t,"h",function(){return k}),n.d(t,"k",function(){return E}),n.d(t,"i",function(){return I}),n.d(t,"L",function(){return M}),n.d(t,"N",function(){return T}),n.d(t,"j",function(){return V}),n.d(t,"s",function(){return B}),n.d(t,"b",function(){return K}),n.d(t,"x",function(){return q}),n.d(t,"v",function(){return G}),n.d(t,"e",function(){return $}),n.d(t,"z",function(){return Z}),n.d(t,"u",function(){return Y}),n.d(t,"t",function(){return X}),n.d(t,"y",function(){return Q}),n.d(t,"C",function(){return J}),n.d(t,"r",function(){return ee}),n.d(t,"q",function(){return te}),n.d(t,"p",function(){return re}),n.d(t,"F",function(){return se}),n.d(t,"D",function(){return ae}),n.d(t,"d",function(){return ue}),n.d(t,"c",function(){return ce}),n.d(t,"M",function(){return le}),n.d(t,"K",function(){return de}),n.d(t,"Q",function(){return fe}),n.d(t,"m",function(){return pe}),n.d(t,"a",function(){return me}),n.d(t,"O",function(){return ve}),n.d(t,"B",function(){return _e}),n.d(t,"J",function(){return be}),n.d(t,"w",function(){return we}),n.d(t,"o",function(){return Ce}),n.d(t,"R",function(){return Se}),n.d(t,"l",function(){return Le});var i=n("0f70"),o=n("e32d"),r=n("b835"),s=n("5d28"),a=n("5fe7"),u=n("fdcc"),c=n("308f"),l=n("a666"),d=n("30db"),h=n("e8e3"),f=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function p(e){while(e.firstChild)e.removeChild(e.firstChild)}function g(e){e.parentNode&&e.parentNode.removeChild(e)}function m(e){while(e){if(e===document.body)return!0;e=e.parentNode}return!1}var v=new(function(){function e(){}return e.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var i=n.length,o=t.length;if(0!==o)if(i=0){if(r=s+o,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return this._lastStart=s,void(this._lastEnd=r+1);if(s>0&&32===n.charCodeAt(s-1)&&r===i)return this._lastStart=s-1,void(this._lastEnd=r);if(0===s&&r===i)return this._lastStart=0,void(this._lastEnd=r)}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=[],i=1;i0){t.sort(R.sort);var o=t.shift();o.execute()}i=!1};T=function(t,i){void 0===i&&(i=0);var r=new R(t,i);return e.push(r),n||(n=!0,A(o)),r},M=function(e,n){if(i){var o=new R(e,n);return t.push(o),o}return T(e,n)}})();var F=16,j=function(e,t){return t},W=function(e){function t(t,n,i,o,r){void 0===o&&(o=j),void 0===r&&(r=F);var s=e.call(this)||this,u=null,c=0,l=s._register(new a["e"]),d=function(){c=(new Date).getTime(),i(u),u=null};return s._register(k(t,n,function(e){u=o(u,e);var t=(new Date).getTime()-c;t>=r?(l.cancel(),d()):l.setIfNotSet(d,r-t)})),s}return f(t,e),t}(l["a"]);function V(e,t,n,i,o){return new W(e,t,n,i,o)}function B(e){return document.defaultView.getComputedStyle(e,null)}var H=function(){return function(e,t){return parseFloat(t)||0}}();function z(e,t,n){var i=B(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),H(e,o)}var U={getBorderLeftWidth:function(e){return z(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return z(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return z(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return z(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return z(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return z(e,"padding-right","paddingRight")},getPaddingTop:function(e){return z(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return z(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return z(e,"margin-left","marginLeft")},getMarginTop:function(e){return z(e,"margin-top","marginTop")},getMarginRight:function(e){return z(e,"margin-right","marginRight")},getMarginBottom:function(e){return z(e,"margin-bottom","marginBottom")},__commaSentinel:!1},K=function(){function e(e,t){this.width=e,this.height=t}return e}();function q(e){var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement){n-=e.scrollTop;var o=B(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=U.getBorderLeftWidth(e),n+=U.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function G(e){var t=e.getBoundingClientRect();return{left:t.left+$.scrollX,top:t.top+$.scrollY,width:t.width,height:t.height}}var $=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}());function Z(e){var t=U.getMarginLeft(e)+U.getMarginRight(e);return e.offsetWidth+t}function Y(e){var t=U.getBorderLeftWidth(e)+U.getBorderRightWidth(e),n=U.getPaddingLeft(e)+U.getPaddingRight(e);return e.offsetWidth-t-n}function X(e){var t=U.getBorderTopWidth(e)+U.getBorderBottomWidth(e),n=U.getPaddingTop(e)+U.getPaddingBottom(e);return e.offsetHeight-t-n}function Q(e){var t=U.getMarginTop(e)+U.getMarginBottom(e);return e.offsetHeight+t}function J(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function ee(e,t,n){while(e){if(b(e,t))return e;if(n)if("string"===typeof n){if(b(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function te(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}var ne=null;function ie(){return ne||(ne=te()),ne}function oe(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function re(e,t,n){void 0===n&&(n=ie()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function se(e,t){if(void 0===t&&(t=ie()),t){for(var n=oe(t),i=[],o=0;o=0;o--)t.sheet.deleteRule(i[o])}}function ae(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}var ue={CLICK:"click",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:i["m"]?"webkitAnimationStart":"animationstart",ANIMATION_END:i["m"]?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i["m"]?"webkitAnimationIteration":"animationiteration"},ce={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function le(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function de(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 he=function(){function e(e){var t=this;this._onDidFocus=new c["a"],this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new c["a"],this.onDidBlur=this._onDidBlur.event,this.disposables=[];var n=J(document.activeElement,e),i=!1,r=function(){i=!1,n||(n=!0,t._onDidFocus.fire())},s=function(){n&&(i=!0,window.setTimeout(function(){i&&(i=!1,n=!1,t._onDidBlur.fire())},0))};Object(o["a"])(e,ue.FOCUS,!0)(r,null,this.disposables),Object(o["a"])(e,ue.BLUR,!0)(s,null,this.disposables)}return e.prototype.dispose=function(){this.disposables=Object(l["d"])(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();function fe(e){return new he(e)}function pe(e){for(var t=[],n=1;nu)i.f(e,n=s[u++],t[n]);return e}},1569:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}n.d(t,"a",function(){return i})},1654:function(e,t,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1898:function(e,t,n){"use strict";n("7aad");var i=n("11f7"),o=n("6653"),r=n("5d28"),s=n("00a3"),a=n("1b7d"),u=n("5fe7"),c=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=11,d=function(e){function t(t){var n=e.call(this)||this;return n._onActivate=t.onActivate,n.bgDomNode=document.createElement("div"),n.bgDomNode.className="arrow-background",n.bgDomNode.style.position="absolute",n.bgDomNode.style.width=t.bgWidth+"px",n.bgDomNode.style.height=t.bgHeight+"px","undefined"!==typeof t.top&&(n.bgDomNode.style.top="0px"),"undefined"!==typeof t.left&&(n.bgDomNode.style.left="0px"),"undefined"!==typeof t.bottom&&(n.bgDomNode.style.bottom="0px"),"undefined"!==typeof t.right&&(n.bgDomNode.style.right="0px"),n.domNode=document.createElement("div"),n.domNode.className=t.className,n.domNode.style.position="absolute",n.domNode.style.width=l+"px",n.domNode.style.height=l+"px","undefined"!==typeof t.top&&(n.domNode.style.top=t.top+"px"),"undefined"!==typeof t.left&&(n.domNode.style.left=t.left+"px"),"undefined"!==typeof t.bottom&&(n.domNode.style.bottom=t.bottom+"px"),"undefined"!==typeof t.right&&(n.domNode.style.right=t.right+"px"),n._mouseMoveMonitor=n._register(new s["a"]),n.onmousedown(n.bgDomNode,function(e){return n._arrowMouseDown(e)}),n.onmousedown(n.domNode,function(e){return n._arrowMouseDown(e)}),n._mousedownRepeatTimer=n._register(new u["c"]),n._mousedownScheduleRepeatTimer=n._register(new u["e"]),n}return c(t,e),t.prototype._arrowMouseDown=function(e){var t=this,n=function(){t._mousedownRepeatTimer.cancelAndSet(function(){return t._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(n,200),this._mouseMoveMonitor.startMonitoring(s["b"],function(e){},function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()},t}(a["a"]),h=n("a666"),f=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(e){function t(t,n,i){var o=e.call(this)||this;return o._visibility=t,o._visibleClassName=n,o._invisibleClassName=i,o._domNode=null,o._isVisible=!1,o._isNeeded=!1,o._shouldBeVisible=!1,o._revealTimer=o._register(new u["e"]),o}return f(t,e),t.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e)},t.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())},t.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())},t.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},t.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)},t.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)},0))},t.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},t}(h["a"]),g=n("30db"),m=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=140,_=function(e){function t(t){var n=e.call(this)||this;return n._lazyRender=t.lazyRender,n._host=t.host,n._scrollable=t.scrollable,n._scrollbarState=t.scrollbarState,n._visibilityController=n._register(new p(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),n._mouseMoveMonitor=n._register(new s["a"]),n._shouldRender=!0,n.domNode=Object(o["b"])(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n._visibilityController.setDomNode(n.domNode),n.domNode.setPosition("absolute"),n.onmousedown(n.domNode.domNode,function(e){return n._domNodeMouseDown(e)}),n}return m(t,e),t.prototype._createArrow=function(e){var t=this._register(new d(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},t.prototype._createSlider=function(e,t,n,i){var r=this;this.slider=Object(o["b"])(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(e){e.leftButton&&(e.preventDefault(),r._sliderMouseDown(e,function(){}))})},t.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},t.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},t.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},t.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},t.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);n<=o&&o<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){})):this._onMouseDown(e)},t.prototype._onMouseDown=function(e){var t,n;if(e.target===this.domNode.domNode&&"number"===typeof e.browserEvent.offsetX&&"number"===typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var o=i["v"](this.domNode.domNode);t=e.posx-o.left,n=e.posy-o.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,function(){}))},t.prototype._sliderMouseDown=function(e,t){var n=this,i=this._sliderMousePosition(e),o=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(s["b"],function(e){var t=n._sliderOrthogonalMousePosition(e),s=Math.abs(t-o);if(g["g"]&&s>v)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var a=n._sliderMousePosition(e),u=a-i;n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(u))}},function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()}),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(a["a"]),y=20,b=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},e._computeValues=function(e,t,n,i,o){var r=Math.max(0,n-e),s=Math.max(0,r-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(y,Math.floor(n*s/i))),c=(s-u)/(i-n),l=o*c;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:c,computedSliderPosition:Math.round(l)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}(),w=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),C=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new b(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var s=(n.arrowSize-l)/2,a=(n.horizontalScrollbarSize-l)/2;o._createArrow({className:"left-arrow",top:a,left:s,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new r["c"](null,1,0))}}),o._createArrow({className:"right-arrow",top:a,left:void 0,bottom:void 0,right:s,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new r["c"](null,-1,0))}})}return o._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),o}return w(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(_),S=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),L=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new b(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var s=(n.arrowSize-l)/2,a=(n.verticalScrollbarSize-l)/2;o._createArrow({className:"up-arrow",top:s,left:a,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new r["c"](null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:a,bottom:s,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new r["c"](null,0,-1))}})}return o._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),o}return S(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(_),O=n("308f"),x=n("42e3");n.d(t,"b",function(){return P}),n.d(t,"c",function(){return A}),n.d(t,"a",function(){return R});var k=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=500,D=50,E=!0,I=function(){function e(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}return e}(),M=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;var e=1,t=0,n=1,i=this._rear;do{var o=i===this._front?e:Math.pow(2,-n);if(e-=o,t+=this._memory[i].score*o,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}while(1);return t<=.5},e.prototype.accept=function(e,t,n){var i=new I(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}(),T=function(e){function t(t,n,i){var r=e.call(this)||this;r._onScroll=r._register(new O["a"]),r.onScroll=r._onScroll.event,t.style.overflow="hidden",r._options=F(n),r._scrollable=i,r._register(r._scrollable.onScroll(function(e){r._onDidScroll(e),r._onScroll.fire(e)}));var s={onMouseWheel:function(e){return r._onMouseWheel(e)},onDragStart:function(){return r._onDragStart()},onDragEnd:function(){return r._onDragEnd()}};return r._verticalScrollbar=r._register(new L(r._scrollable,r._options,s)),r._horizontalScrollbar=r._register(new C(r._scrollable,r._options,s)),r._domNode=document.createElement("div"),r._domNode.className="monaco-scrollable-element "+r._options.className,r._domNode.setAttribute("role","presentation"),r._domNode.style.position="relative",r._domNode.style.overflow="hidden",r._domNode.appendChild(t),r._domNode.appendChild(r._horizontalScrollbar.domNode.domNode),r._domNode.appendChild(r._verticalScrollbar.domNode.domNode),r._options.useShadows&&(r._leftShadowDomNode=Object(o["b"])(document.createElement("div")),r._leftShadowDomNode.setClassName("shadow"),r._domNode.appendChild(r._leftShadowDomNode.domNode),r._topShadowDomNode=Object(o["b"])(document.createElement("div")),r._topShadowDomNode.setClassName("shadow"),r._domNode.appendChild(r._topShadowDomNode.domNode),r._topLeftShadowDomNode=Object(o["b"])(document.createElement("div")),r._topLeftShadowDomNode.setClassName("shadow top-left-corner"),r._domNode.appendChild(r._topLeftShadowDomNode.domNode)),r._listenOnDomNode=r._options.listenOnDomNode||r._domNode,r._mouseWheelToDispose=[],r._setListeningToMouseWheel(r._options.handleMouseWheel),r.onmouseover(r._listenOnDomNode,function(e){return r._onMouseOver(e)}),r.onnonbubblingmouseout(r._listenOnDomNode,function(e){return r._onMouseOut(e)}),r._hideTimeout=r._register(new u["e"]),r._isDragging=!1,r._mouseIsOver=!1,r._shouldRender=!0,r._revealOnScroll=!0,r}return k(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=Object(h["d"])(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,g["d"]&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=F(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this,n=this._mouseWheelToDispose.length>0;if(n!==e&&(this._mouseWheelToDispose=Object(h["d"])(this._mouseWheelToDispose),e)){var o=function(e){t._onMouseWheel(new r["c"](e))};this._mouseWheelToDispose.push(i["h"](this._listenOnDomNode,"mousewheel",o))}},t.prototype._onMouseWheel=function(e){var t,n=M.INSTANCE;if(E&&n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(t=[o,i],i=t[0],o=t[1]);var r=!g["d"]&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||o||(o=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,i*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(i){var u=s.scrollTop-D*i;this._verticalScrollbar.writeScrollPosition(a,u)}if(o){var c=s.scrollLeft-D*o;this._horizontalScrollbar.writeScrollPosition(a,c)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop){var l=E&&this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel();l?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},N)},t}(a["a"]),P=function(e){function t(t,n){var o=this;n=n||{},n.mouseWheelSmoothScroll=!1;var r=new x["a"](0,function(e){return i["N"](e)});return o=e.call(this,t,n,r)||this,o._register(r),o}return k(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(T),A=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return k(t,e),t}(T),R=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._element=t,i.onScroll(function(e){e.scrollTopChanged&&(i._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(i._element.scrollLeft=e.scrollLeft)}),i.scanDomNode(),i}return k(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(P);function F(e){var t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,g["d"]&&(t.className+=" mac"),t}},"191f":function(e,t,n){"use strict";var i=n("fdcc"),o=n("3742"),r=n("2c29"),s=n("ccde"),a=n("6a89"),u=n("8025"),c=function(){function e(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new a["a"](this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a["a"](this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range,o=n[1].range;return new u["a"](i.endLineNumber,i.endColumn,o.endLineNumber,o.endColumn-this._charAfterSelection.length)},e}(),l=n("2e5d"),d=n("e6ff"),h=n("2837"),f=n("70cb");n.d(t,"a",function(){return p});var p=function(){function e(){}return e.indent=function(e,t,n){if(null===t||null===n)return[];for(var i=[],o=0,r=n.length;o1){var c=void 0;for(c=i-1;c>=1;c--){var l=n.getLineContent(c),d=o["y"](l);if(d>=0)break}if(c<1)return null;var p=n.getLineMaxColumn(c),g=f["a"].getEnterAction(n,new a["a"](c,p,c,p));g&&(s=g.indentation,r=g.enterAction,r&&(s+=r.appendText))}return r&&(r===h["a"].Indent&&(s=e.shiftIndent(t,s)),r===h["a"].Outdent&&(s=e.unshiftIndent(t,s)),s=t.normalizeIndentation(s)),s||null},e._replaceJumpToNextIndent=function(e,t,n,i){var o="",s=n.getStartPosition();if(e.insertSpaces)for(var a=l["a"].visibleColumnFromColumn2(e,t,s),u=e.indentSize,c=u-a%u,d=0;d=0?s.setEndPosition(s.endLineNumber,Math.max(s.endColumn,D+1)):s.setEndPosition(s.endLineNumber,n.getLineMaxColumn(s.endLineNumber)),i)return new r["d"](s,k+t.normalizeIndentation(C.afterEnter),!0);var E=0;return x<=D+1&&(t.insertSpaces||(O=Math.ceil(O/t.indentSize)),E=Math.min(O+1-t.normalizeIndentation(C.afterEnter).length-1,0)),new r["c"](s,k+t.normalizeIndentation(C.afterEnter),0,E,!0)}return e._typeCommand(s,"\n"+t.normalizeIndentation(L),i)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var i=0,o=n.length;i1){var v=Object(d["a"])(t.wordSeparators),_=m.charCodeAt(g.column-2),y=v.get(_);if(0===y)return!1}var b=m.charAt(g.column-1);if(b){var w=e._isBeforeClosingBrace(t,r,b);if(!w&&!u(b))return!1}if(!n.isCheapToTokenize(g.lineNumber))return!1;n.forceTokenization(g.lineNumber);var C=n.getLineTokens(g.lineNumber),S=!1;try{S=f["a"].shouldAutoClosePair(r,C,g.column)}catch(L){Object(i["e"])(L)}if(!S)return!1}return!0},e._runAutoClosingOpenCharType=function(e,t,n,i,o){for(var s=[],a=0,u=i.length;a2){var v=Object(d["a"])(n.wordSeparators),_=h.charCodeAt(c.column-3),y=v.get(_);if(0===y)continue}var b=h.charAt(c.column-1);if(b){var w=e._isBeforeClosingBrace(n,p,b),C=Object(l["g"])(p)?n.shouldAutoCloseBefore.quote:n.shouldAutoCloseBefore.bracket;if(w)continue;if(!C(b))continue}if(!o.isCheapToTokenize(c.lineNumber))continue;o.forceTokenization(c.lineNumber);var S=o.getLineTokens(c.lineNumber),L=!1;try{L=f["a"].shouldAutoClosePair(p,S,c.column-1)}catch(x){Object(i["e"])(x)}if(L){var O=n.autoClosingPairsOpen[p];a[u]=new r["c"](s[u],O,0,-O.length)}}}return new l["e"](1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e.typeWithInterceptors=function(t,n,i,o,s){if("\n"===s){for(var a=[],u=0,c=o.length;un)t.push(arguments[n++]);return v[++m]=function(){a("function"==typeof e?e:Function(e),t)},i(m),m},f=function(e){delete v[e]},"process"==n("2d95")(d)?i=function(e){d.nextTick(s(y,e,1))}:g&&g.now?i=function(e){g.now(s(y,e,1))}:p?(o=new p,r=o.port2,o.port1.onmessage=b,i=s(r.postMessage,r,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(i=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):i=_ in c("script")?function(e){u.appendChild(c("script"))[_]=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),e.exports={set:h,clear:f}},"1af3":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),o=n("6a89"),r=n("8025"),s=n("c101"),a=n("b2cc"),u=n("a40b"),c=function(){function e(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range;return this._originalSelection.isEmpty()?new r["a"](i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new r["a"](i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)},e}(),l=n("bc04"),d=n("b7d0"),h=n("918c"),f=n("b57f"),p=n("5fe7"),g=n("fdcc"),m=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},_=function(e,t){return function(n,i){t(n,i,e)}},y=function(){function e(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.prototype.run=function(t,n){var i=this;this.currentRequest&&this.currentRequest.cancel();var s=this.editor.getSelection(),a=this.editor.getModel();if(a&&s){var u=s;if(u.startLineNumber===u.endLineNumber){var d=new l["a"](this.editor,5),h=a.uri;return this.editorWorkerService.canNavigateValueSet(h)?(this.currentRequest=Object(p["f"])(function(e){return i.editorWorkerService.navigateValueSet(h,u,n)}),this.currentRequest.then(function(n){if(n&&n.range&&n.value&&d.validate(i.editor)){var s=o["a"].lift(n.range),a=n.range,l=n.value.length-(u.endColumn-u.startColumn);a={startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.startColumn+n.value.length},l>1&&(u=new r["a"](u.startLineNumber,u.startColumn,u.endLineNumber,u.endColumn+l-1));var h=new c(s,u,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,h),i.editor.pushUndoStop(),i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[{range:a,options:e.DECORATION}]),i.decorationRemover&&i.decorationRemover.cancel(),i.decorationRemover=Object(p["j"])(350),i.decorationRemover.then(function(){return i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[])}).catch(g["e"])}}).catch(g["e"])):Promise.resolve(void 0)}}},e.ID="editor.contrib.inPlaceReplaceController",e.DECORATION=f["a"].register({className:"valueSetReplacement"}),e=v([_(1,u["a"])],e),e}(),b=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:i["a"]("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3154,weight:100}})||this}return m(t,e),t.prototype.run=function(e,t){var n=y.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)},t}(a["b"]),w=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:i["a"]("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3156,weight:100}})||this}return m(t,e),t.prototype.run=function(e,t){var n=y.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)},t}(a["b"]);Object(a["h"])(y),Object(a["f"])(b),Object(a["f"])(w),Object(d["e"])(function(e,t){var n=e.getColor(h["d"]);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")})},"1b0e":function(e,t,n){"use strict";var i=function(){function e(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}();function o(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function r(e,t,n){return new l(o(e),o(t)).ComputeDiff(n)}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return l});var s=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t)},e}(),a=function(){function e(){}return e.Copy=function(e,t,n,i,o){for(var r=0;r0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),l=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,i,o){var r=[!1],s=this.ComputeDiffRecursive(e,t,n,i,r);return o?this.PrettifyChanges(s):s},e.prototype.ComputeDiffRecursive=function(e,t,n,o,r){r[0]=!1;while(e<=t&&n<=o&&this.ElementsAreEqual(e,n))e++,n++;while(t>=e&&o>=n&&this.ElementsAreEqual(t,o))t--,o--;if(e>t||n>o){var a=void 0;return n<=o?(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new i(e,0,n,o-n+1)]):e<=t?(s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[new i(e,t-e+1,n,0)]):(s.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var u=[0],c=[0],l=this.ComputeRecursionPoint(e,t,n,o,u,c,r),d=u[0],h=c[0];if(null!==l)return l;if(!r[0]){var f=this.ComputeDiffRecursive(e,d,n,h,r),p=[];return p=r[0]?[new i(d+1,t-(d+1)+1,h+1,o-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,o,r),this.ConcatenateChanges(f,p)}return[new i(e,t-e+1,n,o-n+1)]},e.prototype.WALKTRACE=function(e,t,n,o,r,s,a,u,l,d,h,f,p,g,m,v,_,y){var b,w=null,C=null,S=new c,L=t,O=n,x=p[0]-v[0]-o,k=Number.MIN_VALUE,N=this.m_forwardHistory.length-1;do{b=x+e,b===L||b=0&&(l=this.m_forwardHistory[N],e=l[0],L=1,O=l.length-1)}while(--N>=-1);if(w=S.getReverseChanges(),y[0]){var D=p[0]+1,E=v[0]+1;if(null!==w&&w.length>0){var I=w[w.length-1];D=Math.max(D,I.getOriginalEnd()),E=Math.max(E,I.getModifiedEnd())}C=[new i(D,f-D+1,E,m-E+1)]}else{S=new c,L=s,O=a,x=p[0]-v[0]-u,k=Number.MAX_VALUE,N=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{b=x+r,b===L||b=d[b+1]?(h=d[b+1]-1,g=h-x-u,h>k&&S.MarkNextChange(),k=h+1,S.AddOriginalElement(h+1,g+1),x=b+1-r):(h=d[b-1],g=h-x-u,h>k&&S.MarkNextChange(),k=h,S.AddModifiedElement(h+1,g+1),x=b-1-r),N>=0&&(d=this.m_reverseHistory[N],r=d[0],L=1,O=d.length-1)}while(--N>=-1);C=S.getChanges()}return this.ConcatenateChanges(w,C)},e.prototype.ComputeRecursionPoint=function(e,t,n,o,r,s,c){var l,d=0,h=0,f=0,p=0,g=0,m=0;e--,n--,r[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v,_,y=t-e+(o-n),b=y+1,w=new Array(b),C=new Array(b),S=o-n,L=t-e,O=e-n,x=t-o,k=L-S,N=k%2===0;for(w[S]=e,C[L]=t,c[0]=!1,l=1;l<=y/2+1;l++){var D=0,E=0;for(f=this.ClipDiagonalBound(S-l,l,S,b),p=this.ClipDiagonalBound(S+l,l,S,b),v=f;v<=p;v+=2){d=v===f||vD+E&&(D=d,E=h),!N&&Math.abs(v-L)<=l-1&&d>=C[v])return r[0]=d,s[0]=h,_<=C[v]&&u>0&&l<=u+1?this.WALKTRACE(S,f,p,O,L,g,m,x,w,C,d,t,r,h,o,s,N,c):null}var I=(D-e+(E-n)-l)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(D,this.OriginalSequence,I))return c[0]=!0,r[0]=D,s[0]=E,I>0&&u>0&&l<=u+1?this.WALKTRACE(S,f,p,O,L,g,m,x,w,C,d,t,r,h,o,s,N,c):(e++,n++,[new i(e,t-e+1,n,o-n+1)]);for(g=this.ClipDiagonalBound(L-l,l,L,b),m=this.ClipDiagonalBound(L+l,l,L,b),v=g;v<=m;v+=2){d=v===g||v=C[v+1]?C[v+1]-1:C[v-1],h=d-(v-L)-x,_=d;while(d>e&&h>n&&this.ElementsAreEqual(d,h))d--,h--;if(C[v]=d,N&&Math.abs(v-S)<=l&&d<=w[v])return r[0]=d,s[0]=h,_>=w[v]&&u>0&&l<=u+1?this.WALKTRACE(S,f,p,O,L,g,m,x,w,C,d,t,r,h,o,s,N,c):null}if(l<=u){var M=new Array(p-f+2);M[0]=S-f+1,a.Copy(w,f,M,1,p-f+1),this.m_forwardHistory.push(M),M=new Array(m-g+2),M[0]=L-g+1,a.Copy(C,g,M,1,m-g+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(S,f,p,O,L,g,m,x,w,C,d,t,r,h,o,s,N,c)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=n.modifiedLength>0;while(n.originalStart+n.originalLength=0;t--){n=e[t],i=0,o=0;if(t>0){var u=e[t-1];u.originalLength>0&&(i=u.originalStart+u.originalLength),u.modifiedLength>0&&(o=u.modifiedStart+u.modifiedLength)}r=n.originalLength>0,s=n.modifiedLength>0;for(var c=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,f=n.modifiedStart-d;if(hl&&(l=p,c=d)}n.originalStart-=c,n.modifiedStart-=c}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"===typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"===typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,i){var o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(n,i)?1:0;return o+r},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var i=new Array(e.length+t.length-1);return a.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],a.Copy(t,1,i,e.length,t.length-1),i}i=new Array(e.length+t.length);return a.Copy(e,0,i,0,e.length),a.Copy(t,0,i,e.length,t.length),i},e.prototype.ChangesOverlap=function(e,t,n){if(s.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),s.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var o=e.originalStart,r=e.originalLength,a=e.modifiedStart,u=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(u=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(o,r,a,u),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e.001){C=!1;break}}var k=!0;C&&b.width!==S&&(k=!1),b.width>y.width&&(k=!1);var N=i["b"]()>2e3;return new f["b"]({zoomLevel:i["c"](),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:C,typicalHalfwidthCharacterWidth:o.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:k,spaceWidth:s.width,maxDigitWidth:w},N)},t.INSTANCE=new t,t}(r["a"]),_=function(e){function t(t,n,o){void 0===n&&(n=null);var r=e.call(this,t)||this;return r.accessibilityService=o,r._elementSizeObserver=r._register(new d(n,function(){return r._onReferenceDomElementSizeChanged()})),r._register(v.INSTANCE.onDidChange(function(){return r._onCSSBasedConfigurationChanged()})),r._validatedOptions.automaticLayout&&r._elementSizeObserver.startObserving(),r._register(i["o"](function(e){return r._recomputeOptions()})),r._register(r.accessibilityService.onDidChangeAccessibilitySupport(function(){return r._recomputeOptions()})),r._recomputeOptions(),r}return p(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return i["l"]||i["n"]||(e+="no-user-select "),s["d"]&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i["m"]||i["i"],pixelRatio:i["a"](),zoomLevel:i["c"](),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return v.INSTANCE.readConfiguration(e)},t}(h["a"])},"1df8":function(e,t,n){var i=n("63b6");i(i.S,"Object",{setPrototypeOf:n("ead6").set})},"1ec9":function(e,t,n){var i=n("f772"),o=n("e53d").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"1f26":function(e,t,n){},"1fa1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e("chunk-2d0e57ec").then(n.bind(null,"9571"))}})},"1fa8":function(e,t,n){var i=n("cb7c");e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(s){var r=e["return"];throw void 0!==r&&i(r.call(e)),s}}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),o=n("32e9"),r=n("79e5"),s=n("be13"),a=n("2b4c"),u=n("520a"),c=a("species"),l=!r(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=a(e),f=!r(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),p=f?!r(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t}):void 0;if(!f||!p||"replace"===e&&!l||"split"===e&&!d){var g=/./[h],m=n(s,h,""[e],function(e,t,n,i,o){return t.exec===u?f&&!o?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),v=m[0],_=m[1];i(String.prototype,e,v),o(RegExp.prototype,h,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}}},"21a6":function(e,t,n){(function(n){var i,o,r;(function(n,s){o=[],i=s,r="function"===typeof i?i.apply(t,o):i,void 0===r||(e.exports=r)})(0,function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){a(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function o(e){var t=new XMLHttpRequest;return t.open("HEAD",e,!1),t.send(),200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(i){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var a=s.URL||s.webkitURL,u=document.createElement("a");t=t||e.name||"download",u.download=t,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?r(u):o(u.href)?i(e,t,n):r(u,u.target="_blank")):(u.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(u.href)},4e4),setTimeout(function(){r(u)},0))}:"msSaveOrOpenBlob"in navigator?function(e,n,s){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),n);else if(o(e))i(e,n,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){r(a)})}}:function(e,t,n,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,n);var r="application/octet-stream"===e.type,a=/constructor/i.test(s.HTMLElement)||s.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||r&&a)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(e)}else{var l=s.URL||s.webkitURL,d=l.createObjectURL(e);o?o.location=d:location.href=d,o=null,setTimeout(function(){l.revokeObjectURL(d)},4e4)}});s.saveAs=a.saveAs=a,e.exports=a})}).call(this,n("c8ba"))},"230e":function(e,t,n){var i=n("d3f47"),o=n("7726").document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),o=n("2b4c")("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},"241e":function(e,t,n){var i=n("25eb");e.exports=function(e){return Object(i(e))}},"24c5":function(e,t,n){"use strict";var i,o,r,s,a=n("b8e3"),u=n("e53d"),c=n("d864"),l=n("40c3"),d=n("63b6"),h=n("f772"),f=n("79aa"),p=n("1173"),g=n("a22a"),m=n("f201"),v=n("4178").set,_=n("aba2")(),y=n("656e"),b=n("4439"),w=n("bc13"),C=n("cd78"),S="Promise",L=u.TypeError,O=u.process,x=O&&O.versions,k=x&&x.v8||"",N=u[S],D="process"==l(O),E=function(){},I=o=y.f,M=!!function(){try{var e=N.resolve(1),t=(e.constructor={})[n("5168")("species")]=function(e){e(E,E)};return(D||"function"==typeof PromiseRejectionEvent)&&e.then(E)instanceof t&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(i){}}(),T=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;_(function(){var i=e._v,o=1==e._s,r=0,s=function(t){var n,r,s,a=o?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{a?(o||(2==e._h&&F(e),e._h=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),s=!0)),n===t.promise?c(L("Promise-chain cycle")):(r=T(n))?r.call(n,u,c):u(n)):c(i)}catch(d){l&&!s&&l.exit(),c(d)}};while(n.length>r)s(n[r++]);e._c=[],e._n=!1,t&&!e._h&&A(e)})}},A=function(e){v.call(u,function(){var t,n,i,o=e._v,r=R(e);if(r&&(t=b(function(){D?O.emit("unhandledRejection",o,e):(n=u.onunhandledrejection)?n({promise:e,reason:o}):(i=u.console)&&i.error&&i.error("Unhandled promise rejection",o)}),e._h=D||R(e)?2:1),e._a=void 0,r&&t.e)throw t.v})},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){v.call(u,function(){var t;D?O.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},j=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},W=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw L("Promise can't be resolved itself");(t=T(e))?_(function(){var i={_w:n,_d:!1};try{t.call(e,c(W,i,1),c(j,i,1))}catch(o){j.call(i,o)}}):(n._v=e,n._s=1,P(n,!1))}catch(i){j.call({_w:n,_d:!1},i)}}};M||(N=function(e){p(this,N,S,"_h"),f(e),i.call(this);try{e(c(W,this,1),c(j,this,1))}catch(t){j.call(this,t)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n("5c95")(N.prototype,{then:function(e,t){var n=I(m(this,N));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=D?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i;this.promise=e,this.resolve=c(W,e,1),this.reject=c(j,e,1)},y.f=I=function(e){return e===N||e===s?new r(e):o(e)}),d(d.G+d.W+d.F*!M,{Promise:N}),n("45f2")(N,S),n("4c95")(S),s=n("584a")[S],d(d.S+d.F*!M,S,{reject:function(e){var t=I(this),n=t.reject;return n(e),t.promise}}),d(d.S+d.F*(a||!M),S,{resolve:function(e){return C(a&&this===s?N:this,e)}}),d(d.S+d.F*!(M&&n("4ee1")(function(e){N.all(e)["catch"](E)})),S,{all:function(e){var t=this,n=I(t),i=n.resolve,o=n.reject,r=b(function(){var n=[],r=0,s=1;g(e,!1,function(e){var a=r++,u=!1;n.push(void 0),s++,t.resolve(e).then(function(e){u||(u=!0,n[a]=e,--s||i(n))},o)}),--s||i(n)});return r.e&&o(r.v),n.promise},race:function(e){var t=this,n=I(t),i=n.reject,o=b(function(){g(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return o.e&&i(o.v),n.promise}})},2504:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var i,o=n("308f"),r=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});(function(e){function t(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o["b"].None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})})(i||(i={}));var s=function(){function e(){this._isCancelled=!1,this._emitter=null}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?r:(this._emitter||(this._emitter=new o["a"]),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),a=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new s),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof s&&this._token.cancel():this._token=i.Cancelled},e.prototype.dispose=function(){this._token?this._token instanceof s&&this._token.dispose():this._token=i.None},e}()},"258a":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"f",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"e",function(){return c});var i,o=function(){var e=function(t,n){return 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])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r={done:!0,value:void 0};function s(e){return Array.isArray(e)?i.fromArray(e):e}(function(e){var t={next:function(){return r}};function n(){return t}function i(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return t>=n?r:{done:!1,value:e[t++]}}}}function o(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()}function s(e,t){return{next:function(){var n=e.next();return n.done?r:{done:!1,value:t(n.value)}}}}function a(e,t){return{next:function(){while(1){var n=e.next();if(n.done)return r;if(t(n.value))return{done:!1,value:n.value}}}}}function u(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)}function c(e){var t=[];return u(e,function(e){return t.push(e)}),t}e.empty=n,e.fromArray=i,e.from=o,e.map=s,e.filter=a,e.forEach=u,e.collect=c})(i||(i={}));var a=function(){function e(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===i&&(i=t-1),this.items=e,this.start=t,this.end=n,this.index=i}return e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}(),u=function(e){function t(t,n,i,o){return void 0===n&&(n=0),void 0===i&&(i=t.length),void 0===o&&(o=n-1),e.call(this,t,n,i,o)||this}return o(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(a),c=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}()},"25b0":function(e,t,n){n("1df8"),e.exports=n("584a").Object.setPrototypeOf},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"268f":function(e,t,n){e.exports=n("fde4")},"27e6":function(e,t,n){},"27ee":function(e,t,n){var i=n("23c6"),o=n("2b4c")("iterator"),r=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},2837:function(e,t,n){"use strict";var i;n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(i||(i={}));var o=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t1||""[f](/.?/)[p]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!i(e))return n.call(o,e,t);var r,s,a,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?m:t>>>0,v=new RegExp(e.source,l+"g");while(r=c.call(v,o)){if(s=v[g],s>d&&(u.push(o.slice(d,r.index)),r[p]>1&&r.index=f))break;v[g]===r.index&&v[g]++}return d===o[p]?!a&&v.test("")||u.push(""):u.push(o.slice(d)),u[p]>f?u.slice(0,f):u}:"0"[f](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o,i):_.call(String(o),n,i)},function(e,t){var i=l(_,e,this,t,_!==n);if(i.done)return i.value;var c=o(e),h=String(this),f=r(c,RegExp),p=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),y=new f(v?c:"^(?:"+c.source+")",g),b=void 0===t?m:t>>>0;if(0===b)return[];if(0===h.length)return null===u(y,h)?[h]:[];var w=0,C=0,S=[];while(C";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(o+"script"+s+"document.F=Object"+o+"/script"+s),e.close(),c=e.F;while(i--)delete c[u][r[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[u]=i(e),n=new a,a[u]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){ /*! * Vue.js v2.6.8 * (c) 2014-2019 Evan You diff --git a/client/dist/precache-manifest.715c4f1c524498d52eae93fa9b05ef41.js b/client/dist/precache-manifest.3a95ae2e2e6e70c66328ef8ffa055478.js similarity index 94% rename from client/dist/precache-manifest.715c4f1c524498d52eae93fa9b05ef41.js rename to client/dist/precache-manifest.3a95ae2e2e6e70c66328ef8ffa055478.js index 20f4ae0..a6ce415 100644 --- a/client/dist/precache-manifest.715c4f1c524498d52eae93fa9b05ef41.js +++ b/client/dist/precache-manifest.3a95ae2e2e6e70c66328ef8ffa055478.js @@ -1,11 +1,11 @@ self.__precacheManifest = [ { - "revision": "d59aa6a096da252850f1", - "url": "/LiveCoding/css/app.b2d20be3.css" + "revision": "1dbb38790b03416135de", + "url": "/LiveCoding/css/app.521e5c61.css" }, { - "revision": "d59aa6a096da252850f1", - "url": "/LiveCoding/js/app.1c2417ff.js" + "revision": "1dbb38790b03416135de", + "url": "/LiveCoding/js/app.01c69642.js" }, { "revision": "584ffc7cd02d5b743335", @@ -236,12 +236,12 @@ self.__precacheManifest = [ "url": "/LiveCoding/js/chunk-774ac664.db105340.js" }, { - "revision": "294cca23548d0c415eff", + "revision": "b2fced9d53ac447065dd", "url": "/LiveCoding/css/chunk-vendors.2c9fa0f8.css" }, { - "revision": "294cca23548d0c415eff", - "url": "/LiveCoding/js/chunk-vendors.004e6330.js" + "revision": "b2fced9d53ac447065dd", + "url": "/LiveCoding/js/chunk-vendors.50555fa2.js" }, { "revision": "679bf55259d721f8f65649d4535d23e4", @@ -260,7 +260,7 @@ self.__precacheManifest = [ "url": "/LiveCoding/typescript.worker.js" }, { - "revision": "b6794925de3356d5afb469400332b96e", + "revision": "ff2f41e35c038dd297561874c04c4e37", "url": "/LiveCoding/index.html" }, { diff --git a/client/dist/service-worker.js b/client/dist/service-worker.js index 70c7035..58369e1 100644 --- a/client/dist/service-worker.js +++ b/client/dist/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts( - "/LiveCoding/precache-manifest.715c4f1c524498d52eae93fa9b05ef41.js" + "/LiveCoding/precache-manifest.3a95ae2e2e6e70c66328ef8ffa055478.js" ); workbox.core.setCacheNameDetails({prefix: "livecoding"}); diff --git a/client/package-lock.json b/client/package-lock.json index b22a94f..9b741a6 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -5327,6 +5327,11 @@ } } }, + "file-saver": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.1.tgz", + "integrity": "sha512-dCB3K7/BvAcUmtmh1DzFdv0eXSVJ9IAFt1mw3XZfAexodNRoE29l3xB2EX4wH2q8m/UTzwzEPq/ArYk98kUkBQ==" + }, "filesize": { "version": "3.6.1", "resolved": "https://registry.npmjs.org/filesize/-/filesize-3.6.1.tgz", diff --git a/client/package.json b/client/package.json index 2a6cb9e..5dee73a 100644 --- a/client/package.json +++ b/client/package.json @@ -9,6 +9,7 @@ }, "dependencies": { "buefy": "^0.7.3", + "file-saver": "^2.0.1", "monaco-editor": "^0.16.0", "monaco-editor-webpack-plugin": "^1.7.0", "monaco-themes": "^0.2.5", diff --git a/client/src/assets/scss/buttons.scss b/client/src/assets/scss/buttons.scss deleted file mode 100644 index ff11505..0000000 --- a/client/src/assets/scss/buttons.scss +++ /dev/null @@ -1,58 +0,0 @@ -// Buttons style - -button { - padding: 0px 7px; - height: 34px; - border: none; - border-radius: 6px; - cursor: pointer; - transition: 0.2s ease-in-out; - - &:hover { - box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.1) inset; - } - - &:focus { - outline: none; - } - - &.is-orange { - color: $white-bis; - background-color: $orange; - } - - &.is-yellow { - color: $white-bis; - background-color: $yellow; - } - - &.is-green { - color: $white-bis; - background-color: $green; - } - - &.is-turquoise { - color: $white-bis; - background-color: $turquoise; - } - - &.is-cyan { - color: $white-bis; - background-color: $cyan; - } - - &.is-blue { - color: $white-bis; - background-color: $blue; - } - - &.is-purple { - color: $white-bis; - background-color: $purple; - } - - &.is-red { - color: $white-bis; - background-color: $red; - } -} diff --git a/client/src/assets/scss/inputs.scss b/client/src/assets/scss/inputs.scss deleted file mode 100644 index 27c00aa..0000000 --- a/client/src/assets/scss/inputs.scss +++ /dev/null @@ -1,57 +0,0 @@ -// Inputs style - -input, select { - padding: 0px 7px; - height: 34px; - border: 1px solid; - border-radius: 6px; - transition: 0.1s ease-in-out; - - //outline: none; - //outline-color: transparent; - //outline-style: none; - -webkit-appearance: none; - - background-color: $white-bis; - - &.full-width { - width: 100%; - } - - &:focus { - outline: none; - box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.1) inset; - } - - &.is-orange { - border-color: $orange; - } - - &.is-yellow { - border-color: $yellow; - } - - &.is-green { - border-color: $green; - } - - &.is-turquoise { - border-color: $turquoise; - } - - &.is-cyan { - border-color: $cyan; - } - - &.is-blue { - border-color: $blue; - } - - &.is-purple { - border-color: $purple; - } - - &.is-red { - border-color: $red; - } -} diff --git a/client/src/assets/scss/loader.scss b/client/src/assets/scss/loader.scss deleted file mode 100644 index 7037261..0000000 --- a/client/src/assets/scss/loader.scss +++ /dev/null @@ -1,31 +0,0 @@ -.loader-spinner, -.loader-spinner:after { - border-radius: 50%; - width: 10em; - height: 10em; -} -.loader-spinner { - margin: 60px auto; - font-size: 10px; - position: relative; - text-indent: -9999em; - border-top: 1.1em solid rgba(255, 255, 255, 0.2); - border-right: 1.1em solid rgba(255, 255, 255, 0.2); - border-bottom: 1.1em solid rgba(255, 255, 255, 0.2); - border-left: 1.1em solid #ffffff; - -webkit-transform: translateZ(0); - -ms-transform: translateZ(0); - transform: translateZ(0); - -webkit-animation: load-spinner-keyframes 1.1s infinite linear; - animation: load-spinner-keyframes 1.1s infinite linear; -} -@keyframes load-spinner-keyframes { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} \ No newline at end of file diff --git a/client/src/assets/scss/modal.scss b/client/src/assets/scss/modal.scss deleted file mode 100644 index 38766ca..0000000 --- a/client/src/assets/scss/modal.scss +++ /dev/null @@ -1,49 +0,0 @@ -.modal-mask { - position: fixed; - z-index: 9998; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, .5); - display: table; - transition: opacity .3s ease; -} - -.modal-wrapper { - display: table-cell; - vertical-align: middle; -} - -.modal-container { - width: 60%; - margin: 0px auto; - padding: 20px 20px; - background-color: $white-ter; - border-radius: 2px; - box-shadow: 0 2px 8px rgba(0, 0, 0, .33); - transition: all .3s ease; -} - -.modal-body { - margin-bottom: 20px; - - .spacing { - margin-right: 8px; - } -} - -// Modal apparition animation -.modal-enter { - opacity: 0; -} - -.modal-leave-active { - opacity: 0; -} - -.modal-enter .modal-container, -.modal-leave-active .modal-container { - -webkit-transform: scale(1.1); - transform: scale(1.1); -} diff --git a/client/src/assets/scss/nav-bar.scss b/client/src/assets/scss/nav-bar.scss deleted file mode 100644 index 5c89a2a..0000000 --- a/client/src/assets/scss/nav-bar.scss +++ /dev/null @@ -1,28 +0,0 @@ -// Navigation bar style - -#nav-bar { - background-color: $white-ter; - - display: flex; - justify-content: space-between; - - padding: 8px; - - .nav-left { - .spacing { - margin-right: 8px; - } - } - - .nav-center { - margin: 0px 8px; - display: flex; - align-items: center; - } - - .nav-right { - .spacing { - margin-left: 8px; - } - } -} diff --git a/client/src/components/SettingsBox.vue b/client/src/components/SettingsBox.vue index 16d1942..075ef3b 100644 --- a/client/src/components/SettingsBox.vue +++ b/client/src/components/SettingsBox.vue @@ -102,6 +102,9 @@ export default {
+ + + + + + +
+
+ + diff --git a/client/src/game/GameManager.js b/client/src/game/GameManager.js index 5e11072..3d87026 100644 --- a/client/src/game/GameManager.js +++ b/client/src/game/GameManager.js @@ -51,8 +51,5 @@ export default class GameManager { assetsBasePath: this.provider.assetsBasePath, console: console }) - // Create a key to eval commands in the game scope - /* eslint-disable no-eval */ - window.gameCommandEval = eval } } diff --git a/client/src/store/actions.js b/client/src/store/actions.js index 6bdc657..048610e 100644 --- a/client/src/store/actions.js +++ b/client/src/store/actions.js @@ -1,7 +1,9 @@ import GameManager from '@/game/GameManager' import ProviderFactory from '@/game/providers/ProviderFactory' import { ProcessorProxyFactory } from '@/processor/ProcessorProxyFactory' -// import ProcessorConnexion from '@/game/processor/ProcessorConnexion' +import { saveAs } from 'file-saver' +import { languagesExtensions } from './languagesExtensions' +import { Snackbar } from 'buefy/dist/components/snackbar' /** * Actions for the vuex store @@ -40,6 +42,7 @@ export default { // Display little message in the game box document.getElementById('game-box').innerHTML = 'Aucun jeu chargé !' dispatch('console/error', 'Error during Game loading !') + commit('CLEAR_GAME_MANAGER') throw new Error() } finally { commit('SET_GAME_LOADING_STATE', false) @@ -77,5 +80,59 @@ export default { stop ({ dispatch }) { dispatch('console/info', 'Stopping the process.') window.processorProxy.stopExecution() + }, + /** + * Save the content of the current editor in a file + */ + async saveEditorContent ({ state }) { + const file = new File( + [state.editor.languagesContent[state.editor.language]], + `livecoding.${languagesExtensions[state.editor.language]}`, + { type: 'text/plain;charset=utf-8' } + ) + saveAs(file) + }, + /** + * Import a file in the current editor language + */ + importEditorContent ({ commit, dispatch, state }, fileList) { + if (state.game.loaded) { + let file = fileList[0] + let fileExtension = file.name.split('.').pop() + // Check file extension + if (ProcessorProxyFactory.processorProxies.map(e => e.name).includes(Object.keys(languagesExtensions).find(key => languagesExtensions[key] === fileExtension))) { + dispatch('console/info', 'Fichier supporté') + // Get file + let fr = new FileReader() + // Declare onload callback + fr.onload = (e) => { + console.log(e.target.result) + commit('UPDATE_EDITOR_CONTENT', e.target.result) + // Reset the editor value directly on the editor instance + // Nesesary because the editor component can not watch the editor content state + window.scriptEditor.getModel().setValue(e.target.result) + } + fr.readAsText(fileList[0]) + commit('UPDATE_EDITOR_LANGUAGE', Object.keys(languagesExtensions).find(key => languagesExtensions[key] === fileExtension)) + } else { + Snackbar.open({ + message: 'Language non supporté.', + type: 'is-warning', + position: 'is-top', + actionText: 'OK', + duration: 4500 + }) + dispatch('console/warning', 'Language non supporté.') + } + } else { + Snackbar.open({ + message: "Vous ne pouvez pas importer de fichier si aucun jeux n'est chargé.", + type: 'is-warning', + position: 'is-top', + actionText: 'OK', + duration: 4500 + }) + dispatch('console/warning', "Vous ne pouvez pas importer de fichier si aucun jeux n'est chargé.") + } } } diff --git a/client/src/store/languagesExtensions.js b/client/src/store/languagesExtensions.js new file mode 100644 index 0000000..6c7ccb6 --- /dev/null +++ b/client/src/store/languagesExtensions.js @@ -0,0 +1,11 @@ +/** + * This map link languages names to her corresponding files extension + * Used for file save/import + */ + +export const languagesExtensions = { + ruby: 'rb', + php: 'php', + javascript: 'js', + python: 'py' +} diff --git a/client/src/store/mutations.js b/client/src/store/mutations.js index 9023053..a344665 100644 --- a/client/src/store/mutations.js +++ b/client/src/store/mutations.js @@ -68,6 +68,14 @@ export default { state.game.manager = value state.game.loaded = true }, + /** + * Clear game manager in case of loading error + * @param {String} value + */ + CLEAR_GAME_MANAGER: (state) => { + state.game.manager = null + state.game.loaded = false + }, /** * Set the game loading state * @param {boolean} value diff --git a/server/core/TempFile.py b/server/core/TempFile.py index 4030bfa..38beb80 100644 --- a/server/core/TempFile.py +++ b/server/core/TempFile.py @@ -16,5 +16,6 @@ def create(self): self.file.write(bytes(self.engineGame + "\n" + self.engine + "\n" + self.content + "\n", "UTF-8")) self.file.seek(0) + # get the temp file name def getName(self): return self.file.name \ No newline at end of file diff --git a/server/core/game.py b/server/core/game.py index 0d30a67..047b560 100644 --- a/server/core/game.py +++ b/server/core/game.py @@ -1,9 +1,11 @@ +# Class Game +# Run games commandes defined into the tempfile using a process +# v.1.0 + import asyncio import websockets -import socket import os -import json -from .TempFile import TempFile +from .tempFile import TempFile from .process import Process import languages from mod import mlog @@ -11,18 +13,21 @@ class Game: def __init__(self, language, socket): - self.classes = None # engine game defined by the client + self.classes = None # engine game defined by the client self.content = None # client game code self.languageObject = languages.create(language) # language with the engine - self.languageName = language + self.languageName = language # the language name self.process = None # the process to execute the code - self.socket = socket + self.socket = socket # cleint webSocket pass + # Start a new game using process async def run(self, socket): mlog.show("Starting the new game. Wait for ready....") - tmpFileToRun = TempFile(self.languageObject.getFileHeader(), self.classes, self.content) # init and create new file with the game engine and the client code - - self.process = Process(self.socket, tmpFileToRun, self.languageName) # init the new game process - await self.process.run() # run the process - pass \ No newline at end of file + # init and create new file with the game engine and the client code + tmpFileToRun = TempFile(self.languageObject.getFileHeader(), self.classes, self.content) + # init the new game process + self.process = Process(self.socket, tmpFileToRun, self.languageName) + # run the process + await self.process.run() + return \ No newline at end of file diff --git a/server/core/listen.py b/server/core/listen.py index 40adce1..917805f 100644 --- a/server/core/listen.py +++ b/server/core/listen.py @@ -1,10 +1,9 @@ -# Listen all from socket: +# Class Listen # Get all data form client and create a new game then run it +# v1.0 import asyncio import websockets -import socket -import select from mod import mlog from .game import Game from mod import languages @@ -12,19 +11,19 @@ class Listen: def __init__(self, socket): - self.mainSocket = socket # the client socket to listen + self.mainSocket = socket # the client websocket to listen self.game = None # the game to attach a this connection return #protocol sequency async def run(self): - if not await self.get_language(): + if not await self.get_language(): # get language name return False - if not await self.get_classes(): + if not await self.get_classes(): # get game classes return False - if not await self.get_content(): + if not await self.get_content(): # get client code return False - if not await self.start_game(): + if not await self.start_game(): # start a new game return False return True diff --git a/server/core/process.py b/server/core/process.py index 0cfcdc1..8391858 100644 --- a/server/core/process.py +++ b/server/core/process.py @@ -1,14 +1,12 @@ +# Class Process +# Process all game code running into a sunprocess and send the result to client +# v1.0 + import asyncio import websockets -import socket import os -import json -from .TempFile import TempFile -import languages -from mod import languages from mod import mlog import subprocess -import time from mod import io class Process: @@ -22,46 +20,59 @@ def __init__(self, socket, tempfile, languageName): async def run(self): mlog.show("Proccess ready! Using engine to play game") + # prepare the subprocess command cmd = self.languageName + " " + self.tempfile.getName() + # execute a new process for the current game self.process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) mlog.show("Starting proxy server ... Waiting for client answer...") + # start to process all game commandes await self.proxyGame() pass async def proxyGame(self): #loop until process is running + count = 0 while self.process.poll() is None: + # get error form the current executing commande errorMsg = await io.stderrGet(self.process) + # run the current command using the server-process protocol if errorMsg == "none": - await self.waitForReady() - cmdsJS = await io.stdoutGet(self.process) - await self.sendCommandToClient(cmdsJS) - message = await self.socket.recv() - if message == 'PROCESS_ENDED_BY_USER': + await self.waitForReady("start") # wait until server is ready + cmdsJS = await io.stdoutGet(self.process) # get command from process to send to client + await self.sendCommandToClient(cmdsJS) # send the command to the client + message = await self.socket.recv() # wait for client confirmation + mlog.show("Received confirmation from client: "+ message) + await self.waitForReady("insert") # wait until server is ready + await io.stdinWrite(self.process, message) # send to process the client confirmation + await self.waitForReady("close") # wait until server is ready + if message == 'PROCESS_ENDED_BY_USER': # exit request from client mlog.show("Game closed by User. By...") self.process.terminate() break - mlog.show("Received confirmation from client: "+ message) - await self.waitForReady() - await io.stdinWrite(self.process, message) + count = count + 1 # count executed commamdes + - if errorMsg.strip() != "none" and errorMsg.strip() != "": + # for any error + if errorMsg.strip() != "none" and errorMsg.strip() != "": mlog.show("Process error.. Game has been stopped..") mlog.show("Error message: " + errorMsg) - self.socket.send("ERROR/" + errorMsg) - self.process.terminate() - break + await self.socket.send("ERROR/" + errorMsg) # send the error to client + self.process.terminate() # stop the subprocess + break + + mlog.show("Commandes executed: " + str(count)) return - async def waitForReady(self): - mlog.show("Wait for new command to process...!") + # syncronisation between subporcess and server + # stop the current sequence in proxy game and wait the reponse from process to continue + async def waitForReady(self, value): while True: - await io.stdinWrite(self.process, "ready") - if await io.stdoutGet(self.process) == "ready": + if await io.stdoutGet(self.process) == value: return return + # send the command received from process to client async def sendCommandToClient(self, value): mlog.show("Send command to client: " + value) await self.socket.send(value) diff --git a/server/core/tempFile.py b/server/core/tempFile.py new file mode 100644 index 0000000..38beb80 --- /dev/null +++ b/server/core/tempFile.py @@ -0,0 +1,21 @@ +import tempfile + +# Wrapper class to create a temp file, it uses the temfile library +class TempFile: + def __init__(self, engineGame, engine, content): + self.content = content + self.engine = engine + self.engineGame = engineGame + self.file = None + self.create() + pass + + # Create a tmpfile which contains all the user code that we will execute. (the file is deleted by itself as soon as it is closed by the process) + def create(self): + self.file = tempfile.NamedTemporaryFile(delete=True) + self.file.write(bytes(self.engineGame + "\n" + self.engine + "\n" + self.content + "\n", "UTF-8")) + self.file.seek(0) + + # get the temp file name + def getName(self): + return self.file.name \ No newline at end of file diff --git a/server/languages/php/Php.py b/server/languages/php/Php.py index bf4c303..bf84050 100644 --- a/server/languages/php/Php.py +++ b/server/languages/php/Php.py @@ -1,5 +1,3 @@ -import subprocess - class Php: def __init__(self): @@ -17,8 +15,4 @@ def getFileFooter(self): return self.footer def getlanguageCall(self): - return self.languageCall - - def runProcessAndFetchIt(self, fileToRun): - # Open a command line and run the userCmds tmp file into the good interpretor - return subprocess.Popen(self.languageCall+" "+fileToRun.getName(), shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) + return self.languageCall \ No newline at end of file diff --git a/server/languages/php/commands.php b/server/languages/php/commands.php deleted file mode 100644 index 2290559..0000000 --- a/server/languages/php/commands.php +++ /dev/null @@ -1,179 +0,0 @@ - true|false -# -def isLeftSideFree - STDERR.puts "none" - STDERR.flush - - puts 'pacman.isLeftSideFree();' - STDOUT.flush - msg = STDIN.gets - puts msg - - msg -end - -# Check if the case on the right of the character is free -# -# isRightSideFree -# # => true|false -# -def isRightSideFree - STDERR.puts "none" - STDERR.flush - - puts 'pacman.isRightSideFree();' - STDOUT.flush - msg = STDIN.gets - puts msg - - msg -end - -# Check if the case on the top of the character is free -# -# isUpSideFree -# # => true|false -# -def isUpSideFree - STDERR.puts "none" - STDERR.flush - - puts 'pacman.isUpSideFree();' - STDOUT.flush - msg = STDIN.gets - puts msg - - msg -end - -# Check if the case on the bottom of the character is free -# -# isDownSideFree -# # => true|false -# -def isDownSideFree - STDERR.puts "none" - STDERR.flush - - puts 'pacman.isDownSideFree();' - STDOUT.flush - msg = STDIN.gets - puts msg - - msg -end diff --git a/server/languages/ruby/engine.rb b/server/languages/ruby/engine.rb index 8db6cc6..81f5114 100644 --- a/server/languages/ruby/engine.rb +++ b/server/languages/ruby/engine.rb @@ -1,25 +1,27 @@ +# Class Engine +# read and write to/form server proxy + class Engine def self.send(commandJS) + STDERR.puts "none\n" + STDERR.flush - STDIN.gets - STDIN.flush - - puts "ready" + puts "start" STDOUT.flush puts commandJS STDOUT.flush - STDIN.gets - STDIN.flush - - puts "ready" + puts "insert" STDOUT.flush msg = STDIN.gets STDIN.flush + puts "close" + STDOUT.flush + msg.gsub("\n","") end end \ No newline at end of file diff --git a/server/main.py b/server/main.py index 2c434cc..621a671 100644 --- a/server/main.py +++ b/server/main.py @@ -1,7 +1,6 @@ from core.listen import Listen from core.connection import Connection from mod import mlog -import socket import configparser import asyncio import websockets @@ -26,4 +25,4 @@ async def game(websocket, path): start_server = websockets.serve(game, host, port) # initialize the websocket asyncio.get_event_loop().run_until_complete(start_server) mlog.show("Live Coding Server has been loaded.... Waiting for new connection") -asyncio.get_event_loop().run_forever() # run the websocket service +asyncio.get_event_loop().run_forever() # run the websocket service \ No newline at end of file diff --git a/server/mod/io.py b/server/mod/io.py index 40c9e7b..8ca5160 100644 --- a/server/mod/io.py +++ b/server/mod/io.py @@ -1,32 +1,37 @@ -# Base input output class to send an received data from socket - -import subprocess +# Module IO +# Write/Read values to/from process and flush after +# read from stdin and flush async def stdinGet(process): res = process.stdin.readline().decode().strip() process.stdin.flush() return res +# read from stdout and flush async def stdoutGet(process): res = process.stdout.readline().decode().strip() process.stdout.flush() return res +# read from stderr and flush async def stderrGet(process): res = process.stderr.readline().decode().strip() process.stderr.flush() return res +# write to stdin and flush async def stdinWrite(process, value): process.stdin.write(bytes(value + "\n","UTF-8")) process.stdin.flush() return True +# write to stderr and flush async def stderrWrite(process, value): process.stderr.write(bytes(value + "\n","UTF-8")) process.stderr.flush() return True +# write to stdout and flush async def stdoutWrite(process, value): process.stdout.write(bytes(value + "\n","UTF-8")) process.stdout.flush() diff --git a/server/mod/mlog.py b/server/mod/mlog.py index dbcb3a4..d86b290 100644 --- a/server/mod/mlog.py +++ b/server/mod/mlog.py @@ -1,4 +1,6 @@ -import logging +# Logger module +# Use logging and coloredlogs to have very nice messages + import coloredlogs, logging coloredlogs.install()